Update api spec (#157)
* YOYO NEW API SPEC! * I have generated the latest API! --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -1,66 +1,26 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/info/x-python",
|
"path": "/paths/~1openai~1openapi.json/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"client": "# Create a client with your token.\nfrom kittycad import Client\n\nclient = Client(token=\"$TOKEN\")\n\n# - OR -\n\n# Create a new client with your token parsed from the environment variable:\n# `KITTYCAD_API_TOKEN`.\nfrom kittycad import ClientFromEnv\n\nclient = ClientFromEnv()\n\n# NOTE: The python library additionally implements asyncio, however all the code samples we\n# show below use the sync functions for ease of use and understanding.\n# Check out the library docs at:\n# https://python.api.docs.kittycad.io/_autosummary/kittycad.api.html#module-kittycad.api\n# for more details.",
|
"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",
|
||||||
"install": "pip install kittycad"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_openai_schema.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1payment~1methods~1{id}/delete/x-python",
|
"path": "/paths/~1users-extended/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.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.payments.delete_payment_method_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.list_users_extended.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1length~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1apps~1github~1webhook/post/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.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.unit.get_length_unit_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_webhook.html"
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1_meta~1info/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.meta import get_metadata\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Metadata\nfrom kittycad.types import Response\n\n\ndef example_get_metadata():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Metadata, Error]] = get_metadata.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Metadata = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_metadata.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~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/~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-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/~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"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -73,42 +33,58 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1angle~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1unit~1conversion~1torque~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_angle_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitAngleConversion\nfrom kittycad.models.unit_angle import UnitAngle\nfrom kittycad.types import Response\n\n\ndef example_get_angle_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitAngleConversion, Error]\n ] = get_angle_unit_conversion.sync(\n client=client,\n input_unit=UnitAngle.DEGREES,\n output_unit=UnitAngle.DEGREES,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitAngleConversion = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.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_angle_unit_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_torque_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1users/get/x-python",
|
"path": "/paths/~1api-call-metrics/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import list_users\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UserResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_users():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[UserResultsPage, Error]] = list_users.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UserResultsPage = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.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.users.list_users.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.get_api_call_metrics.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1ws~1modeling~1commands/get/x-python",
|
"path": "/paths/~1user~1api-tokens~1{token}/delete/x-python",
|
||||||
"value": {
|
"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",
|
"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.modeling.modeling_commands_ws.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.delete_api_token_for_user.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1ping/get/x-python",
|
"path": "/paths/~1user~1api-tokens~1{token}/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_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.meta.ping.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.get_api_token_for_user.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1payment~1methods/get/x-python",
|
"path": "/paths/~1unit~1conversion~1length~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.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",
|
"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.payments.list_payment_methods_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_length_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1apps~1github~1consent/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_consent\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AppClientInfo, Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_consent():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AppClientInfo, Error]] = apps_github_consent.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AppClientInfo = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_consent.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~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"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -121,26 +97,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1file~1conversion~1{src_format}~1{output_format}/post/x-python",
|
"path": "/paths/~1user~1payment~1balance/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.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.file.create_file_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.get_payment_balance_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/~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"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -151,6 +111,14 @@
|
|||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.get_payment_information_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.get_payment_information_for_user.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1payment/delete/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.payments import delete_payment_information_for_user\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_delete_payment_information_for_user():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = delete_payment_information_for_user.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.delete_payment_information_for_user.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1payment/put/x-python",
|
"path": "/paths/~1user~1payment/put/x-python",
|
||||||
@ -169,26 +137,18 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1users-extended/get/x-python",
|
"path": "/paths/~1ai~1image-to-3d~1{input_format}~1{output_format}/post/x-python",
|
||||||
"value": {
|
"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",
|
"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.users.list_users_extended.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.ai.create_image_to_3d.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1current~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1auth~1email/post/x-python",
|
||||||
"value": {
|
"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",
|
"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.unit.get_current_unit_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.auth_email.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"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -201,10 +161,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1temperature~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1users-extended~1{id}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_temperature_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitTemperatureConversion\nfrom kittycad.models.unit_temperature import UnitTemperature\nfrom kittycad.types import Response\n\n\ndef example_get_temperature_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitTemperatureConversion, Error]\n ] = get_temperature_unit_conversion.sync(\n client=client,\n input_unit=UnitTemperature.CELSIUS,\n output_unit=UnitTemperature.CELSIUS,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitTemperatureConversion = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUser\nfrom kittycad.types import Response\n\n\ndef example_get_user_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ExtendedUser, Error]] = get_user_extended.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUser = result\n print(body)\n",
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_temperature_unit_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_extended.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -233,98 +193,18 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1users~1{id}/get/x-python",
|
"path": "/paths/~1api-calls/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.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",
|
"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.users.get_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_calls.list_api_calls.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1user~1onboarding/get/x-python",
|
"path": "/paths/~1user~1front-hash/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.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",
|
"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_onboarding_self.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_front_hash_self.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/~1openai~1openapi.json/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from kittycad.api.meta import get_openai_schema\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_openai_schema():\n # Create our client.\n client = ClientFromEnv()\n\n get_openai_schema.sync(\n client=client,\n )\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_openai_schema.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~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/~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~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-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/~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/~1apps~1github~1consent/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_consent\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AppClientInfo, Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_consent():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[AppClientInfo, Error]] = apps_github_consent.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AppClientInfo = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.apps.apps_github_consent.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~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/~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"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -337,42 +217,90 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1apps~1github~1callback/get/x-python",
|
"path": "/paths/~1unit~1conversion~1angle~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.apps import apps_github_callback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_apps_github_callback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = apps_github_callback.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_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.apps.apps_github_callback.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_angle_unit_conversion.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1users~1{id}~1api-calls/get/x-python",
|
"path": "/paths/~1file~1volume/post/x-python",
|
||||||
"value": {
|
"value": {
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.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",
|
"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.api_calls.list_api_calls_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_volume.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1auth~1email/post/x-python",
|
"path": "/paths/~1ws~1executor~1term/get/x-python",
|
||||||
"value": {
|
"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",
|
"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.hidden.auth_email.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.executor.create_executor_term.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1async~1operations/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 list_async_operations\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import AsyncApiCallResultsPage, Error\nfrom kittycad.models.api_call_status import ApiCallStatus\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_async_operations():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[AsyncApiCallResultsPage, Error]\n ] = list_async_operations.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n status=ApiCallStatus.QUEUED,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: AsyncApiCallResultsPage = result\n print(body)\n",
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.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.list_async_operations.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_metadata.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1file~1density/post/x-python",
|
"path": "/paths/~1unit~1conversion~1energy~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_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",
|
"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.file.create_file_density.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_energy_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~1onboarding/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_onboarding_self\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, Onboarding\nfrom kittycad.types import Response\n\n\ndef example_get_user_onboarding_self():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[Onboarding, Error]] = get_user_onboarding_self.sync(\n client=client,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Onboarding = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_onboarding_self.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1unit~1conversion~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/~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/~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/~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~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"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -391,70 +319,6 @@
|
|||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.list_api_tokens_for_user.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.api_tokens.list_api_tokens_for_user.html"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from kittycad.api.meta import get_schema\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.types import Response\n\n\ndef example_get_schema():\n # Create our client.\n client = ClientFromEnv()\n\n get_schema.sync(\n client=client,\n )\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.meta.get_schema.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~1user~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~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/~1users-extended~1{id}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import get_user_extended\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, ExtendedUser\nfrom kittycad.types import Response\n\n\ndef example_get_user_extended():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[ExtendedUser, Error]] = get_user_extended.sync(\n client=client,\n id=\"<string>\",\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: ExtendedUser = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.get_user_extended.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/~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/~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",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1power~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1unit~1conversion~1power~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
@ -465,74 +329,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"op": "add",
|
"op": "add",
|
||||||
"path": "/paths/~1unit~1conversion~1force~1{input_unit}~1{output_unit}/get/x-python",
|
"path": "/paths/~1user~1payment~1methods/get/x-python",
|
||||||
"value": {
|
"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",
|
"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.unit.get_force_unit_conversion.html"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.payments.list_payment_methods_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/~1auth~1email~1callback/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import auth_email_callback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_auth_email_callback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = auth_email_callback.sync(\n client=client,\n email=\"<string>\",\n token=\"<string>\",\n callback_url=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.auth_email_callback.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~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~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~1energy~1{input_unit}~1{output_unit}/get/x-python",
|
|
||||||
"value": {
|
|
||||||
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_energy_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitEnergyConversion\nfrom kittycad.models.unit_energy import UnitEnergy\nfrom kittycad.types import Response\n\n\ndef example_get_energy_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitEnergyConversion, Error]\n ] = get_energy_unit_conversion.sync(\n client=client,\n input_unit=UnitEnergy.BTU,\n output_unit=UnitEnergy.BTU,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitEnergyConversion = result\n print(body)\n",
|
|
||||||
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_energy_unit_conversion.html"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"op": "add",
|
|
||||||
"path": "/paths/~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/~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"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -550,5 +350,205 @@
|
|||||||
"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",
|
"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"
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.logout.html"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1users/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.users import list_users\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UserResultsPage\nfrom kittycad.models.created_at_sort_mode import CreatedAtSortMode\nfrom kittycad.types import Response\n\n\ndef example_list_users():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[UserResultsPage, Error]] = list_users.sync(\n client=client,\n sort_by=CreatedAtSortMode.CREATED_AT_ASCENDING,\n limit=None, # Optional[int]\n page_token=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UserResultsPage = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.users.list_users.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~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/~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~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/~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/~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/~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/~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/~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/~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~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/~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~1temperature~1{input_unit}~1{output_unit}/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.unit import get_temperature_unit_conversion\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, UnitTemperatureConversion\nfrom kittycad.models.unit_temperature import UnitTemperature\nfrom kittycad.types import Response\n\n\ndef example_get_temperature_unit_conversion():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[\n Union[UnitTemperatureConversion, Error]\n ] = get_temperature_unit_conversion.sync(\n client=client,\n input_unit=UnitTemperature.CELSIUS,\n output_unit=UnitTemperature.CELSIUS,\n value=3.14,\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: UnitTemperatureConversion = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.unit.get_temperature_unit_conversion.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~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~1density/post/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.file import create_file_density\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, FileDensity\nfrom kittycad.models.file_import_format import FileImportFormat\nfrom kittycad.models.unit_density import UnitDensity\nfrom kittycad.models.unit_mass import UnitMass\nfrom kittycad.types import Response\n\n\ndef example_create_file_density():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Union[FileDensity, Error]] = create_file_density.sync(\n client=client,\n material_mass=3.14,\n material_mass_unit=UnitMass.G,\n output_unit=UnitDensity.LB_FT3,\n src_format=FileImportFormat.FBX,\n body=bytes(\"some bytes\", \"utf-8\"),\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: FileDensity = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.file.create_file_density.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1auth~1email~1callback/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.hidden import auth_email_callback\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error\nfrom kittycad.types import Response\n\n\ndef example_auth_email_callback():\n # Create our client.\n client = ClientFromEnv()\n\n result: Optional[Error] = auth_email_callback.sync(\n client=client,\n email=\"<string>\",\n token=\"<string>\",\n callback_url=None, # Optional[str]\n )\n\n if isinstance(result, Error) or result == None:\n print(result)\n raise Exception(\"Error in response\")\n\n body: Error = result\n print(body)\n",
|
||||||
|
"libDocsLink": "https://python.api.docs.kittycad.io/_autosummary/kittycad.api.hidden.auth_email_callback.html"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"op": "add",
|
||||||
|
"path": "/paths/~1user~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/~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/~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/~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/~1ws~1modeling~1commands/get/x-python",
|
||||||
|
"value": {
|
||||||
|
"example": "from typing import Any, List, Optional, Tuple, Union\n\nfrom kittycad.api.modeling import modeling_commands_ws\nfrom kittycad.client import ClientFromEnv\nfrom kittycad.models import Error, WebSocketResponse\nfrom kittycad.models.rtc_sdp_type import RtcSdpType\nfrom kittycad.models.rtc_session_description import RtcSessionDescription\nfrom kittycad.models.web_socket_request import sdp_offer\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 body=sdp_offer(\n offer=RtcSessionDescription(\n sdp=\"<string>\",\n type=RtcSdpType.UNSPECIFIED,\n ),\n ),\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/~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~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": "/info/x-python",
|
||||||
|
"value": {
|
||||||
|
"client": "# Create a client with your token.\nfrom kittycad import Client\n\nclient = Client(token=\"$TOKEN\")\n\n# - OR -\n\n# Create a new client with your token parsed from the environment variable:\n# `KITTYCAD_API_TOKEN`.\nfrom kittycad import ClientFromEnv\n\nclient = ClientFromEnv()\n\n# NOTE: The python library additionally implements asyncio, however all the code samples we\n# show below use the sync functions for ease of use and understanding.\n# Check out the library docs at:\n# https://python.api.docs.kittycad.io/_autosummary/kittycad.api.html#module-kittycad.api\n# for more details.",
|
||||||
|
"install": "pip install kittycad"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -5,6 +5,7 @@ from websockets.sync.client import ClientConnection, connect as ws_connect
|
|||||||
|
|
||||||
from ...client import Client
|
from ...client import Client
|
||||||
from ...models.error import Error
|
from ...models.error import Error
|
||||||
|
from ...models.web_socket_request import WebSocketRequest
|
||||||
|
|
||||||
|
|
||||||
def _get_kwargs(
|
def _get_kwargs(
|
||||||
@ -29,6 +30,10 @@ def _get_kwargs(
|
|||||||
webrtc: bool,
|
webrtc: bool,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
body: WebSocketRequest,
|
||||||
|
|
||||||
|
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
|
|
||||||
@ -42,6 +47,8 @@ def _get_kwargs(
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
) -> Dict[str, Any]:
|
) -> Dict[str, Any]:
|
||||||
url = "{}/ws/modeling/commands".format(client.base_url) # noqa: E501
|
url = "{}/ws/modeling/commands".format(client.base_url) # noqa: E501
|
||||||
|
|
||||||
@ -87,6 +94,8 @@ def _get_kwargs(
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
headers: Dict[str, Any] = client.get_headers()
|
headers: Dict[str, Any] = client.get_headers()
|
||||||
cookies: Dict[str, Any] = client.get_cookies()
|
cookies: Dict[str, Any] = client.get_cookies()
|
||||||
|
|
||||||
@ -95,7 +104,7 @@ def _get_kwargs(
|
|||||||
"headers": headers,
|
"headers": headers,
|
||||||
"cookies": cookies,
|
"cookies": cookies,
|
||||||
"timeout": client.get_timeout(),
|
"timeout": client.get_timeout(),
|
||||||
|
"content": body,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -121,6 +130,10 @@ def sync(
|
|||||||
webrtc: bool,
|
webrtc: bool,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
body: WebSocketRequest,
|
||||||
|
|
||||||
|
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
|
|
||||||
@ -134,6 +147,8 @@ def sync(
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
) -> ClientConnection:
|
) -> ClientConnection:
|
||||||
"""Pass those commands to the engine via websocket, and pass responses back to the client. Basically, this is a websocket proxy between the frontend/client and the engine.""" # noqa: E501
|
"""Pass those commands to the engine via websocket, and pass responses back to the client. Basically, this is a websocket proxy between the frontend/client and the engine.""" # noqa: E501
|
||||||
|
|
||||||
@ -149,6 +164,8 @@ def sync(
|
|||||||
|
|
||||||
webrtc=webrtc,
|
webrtc=webrtc,
|
||||||
|
|
||||||
|
body=body,
|
||||||
|
|
||||||
client=client,
|
client=client,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -182,6 +199,10 @@ async def asyncio(
|
|||||||
webrtc: bool,
|
webrtc: bool,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
body: WebSocketRequest,
|
||||||
|
|
||||||
|
|
||||||
*,
|
*,
|
||||||
client: Client,
|
client: Client,
|
||||||
|
|
||||||
@ -195,6 +216,8 @@ async def asyncio(
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
) -> WebSocketClientProtocol:
|
) -> WebSocketClientProtocol:
|
||||||
"""Pass those commands to the engine via websocket, and pass responses back to the client. Basically, this is a websocket proxy between the frontend/client and the engine.""" # noqa: E501
|
"""Pass those commands to the engine via websocket, and pass responses back to the client. Basically, this is a websocket proxy between the frontend/client and the engine.""" # noqa: E501
|
||||||
|
|
||||||
@ -210,6 +233,8 @@ async def asyncio(
|
|||||||
|
|
||||||
webrtc=webrtc,
|
webrtc=webrtc,
|
||||||
|
|
||||||
|
body=body,
|
||||||
|
|
||||||
client=client,
|
client=client,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -138,6 +138,8 @@ from kittycad.models.email_authentication_form import EmailAuthenticationForm
|
|||||||
from kittycad.models.file_export_format import FileExportFormat
|
from kittycad.models.file_export_format import FileExportFormat
|
||||||
from kittycad.models.file_import_format import FileImportFormat
|
from kittycad.models.file_import_format import FileImportFormat
|
||||||
from kittycad.models.image_type import ImageType
|
from kittycad.models.image_type import ImageType
|
||||||
|
from kittycad.models.rtc_sdp_type import RtcSdpType
|
||||||
|
from kittycad.models.rtc_session_description import RtcSessionDescription
|
||||||
from kittycad.models.unit_angle import UnitAngle
|
from kittycad.models.unit_angle import UnitAngle
|
||||||
from kittycad.models.unit_area import UnitArea
|
from kittycad.models.unit_area import UnitArea
|
||||||
from kittycad.models.unit_current import UnitCurrent
|
from kittycad.models.unit_current import UnitCurrent
|
||||||
@ -153,6 +155,7 @@ from kittycad.models.unit_temperature import UnitTemperature
|
|||||||
from kittycad.models.unit_torque import UnitTorque
|
from kittycad.models.unit_torque import UnitTorque
|
||||||
from kittycad.models.unit_volume import UnitVolume
|
from kittycad.models.unit_volume import UnitVolume
|
||||||
from kittycad.models.update_user import UpdateUser
|
from kittycad.models.update_user import UpdateUser
|
||||||
|
from kittycad.models.web_socket_request import sdp_offer
|
||||||
from kittycad.types import Response
|
from kittycad.types import Response
|
||||||
|
|
||||||
|
|
||||||
@ -2197,45 +2200,6 @@ async def test_get_volume_unit_conversion_async():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip
|
|
||||||
def test_delete_user_self():
|
|
||||||
# Create our client.
|
|
||||||
client = ClientFromEnv()
|
|
||||||
|
|
||||||
result: Optional[Error] = delete_user_self.sync(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
if isinstance(result, Error) or result is None:
|
|
||||||
print(result)
|
|
||||||
raise Exception("Error in response")
|
|
||||||
|
|
||||||
body: Error = result
|
|
||||||
print(body)
|
|
||||||
|
|
||||||
# OR if you need more info (e.g. status_code)
|
|
||||||
response: Response[Optional[Error]] = delete_user_self.sync_detailed(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# OR run async
|
|
||||||
@pytest.mark.asyncio
|
|
||||||
@pytest.mark.skip
|
|
||||||
async def test_delete_user_self_async():
|
|
||||||
# Create our client.
|
|
||||||
client = ClientFromEnv()
|
|
||||||
|
|
||||||
result: Optional[Error] = await delete_user_self.asyncio(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
# OR run async with more info
|
|
||||||
response: Response[Optional[Error]] = await delete_user_self.asyncio_detailed(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip
|
@pytest.mark.skip
|
||||||
def test_get_user_self():
|
def test_get_user_self():
|
||||||
# Create our client.
|
# Create our client.
|
||||||
@ -2350,6 +2314,45 @@ async def test_update_user_self_async():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip
|
||||||
|
def test_delete_user_self():
|
||||||
|
# Create our client.
|
||||||
|
client = ClientFromEnv()
|
||||||
|
|
||||||
|
result: Optional[Error] = delete_user_self.sync(
|
||||||
|
client=client,
|
||||||
|
)
|
||||||
|
|
||||||
|
if isinstance(result, Error) or result is None:
|
||||||
|
print(result)
|
||||||
|
raise Exception("Error in response")
|
||||||
|
|
||||||
|
body: Error = result
|
||||||
|
print(body)
|
||||||
|
|
||||||
|
# OR if you need more info (e.g. status_code)
|
||||||
|
response: Response[Optional[Error]] = delete_user_self.sync_detailed(
|
||||||
|
client=client,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# OR run async
|
||||||
|
@pytest.mark.asyncio
|
||||||
|
@pytest.mark.skip
|
||||||
|
async def test_delete_user_self_async():
|
||||||
|
# Create our client.
|
||||||
|
client = ClientFromEnv()
|
||||||
|
|
||||||
|
result: Optional[Error] = await delete_user_self.asyncio(
|
||||||
|
client=client,
|
||||||
|
)
|
||||||
|
|
||||||
|
# OR run async with more info
|
||||||
|
response: Response[Optional[Error]] = await delete_user_self.asyncio_detailed(
|
||||||
|
client=client,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip
|
@pytest.mark.skip
|
||||||
def test_user_list_api_calls():
|
def test_user_list_api_calls():
|
||||||
# Create our client.
|
# Create our client.
|
||||||
@ -2558,51 +2561,6 @@ async def test_create_api_token_for_user_async():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip
|
|
||||||
def test_delete_api_token_for_user():
|
|
||||||
# Create our client.
|
|
||||||
client = ClientFromEnv()
|
|
||||||
|
|
||||||
result: Optional[Error] = delete_api_token_for_user.sync(
|
|
||||||
client=client,
|
|
||||||
token="<uuid>",
|
|
||||||
)
|
|
||||||
|
|
||||||
if isinstance(result, Error) or result is None:
|
|
||||||
print(result)
|
|
||||||
raise Exception("Error in response")
|
|
||||||
|
|
||||||
body: Error = result
|
|
||||||
print(body)
|
|
||||||
|
|
||||||
# OR if you need more info (e.g. status_code)
|
|
||||||
response: Response[Optional[Error]] = delete_api_token_for_user.sync_detailed(
|
|
||||||
client=client,
|
|
||||||
token="<uuid>",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# OR run async
|
|
||||||
@pytest.mark.asyncio
|
|
||||||
@pytest.mark.skip
|
|
||||||
async def test_delete_api_token_for_user_async():
|
|
||||||
# Create our client.
|
|
||||||
client = ClientFromEnv()
|
|
||||||
|
|
||||||
result: Optional[Error] = await delete_api_token_for_user.asyncio(
|
|
||||||
client=client,
|
|
||||||
token="<uuid>",
|
|
||||||
)
|
|
||||||
|
|
||||||
# OR run async with more info
|
|
||||||
response: Response[
|
|
||||||
Optional[Error]
|
|
||||||
] = await delete_api_token_for_user.asyncio_detailed(
|
|
||||||
client=client,
|
|
||||||
token="<uuid>",
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip
|
@pytest.mark.skip
|
||||||
def test_get_api_token_for_user():
|
def test_get_api_token_for_user():
|
||||||
# Create our client.
|
# Create our client.
|
||||||
@ -2650,6 +2608,51 @@ async def test_get_api_token_for_user_async():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip
|
||||||
|
def test_delete_api_token_for_user():
|
||||||
|
# Create our client.
|
||||||
|
client = ClientFromEnv()
|
||||||
|
|
||||||
|
result: Optional[Error] = delete_api_token_for_user.sync(
|
||||||
|
client=client,
|
||||||
|
token="<uuid>",
|
||||||
|
)
|
||||||
|
|
||||||
|
if isinstance(result, Error) or result is None:
|
||||||
|
print(result)
|
||||||
|
raise Exception("Error in response")
|
||||||
|
|
||||||
|
body: Error = result
|
||||||
|
print(body)
|
||||||
|
|
||||||
|
# OR if you need more info (e.g. status_code)
|
||||||
|
response: Response[Optional[Error]] = delete_api_token_for_user.sync_detailed(
|
||||||
|
client=client,
|
||||||
|
token="<uuid>",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# OR run async
|
||||||
|
@pytest.mark.asyncio
|
||||||
|
@pytest.mark.skip
|
||||||
|
async def test_delete_api_token_for_user_async():
|
||||||
|
# Create our client.
|
||||||
|
client = ClientFromEnv()
|
||||||
|
|
||||||
|
result: Optional[Error] = await delete_api_token_for_user.asyncio(
|
||||||
|
client=client,
|
||||||
|
token="<uuid>",
|
||||||
|
)
|
||||||
|
|
||||||
|
# OR run async with more info
|
||||||
|
response: Response[
|
||||||
|
Optional[Error]
|
||||||
|
] = await delete_api_token_for_user.asyncio_detailed(
|
||||||
|
client=client,
|
||||||
|
token="<uuid>",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip
|
@pytest.mark.skip
|
||||||
def test_get_user_self_extended():
|
def test_get_user_self_extended():
|
||||||
# Create our client.
|
# Create our client.
|
||||||
@ -2768,49 +2771,6 @@ async def test_get_user_onboarding_self_async():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip
|
|
||||||
def test_delete_payment_information_for_user():
|
|
||||||
# Create our client.
|
|
||||||
client = ClientFromEnv()
|
|
||||||
|
|
||||||
result: Optional[Error] = delete_payment_information_for_user.sync(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
if isinstance(result, Error) or result is None:
|
|
||||||
print(result)
|
|
||||||
raise Exception("Error in response")
|
|
||||||
|
|
||||||
body: Error = result
|
|
||||||
print(body)
|
|
||||||
|
|
||||||
# OR if you need more info (e.g. status_code)
|
|
||||||
response: Response[
|
|
||||||
Optional[Error]
|
|
||||||
] = delete_payment_information_for_user.sync_detailed(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# OR run async
|
|
||||||
@pytest.mark.asyncio
|
|
||||||
@pytest.mark.skip
|
|
||||||
async def test_delete_payment_information_for_user_async():
|
|
||||||
# Create our client.
|
|
||||||
client = ClientFromEnv()
|
|
||||||
|
|
||||||
result: Optional[Error] = await delete_payment_information_for_user.asyncio(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
# OR run async with more info
|
|
||||||
response: Response[
|
|
||||||
Optional[Error]
|
|
||||||
] = await delete_payment_information_for_user.asyncio_detailed(
|
|
||||||
client=client,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip
|
@pytest.mark.skip
|
||||||
def test_get_payment_information_for_user():
|
def test_get_payment_information_for_user():
|
||||||
# Create our client.
|
# Create our client.
|
||||||
@ -2856,6 +2816,67 @@ async def test_get_payment_information_for_user_async():
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.mark.skip
|
||||||
|
def test_update_payment_information_for_user():
|
||||||
|
# Create our client.
|
||||||
|
client = ClientFromEnv()
|
||||||
|
|
||||||
|
result: Optional[Union[Customer, Error]] = update_payment_information_for_user.sync(
|
||||||
|
client=client,
|
||||||
|
body=BillingInfo(
|
||||||
|
name="<string>",
|
||||||
|
phone="<string>",
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
if isinstance(result, Error) or result is None:
|
||||||
|
print(result)
|
||||||
|
raise Exception("Error in response")
|
||||||
|
|
||||||
|
body: Customer = result
|
||||||
|
print(body)
|
||||||
|
|
||||||
|
# OR if you need more info (e.g. status_code)
|
||||||
|
response: Response[
|
||||||
|
Optional[Union[Customer, Error]]
|
||||||
|
] = update_payment_information_for_user.sync_detailed(
|
||||||
|
client=client,
|
||||||
|
body=BillingInfo(
|
||||||
|
name="<string>",
|
||||||
|
phone="<string>",
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
# OR run async
|
||||||
|
@pytest.mark.asyncio
|
||||||
|
@pytest.mark.skip
|
||||||
|
async def test_update_payment_information_for_user_async():
|
||||||
|
# Create our client.
|
||||||
|
client = ClientFromEnv()
|
||||||
|
|
||||||
|
result: Optional[
|
||||||
|
Union[Customer, Error]
|
||||||
|
] = await update_payment_information_for_user.asyncio(
|
||||||
|
client=client,
|
||||||
|
body=BillingInfo(
|
||||||
|
name="<string>",
|
||||||
|
phone="<string>",
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
# OR run async with more info
|
||||||
|
response: Response[
|
||||||
|
Optional[Union[Customer, Error]]
|
||||||
|
] = await update_payment_information_for_user.asyncio_detailed(
|
||||||
|
client=client,
|
||||||
|
body=BillingInfo(
|
||||||
|
name="<string>",
|
||||||
|
phone="<string>",
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip
|
@pytest.mark.skip
|
||||||
def test_create_payment_information_for_user():
|
def test_create_payment_information_for_user():
|
||||||
# Create our client.
|
# Create our client.
|
||||||
@ -2918,63 +2939,45 @@ async def test_create_payment_information_for_user_async():
|
|||||||
|
|
||||||
|
|
||||||
@pytest.mark.skip
|
@pytest.mark.skip
|
||||||
def test_update_payment_information_for_user():
|
def test_delete_payment_information_for_user():
|
||||||
# Create our client.
|
# Create our client.
|
||||||
client = ClientFromEnv()
|
client = ClientFromEnv()
|
||||||
|
|
||||||
result: Optional[Union[Customer, Error]] = update_payment_information_for_user.sync(
|
result: Optional[Error] = delete_payment_information_for_user.sync(
|
||||||
client=client,
|
client=client,
|
||||||
body=BillingInfo(
|
|
||||||
name="<string>",
|
|
||||||
phone="<string>",
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if isinstance(result, Error) or result is None:
|
if isinstance(result, Error) or result is None:
|
||||||
print(result)
|
print(result)
|
||||||
raise Exception("Error in response")
|
raise Exception("Error in response")
|
||||||
|
|
||||||
body: Customer = result
|
body: Error = result
|
||||||
print(body)
|
print(body)
|
||||||
|
|
||||||
# OR if you need more info (e.g. status_code)
|
# OR if you need more info (e.g. status_code)
|
||||||
response: Response[
|
response: Response[
|
||||||
Optional[Union[Customer, Error]]
|
Optional[Error]
|
||||||
] = update_payment_information_for_user.sync_detailed(
|
] = delete_payment_information_for_user.sync_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
body=BillingInfo(
|
|
||||||
name="<string>",
|
|
||||||
phone="<string>",
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
# OR run async
|
# OR run async
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
@pytest.mark.skip
|
@pytest.mark.skip
|
||||||
async def test_update_payment_information_for_user_async():
|
async def test_delete_payment_information_for_user_async():
|
||||||
# Create our client.
|
# Create our client.
|
||||||
client = ClientFromEnv()
|
client = ClientFromEnv()
|
||||||
|
|
||||||
result: Optional[
|
result: Optional[Error] = await delete_payment_information_for_user.asyncio(
|
||||||
Union[Customer, Error]
|
|
||||||
] = await update_payment_information_for_user.asyncio(
|
|
||||||
client=client,
|
client=client,
|
||||||
body=BillingInfo(
|
|
||||||
name="<string>",
|
|
||||||
phone="<string>",
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# OR run async with more info
|
# OR run async with more info
|
||||||
response: Response[
|
response: Response[
|
||||||
Optional[Union[Customer, Error]]
|
Optional[Error]
|
||||||
] = await update_payment_information_for_user.asyncio_detailed(
|
] = await delete_payment_information_for_user.asyncio_detailed(
|
||||||
client=client,
|
client=client,
|
||||||
body=BillingInfo(
|
|
||||||
name="<string>",
|
|
||||||
phone="<string>",
|
|
||||||
),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -3611,6 +3614,12 @@ def test_modeling_commands_ws():
|
|||||||
video_res_height=10,
|
video_res_height=10,
|
||||||
video_res_width=10,
|
video_res_width=10,
|
||||||
webrtc=False,
|
webrtc=False,
|
||||||
|
body=sdp_offer(
|
||||||
|
offer=RtcSessionDescription(
|
||||||
|
sdp="<string>",
|
||||||
|
type=RtcSdpType.UNSPECIFIED,
|
||||||
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Send a message.
|
# Send a message.
|
||||||
@ -3636,6 +3645,12 @@ async def test_modeling_commands_ws_async():
|
|||||||
video_res_height=10,
|
video_res_height=10,
|
||||||
video_res_width=10,
|
video_res_width=10,
|
||||||
webrtc=False,
|
webrtc=False,
|
||||||
|
body=sdp_offer(
|
||||||
|
offer=RtcSessionDescription(
|
||||||
|
sdp="<string>",
|
||||||
|
type=RtcSdpType.UNSPECIFIED,
|
||||||
|
),
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
# Send a message.
|
# Send a message.
|
||||||
|
@ -85,6 +85,7 @@ from .file_system_metadata import FileSystemMetadata
|
|||||||
from .file_volume import FileVolume
|
from .file_volume import FileVolume
|
||||||
from .gateway import Gateway
|
from .gateway import Gateway
|
||||||
from .get_entity_type import GetEntityType
|
from .get_entity_type import GetEntityType
|
||||||
|
from .get_sketch_mode_plane import GetSketchModePlane
|
||||||
from .gltf_presentation import GltfPresentation
|
from .gltf_presentation import GltfPresentation
|
||||||
from .gltf_storage import GltfStorage
|
from .gltf_storage import GltfStorage
|
||||||
from .highlight_set_entity import HighlightSetEntity
|
from .highlight_set_entity import HighlightSetEntity
|
||||||
|
87
kittycad/models/get_sketch_mode_plane.py
Normal file
87
kittycad/models/get_sketch_mode_plane.py
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||||
|
|
||||||
|
import attr
|
||||||
|
|
||||||
|
from ..models.point3d import Point3d
|
||||||
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
|
QI = TypeVar("QI", bound="GetSketchModePlane")
|
||||||
|
|
||||||
|
@attr.s(auto_attribs=True)
|
||||||
|
class GetSketchModePlane:
|
||||||
|
""" The plane for sketch mode. """ # noqa: E501
|
||||||
|
x_axis: Union[Unset, Point3d] = UNSET
|
||||||
|
y_axis: Union[Unset, Point3d] = UNSET
|
||||||
|
z_axis: Union[Unset, Point3d] = UNSET
|
||||||
|
|
||||||
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||||
|
|
||||||
|
def to_dict(self) -> Dict[str, Any]:
|
||||||
|
if not isinstance(self.x_axis, Unset):
|
||||||
|
x_axis = self.x_axis
|
||||||
|
if not isinstance(self.y_axis, Unset):
|
||||||
|
y_axis = self.y_axis
|
||||||
|
if not isinstance(self.z_axis, Unset):
|
||||||
|
z_axis = self.z_axis
|
||||||
|
|
||||||
|
field_dict: Dict[str, Any] = {}
|
||||||
|
field_dict.update(self.additional_properties)
|
||||||
|
field_dict.update({})
|
||||||
|
if x_axis is not UNSET:
|
||||||
|
field_dict['x_axis'] = x_axis
|
||||||
|
if y_axis is not UNSET:
|
||||||
|
field_dict['y_axis'] = y_axis
|
||||||
|
if z_axis is not UNSET:
|
||||||
|
field_dict['z_axis'] = z_axis
|
||||||
|
|
||||||
|
return field_dict
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def from_dict(cls: Type[QI], src_dict: Dict[str, Any]) -> QI:
|
||||||
|
d = src_dict.copy()
|
||||||
|
_x_axis = d.pop("x_axis", UNSET)
|
||||||
|
x_axis: Union[Unset, Point3d]
|
||||||
|
if isinstance(_x_axis, Unset):
|
||||||
|
x_axis = UNSET
|
||||||
|
else:
|
||||||
|
x_axis = _x_axis # type: ignore[arg-type]
|
||||||
|
|
||||||
|
_y_axis = d.pop("y_axis", UNSET)
|
||||||
|
y_axis: Union[Unset, Point3d]
|
||||||
|
if isinstance(_y_axis, Unset):
|
||||||
|
y_axis = UNSET
|
||||||
|
else:
|
||||||
|
y_axis = _y_axis # type: ignore[arg-type]
|
||||||
|
|
||||||
|
_z_axis = d.pop("z_axis", UNSET)
|
||||||
|
z_axis: Union[Unset, Point3d]
|
||||||
|
if isinstance(_z_axis, Unset):
|
||||||
|
z_axis = UNSET
|
||||||
|
else:
|
||||||
|
z_axis = _z_axis # type: ignore[arg-type]
|
||||||
|
|
||||||
|
|
||||||
|
get_sketch_mode_plane = cls(
|
||||||
|
x_axis= x_axis,
|
||||||
|
y_axis= y_axis,
|
||||||
|
z_axis= z_axis,
|
||||||
|
)
|
||||||
|
|
||||||
|
get_sketch_mode_plane.additional_properties = d
|
||||||
|
return get_sketch_mode_plane
|
||||||
|
|
||||||
|
@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
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
QI = TypeVar("QI", bound="HighlightSetEntity")
|
TP = TypeVar("TP", bound="HighlightSetEntity")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class HighlightSetEntity:
|
class HighlightSetEntity:
|
||||||
@ -29,7 +29,7 @@ class HighlightSetEntity:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[QI], src_dict: Dict[str, Any]) -> QI:
|
def from_dict(cls: Type[TP], src_dict: Dict[str, Any]) -> TP:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
entity_id = d.pop("entity_id", UNSET)
|
entity_id = d.pop("entity_id", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
TP = TypeVar("TP", bound="IceServer")
|
CF = TypeVar("CF", bound="IceServer")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class IceServer:
|
class IceServer:
|
||||||
@ -35,7 +35,7 @@ class IceServer:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[TP], src_dict: Dict[str, Any]) -> TP:
|
def from_dict(cls: Type[CF], src_dict: Dict[str, Any]) -> CF:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
credential = d.pop("credential", UNSET)
|
credential = d.pop("credential", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
CF = TypeVar("CF", bound="ImportFile")
|
OM = TypeVar("OM", bound="ImportFile")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class ImportFile:
|
class ImportFile:
|
||||||
@ -31,7 +31,7 @@ class ImportFile:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[CF], src_dict: Dict[str, Any]) -> CF:
|
def from_dict(cls: Type[OM], src_dict: Dict[str, Any]) -> OM:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
data = cast(List[int], d.pop("data", UNSET))
|
data = cast(List[int], d.pop("data", UNSET))
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
OM = TypeVar("OM", bound="ImportFiles")
|
EN = TypeVar("EN", bound="ImportFiles")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class ImportFiles:
|
class ImportFiles:
|
||||||
@ -25,7 +25,7 @@ class ImportFiles:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[OM], src_dict: Dict[str, Any]) -> OM:
|
def from_dict(cls: Type[EN], src_dict: Dict[str, Any]) -> EN:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
object_id = d.pop("object_id", UNSET)
|
object_id = d.pop("object_id", UNSET)
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ from ..models.system import System
|
|||||||
from ..models.unit_length import UnitLength
|
from ..models.unit_length import UnitLength
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
EN = TypeVar("EN", bound="fbx")
|
RS = TypeVar("RS", bound="fbx")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class fbx:
|
class fbx:
|
||||||
@ -26,7 +26,7 @@ class fbx:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[EN], src_dict: Dict[str, Any]) -> EN:
|
def from_dict(cls: Type[RS], src_dict: Dict[str, Any]) -> RS:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ class fbx:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
RS = TypeVar("RS", bound="gltf")
|
LR = TypeVar("LR", bound="gltf")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class gltf:
|
class gltf:
|
||||||
@ -77,7 +77,7 @@ class gltf:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[RS], src_dict: Dict[str, Any]) -> RS:
|
def from_dict(cls: Type[LR], src_dict: Dict[str, Any]) -> LR:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ class gltf:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
LR = TypeVar("LR", bound="obj")
|
MP = TypeVar("MP", bound="obj")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class obj:
|
class obj:
|
||||||
@ -138,7 +138,7 @@ class obj:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[LR], src_dict: Dict[str, Any]) -> LR:
|
def from_dict(cls: Type[MP], src_dict: Dict[str, Any]) -> MP:
|
||||||
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]
|
||||||
@ -185,7 +185,7 @@ class obj:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
MP = TypeVar("MP", bound="ply")
|
WF = TypeVar("WF", bound="ply")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class ply:
|
class ply:
|
||||||
@ -215,7 +215,7 @@ class ply:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[MP], src_dict: Dict[str, Any]) -> MP:
|
def from_dict(cls: Type[WF], src_dict: Dict[str, Any]) -> WF:
|
||||||
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]
|
||||||
@ -262,7 +262,7 @@ class ply:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
WF = TypeVar("WF", bound="sldprt")
|
RO = TypeVar("RO", bound="sldprt")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class sldprt:
|
class sldprt:
|
||||||
@ -282,7 +282,7 @@ class sldprt:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[WF], src_dict: Dict[str, Any]) -> WF:
|
def from_dict(cls: Type[RO], src_dict: Dict[str, Any]) -> RO:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -313,7 +313,7 @@ class sldprt:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
RO = TypeVar("RO", bound="step")
|
DN = TypeVar("DN", bound="step")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class step:
|
class step:
|
||||||
@ -333,7 +333,7 @@ class step:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[RO], src_dict: Dict[str, Any]) -> RO:
|
def from_dict(cls: Type[DN], src_dict: Dict[str, Any]) -> DN:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -364,7 +364,7 @@ class step:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
DN = TypeVar("DN", bound="stl")
|
BA = TypeVar("BA", bound="stl")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class stl:
|
class stl:
|
||||||
@ -394,7 +394,7 @@ class stl:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[DN], src_dict: Dict[str, Any]) -> DN:
|
def from_dict(cls: Type[BA], src_dict: Dict[str, Any]) -> BA:
|
||||||
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]
|
||||||
|
@ -8,7 +8,7 @@ from ..models.currency import Currency
|
|||||||
from ..models.invoice_status import InvoiceStatus
|
from ..models.invoice_status import InvoiceStatus
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
BA = TypeVar("BA", bound="Invoice")
|
OR = TypeVar("OR", bound="Invoice")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Invoice:
|
class Invoice:
|
||||||
@ -138,7 +138,7 @@ class Invoice:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[BA], src_dict: Dict[str, Any]) -> BA:
|
def from_dict(cls: Type[OR], src_dict: Dict[str, Any]) -> OR:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
amount_due = d.pop("amount_due", UNSET)
|
amount_due = d.pop("amount_due", UNSET)
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import attr
|
|||||||
from ..models.currency import Currency
|
from ..models.currency import Currency
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
OR = TypeVar("OR", bound="InvoiceLineItem")
|
CB = TypeVar("CB", bound="InvoiceLineItem")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class InvoiceLineItem:
|
class InvoiceLineItem:
|
||||||
@ -48,7 +48,7 @@ class InvoiceLineItem:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[OR], src_dict: Dict[str, Any]) -> OR:
|
def from_dict(cls: Type[CB], src_dict: Dict[str, Any]) -> CB:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
amount = d.pop("amount", UNSET)
|
amount = d.pop("amount", UNSET)
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ from ..models.jetstream_stats import JetstreamStats
|
|||||||
from ..models.meta_cluster_info import MetaClusterInfo
|
from ..models.meta_cluster_info import MetaClusterInfo
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
CB = TypeVar("CB", bound="Jetstream")
|
LC = TypeVar("LC", bound="Jetstream")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Jetstream:
|
class Jetstream:
|
||||||
@ -39,7 +39,7 @@ class Jetstream:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[CB], src_dict: Dict[str, Any]) -> CB:
|
def from_dict(cls: Type[LC], src_dict: Dict[str, Any]) -> LC:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_config = d.pop("config", UNSET)
|
_config = d.pop("config", UNSET)
|
||||||
config: Union[Unset, JetstreamConfig]
|
config: Union[Unset, JetstreamConfig]
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
LC = TypeVar("LC", bound="JetstreamApiStats")
|
TO = TypeVar("TO", bound="JetstreamApiStats")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class JetstreamApiStats:
|
class JetstreamApiStats:
|
||||||
@ -33,7 +33,7 @@ class JetstreamApiStats:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[LC], src_dict: Dict[str, Any]) -> LC:
|
def from_dict(cls: Type[TO], src_dict: Dict[str, Any]) -> TO:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
errors = d.pop("errors", UNSET)
|
errors = d.pop("errors", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
TO = TypeVar("TO", bound="JetstreamConfig")
|
ZP = TypeVar("ZP", bound="JetstreamConfig")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class JetstreamConfig:
|
class JetstreamConfig:
|
||||||
@ -37,7 +37,7 @@ class JetstreamConfig:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[TO], src_dict: Dict[str, Any]) -> TO:
|
def from_dict(cls: Type[ZP], src_dict: Dict[str, Any]) -> ZP:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
domain = d.pop("domain", UNSET)
|
domain = d.pop("domain", UNSET)
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import attr
|
|||||||
from ..models.jetstream_api_stats import JetstreamApiStats
|
from ..models.jetstream_api_stats import JetstreamApiStats
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
ZP = TypeVar("ZP", bound="JetstreamStats")
|
EO = TypeVar("EO", bound="JetstreamStats")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class JetstreamStats:
|
class JetstreamStats:
|
||||||
@ -51,7 +51,7 @@ class JetstreamStats:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[ZP], src_dict: Dict[str, Any]) -> ZP:
|
def from_dict(cls: Type[EO], src_dict: Dict[str, Any]) -> EO:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
accounts = d.pop("accounts", UNSET)
|
accounts = d.pop("accounts", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
EO = TypeVar("EO", bound="LeafNode")
|
NY = TypeVar("NY", bound="LeafNode")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class LeafNode:
|
class LeafNode:
|
||||||
@ -37,7 +37,7 @@ class LeafNode:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[EO], src_dict: Dict[str, Any]) -> EO:
|
def from_dict(cls: Type[NY], src_dict: Dict[str, Any]) -> NY:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
auth_timeout = d.pop("auth_timeout", UNSET)
|
auth_timeout = d.pop("auth_timeout", UNSET)
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import attr
|
|||||||
from ..models.unit_mass import UnitMass
|
from ..models.unit_mass import UnitMass
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
NY = TypeVar("NY", bound="Mass")
|
QO = TypeVar("QO", bound="Mass")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Mass:
|
class Mass:
|
||||||
@ -31,7 +31,7 @@ class Mass:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[NY], src_dict: Dict[str, Any]) -> NY:
|
def from_dict(cls: Type[QO], src_dict: Dict[str, Any]) -> QO:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
mass = d.pop("mass", UNSET)
|
mass = d.pop("mass", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
QO = TypeVar("QO", bound="Mesh")
|
KX = TypeVar("KX", bound="Mesh")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Mesh:
|
class Mesh:
|
||||||
@ -24,7 +24,7 @@ class Mesh:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[QO], src_dict: Dict[str, Any]) -> QO:
|
def from_dict(cls: Type[KX], src_dict: Dict[str, Any]) -> KX:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
mesh = d.pop("mesh", UNSET)
|
mesh = d.pop("mesh", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
KX = TypeVar("KX", bound="MetaClusterInfo")
|
IZ = TypeVar("IZ", bound="MetaClusterInfo")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class MetaClusterInfo:
|
class MetaClusterInfo:
|
||||||
@ -33,7 +33,7 @@ class MetaClusterInfo:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[KX], src_dict: Dict[str, Any]) -> KX:
|
def from_dict(cls: Type[IZ], src_dict: Dict[str, Any]) -> IZ:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
cluster_size = d.pop("cluster_size", UNSET)
|
cluster_size = d.pop("cluster_size", UNSET)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ from ..models.file_system_metadata import FileSystemMetadata
|
|||||||
from ..models.point_e_metadata import PointEMetadata
|
from ..models.point_e_metadata import PointEMetadata
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
IZ = TypeVar("IZ", bound="Metadata")
|
WO = TypeVar("WO", bound="Metadata")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Metadata:
|
class Metadata:
|
||||||
@ -57,7 +57,7 @@ This is mostly used for internal purposes and debugging. """ # noqa: E501
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[IZ], src_dict: Dict[str, Any]) -> IZ:
|
def from_dict(cls: Type[WO], src_dict: Dict[str, Any]) -> WO:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_cache = d.pop("cache", UNSET)
|
_cache = d.pop("cache", UNSET)
|
||||||
cache: Union[Unset, CacheMetadata]
|
cache: Union[Unset, CacheMetadata]
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
JD = TypeVar("JD", bound="MouseClick")
|
SX = TypeVar("SX", bound="MouseClick")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class MouseClick:
|
class MouseClick:
|
||||||
@ -33,7 +33,7 @@ class MouseClick:
|
|||||||
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[SX], src_dict: Dict[str, Any]) -> SX:
|
||||||
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
|
||||||
|
|
||||||
RZ = TypeVar("RZ", bound="NewAddress")
|
CN = TypeVar("CN", bound="NewAddress")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class NewAddress:
|
class NewAddress:
|
||||||
@ -51,7 +51,7 @@ class NewAddress:
|
|||||||
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[CN], src_dict: Dict[str, Any]) -> CN:
|
||||||
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
|
||||||
|
|
||||||
BH = TypeVar("BH", bound="OAuth2ClientInfo")
|
GS = TypeVar("GS", bound="OAuth2ClientInfo")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class OAuth2ClientInfo:
|
class OAuth2ClientInfo:
|
||||||
@ -33,7 +33,7 @@ class OAuth2ClientInfo:
|
|||||||
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[GS], src_dict: Dict[str, Any]) -> GS:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
csrf_token = d.pop("csrf_token", UNSET)
|
csrf_token = d.pop("csrf_token", UNSET)
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@ from ..models.entity_get_num_children import EntityGetNumChildren
|
|||||||
from ..models.entity_get_parent_id import EntityGetParentId
|
from ..models.entity_get_parent_id import EntityGetParentId
|
||||||
from ..models.export import Export
|
from ..models.export import Export
|
||||||
from ..models.get_entity_type import GetEntityType
|
from ..models.get_entity_type import GetEntityType
|
||||||
|
from ..models.get_sketch_mode_plane import GetSketchModePlane
|
||||||
from ..models.highlight_set_entity import HighlightSetEntity
|
from ..models.highlight_set_entity import HighlightSetEntity
|
||||||
from ..models.import_files import ImportFiles
|
from ..models.import_files import ImportFiles
|
||||||
from ..models.mass import Mass
|
from ..models.mass import Mass
|
||||||
@ -32,7 +33,7 @@ from ..models.take_snapshot import TakeSnapshot
|
|||||||
from ..models.volume import Volume
|
from ..models.volume import Volume
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
SX = TypeVar("SX", bound="empty")
|
SO = TypeVar("SO", bound="empty")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class empty:
|
class empty:
|
||||||
@ -52,7 +53,7 @@ class empty:
|
|||||||
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[SO], src_dict: Dict[str, Any]) -> SO:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -83,7 +84,7 @@ class empty:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
CN = TypeVar("CN", bound="export")
|
ZS = TypeVar("ZS", bound="export")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class export:
|
class export:
|
||||||
@ -108,7 +109,7 @@ class export:
|
|||||||
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[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, Export]
|
data: Union[Unset, Export]
|
||||||
@ -147,7 +148,7 @@ class export:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
GS = TypeVar("GS", bound="select_with_point")
|
AM = TypeVar("AM", bound="select_with_point")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class select_with_point:
|
class select_with_point:
|
||||||
@ -172,7 +173,7 @@ class select_with_point:
|
|||||||
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[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, SelectWithPoint]
|
data: Union[Unset, SelectWithPoint]
|
||||||
@ -211,7 +212,7 @@ class select_with_point:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SO = TypeVar("SO", bound="highlight_set_entity")
|
GK = TypeVar("GK", bound="highlight_set_entity")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class highlight_set_entity:
|
class highlight_set_entity:
|
||||||
@ -236,7 +237,7 @@ class highlight_set_entity:
|
|||||||
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[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, HighlightSetEntity]
|
data: Union[Unset, HighlightSetEntity]
|
||||||
@ -275,7 +276,7 @@ class highlight_set_entity:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
ZS = TypeVar("ZS", bound="entity_get_child_uuid")
|
SG = TypeVar("SG", bound="entity_get_child_uuid")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class entity_get_child_uuid:
|
class entity_get_child_uuid:
|
||||||
@ -300,7 +301,7 @@ class entity_get_child_uuid:
|
|||||||
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[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, EntityGetChildUuid]
|
data: Union[Unset, EntityGetChildUuid]
|
||||||
@ -339,7 +340,7 @@ class entity_get_child_uuid:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
AM = TypeVar("AM", bound="entity_get_num_children")
|
QZ = TypeVar("QZ", bound="entity_get_num_children")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class entity_get_num_children:
|
class entity_get_num_children:
|
||||||
@ -364,7 +365,7 @@ class entity_get_num_children:
|
|||||||
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[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, EntityGetNumChildren]
|
data: Union[Unset, EntityGetNumChildren]
|
||||||
@ -403,7 +404,7 @@ class entity_get_num_children:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
GK = TypeVar("GK", bound="entity_get_parent_id")
|
SY = TypeVar("SY", bound="entity_get_parent_id")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class entity_get_parent_id:
|
class entity_get_parent_id:
|
||||||
@ -428,7 +429,7 @@ class entity_get_parent_id:
|
|||||||
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[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, EntityGetParentId]
|
data: Union[Unset, EntityGetParentId]
|
||||||
@ -467,7 +468,7 @@ class entity_get_parent_id:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SG = TypeVar("SG", bound="entity_get_all_child_uuids")
|
YK = TypeVar("YK", bound="entity_get_all_child_uuids")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class entity_get_all_child_uuids:
|
class entity_get_all_child_uuids:
|
||||||
@ -492,7 +493,7 @@ class entity_get_all_child_uuids:
|
|||||||
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[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, EntityGetAllChildUuids]
|
data: Union[Unset, EntityGetAllChildUuids]
|
||||||
@ -531,7 +532,7 @@ class entity_get_all_child_uuids:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
QZ = TypeVar("QZ", bound="select_get")
|
WS = TypeVar("WS", bound="select_get")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class select_get:
|
class select_get:
|
||||||
@ -556,7 +557,7 @@ class select_get:
|
|||||||
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[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, SelectGet]
|
data: Union[Unset, SelectGet]
|
||||||
@ -595,7 +596,7 @@ class select_get:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SY = TypeVar("SY", bound="get_entity_type")
|
SL = TypeVar("SL", bound="get_entity_type")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class get_entity_type:
|
class get_entity_type:
|
||||||
@ -620,7 +621,7 @@ class get_entity_type:
|
|||||||
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[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)
|
||||||
data: Union[Unset, GetEntityType]
|
data: Union[Unset, GetEntityType]
|
||||||
@ -659,7 +660,7 @@ class get_entity_type:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
YK = TypeVar("YK", bound="solid3d_get_all_edge_faces")
|
MK = TypeVar("MK", bound="solid3d_get_all_edge_faces")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class solid3d_get_all_edge_faces:
|
class solid3d_get_all_edge_faces:
|
||||||
@ -684,7 +685,7 @@ class solid3d_get_all_edge_faces:
|
|||||||
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[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)
|
||||||
data: Union[Unset, Solid3dGetAllEdgeFaces]
|
data: Union[Unset, Solid3dGetAllEdgeFaces]
|
||||||
@ -723,7 +724,7 @@ class solid3d_get_all_edge_faces:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
WS = TypeVar("WS", bound="solid3d_get_all_opposite_edges")
|
TU = TypeVar("TU", bound="solid3d_get_all_opposite_edges")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class solid3d_get_all_opposite_edges:
|
class solid3d_get_all_opposite_edges:
|
||||||
@ -748,7 +749,7 @@ class solid3d_get_all_opposite_edges:
|
|||||||
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[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)
|
||||||
data: Union[Unset, Solid3dGetAllOppositeEdges]
|
data: Union[Unset, Solid3dGetAllOppositeEdges]
|
||||||
@ -787,7 +788,7 @@ class solid3d_get_all_opposite_edges:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
SL = TypeVar("SL", bound="solid3d_get_opposite_edge")
|
FY = TypeVar("FY", bound="solid3d_get_opposite_edge")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class solid3d_get_opposite_edge:
|
class solid3d_get_opposite_edge:
|
||||||
@ -812,7 +813,7 @@ class solid3d_get_opposite_edge:
|
|||||||
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[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)
|
||||||
data: Union[Unset, Solid3dGetOppositeEdge]
|
data: Union[Unset, Solid3dGetOppositeEdge]
|
||||||
@ -851,7 +852,7 @@ class solid3d_get_opposite_edge:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
MK = TypeVar("MK", bound="solid3d_get_prev_adjacent_edge")
|
FD = TypeVar("FD", bound="solid3d_get_prev_adjacent_edge")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class solid3d_get_prev_adjacent_edge:
|
class solid3d_get_prev_adjacent_edge:
|
||||||
@ -876,7 +877,7 @@ class solid3d_get_prev_adjacent_edge:
|
|||||||
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[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)
|
||||||
data: Union[Unset, Solid3dGetPrevAdjacentEdge]
|
data: Union[Unset, Solid3dGetPrevAdjacentEdge]
|
||||||
@ -915,7 +916,7 @@ class solid3d_get_prev_adjacent_edge:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
TU = TypeVar("TU", bound="solid3d_get_next_adjacent_edge")
|
TZ = TypeVar("TZ", bound="solid3d_get_next_adjacent_edge")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class solid3d_get_next_adjacent_edge:
|
class solid3d_get_next_adjacent_edge:
|
||||||
@ -940,7 +941,7 @@ class solid3d_get_next_adjacent_edge:
|
|||||||
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[TZ], src_dict: Dict[str, Any]) -> TZ:
|
||||||
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]
|
||||||
@ -979,7 +980,7 @@ class solid3d_get_next_adjacent_edge:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
FY = TypeVar("FY", bound="mouse_click")
|
AX = TypeVar("AX", bound="mouse_click")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class mouse_click:
|
class mouse_click:
|
||||||
@ -1004,7 +1005,7 @@ class mouse_click:
|
|||||||
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[AX], src_dict: Dict[str, Any]) -> AX:
|
||||||
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]
|
||||||
@ -1043,7 +1044,7 @@ class mouse_click:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
FD = TypeVar("FD", bound="curve_get_type")
|
RQ = TypeVar("RQ", bound="curve_get_type")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class curve_get_type:
|
class curve_get_type:
|
||||||
@ -1068,7 +1069,7 @@ class curve_get_type:
|
|||||||
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[RQ], src_dict: Dict[str, Any]) -> RQ:
|
||||||
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]
|
||||||
@ -1107,7 +1108,7 @@ class curve_get_type:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
TZ = TypeVar("TZ", bound="curve_get_control_points")
|
ZL = TypeVar("ZL", bound="curve_get_control_points")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class curve_get_control_points:
|
class curve_get_control_points:
|
||||||
@ -1132,7 +1133,7 @@ class curve_get_control_points:
|
|||||||
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[ZL], src_dict: Dict[str, Any]) -> ZL:
|
||||||
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]
|
||||||
@ -1171,7 +1172,7 @@ class curve_get_control_points:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
AX = TypeVar("AX", bound="take_snapshot")
|
CM = TypeVar("CM", bound="take_snapshot")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class take_snapshot:
|
class take_snapshot:
|
||||||
@ -1196,7 +1197,7 @@ class take_snapshot:
|
|||||||
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[CM], src_dict: Dict[str, Any]) -> CM:
|
||||||
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]
|
||||||
@ -1235,7 +1236,7 @@ class take_snapshot:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
RQ = TypeVar("RQ", bound="path_get_info")
|
OS = TypeVar("OS", bound="path_get_info")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class path_get_info:
|
class path_get_info:
|
||||||
@ -1260,7 +1261,7 @@ class path_get_info:
|
|||||||
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[OS], src_dict: Dict[str, Any]) -> OS:
|
||||||
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]
|
||||||
@ -1299,7 +1300,7 @@ class path_get_info:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
ZL = TypeVar("ZL", bound="path_get_curve_uuids_for_vertices")
|
WP = TypeVar("WP", bound="path_get_curve_uuids_for_vertices")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class path_get_curve_uuids_for_vertices:
|
class path_get_curve_uuids_for_vertices:
|
||||||
@ -1324,7 +1325,7 @@ class path_get_curve_uuids_for_vertices:
|
|||||||
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[WP], src_dict: Dict[str, Any]) -> WP:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, PathGetCurveUuidsForVertices]
|
data: Union[Unset, PathGetCurveUuidsForVertices]
|
||||||
@ -1363,7 +1364,7 @@ class path_get_curve_uuids_for_vertices:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
CM = TypeVar("CM", bound="plane_intersect_and_project")
|
XO = TypeVar("XO", bound="plane_intersect_and_project")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class plane_intersect_and_project:
|
class plane_intersect_and_project:
|
||||||
@ -1388,7 +1389,7 @@ class plane_intersect_and_project:
|
|||||||
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[XO], src_dict: Dict[str, Any]) -> XO:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, PlaneIntersectAndProject]
|
data: Union[Unset, PlaneIntersectAndProject]
|
||||||
@ -1427,7 +1428,7 @@ class plane_intersect_and_project:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
OS = TypeVar("OS", bound="curve_get_end_points")
|
LN = TypeVar("LN", bound="curve_get_end_points")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class curve_get_end_points:
|
class curve_get_end_points:
|
||||||
@ -1452,7 +1453,7 @@ class curve_get_end_points:
|
|||||||
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[LN], src_dict: Dict[str, Any]) -> LN:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, CurveGetEndPoints]
|
data: Union[Unset, CurveGetEndPoints]
|
||||||
@ -1491,7 +1492,7 @@ class curve_get_end_points:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
WP = TypeVar("WP", bound="import_files")
|
KR = TypeVar("KR", bound="import_files")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class import_files:
|
class import_files:
|
||||||
@ -1516,7 +1517,7 @@ class import_files:
|
|||||||
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[KR], src_dict: Dict[str, Any]) -> KR:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, ImportFiles]
|
data: Union[Unset, ImportFiles]
|
||||||
@ -1555,7 +1556,7 @@ class import_files:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
XO = TypeVar("XO", bound="mass")
|
MG = TypeVar("MG", bound="mass")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class mass:
|
class mass:
|
||||||
@ -1580,7 +1581,7 @@ class mass:
|
|||||||
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[MG], src_dict: Dict[str, Any]) -> MG:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, Mass]
|
data: Union[Unset, Mass]
|
||||||
@ -1619,7 +1620,7 @@ class mass:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
LN = TypeVar("LN", bound="volume")
|
UE = TypeVar("UE", bound="volume")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class volume:
|
class volume:
|
||||||
@ -1644,7 +1645,7 @@ class volume:
|
|||||||
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[UE], src_dict: Dict[str, Any]) -> UE:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, Volume]
|
data: Union[Unset, Volume]
|
||||||
@ -1683,7 +1684,7 @@ class volume:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
KR = TypeVar("KR", bound="density")
|
BF = TypeVar("BF", bound="density")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class density:
|
class density:
|
||||||
@ -1708,7 +1709,7 @@ class density:
|
|||||||
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[BF], src_dict: Dict[str, Any]) -> BF:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, Density]
|
data: Union[Unset, Density]
|
||||||
@ -1747,7 +1748,7 @@ class density:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
MG = TypeVar("MG", bound="surface_area")
|
UU = TypeVar("UU", bound="surface_area")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class surface_area:
|
class surface_area:
|
||||||
@ -1772,7 +1773,7 @@ class surface_area:
|
|||||||
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[UU], src_dict: Dict[str, Any]) -> UU:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, SurfaceArea]
|
data: Union[Unset, SurfaceArea]
|
||||||
@ -1811,7 +1812,7 @@ class surface_area:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
UE = TypeVar("UE", bound="center_of_mass")
|
MB = TypeVar("MB", bound="center_of_mass")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class center_of_mass:
|
class center_of_mass:
|
||||||
@ -1836,7 +1837,7 @@ class center_of_mass:
|
|||||||
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[MB], src_dict: Dict[str, Any]) -> MB:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_data = d.pop("data", UNSET)
|
_data = d.pop("data", UNSET)
|
||||||
data: Union[Unset, CenterOfMass]
|
data: Union[Unset, CenterOfMass]
|
||||||
@ -1872,4 +1873,68 @@ class center_of_mass:
|
|||||||
def __contains__(self, key: str) -> bool:
|
def __contains__(self, key: str) -> bool:
|
||||||
return key in self.additional_properties
|
return key in self.additional_properties
|
||||||
|
|
||||||
OkModelingCmdResponse = Union[empty, export, select_with_point, highlight_set_entity, entity_get_child_uuid, entity_get_num_children, entity_get_parent_id, entity_get_all_child_uuids, select_get, get_entity_type, solid3d_get_all_edge_faces, solid3d_get_all_opposite_edges, solid3d_get_opposite_edge, solid3d_get_prev_adjacent_edge, solid3d_get_next_adjacent_edge, mouse_click, curve_get_type, curve_get_control_points, take_snapshot, path_get_info, path_get_curve_uuids_for_vertices, plane_intersect_and_project, curve_get_end_points, import_files, mass, volume, density, surface_area, center_of_mass]
|
|
||||||
|
|
||||||
|
|
||||||
|
TB = TypeVar("TB", bound="get_sketch_mode_plane")
|
||||||
|
|
||||||
|
@attr.s(auto_attribs=True)
|
||||||
|
class get_sketch_mode_plane:
|
||||||
|
""" The response from the `GetSketchModePlane` command. """ # noqa: E501
|
||||||
|
data: Union[Unset, GetSketchModePlane] = UNSET
|
||||||
|
type: str = "get_sketch_mode_plane"
|
||||||
|
|
||||||
|
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||||
|
|
||||||
|
def to_dict(self) -> Dict[str, Any]:
|
||||||
|
if not isinstance(self.data, Unset):
|
||||||
|
data = self.data
|
||||||
|
type = self.type
|
||||||
|
|
||||||
|
field_dict: Dict[str, Any] = {}
|
||||||
|
field_dict.update(self.additional_properties)
|
||||||
|
field_dict.update({})
|
||||||
|
if data is not UNSET:
|
||||||
|
field_dict['data'] = data
|
||||||
|
field_dict['type'] = type
|
||||||
|
|
||||||
|
return field_dict
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def from_dict(cls: Type[TB], src_dict: Dict[str, Any]) -> TB:
|
||||||
|
d = src_dict.copy()
|
||||||
|
_data = d.pop("data", UNSET)
|
||||||
|
data: Union[Unset, GetSketchModePlane]
|
||||||
|
if isinstance(_data, Unset):
|
||||||
|
data = UNSET
|
||||||
|
else:
|
||||||
|
data = _data # type: ignore[arg-type]
|
||||||
|
|
||||||
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
|
|
||||||
|
get_sketch_mode_plane = cls(
|
||||||
|
data= data,
|
||||||
|
type= type,
|
||||||
|
)
|
||||||
|
|
||||||
|
get_sketch_mode_plane.additional_properties = d
|
||||||
|
return get_sketch_mode_plane
|
||||||
|
|
||||||
|
@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
|
||||||
|
|
||||||
|
OkModelingCmdResponse = Union[empty, export, select_with_point, highlight_set_entity, entity_get_child_uuid, entity_get_num_children, entity_get_parent_id, entity_get_all_child_uuids, select_get, get_entity_type, solid3d_get_all_edge_faces, solid3d_get_all_opposite_edges, solid3d_get_opposite_edge, solid3d_get_prev_adjacent_edge, solid3d_get_next_adjacent_edge, mouse_click, curve_get_type, curve_get_control_points, take_snapshot, path_get_info, path_get_curve_uuids_for_vertices, plane_intersect_and_project, curve_get_end_points, import_files, mass, volume, density, surface_area, center_of_mass, get_sketch_mode_plane]
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
BF = TypeVar("BF", bound="ice_server_info")
|
FJ = TypeVar("FJ", bound="ice_server_info")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class ice_server_info:
|
class ice_server_info:
|
||||||
@ -28,7 +28,7 @@ class ice_server_info:
|
|||||||
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[FJ], src_dict: Dict[str, Any]) -> FJ:
|
||||||
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)
|
||||||
@ -61,7 +61,7 @@ class ice_server_info:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
UU = TypeVar("UU", bound="trickle_ice")
|
HB = TypeVar("HB", bound="trickle_ice")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class trickle_ice:
|
class trickle_ice:
|
||||||
@ -85,7 +85,7 @@ class trickle_ice:
|
|||||||
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[HB], src_dict: Dict[str, Any]) -> HB:
|
||||||
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)
|
||||||
@ -118,7 +118,7 @@ class trickle_ice:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
MB = TypeVar("MB", bound="sdp_answer")
|
SF = TypeVar("SF", bound="sdp_answer")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class sdp_answer:
|
class sdp_answer:
|
||||||
@ -142,7 +142,7 @@ class sdp_answer:
|
|||||||
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[SF], src_dict: Dict[str, Any]) -> SF:
|
||||||
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)
|
||||||
@ -175,7 +175,7 @@ class sdp_answer:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
TB = TypeVar("TB", bound="modeling")
|
DU = TypeVar("DU", bound="modeling")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class modeling:
|
class modeling:
|
||||||
@ -199,7 +199,7 @@ class modeling:
|
|||||||
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[DU], src_dict: Dict[str, Any]) -> DU:
|
||||||
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)
|
||||||
@ -232,7 +232,7 @@ class modeling:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
FJ = TypeVar("FJ", bound="export")
|
BM = TypeVar("BM", bound="export")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class export:
|
class export:
|
||||||
@ -256,7 +256,7 @@ class export:
|
|||||||
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[BM], src_dict: Dict[str, Any]) -> BM:
|
||||||
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)
|
||||||
@ -289,7 +289,7 @@ class export:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
HB = TypeVar("HB", bound="metrics_request")
|
TY = TypeVar("TY", bound="metrics_request")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class metrics_request:
|
class metrics_request:
|
||||||
@ -313,7 +313,7 @@ class metrics_request:
|
|||||||
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[TY], src_dict: Dict[str, Any]) -> TY:
|
||||||
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
|
||||||
|
|
||||||
SF = TypeVar("SF", bound="Onboarding")
|
NC = TypeVar("NC", bound="Onboarding")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Onboarding:
|
class Onboarding:
|
||||||
@ -33,7 +33,7 @@ class Onboarding:
|
|||||||
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[NC], src_dict: Dict[str, Any]) -> NC:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
first_call_from__their_machine_date = d.pop("first_call_from_their_machine_date", UNSET)
|
first_call_from__their_machine_date = d.pop("first_call_from_their_machine_date", UNSET)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
DU = TypeVar("DU", bound="OutputFile")
|
GP = TypeVar("GP", bound="OutputFile")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class OutputFile:
|
class OutputFile:
|
||||||
@ -29,7 +29,7 @@ class OutputFile:
|
|||||||
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[GP], src_dict: Dict[str, Any]) -> GP:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
contents = d.pop("contents", UNSET)
|
contents = d.pop("contents", UNSET)
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ from ..models.system import System
|
|||||||
from ..models.unit_length import UnitLength
|
from ..models.unit_length import UnitLength
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
BM = TypeVar("BM", bound="fbx")
|
FF = TypeVar("FF", bound="fbx")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class fbx:
|
class fbx:
|
||||||
@ -36,7 +36,7 @@ class fbx:
|
|||||||
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[FF], src_dict: Dict[str, Any]) -> FF:
|
||||||
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]
|
||||||
@ -75,7 +75,7 @@ class fbx:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
TY = TypeVar("TY", bound="gltf")
|
YO = TypeVar("YO", bound="gltf")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class gltf:
|
class gltf:
|
||||||
@ -105,7 +105,7 @@ class gltf:
|
|||||||
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[YO], src_dict: Dict[str, Any]) -> YO:
|
||||||
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]
|
||||||
@ -152,7 +152,7 @@ class gltf:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
NC = TypeVar("NC", bound="obj")
|
FS = TypeVar("FS", bound="obj")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class obj:
|
class obj:
|
||||||
@ -182,7 +182,7 @@ class obj:
|
|||||||
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[FS], src_dict: Dict[str, Any]) -> FS:
|
||||||
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]
|
||||||
@ -229,7 +229,7 @@ class obj:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
GP = TypeVar("GP", bound="ply")
|
WN = TypeVar("WN", bound="ply")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class ply:
|
class ply:
|
||||||
@ -259,7 +259,7 @@ class ply:
|
|||||||
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[WN], src_dict: Dict[str, Any]) -> WN:
|
||||||
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]
|
||||||
@ -306,7 +306,7 @@ class ply:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
FF = TypeVar("FF", bound="step")
|
EQ = TypeVar("EQ", bound="step")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class step:
|
class step:
|
||||||
@ -331,7 +331,7 @@ class step:
|
|||||||
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[EQ], src_dict: Dict[str, Any]) -> EQ:
|
||||||
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]
|
||||||
@ -370,7 +370,7 @@ class step:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
YO = TypeVar("YO", bound="stl")
|
UW = TypeVar("UW", bound="stl")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class stl:
|
class stl:
|
||||||
@ -405,7 +405,7 @@ class stl:
|
|||||||
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[UW], src_dict: Dict[str, Any]) -> UW:
|
||||||
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
|
||||||
|
|
||||||
FS = TypeVar("FS", bound="PathGetCurveUuidsForVertices")
|
MD = TypeVar("MD", bound="PathGetCurveUuidsForVertices")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class PathGetCurveUuidsForVertices:
|
class PathGetCurveUuidsForVertices:
|
||||||
@ -27,7 +27,7 @@ class PathGetCurveUuidsForVertices:
|
|||||||
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[MD], src_dict: Dict[str, Any]) -> MD:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
curve_ids = cast(List[str], d.pop("curve_ids", UNSET))
|
curve_ids = cast(List[str], d.pop("curve_ids", UNSET))
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
WN = TypeVar("WN", bound="PathGetInfo")
|
HD = TypeVar("HD", bound="PathGetInfo")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class PathGetInfo:
|
class PathGetInfo:
|
||||||
@ -29,7 +29,7 @@ class PathGetInfo:
|
|||||||
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[HD], src_dict: Dict[str, Any]) -> HD:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
from ..models.path_segment_info import PathSegmentInfo
|
from ..models.path_segment_info import PathSegmentInfo
|
||||||
segments = cast(List[PathSegmentInfo], d.pop("segments", UNSET))
|
segments = cast(List[PathSegmentInfo], d.pop("segments", UNSET))
|
||||||
|
@ -7,7 +7,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
|
||||||
|
|
||||||
EQ = TypeVar("EQ", bound="line")
|
UJ = TypeVar("UJ", bound="line")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class line:
|
class line:
|
||||||
@ -36,7 +36,7 @@ class line:
|
|||||||
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[UJ], src_dict: Dict[str, Any]) -> UJ:
|
||||||
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]
|
||||||
@ -78,7 +78,7 @@ class line:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
UW = TypeVar("UW", bound="arc")
|
RU = TypeVar("RU", bound="arc")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class arc:
|
class arc:
|
||||||
@ -119,7 +119,7 @@ class arc:
|
|||||||
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[RU], src_dict: Dict[str, Any]) -> RU:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
angle_end = d.pop("angle_end", UNSET)
|
angle_end = d.pop("angle_end", UNSET)
|
||||||
|
|
||||||
@ -170,7 +170,7 @@ class arc:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
MD = TypeVar("MD", bound="bezier")
|
DL = TypeVar("DL", bound="bezier")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class bezier:
|
class bezier:
|
||||||
@ -209,7 +209,7 @@ class bezier:
|
|||||||
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[DL], src_dict: Dict[str, Any]) -> DL:
|
||||||
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]
|
||||||
@ -267,7 +267,7 @@ class bezier:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
HD = TypeVar("HD", bound="tangential_arc")
|
QT = TypeVar("QT", bound="tangential_arc")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class tangential_arc:
|
class tangential_arc:
|
||||||
@ -296,7 +296,7 @@ class tangential_arc:
|
|||||||
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[QT], src_dict: Dict[str, Any]) -> QT:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_offset = d.pop("offset", UNSET)
|
_offset = d.pop("offset", UNSET)
|
||||||
offset: Union[Unset, Angle]
|
offset: Union[Unset, Angle]
|
||||||
@ -338,7 +338,7 @@ class tangential_arc:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
UJ = TypeVar("UJ", bound="tangential_arc_to")
|
PT = TypeVar("PT", bound="tangential_arc_to")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class tangential_arc_to:
|
class tangential_arc_to:
|
||||||
@ -368,7 +368,7 @@ class tangential_arc_to:
|
|||||||
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[PT], src_dict: Dict[str, Any]) -> PT:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_angle_snap_increment = d.pop("angle_snap_increment", UNSET)
|
_angle_snap_increment = d.pop("angle_snap_increment", UNSET)
|
||||||
angle_snap_increment: Union[Unset, Angle]
|
angle_snap_increment: Union[Unset, Angle]
|
||||||
|
@ -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
|
||||||
|
|
||||||
RU = TypeVar("RU", bound="PathSegmentInfo")
|
HR = TypeVar("HR", bound="PathSegmentInfo")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class PathSegmentInfo:
|
class PathSegmentInfo:
|
||||||
@ -37,7 +37,7 @@ class PathSegmentInfo:
|
|||||||
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[HR], src_dict: Dict[str, Any]) -> HR:
|
||||||
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
|
||||||
|
|
||||||
DL = TypeVar("DL", bound="PaymentIntent")
|
VF = TypeVar("VF", bound="PaymentIntent")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class PaymentIntent:
|
class PaymentIntent:
|
||||||
@ -25,7 +25,7 @@ class PaymentIntent:
|
|||||||
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[VF], src_dict: Dict[str, Any]) -> VF:
|
||||||
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
|
||||||
|
|
||||||
QT = TypeVar("QT", bound="PaymentMethod")
|
VM = TypeVar("VM", bound="PaymentMethod")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class PaymentMethod:
|
class PaymentMethod:
|
||||||
@ -56,7 +56,7 @@ class PaymentMethod:
|
|||||||
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[VM], src_dict: Dict[str, Any]) -> VM:
|
||||||
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
|
||||||
|
|
||||||
PT = TypeVar("PT", bound="PaymentMethodCardChecks")
|
WH = TypeVar("WH", bound="PaymentMethodCardChecks")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class PaymentMethodCardChecks:
|
class PaymentMethodCardChecks:
|
||||||
@ -33,7 +33,7 @@ class PaymentMethodCardChecks:
|
|||||||
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[WH], src_dict: Dict[str, Any]) -> WH:
|
||||||
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)
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ import attr
|
|||||||
from ..models.point2d import Point2d
|
from ..models.point2d import Point2d
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
HR = TypeVar("HR", bound="PlaneIntersectAndProject")
|
DQ = TypeVar("DQ", bound="PlaneIntersectAndProject")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class PlaneIntersectAndProject:
|
class PlaneIntersectAndProject:
|
||||||
@ -27,7 +27,7 @@ class PlaneIntersectAndProject:
|
|||||||
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[DQ], src_dict: Dict[str, Any]) -> DQ:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_plane_coordinates = d.pop("plane_coordinates", UNSET)
|
_plane_coordinates = d.pop("plane_coordinates", UNSET)
|
||||||
plane_coordinates: Union[Unset, Point2d]
|
plane_coordinates: Union[Unset, Point2d]
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
VF = TypeVar("VF", bound="Point2d")
|
UY = TypeVar("UY", bound="Point2d")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Point2d:
|
class Point2d:
|
||||||
@ -29,7 +29,7 @@ class Point2d:
|
|||||||
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[UY], src_dict: Dict[str, Any]) -> UY:
|
||||||
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
|
||||||
|
|
||||||
VM = TypeVar("VM", bound="Point3d")
|
PD = TypeVar("PD", bound="Point3d")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Point3d:
|
class Point3d:
|
||||||
@ -33,7 +33,7 @@ class Point3d:
|
|||||||
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[PD], src_dict: Dict[str, Any]) -> PD:
|
||||||
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
|
||||||
|
|
||||||
WH = TypeVar("WH", bound="PointEMetadata")
|
SM = TypeVar("SM", bound="PointEMetadata")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class PointEMetadata:
|
class PointEMetadata:
|
||||||
@ -27,7 +27,7 @@ This is mostly used for internal purposes and debugging. """ # noqa: E501
|
|||||||
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[SM], src_dict: Dict[str, Any]) -> SM:
|
||||||
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
|
||||||
|
|
||||||
DQ = TypeVar("DQ", bound="Pong")
|
JL = TypeVar("JL", bound="Pong")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Pong:
|
class Pong:
|
||||||
@ -25,7 +25,7 @@ class Pong:
|
|||||||
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[JL], src_dict: Dict[str, Any]) -> JL:
|
||||||
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
|
||||||
|
|
||||||
UY = TypeVar("UY", bound="RawFile")
|
CG = TypeVar("CG", bound="RawFile")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class RawFile:
|
class RawFile:
|
||||||
@ -31,7 +31,7 @@ class RawFile:
|
|||||||
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[CG], src_dict: Dict[str, Any]) -> CG:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
contents = cast(List[int], d.pop("contents", UNSET))
|
contents = cast(List[int], d.pop("contents", UNSET))
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ import attr
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
PD = TypeVar("PD", bound="RtcIceCandidateInit")
|
QA = TypeVar("QA", bound="RtcIceCandidateInit")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class RtcIceCandidateInit:
|
class RtcIceCandidateInit:
|
||||||
@ -37,7 +37,7 @@ class RtcIceCandidateInit:
|
|||||||
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[QA], src_dict: Dict[str, Any]) -> QA:
|
||||||
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
|
||||||
|
|
||||||
SM = TypeVar("SM", bound="RtcSessionDescription")
|
ZB = TypeVar("ZB", bound="RtcSessionDescription")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class RtcSessionDescription:
|
class RtcSessionDescription:
|
||||||
@ -31,7 +31,7 @@ class RtcSessionDescription:
|
|||||||
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[ZB], src_dict: Dict[str, Any]) -> ZB:
|
||||||
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
|
||||||
|
|
||||||
JL = TypeVar("JL", bound="SelectGet")
|
AU = TypeVar("AU", bound="SelectGet")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class SelectGet:
|
class SelectGet:
|
||||||
@ -27,7 +27,7 @@ class SelectGet:
|
|||||||
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[AU], src_dict: Dict[str, Any]) -> AU:
|
||||||
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
|
||||||
|
|
||||||
CG = TypeVar("CG", bound="SelectWithPoint")
|
FX = TypeVar("FX", bound="SelectWithPoint")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class SelectWithPoint:
|
class SelectWithPoint:
|
||||||
@ -25,7 +25,7 @@ class SelectWithPoint:
|
|||||||
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[FX], src_dict: Dict[str, Any]) -> FX:
|
||||||
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
|
||||||
|
|
||||||
QA = TypeVar("QA", bound="Session")
|
BL = TypeVar("BL", bound="Session")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Session:
|
class Session:
|
||||||
@ -56,7 +56,7 @@ For our UIs, these are automatically created by Next.js. """ # noqa: E501
|
|||||||
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[BL], src_dict: Dict[str, Any]) -> BL:
|
||||||
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
|
||||||
|
|
||||||
ZB = TypeVar("ZB", bound="Solid3dGetAllEdgeFaces")
|
KU = TypeVar("KU", bound="Solid3dGetAllEdgeFaces")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Solid3dGetAllEdgeFaces:
|
class Solid3dGetAllEdgeFaces:
|
||||||
@ -27,7 +27,7 @@ class Solid3dGetAllEdgeFaces:
|
|||||||
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[KU], src_dict: Dict[str, Any]) -> KU:
|
||||||
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
|
||||||
|
|
||||||
AU = TypeVar("AU", bound="Solid3dGetAllOppositeEdges")
|
PZ = TypeVar("PZ", bound="Solid3dGetAllOppositeEdges")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Solid3dGetAllOppositeEdges:
|
class Solid3dGetAllOppositeEdges:
|
||||||
@ -27,7 +27,7 @@ class Solid3dGetAllOppositeEdges:
|
|||||||
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[PZ], src_dict: Dict[str, Any]) -> PZ:
|
||||||
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
|
||||||
|
|
||||||
FX = TypeVar("FX", bound="Solid3dGetNextAdjacentEdge")
|
FA = TypeVar("FA", bound="Solid3dGetNextAdjacentEdge")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Solid3dGetNextAdjacentEdge:
|
class Solid3dGetNextAdjacentEdge:
|
||||||
@ -25,7 +25,7 @@ class Solid3dGetNextAdjacentEdge:
|
|||||||
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[FA], src_dict: Dict[str, Any]) -> FA:
|
||||||
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
|
||||||
|
|
||||||
BL = TypeVar("BL", bound="Solid3dGetOppositeEdge")
|
GE = TypeVar("GE", bound="Solid3dGetOppositeEdge")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Solid3dGetOppositeEdge:
|
class Solid3dGetOppositeEdge:
|
||||||
@ -25,7 +25,7 @@ class Solid3dGetOppositeEdge:
|
|||||||
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[GE], src_dict: Dict[str, Any]) -> GE:
|
||||||
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
|
||||||
|
|
||||||
KU = TypeVar("KU", bound="Solid3dGetPrevAdjacentEdge")
|
JG = TypeVar("JG", bound="Solid3dGetPrevAdjacentEdge")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Solid3dGetPrevAdjacentEdge:
|
class Solid3dGetPrevAdjacentEdge:
|
||||||
@ -25,7 +25,7 @@ class Solid3dGetPrevAdjacentEdge:
|
|||||||
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[JG], src_dict: Dict[str, Any]) -> JG:
|
||||||
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
|
||||||
|
|
||||||
PZ = TypeVar("PZ", bound="SuccessWebSocketResponse")
|
HH = TypeVar("HH", bound="SuccessWebSocketResponse")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class SuccessWebSocketResponse:
|
class SuccessWebSocketResponse:
|
||||||
@ -35,7 +35,7 @@ class SuccessWebSocketResponse:
|
|||||||
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[HH], src_dict: Dict[str, Any]) -> HH:
|
||||||
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.unit_area import UnitArea
|
from ..models.unit_area import UnitArea
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
FA = TypeVar("FA", bound="SurfaceArea")
|
RY = TypeVar("RY", bound="SurfaceArea")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class SurfaceArea:
|
class SurfaceArea:
|
||||||
@ -31,7 +31,7 @@ class SurfaceArea:
|
|||||||
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[RY], src_dict: Dict[str, Any]) -> RY:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitArea]
|
output_unit: Union[Unset, UnitArea]
|
||||||
|
@ -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
|
||||||
|
|
||||||
GE = TypeVar("GE", bound="System")
|
AE = TypeVar("AE", bound="System")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class System:
|
class System:
|
||||||
@ -38,7 +38,7 @@ See [cglearn.eu] for background reading.
|
|||||||
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[AE], src_dict: Dict[str, Any]) -> AE:
|
||||||
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]
|
||||||
|
@ -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
|
||||||
|
|
||||||
JG = TypeVar("JG", bound="TakeSnapshot")
|
AD = TypeVar("AD", bound="TakeSnapshot")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class TakeSnapshot:
|
class TakeSnapshot:
|
||||||
@ -28,7 +28,7 @@ class TakeSnapshot:
|
|||||||
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[AD], src_dict: Dict[str, Any]) -> AD:
|
||||||
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
|
||||||
|
|
||||||
HH = TypeVar("HH", bound="UnitAngleConversion")
|
AB = TypeVar("AB", bound="UnitAngleConversion")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UnitAngleConversion:
|
class UnitAngleConversion:
|
||||||
@ -85,7 +85,7 @@ class UnitAngleConversion:
|
|||||||
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[AB], src_dict: Dict[str, Any]) -> AB:
|
||||||
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
|
||||||
|
|
||||||
RY = TypeVar("RY", bound="UnitAreaConversion")
|
VY = TypeVar("VY", bound="UnitAreaConversion")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UnitAreaConversion:
|
class UnitAreaConversion:
|
||||||
@ -85,7 +85,7 @@ class UnitAreaConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[RY], src_dict: Dict[str, Any]) -> RY:
|
def from_dict(cls: Type[VY], src_dict: Dict[str, Any]) -> VY:
|
||||||
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
|
||||||
|
|
||||||
AE = TypeVar("AE", bound="UnitCurrentConversion")
|
DW = TypeVar("DW", bound="UnitCurrentConversion")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UnitCurrentConversion:
|
class UnitCurrentConversion:
|
||||||
@ -85,7 +85,7 @@ class UnitCurrentConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[AE], src_dict: Dict[str, Any]) -> AE:
|
def from_dict(cls: Type[DW], src_dict: Dict[str, Any]) -> DW:
|
||||||
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
|
||||||
|
|
||||||
AD = TypeVar("AD", bound="UnitEnergyConversion")
|
MC = TypeVar("MC", bound="UnitEnergyConversion")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UnitEnergyConversion:
|
class UnitEnergyConversion:
|
||||||
@ -85,7 +85,7 @@ class UnitEnergyConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[AD], src_dict: Dict[str, Any]) -> AD:
|
def from_dict(cls: Type[MC], src_dict: Dict[str, Any]) -> MC:
|
||||||
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
|
||||||
|
|
||||||
AB = TypeVar("AB", bound="UnitForceConversion")
|
AV = TypeVar("AV", bound="UnitForceConversion")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UnitForceConversion:
|
class UnitForceConversion:
|
||||||
@ -85,7 +85,7 @@ class UnitForceConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[AB], src_dict: Dict[str, Any]) -> AB:
|
def from_dict(cls: Type[AV], src_dict: Dict[str, Any]) -> AV:
|
||||||
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
|
||||||
|
|
||||||
VY = TypeVar("VY", bound="UnitFrequencyConversion")
|
BR = TypeVar("BR", bound="UnitFrequencyConversion")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UnitFrequencyConversion:
|
class UnitFrequencyConversion:
|
||||||
@ -85,7 +85,7 @@ class UnitFrequencyConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[VY], src_dict: Dict[str, Any]) -> VY:
|
def from_dict(cls: Type[BR], src_dict: Dict[str, Any]) -> BR:
|
||||||
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
|
||||||
|
|
||||||
DW = TypeVar("DW", bound="UnitLengthConversion")
|
WM = TypeVar("WM", bound="UnitLengthConversion")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UnitLengthConversion:
|
class UnitLengthConversion:
|
||||||
@ -85,7 +85,7 @@ class UnitLengthConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[DW], src_dict: Dict[str, Any]) -> DW:
|
def from_dict(cls: Type[WM], src_dict: Dict[str, Any]) -> WM:
|
||||||
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
|
||||||
|
|
||||||
MC = TypeVar("MC", bound="UnitMassConversion")
|
OK = TypeVar("OK", bound="UnitMassConversion")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UnitMassConversion:
|
class UnitMassConversion:
|
||||||
@ -85,7 +85,7 @@ class UnitMassConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[MC], src_dict: Dict[str, Any]) -> MC:
|
def from_dict(cls: Type[OK], src_dict: Dict[str, Any]) -> OK:
|
||||||
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
|
||||||
|
|
||||||
AV = TypeVar("AV", bound="UnitPowerConversion")
|
MU = TypeVar("MU", bound="UnitPowerConversion")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UnitPowerConversion:
|
class UnitPowerConversion:
|
||||||
@ -85,7 +85,7 @@ class UnitPowerConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[AV], src_dict: Dict[str, Any]) -> AV:
|
def from_dict(cls: Type[MU], src_dict: Dict[str, Any]) -> MU:
|
||||||
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
|
||||||
|
|
||||||
BR = TypeVar("BR", bound="UnitPressureConversion")
|
OP = TypeVar("OP", bound="UnitPressureConversion")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UnitPressureConversion:
|
class UnitPressureConversion:
|
||||||
@ -85,7 +85,7 @@ class UnitPressureConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[BR], src_dict: Dict[str, Any]) -> BR:
|
def from_dict(cls: Type[OP], src_dict: Dict[str, Any]) -> OP:
|
||||||
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
|
||||||
|
|
||||||
WM = TypeVar("WM", bound="UnitTemperatureConversion")
|
WW = TypeVar("WW", bound="UnitTemperatureConversion")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UnitTemperatureConversion:
|
class UnitTemperatureConversion:
|
||||||
@ -85,7 +85,7 @@ class UnitTemperatureConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[WM], src_dict: Dict[str, Any]) -> WM:
|
def from_dict(cls: Type[WW], src_dict: Dict[str, Any]) -> WW:
|
||||||
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
|
||||||
|
|
||||||
OK = TypeVar("OK", bound="UnitTorqueConversion")
|
LV = TypeVar("LV", bound="UnitTorqueConversion")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UnitTorqueConversion:
|
class UnitTorqueConversion:
|
||||||
@ -85,7 +85,7 @@ class UnitTorqueConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[OK], src_dict: Dict[str, Any]) -> OK:
|
def from_dict(cls: Type[LV], src_dict: Dict[str, Any]) -> LV:
|
||||||
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
|
||||||
|
|
||||||
MU = TypeVar("MU", bound="UnitVolumeConversion")
|
II = TypeVar("II", bound="UnitVolumeConversion")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UnitVolumeConversion:
|
class UnitVolumeConversion:
|
||||||
@ -85,7 +85,7 @@ class UnitVolumeConversion:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[MU], src_dict: Dict[str, Any]) -> MU:
|
def from_dict(cls: Type[II], src_dict: Dict[str, Any]) -> II:
|
||||||
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
|
||||||
|
|
||||||
OP = TypeVar("OP", bound="UpdateUser")
|
FC = TypeVar("FC", bound="UpdateUser")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UpdateUser:
|
class UpdateUser:
|
||||||
@ -45,7 +45,7 @@ class UpdateUser:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[OP], src_dict: Dict[str, Any]) -> OP:
|
def from_dict(cls: Type[FC], src_dict: Dict[str, Any]) -> FC:
|
||||||
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
|
||||||
|
|
||||||
WW = TypeVar("WW", bound="User")
|
OA = TypeVar("OA", bound="User")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class User:
|
class User:
|
||||||
@ -81,7 +81,7 @@ class User:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[WW], src_dict: Dict[str, Any]) -> WW:
|
def from_dict(cls: Type[OA], src_dict: Dict[str, Any]) -> OA:
|
||||||
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
|
||||||
|
|
||||||
LV = TypeVar("LV", bound="UserResultsPage")
|
EI = TypeVar("EI", bound="UserResultsPage")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class UserResultsPage:
|
class UserResultsPage:
|
||||||
@ -33,7 +33,7 @@ class UserResultsPage:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[LV], src_dict: Dict[str, Any]) -> LV:
|
def from_dict(cls: Type[EI], src_dict: Dict[str, Any]) -> EI:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
from ..models.user import User
|
from ..models.user import User
|
||||||
items = cast(List[User], d.pop("items", UNSET))
|
items = cast(List[User], d.pop("items", UNSET))
|
||||||
|
@ -6,7 +6,7 @@ from dateutil.parser import isoparse
|
|||||||
|
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
II = TypeVar("II", bound="VerificationToken")
|
CQ = TypeVar("CQ", bound="VerificationToken")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class VerificationToken:
|
class VerificationToken:
|
||||||
@ -51,7 +51,7 @@ This is typically used to verify a user's email address. """ # noqa: E501
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[II], src_dict: Dict[str, Any]) -> II:
|
def from_dict(cls: Type[CQ], src_dict: Dict[str, Any]) -> CQ:
|
||||||
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]
|
||||||
|
@ -5,7 +5,7 @@ import attr
|
|||||||
from ..models.unit_volume import UnitVolume
|
from ..models.unit_volume import UnitVolume
|
||||||
from ..types import UNSET, Unset
|
from ..types import UNSET, Unset
|
||||||
|
|
||||||
FC = TypeVar("FC", bound="Volume")
|
JE = TypeVar("JE", bound="Volume")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class Volume:
|
class Volume:
|
||||||
@ -31,7 +31,7 @@ class Volume:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[FC], src_dict: Dict[str, Any]) -> FC:
|
def from_dict(cls: Type[JE], src_dict: Dict[str, Any]) -> JE:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_output_unit = d.pop("output_unit", UNSET)
|
_output_unit = d.pop("output_unit", UNSET)
|
||||||
output_unit: Union[Unset, UnitVolume]
|
output_unit: Union[Unset, UnitVolume]
|
||||||
|
@ -9,7 +9,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
|
||||||
|
|
||||||
OA = TypeVar("OA", bound="trickle_ice")
|
RD = TypeVar("RD", bound="trickle_ice")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class trickle_ice:
|
class trickle_ice:
|
||||||
@ -34,7 +34,7 @@ class trickle_ice:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[OA], src_dict: Dict[str, Any]) -> OA:
|
def from_dict(cls: Type[RD], src_dict: Dict[str, Any]) -> RD:
|
||||||
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]
|
||||||
@ -73,7 +73,7 @@ class trickle_ice:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
EI = TypeVar("EI", bound="sdp_offer")
|
JW = TypeVar("JW", bound="sdp_offer")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class sdp_offer:
|
class sdp_offer:
|
||||||
@ -98,7 +98,7 @@ class sdp_offer:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[EI], src_dict: Dict[str, Any]) -> EI:
|
def from_dict(cls: Type[JW], src_dict: Dict[str, Any]) -> JW:
|
||||||
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]
|
||||||
@ -137,7 +137,7 @@ class sdp_offer:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
CQ = TypeVar("CQ", bound="modeling_cmd_req")
|
KZ = TypeVar("KZ", bound="modeling_cmd_req")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class modeling_cmd_req:
|
class modeling_cmd_req:
|
||||||
@ -167,7 +167,7 @@ class modeling_cmd_req:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[CQ], src_dict: Dict[str, Any]) -> CQ:
|
def from_dict(cls: Type[KZ], src_dict: Dict[str, Any]) -> KZ:
|
||||||
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]
|
||||||
@ -214,7 +214,7 @@ class modeling_cmd_req:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
JE = TypeVar("JE", bound="ping")
|
AS = TypeVar("AS", bound="ping")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class ping:
|
class ping:
|
||||||
@ -234,7 +234,7 @@ class ping:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[JE], src_dict: Dict[str, Any]) -> JE:
|
def from_dict(cls: Type[AS], src_dict: Dict[str, Any]) -> AS:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
type = d.pop("type", UNSET)
|
type = d.pop("type", UNSET)
|
||||||
|
|
||||||
@ -265,7 +265,7 @@ class ping:
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
RD = TypeVar("RD", bound="metrics_response")
|
IU = TypeVar("IU", bound="metrics_response")
|
||||||
|
|
||||||
@attr.s(auto_attribs=True)
|
@attr.s(auto_attribs=True)
|
||||||
class metrics_response:
|
class metrics_response:
|
||||||
@ -290,7 +290,7 @@ class metrics_response:
|
|||||||
return field_dict
|
return field_dict
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[RD], src_dict: Dict[str, Any]) -> RD:
|
def from_dict(cls: Type[IU], src_dict: Dict[str, Any]) -> IU:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
_metrics = d.pop("metrics", UNSET)
|
_metrics = d.pop("metrics", UNSET)
|
||||||
metrics: Union[Unset, ClientMetrics]
|
metrics: Union[Unset, ClientMetrics]
|
||||||
|
Reference in New Issue
Block a user