Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
01a73859d4 | |||
f63509a1eb | |||
7cb8d5327f | |||
1f9a787c15 | |||
3e2c9450dc | |||
eb8d1b77bb | |||
d5184bf172 | |||
3cad86c5a3 | |||
63824cd04f | |||
816904419e | |||
e68857f4c9 | |||
db1bd33c79 | |||
dea0d637fe | |||
2e1c75769f |
2
.github/workflows/black.yml
vendored
2
.github/workflows/black.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
black:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
|
||||
|
2
.github/workflows/build-test.yml
vendored
2
.github/workflows/build-test.yml
vendored
@ -22,7 +22,7 @@ jobs:
|
||||
python-version: [3.8, 3.9]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
|
2
.github/workflows/generate-docs.yml
vendored
2
.github/workflows/generate-docs.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
|
2
.github/workflows/generate.yml
vendored
2
.github/workflows/generate.yml
vendored
@ -16,7 +16,7 @@ jobs:
|
||||
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.pull_request.head.ref }}
|
||||
- name: Run generate
|
||||
|
2
.github/workflows/make-release.yml
vendored
2
.github/workflows/make-release.yml
vendored
@ -8,7 +8,7 @@ jobs:
|
||||
name: make-release
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.x'
|
||||
|
2
.github/workflows/mypy.yml
vendored
2
.github/workflows/mypy.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
mypy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
|
||||
|
2
.github/workflows/ruff.yml
vendored
2
.github/workflows/ruff.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
ruff:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
|
||||
|
4
.github/workflows/update-spec-for-docs.yml
vendored
4
.github/workflows/update-spec-for-docs.yml
vendored
@ -15,7 +15,7 @@ jobs:
|
||||
name: update-spec
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- name: make generate
|
||||
shell: bash
|
||||
run: |
|
||||
@ -34,7 +34,7 @@ jobs:
|
||||
echo "No files changed, proceeding";
|
||||
fi
|
||||
# Checkout the docs repo since we will want to update the files there.
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
repository: 'kittycad/website'
|
||||
path: 'docs'
|
||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -22,7 +22,6 @@ dmypy.json
|
||||
/coverage.xml
|
||||
/.coverage
|
||||
|
||||
poetry.lock
|
||||
testing
|
||||
|
||||
# Sphinx documentation
|
||||
|
@ -61,10 +61,19 @@ client = ClientFromEnv()
|
||||
# Create the json patch document.
|
||||
patch = jsonpatch.make_patch(original, data)
|
||||
|
||||
# Convert this to a dict.
|
||||
patch = json.loads(patch.to_string())
|
||||
|
||||
new_patch = []
|
||||
# Make sure we aren't changing any components/schemas.
|
||||
for index, p in enumerate(patch):
|
||||
if not p["path"].startswith("/components"):
|
||||
new_patch.append(p)
|
||||
|
||||
# Rewrite the spec back out.
|
||||
patch_file = os.path.join(cwd, "kittycad.py.patch.json")
|
||||
f = open(patch_file, "w")
|
||||
f.write(patch.to_string())
|
||||
f.write(json.dumps(new_patch, indent=2))
|
||||
f.close()
|
||||
|
||||
# Write all the examples to a file.
|
||||
@ -2225,6 +2234,8 @@ def hasBase64(schema: dict) -> bool:
|
||||
if "type" in schema:
|
||||
type_name = schema["type"]
|
||||
if type_name == "object":
|
||||
if "additionalProperties" in schema:
|
||||
return hasBase64(schema["additionalProperties"])
|
||||
# Iternate over the properties.
|
||||
if "properties" in schema:
|
||||
for property_name in schema["properties"]:
|
||||
|
File diff suppressed because one or more lines are too long
@ -30,7 +30,6 @@ class file_conversion:
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
error: Union[Unset, str] = UNSET
|
||||
id: Union[Unset, str] = UNSET
|
||||
output: Union[Unset, Base64Data] = UNSET
|
||||
output_format: Union[Unset, FileExportFormat] = UNSET
|
||||
output_format_options: Union[Unset, OutputFormat] = UNSET
|
||||
outputs: Union[Unset, Dict[str, Base64Data]] = UNSET
|
||||
@ -53,9 +52,6 @@ class file_conversion:
|
||||
created_at = self.created_at.isoformat()
|
||||
error = self.error
|
||||
id = self.id
|
||||
output: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.output, Unset):
|
||||
output = self.output.get_encoded()
|
||||
if not isinstance(self.output_format, Unset):
|
||||
output_format = self.output_format
|
||||
if not isinstance(self.output_format_options, Unset):
|
||||
@ -92,8 +88,6 @@ class file_conversion:
|
||||
field_dict["error"] = error
|
||||
if id is not UNSET:
|
||||
field_dict["id"] = id
|
||||
if output is not UNSET:
|
||||
field_dict["output"] = output
|
||||
if output_format is not UNSET:
|
||||
field_dict["output_format"] = output_format
|
||||
if output_format_options is not UNSET:
|
||||
@ -142,13 +136,6 @@ class file_conversion:
|
||||
else:
|
||||
id = _id # type: ignore[arg-type]
|
||||
|
||||
_output = d.pop("output", UNSET)
|
||||
output: Union[Unset, Base64Data]
|
||||
if isinstance(_output, Unset):
|
||||
output = UNSET
|
||||
else:
|
||||
output = Base64Data(bytes(_output, "utf-8"))
|
||||
|
||||
_output_format = d.pop("output_format", UNSET)
|
||||
output_format: Union[Unset, FileExportFormat]
|
||||
if isinstance(_output_format, Unset):
|
||||
@ -216,7 +203,6 @@ class file_conversion:
|
||||
created_at=created_at,
|
||||
error=error,
|
||||
id=id,
|
||||
output=output,
|
||||
output_format=output_format,
|
||||
output_format_options=output_format_options,
|
||||
outputs=outputs,
|
||||
|
@ -24,7 +24,6 @@ class FileConversion:
|
||||
created_at: Union[Unset, datetime.datetime] = UNSET
|
||||
error: Union[Unset, str] = UNSET
|
||||
id: Union[Unset, str] = UNSET
|
||||
output: Union[Unset, Base64Data] = UNSET
|
||||
output_format: Union[Unset, FileExportFormat] = UNSET
|
||||
output_format_options: Union[Unset, OutputFormat] = UNSET
|
||||
outputs: Union[Unset, Dict[str, Base64Data]] = UNSET
|
||||
@ -46,9 +45,6 @@ class FileConversion:
|
||||
created_at = self.created_at.isoformat()
|
||||
error = self.error
|
||||
id = self.id
|
||||
output: Union[Unset, str] = UNSET
|
||||
if not isinstance(self.output, Unset):
|
||||
output = self.output.get_encoded()
|
||||
if not isinstance(self.output_format, Unset):
|
||||
output_format = self.output_format
|
||||
if not isinstance(self.output_format_options, Unset):
|
||||
@ -84,8 +80,6 @@ class FileConversion:
|
||||
field_dict["error"] = error
|
||||
if id is not UNSET:
|
||||
field_dict["id"] = id
|
||||
if output is not UNSET:
|
||||
field_dict["output"] = output
|
||||
if output_format is not UNSET:
|
||||
field_dict["output_format"] = output_format
|
||||
if output_format_options is not UNSET:
|
||||
@ -133,13 +127,6 @@ class FileConversion:
|
||||
else:
|
||||
id = _id # type: ignore[arg-type]
|
||||
|
||||
_output = d.pop("output", UNSET)
|
||||
output: Union[Unset, Base64Data]
|
||||
if isinstance(_output, Unset):
|
||||
output = UNSET
|
||||
else:
|
||||
output = Base64Data(bytes(_output, "utf-8"))
|
||||
|
||||
_output_format = d.pop("output_format", UNSET)
|
||||
output_format: Union[Unset, FileExportFormat]
|
||||
if isinstance(_output_format, Unset):
|
||||
@ -205,7 +192,6 @@ class FileConversion:
|
||||
created_at=created_at,
|
||||
error=error,
|
||||
id=id,
|
||||
output=output,
|
||||
output_format=output_format,
|
||||
output_format_options=output_format_options,
|
||||
outputs=outputs,
|
||||
|
@ -12,6 +12,8 @@ class FileImportFormat(str, Enum):
|
||||
OBJ = "obj"
|
||||
"""# The PLY file format. <https://en.wikipedia.org/wiki/PLY_(file_format)> """ # noqa: E501
|
||||
PLY = "ply"
|
||||
"""# SolidWorks part (SLDPRT) format. """ # noqa: E501
|
||||
SLDPRT = "sldprt"
|
||||
"""# The STEP file format. <https://en.wikipedia.org/wiki/ISO_10303-21> """ # noqa: E501
|
||||
STEP = "step"
|
||||
"""# The STL file format. <https://en.wikipedia.org/wiki/STL_(file_format)> """ # noqa: E501
|
||||
|
@ -106,57 +106,7 @@ class gltf:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
EN = TypeVar("EN", bound="step")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class step:
|
||||
"""ISO 10303-21 (STEP) format.""" # noqa: E501
|
||||
|
||||
type: str = "step"
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
type = self.type
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
field_dict["type"] = type
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[EN], src_dict: Dict[str, Any]) -> EN:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
step = cls(
|
||||
type=type,
|
||||
)
|
||||
|
||||
step.additional_properties = d
|
||||
return step
|
||||
|
||||
@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
|
||||
|
||||
|
||||
RS = TypeVar("RS", bound="obj")
|
||||
EN = TypeVar("EN", bound="obj")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -188,7 +138,7 @@ class obj:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RS], src_dict: Dict[str, Any]) -> RS:
|
||||
def from_dict(cls: Type[EN], src_dict: Dict[str, Any]) -> EN:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -232,7 +182,7 @@ class obj:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LR = TypeVar("LR", bound="ply")
|
||||
RS = TypeVar("RS", bound="ply")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -264,7 +214,7 @@ class ply:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LR], src_dict: Dict[str, Any]) -> LR:
|
||||
def from_dict(cls: Type[RS], src_dict: Dict[str, Any]) -> RS:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -308,7 +258,107 @@ class ply:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
MP = TypeVar("MP", bound="stl")
|
||||
LR = TypeVar("LR", bound="sldprt")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class sldprt:
|
||||
"""SolidWorks part (SLDPRT) format.""" # noqa: E501
|
||||
|
||||
type: str = "sldprt"
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
type = self.type
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
field_dict["type"] = type
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LR], src_dict: Dict[str, Any]) -> LR:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
sldprt = cls(
|
||||
type=type,
|
||||
)
|
||||
|
||||
sldprt.additional_properties = d
|
||||
return sldprt
|
||||
|
||||
@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
|
||||
|
||||
|
||||
MP = TypeVar("MP", bound="step")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class step:
|
||||
"""ISO 10303-21 (STEP) format.""" # noqa: E501
|
||||
|
||||
type: str = "step"
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
type = self.type
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
field_dict["type"] = type
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MP], src_dict: Dict[str, Any]) -> MP:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
step = cls(
|
||||
type=type,
|
||||
)
|
||||
|
||||
step.additional_properties = d
|
||||
return step
|
||||
|
||||
@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
|
||||
|
||||
|
||||
WF = TypeVar("WF", bound="stl")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -340,7 +390,7 @@ class stl:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -384,4 +434,4 @@ class stl:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
InputFormat = Union[fbx, gltf, step, obj, ply, stl]
|
||||
InputFormat = Union[fbx, gltf, obj, ply, sldprt, step, stl]
|
||||
|
@ -8,7 +8,7 @@ from ..models.currency import Currency
|
||||
from ..models.invoice_status import InvoiceStatus
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
WF = TypeVar("WF", bound="Invoice")
|
||||
RO = TypeVar("RO", bound="Invoice")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -144,7 +144,7 @@ class Invoice:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
amount_due = d.pop("amount_due", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.currency import Currency
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
RO = TypeVar("RO", bound="InvoiceLineItem")
|
||||
DN = TypeVar("DN", bound="InvoiceLineItem")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -49,7 +49,7 @@ class InvoiceLineItem:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
amount = d.pop("amount", UNSET)
|
||||
|
||||
|
@ -7,7 +7,7 @@ from ..models.jetstream_stats import JetstreamStats
|
||||
from ..models.meta_cluster_info import MetaClusterInfo
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
DN = TypeVar("DN", bound="Jetstream")
|
||||
BA = TypeVar("BA", bound="Jetstream")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -41,7 +41,7 @@ class Jetstream:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
_config = d.pop("config", UNSET)
|
||||
config: Union[Unset, JetstreamConfig]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
BA = TypeVar("BA", bound="JetstreamApiStats")
|
||||
OR = TypeVar("OR", bound="JetstreamApiStats")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class JetstreamApiStats:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
errors = d.pop("errors", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
OR = TypeVar("OR", bound="JetstreamConfig")
|
||||
CB = TypeVar("CB", bound="JetstreamConfig")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -39,7 +39,7 @@ class JetstreamConfig:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
domain = d.pop("domain", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.jetstream_api_stats import JetstreamApiStats
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
CB = TypeVar("CB", bound="JetstreamStats")
|
||||
LC = TypeVar("LC", bound="JetstreamStats")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -53,7 +53,7 @@ class JetstreamStats:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
accounts = d.pop("accounts", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
LC = TypeVar("LC", bound="LeafNode")
|
||||
TO = TypeVar("TO", bound="LeafNode")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -39,7 +39,7 @@ class LeafNode:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
auth_timeout = d.pop("auth_timeout", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TO = TypeVar("TO", bound="Mesh")
|
||||
ZP = TypeVar("ZP", bound="Mesh")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -25,7 +25,7 @@ class Mesh:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
mesh = d.pop("mesh", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
ZP = TypeVar("ZP", bound="MetaClusterInfo")
|
||||
EO = TypeVar("EO", bound="MetaClusterInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class MetaClusterInfo:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
cluster_size = d.pop("cluster_size", UNSET)
|
||||
|
||||
|
@ -11,7 +11,7 @@ from ..models.file_system_metadata import FileSystemMetadata
|
||||
from ..models.point_e_metadata import PointEMetadata
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
EO = TypeVar("EO", bound="Metadata")
|
||||
NY = TypeVar("NY", bound="Metadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -71,7 +71,7 @@ class Metadata:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
_cache = d.pop("cache", UNSET)
|
||||
cache: Union[Unset, CacheMetadata]
|
||||
|
@ -16,7 +16,7 @@ from ..models.scene_selection_type import SceneSelectionType
|
||||
from ..models.scene_tool_type import SceneToolType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
NY = TypeVar("NY", bound="start_path")
|
||||
QO = TypeVar("QO", bound="start_path")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -38,7 +38,7 @@ class start_path:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -66,7 +66,7 @@ class start_path:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
QO = TypeVar("QO", bound="move_path_pen")
|
||||
KX = TypeVar("KX", bound="move_path_pen")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -98,7 +98,7 @@ class move_path_pen:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
_path = d.pop("path", UNSET)
|
||||
path: Union[Unset, ModelingCmdId]
|
||||
@ -142,7 +142,7 @@ class move_path_pen:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
KX = TypeVar("KX", bound="extend_path")
|
||||
IZ = TypeVar("IZ", bound="extend_path")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -174,7 +174,7 @@ class extend_path:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
_path = d.pop("path", UNSET)
|
||||
path: Union[Unset, ModelingCmdId]
|
||||
@ -218,7 +218,7 @@ class extend_path:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
IZ = TypeVar("IZ", bound="extrude")
|
||||
WO = TypeVar("WO", bound="extrude")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -253,7 +253,7 @@ class extrude:
|
||||
return field_dict
|
||||
|
||||
@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()
|
||||
cap = d.pop("cap", UNSET)
|
||||
|
||||
@ -295,7 +295,7 @@ class extrude:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
WO = TypeVar("WO", bound="close_path")
|
||||
NK = TypeVar("NK", bound="close_path")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -321,7 +321,7 @@ class close_path:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WO], src_dict: Dict[str, Any]) -> WO:
|
||||
def from_dict(cls: Type[NK], src_dict: Dict[str, Any]) -> NK:
|
||||
d = src_dict.copy()
|
||||
path_id = d.pop("path_id", UNSET)
|
||||
|
||||
@ -352,7 +352,7 @@ class close_path:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
NK = TypeVar("NK", bound="camera_drag_start")
|
||||
UQ = TypeVar("UQ", bound="camera_drag_start")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -384,7 +384,7 @@ class camera_drag_start:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[NK], src_dict: Dict[str, Any]) -> NK:
|
||||
def from_dict(cls: Type[UQ], src_dict: Dict[str, Any]) -> UQ:
|
||||
d = src_dict.copy()
|
||||
_interaction = d.pop("interaction", UNSET)
|
||||
interaction: Union[Unset, CameraDragInteractionType]
|
||||
@ -428,7 +428,7 @@ class camera_drag_start:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UQ = TypeVar("UQ", bound="camera_drag_move")
|
||||
QE = TypeVar("QE", bound="camera_drag_move")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -464,7 +464,7 @@ class camera_drag_move:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UQ], src_dict: Dict[str, Any]) -> UQ:
|
||||
def from_dict(cls: Type[QE], src_dict: Dict[str, Any]) -> QE:
|
||||
d = src_dict.copy()
|
||||
_interaction = d.pop("interaction", UNSET)
|
||||
interaction: Union[Unset, CameraDragInteractionType]
|
||||
@ -511,7 +511,7 @@ class camera_drag_move:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
QE = TypeVar("QE", bound="camera_drag_end")
|
||||
XH = TypeVar("XH", bound="camera_drag_end")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -543,7 +543,7 @@ class camera_drag_end:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QE], src_dict: Dict[str, Any]) -> QE:
|
||||
def from_dict(cls: Type[XH], src_dict: Dict[str, Any]) -> XH:
|
||||
d = src_dict.copy()
|
||||
_interaction = d.pop("interaction", UNSET)
|
||||
interaction: Union[Unset, CameraDragInteractionType]
|
||||
@ -587,7 +587,7 @@ class camera_drag_end:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
XH = TypeVar("XH", bound="default_camera_look_at")
|
||||
KT = TypeVar("KT", bound="default_camera_look_at")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -624,7 +624,7 @@ class default_camera_look_at:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[XH], src_dict: Dict[str, Any]) -> XH:
|
||||
def from_dict(cls: Type[KT], src_dict: Dict[str, Any]) -> KT:
|
||||
d = src_dict.copy()
|
||||
_center = d.pop("center", UNSET)
|
||||
center: Union[Unset, Point3d]
|
||||
@ -676,7 +676,7 @@ class default_camera_look_at:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
KT = TypeVar("KT", bound="default_camera_zoom")
|
||||
BV = TypeVar("BV", bound="default_camera_zoom")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -702,7 +702,7 @@ class default_camera_zoom:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[KT], src_dict: Dict[str, Any]) -> KT:
|
||||
def from_dict(cls: Type[BV], src_dict: Dict[str, Any]) -> BV:
|
||||
d = src_dict.copy()
|
||||
magnitude = d.pop("magnitude", UNSET)
|
||||
|
||||
@ -733,7 +733,7 @@ class default_camera_zoom:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
BV = TypeVar("BV", bound="default_camera_enable_sketch_mode")
|
||||
GU = TypeVar("GU", bound="default_camera_enable_sketch_mode")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -782,7 +782,7 @@ class default_camera_enable_sketch_mode:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[BV], src_dict: Dict[str, Any]) -> BV:
|
||||
def from_dict(cls: Type[GU], src_dict: Dict[str, Any]) -> GU:
|
||||
d = src_dict.copy()
|
||||
animated = d.pop("animated", UNSET)
|
||||
|
||||
@ -843,7 +843,7 @@ class default_camera_enable_sketch_mode:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
GU = TypeVar("GU", bound="default_camera_disable_sketch_mode")
|
||||
SS = TypeVar("SS", bound="default_camera_disable_sketch_mode")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -865,7 +865,7 @@ class default_camera_disable_sketch_mode:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GU], src_dict: Dict[str, Any]) -> GU:
|
||||
def from_dict(cls: Type[SS], src_dict: Dict[str, Any]) -> SS:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -893,7 +893,7 @@ class default_camera_disable_sketch_mode:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
SS = TypeVar("SS", bound="export")
|
||||
UP = TypeVar("UP", bound="export")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -926,7 +926,7 @@ class export:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SS], src_dict: Dict[str, Any]) -> SS:
|
||||
def from_dict(cls: Type[UP], src_dict: Dict[str, Any]) -> UP:
|
||||
d = src_dict.copy()
|
||||
entity_ids = cast(List[str], d.pop("entity_ids", UNSET))
|
||||
|
||||
@ -965,7 +965,7 @@ class export:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UP = TypeVar("UP", bound="entity_get_parent_id")
|
||||
AZ = TypeVar("AZ", bound="entity_get_parent_id")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -991,7 +991,7 @@ class entity_get_parent_id:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UP], src_dict: Dict[str, Any]) -> UP:
|
||||
def from_dict(cls: Type[AZ], src_dict: Dict[str, Any]) -> AZ:
|
||||
d = src_dict.copy()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -1022,7 +1022,7 @@ class entity_get_parent_id:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
AZ = TypeVar("AZ", bound="entity_get_num_children")
|
||||
DJ = TypeVar("DJ", bound="entity_get_num_children")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1048,7 +1048,7 @@ class entity_get_num_children:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[AZ], src_dict: Dict[str, Any]) -> AZ:
|
||||
def from_dict(cls: Type[DJ], src_dict: Dict[str, Any]) -> DJ:
|
||||
d = src_dict.copy()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -1079,7 +1079,7 @@ class entity_get_num_children:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
DJ = TypeVar("DJ", bound="entity_get_child_uuid")
|
||||
WJ = TypeVar("WJ", bound="entity_get_child_uuid")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1109,7 +1109,7 @@ class entity_get_child_uuid:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[DJ], src_dict: Dict[str, Any]) -> DJ:
|
||||
def from_dict(cls: Type[WJ], src_dict: Dict[str, Any]) -> WJ:
|
||||
d = src_dict.copy()
|
||||
child_index = d.pop("child_index", UNSET)
|
||||
|
||||
@ -1143,7 +1143,7 @@ class entity_get_child_uuid:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
WJ = TypeVar("WJ", bound="entity_get_all_child_uuids")
|
||||
TR = TypeVar("TR", bound="entity_get_all_child_uuids")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1169,7 +1169,7 @@ class entity_get_all_child_uuids:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WJ], src_dict: Dict[str, Any]) -> WJ:
|
||||
def from_dict(cls: Type[TR], src_dict: Dict[str, Any]) -> TR:
|
||||
d = src_dict.copy()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -1200,7 +1200,7 @@ class entity_get_all_child_uuids:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
TR = TypeVar("TR", bound="edit_mode_enter")
|
||||
YD = TypeVar("YD", bound="edit_mode_enter")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1226,7 +1226,7 @@ class edit_mode_enter:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TR], src_dict: Dict[str, Any]) -> TR:
|
||||
def from_dict(cls: Type[YD], src_dict: Dict[str, Any]) -> YD:
|
||||
d = src_dict.copy()
|
||||
target = d.pop("target", UNSET)
|
||||
|
||||
@ -1257,7 +1257,7 @@ class edit_mode_enter:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
YD = TypeVar("YD", bound="edit_mode_exit")
|
||||
JF = TypeVar("JF", bound="edit_mode_exit")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1279,7 +1279,7 @@ class edit_mode_exit:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[YD], src_dict: Dict[str, Any]) -> YD:
|
||||
def from_dict(cls: Type[JF], src_dict: Dict[str, Any]) -> JF:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -1307,7 +1307,7 @@ class edit_mode_exit:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
JF = TypeVar("JF", bound="select_with_point")
|
||||
VP = TypeVar("VP", bound="select_with_point")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1339,7 +1339,7 @@ class select_with_point:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JF], src_dict: Dict[str, Any]) -> JF:
|
||||
def from_dict(cls: Type[VP], src_dict: Dict[str, Any]) -> VP:
|
||||
d = src_dict.copy()
|
||||
_selected_at_window = d.pop("selected_at_window", UNSET)
|
||||
selected_at_window: Union[Unset, Point2d]
|
||||
@ -1383,7 +1383,7 @@ class select_with_point:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
VP = TypeVar("VP", bound="select_clear")
|
||||
EL = TypeVar("EL", bound="select_clear")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1405,7 +1405,7 @@ class select_clear:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[VP], src_dict: Dict[str, Any]) -> VP:
|
||||
def from_dict(cls: Type[EL], src_dict: Dict[str, Any]) -> EL:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -1433,7 +1433,7 @@ class select_clear:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
EL = TypeVar("EL", bound="select_add")
|
||||
ZG = TypeVar("ZG", bound="select_add")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1461,7 +1461,7 @@ class select_add:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[EL], src_dict: Dict[str, Any]) -> EL:
|
||||
def from_dict(cls: Type[ZG], src_dict: Dict[str, Any]) -> ZG:
|
||||
d = src_dict.copy()
|
||||
entities = cast(List[str], d.pop("entities", UNSET))
|
||||
|
||||
@ -1492,7 +1492,7 @@ class select_add:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
ZG = TypeVar("ZG", bound="select_remove")
|
||||
LF = TypeVar("LF", bound="select_remove")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1520,7 +1520,7 @@ class select_remove:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ZG], src_dict: Dict[str, Any]) -> ZG:
|
||||
def from_dict(cls: Type[LF], src_dict: Dict[str, Any]) -> LF:
|
||||
d = src_dict.copy()
|
||||
entities = cast(List[str], d.pop("entities", UNSET))
|
||||
|
||||
@ -1551,7 +1551,7 @@ class select_remove:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LF = TypeVar("LF", bound="select_replace")
|
||||
CS = TypeVar("CS", bound="select_replace")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1579,7 +1579,7 @@ class select_replace:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LF], src_dict: Dict[str, Any]) -> LF:
|
||||
def from_dict(cls: Type[CS], src_dict: Dict[str, Any]) -> CS:
|
||||
d = src_dict.copy()
|
||||
entities = cast(List[str], d.pop("entities", UNSET))
|
||||
|
||||
@ -1610,7 +1610,7 @@ class select_replace:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
CS = TypeVar("CS", bound="select_get")
|
||||
GN = TypeVar("GN", bound="select_get")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1632,7 +1632,7 @@ class select_get:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CS], src_dict: Dict[str, Any]) -> CS:
|
||||
def from_dict(cls: Type[GN], src_dict: Dict[str, Any]) -> GN:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -1660,7 +1660,7 @@ class select_get:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
GN = TypeVar("GN", bound="highlight_set_entity")
|
||||
GD = TypeVar("GD", bound="highlight_set_entity")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1691,7 +1691,7 @@ class highlight_set_entity:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GN], src_dict: Dict[str, Any]) -> GN:
|
||||
def from_dict(cls: Type[GD], src_dict: Dict[str, Any]) -> GD:
|
||||
d = src_dict.copy()
|
||||
_selected_at_window = d.pop("selected_at_window", UNSET)
|
||||
selected_at_window: Union[Unset, Point2d]
|
||||
@ -1730,7 +1730,7 @@ class highlight_set_entity:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
GD = TypeVar("GD", bound="highlight_set_entities")
|
||||
VJ = TypeVar("VJ", bound="highlight_set_entities")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1758,7 +1758,7 @@ class highlight_set_entities:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GD], src_dict: Dict[str, Any]) -> GD:
|
||||
def from_dict(cls: Type[VJ], src_dict: Dict[str, Any]) -> VJ:
|
||||
d = src_dict.copy()
|
||||
entities = cast(List[str], d.pop("entities", UNSET))
|
||||
|
||||
@ -1789,7 +1789,7 @@ class highlight_set_entities:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
VJ = TypeVar("VJ", bound="new_annotation")
|
||||
OX = TypeVar("OX", bound="new_annotation")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1825,7 +1825,7 @@ class new_annotation:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[VJ], src_dict: Dict[str, Any]) -> VJ:
|
||||
def from_dict(cls: Type[OX], src_dict: Dict[str, Any]) -> OX:
|
||||
d = src_dict.copy()
|
||||
_annotation_type = d.pop("annotation_type", UNSET)
|
||||
annotation_type: Union[Unset, AnnotationType]
|
||||
@ -1872,7 +1872,7 @@ class new_annotation:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
OX = TypeVar("OX", bound="update_annotation")
|
||||
YW = TypeVar("YW", bound="update_annotation")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1903,7 +1903,7 @@ class update_annotation:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OX], src_dict: Dict[str, Any]) -> OX:
|
||||
def from_dict(cls: Type[YW], src_dict: Dict[str, Any]) -> YW:
|
||||
d = src_dict.copy()
|
||||
annotation_id = d.pop("annotation_id", UNSET)
|
||||
|
||||
@ -1942,7 +1942,7 @@ class update_annotation:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
YW = TypeVar("YW", bound="object_visible")
|
||||
QX = TypeVar("QX", bound="object_visible")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1972,7 +1972,7 @@ class object_visible:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[YW], src_dict: Dict[str, Any]) -> YW:
|
||||
def from_dict(cls: Type[QX], src_dict: Dict[str, Any]) -> QX:
|
||||
d = src_dict.copy()
|
||||
hidden = d.pop("hidden", UNSET)
|
||||
|
||||
@ -2006,7 +2006,7 @@ class object_visible:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
QX = TypeVar("QX", bound="get_entity_type")
|
||||
NO = TypeVar("NO", bound="get_entity_type")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2032,7 +2032,7 @@ class get_entity_type:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QX], src_dict: Dict[str, Any]) -> QX:
|
||||
def from_dict(cls: Type[NO], src_dict: Dict[str, Any]) -> NO:
|
||||
d = src_dict.copy()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -2063,7 +2063,7 @@ class get_entity_type:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
NO = TypeVar("NO", bound="solid3d_get_all_edge_faces")
|
||||
VX = TypeVar("VX", bound="solid3d_get_all_edge_faces")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2093,7 +2093,7 @@ class solid3d_get_all_edge_faces:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[NO], src_dict: Dict[str, Any]) -> NO:
|
||||
def from_dict(cls: Type[VX], src_dict: Dict[str, Any]) -> VX:
|
||||
d = src_dict.copy()
|
||||
edge_id = d.pop("edge_id", UNSET)
|
||||
|
||||
@ -2127,7 +2127,7 @@ class solid3d_get_all_edge_faces:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
VX = TypeVar("VX", bound="solid3d_get_all_opposite_edges")
|
||||
RG = TypeVar("RG", bound="solid3d_get_all_opposite_edges")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2162,7 +2162,7 @@ class solid3d_get_all_opposite_edges:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[VX], src_dict: Dict[str, Any]) -> VX:
|
||||
def from_dict(cls: Type[RG], src_dict: Dict[str, Any]) -> RG:
|
||||
d = src_dict.copy()
|
||||
_along_vector = d.pop("along_vector", UNSET)
|
||||
along_vector: Union[Unset, Point3d]
|
||||
@ -2204,7 +2204,7 @@ class solid3d_get_all_opposite_edges:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
RG = TypeVar("RG", bound="solid3d_get_opposite_edge")
|
||||
IT = TypeVar("IT", bound="solid3d_get_opposite_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2238,7 +2238,7 @@ class solid3d_get_opposite_edge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RG], src_dict: Dict[str, Any]) -> RG:
|
||||
def from_dict(cls: Type[IT], src_dict: Dict[str, Any]) -> IT:
|
||||
d = src_dict.copy()
|
||||
edge_id = d.pop("edge_id", UNSET)
|
||||
|
||||
@ -2275,7 +2275,7 @@ class solid3d_get_opposite_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
IT = TypeVar("IT", bound="solid3d_get_next_adjacent_edge")
|
||||
LD = TypeVar("LD", bound="solid3d_get_next_adjacent_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2309,7 +2309,7 @@ class solid3d_get_next_adjacent_edge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[IT], src_dict: Dict[str, Any]) -> IT:
|
||||
def from_dict(cls: Type[LD], src_dict: Dict[str, Any]) -> LD:
|
||||
d = src_dict.copy()
|
||||
edge_id = d.pop("edge_id", UNSET)
|
||||
|
||||
@ -2346,7 +2346,7 @@ class solid3d_get_next_adjacent_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LD = TypeVar("LD", bound="solid3d_get_prev_adjacent_edge")
|
||||
UA = TypeVar("UA", bound="solid3d_get_prev_adjacent_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2380,7 +2380,7 @@ class solid3d_get_prev_adjacent_edge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LD], src_dict: Dict[str, Any]) -> LD:
|
||||
def from_dict(cls: Type[UA], src_dict: Dict[str, Any]) -> UA:
|
||||
d = src_dict.copy()
|
||||
edge_id = d.pop("edge_id", UNSET)
|
||||
|
||||
@ -2417,7 +2417,7 @@ class solid3d_get_prev_adjacent_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UA = TypeVar("UA", bound="send_object")
|
||||
TN = TypeVar("TN", bound="send_object")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2447,7 +2447,7 @@ class send_object:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UA], src_dict: Dict[str, Any]) -> UA:
|
||||
def from_dict(cls: Type[TN], src_dict: Dict[str, Any]) -> TN:
|
||||
d = src_dict.copy()
|
||||
front = d.pop("front", UNSET)
|
||||
|
||||
@ -2481,7 +2481,7 @@ class send_object:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
TN = TypeVar("TN", bound="entity_set_opacity")
|
||||
MZ = TypeVar("MZ", bound="entity_set_opacity")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2511,7 +2511,7 @@ class entity_set_opacity:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TN], src_dict: Dict[str, Any]) -> TN:
|
||||
def from_dict(cls: Type[MZ], src_dict: Dict[str, Any]) -> MZ:
|
||||
d = src_dict.copy()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -2545,7 +2545,7 @@ class entity_set_opacity:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
MZ = TypeVar("MZ", bound="entity_fade")
|
||||
UG = TypeVar("UG", bound="entity_fade")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2579,7 +2579,7 @@ class entity_fade:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MZ], src_dict: Dict[str, Any]) -> MZ:
|
||||
def from_dict(cls: Type[UG], src_dict: Dict[str, Any]) -> UG:
|
||||
d = src_dict.copy()
|
||||
duration_seconds = d.pop("duration_seconds", UNSET)
|
||||
|
||||
@ -2616,7 +2616,7 @@ class entity_fade:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UG = TypeVar("UG", bound="make_plane")
|
||||
CY = TypeVar("CY", bound="make_plane")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2661,7 +2661,7 @@ class make_plane:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UG], src_dict: Dict[str, Any]) -> UG:
|
||||
def from_dict(cls: Type[CY], src_dict: Dict[str, Any]) -> CY:
|
||||
d = src_dict.copy()
|
||||
clobber = d.pop("clobber", UNSET)
|
||||
|
||||
@ -2719,7 +2719,7 @@ class make_plane:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
CY = TypeVar("CY", bound="plane_set_color")
|
||||
NZ = TypeVar("NZ", bound="plane_set_color")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2750,7 +2750,7 @@ class plane_set_color:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CY], src_dict: Dict[str, Any]) -> CY:
|
||||
def from_dict(cls: Type[NZ], src_dict: Dict[str, Any]) -> NZ:
|
||||
d = src_dict.copy()
|
||||
_color = d.pop("color", UNSET)
|
||||
color: Union[Unset, Color]
|
||||
@ -2789,7 +2789,7 @@ class plane_set_color:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
NZ = TypeVar("NZ", bound="set_tool")
|
||||
LI = TypeVar("LI", bound="set_tool")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2816,7 +2816,7 @@ class set_tool:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[NZ], src_dict: Dict[str, Any]) -> NZ:
|
||||
def from_dict(cls: Type[LI], src_dict: Dict[str, Any]) -> LI:
|
||||
d = src_dict.copy()
|
||||
_tool = d.pop("tool", UNSET)
|
||||
tool: Union[Unset, SceneToolType]
|
||||
@ -2852,19 +2852,21 @@ class set_tool:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LI = TypeVar("LI", bound="mouse_move")
|
||||
LO = TypeVar("LO", bound="mouse_move")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class mouse_move:
|
||||
"""Send a mouse move event.""" # noqa: E501
|
||||
|
||||
sequence: Union[Unset, int] = UNSET
|
||||
type: str = "mouse_move"
|
||||
window: Union[Unset, Point2d] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
sequence = self.sequence
|
||||
type = self.type
|
||||
if not isinstance(self.window, Unset):
|
||||
window = self.window
|
||||
@ -2872,6 +2874,8 @@ class mouse_move:
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if sequence is not UNSET:
|
||||
field_dict["sequence"] = sequence
|
||||
field_dict["type"] = type
|
||||
if window is not UNSET:
|
||||
field_dict["window"] = window
|
||||
@ -2879,8 +2883,10 @@ class mouse_move:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LI], src_dict: Dict[str, Any]) -> LI:
|
||||
def from_dict(cls: Type[LO], src_dict: Dict[str, Any]) -> LO:
|
||||
d = src_dict.copy()
|
||||
sequence = d.pop("sequence", UNSET)
|
||||
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
_window = d.pop("window", UNSET)
|
||||
@ -2891,6 +2897,7 @@ class mouse_move:
|
||||
window = _window # type: ignore[arg-type]
|
||||
|
||||
mouse_move = cls(
|
||||
sequence=sequence,
|
||||
type=type,
|
||||
window=window,
|
||||
)
|
||||
@ -2915,7 +2922,7 @@ class mouse_move:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LO = TypeVar("LO", bound="mouse_click")
|
||||
XJ = TypeVar("XJ", bound="mouse_click")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2942,7 +2949,7 @@ class mouse_click:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LO], src_dict: Dict[str, Any]) -> LO:
|
||||
def from_dict(cls: Type[XJ], src_dict: Dict[str, Any]) -> XJ:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -2978,7 +2985,7 @@ class mouse_click:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
XJ = TypeVar("XJ", bound="sketch_mode_enable")
|
||||
OW = TypeVar("OW", bound="sketch_mode_enable")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3012,7 +3019,7 @@ class sketch_mode_enable:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[XJ], src_dict: Dict[str, Any]) -> XJ:
|
||||
def from_dict(cls: Type[OW], src_dict: Dict[str, Any]) -> OW:
|
||||
d = src_dict.copy()
|
||||
animated = d.pop("animated", UNSET)
|
||||
|
||||
@ -3049,7 +3056,7 @@ class sketch_mode_enable:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
OW = TypeVar("OW", bound="sketch_mode_disable")
|
||||
JQ = TypeVar("JQ", bound="sketch_mode_disable")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3071,7 +3078,7 @@ class sketch_mode_disable:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OW], src_dict: Dict[str, Any]) -> OW:
|
||||
def from_dict(cls: Type[JQ], src_dict: Dict[str, Any]) -> JQ:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -3099,7 +3106,7 @@ class sketch_mode_disable:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
JQ = TypeVar("JQ", bound="curve_get_type")
|
||||
PQ = TypeVar("PQ", bound="curve_get_type")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3125,7 +3132,7 @@ class curve_get_type:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JQ], src_dict: Dict[str, Any]) -> JQ:
|
||||
def from_dict(cls: Type[PQ], src_dict: Dict[str, Any]) -> PQ:
|
||||
d = src_dict.copy()
|
||||
curve_id = d.pop("curve_id", UNSET)
|
||||
|
||||
@ -3156,7 +3163,7 @@ class curve_get_type:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
PQ = TypeVar("PQ", bound="curve_get_control_points")
|
||||
IM = TypeVar("IM", bound="curve_get_control_points")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3182,7 +3189,7 @@ class curve_get_control_points:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PQ], src_dict: Dict[str, Any]) -> PQ:
|
||||
def from_dict(cls: Type[IM], src_dict: Dict[str, Any]) -> IM:
|
||||
d = src_dict.copy()
|
||||
curve_id = d.pop("curve_id", UNSET)
|
||||
|
||||
@ -3213,7 +3220,7 @@ class curve_get_control_points:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
IM = TypeVar("IM", bound="take_snapshot")
|
||||
OU = TypeVar("OU", bound="take_snapshot")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3240,7 +3247,7 @@ class take_snapshot:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[IM], src_dict: Dict[str, Any]) -> IM:
|
||||
def from_dict(cls: Type[OU], src_dict: Dict[str, Any]) -> OU:
|
||||
d = src_dict.copy()
|
||||
_format = d.pop("format", UNSET)
|
||||
format: Union[Unset, ImageFormat]
|
||||
@ -3276,7 +3283,7 @@ class take_snapshot:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
OU = TypeVar("OU", bound="make_axes_gizmo")
|
||||
KL = TypeVar("KL", bound="make_axes_gizmo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3306,7 +3313,7 @@ class make_axes_gizmo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OU], src_dict: Dict[str, Any]) -> OU:
|
||||
def from_dict(cls: Type[KL], src_dict: Dict[str, Any]) -> KL:
|
||||
d = src_dict.copy()
|
||||
clobber = d.pop("clobber", UNSET)
|
||||
|
||||
@ -3340,7 +3347,7 @@ class make_axes_gizmo:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
KL = TypeVar("KL", bound="path_get_info")
|
||||
XI = TypeVar("XI", bound="path_get_info")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3366,7 +3373,7 @@ class path_get_info:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[KL], src_dict: Dict[str, Any]) -> KL:
|
||||
def from_dict(cls: Type[XI], src_dict: Dict[str, Any]) -> XI:
|
||||
d = src_dict.copy()
|
||||
path_id = d.pop("path_id", UNSET)
|
||||
|
||||
@ -3397,7 +3404,7 @@ class path_get_info:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
XI = TypeVar("XI", bound="handle_mouse_drag_start")
|
||||
PO = TypeVar("PO", bound="handle_mouse_drag_start")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3424,7 +3431,7 @@ class handle_mouse_drag_start:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[XI], src_dict: Dict[str, Any]) -> XI:
|
||||
def from_dict(cls: Type[PO], src_dict: Dict[str, Any]) -> PO:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -3460,19 +3467,21 @@ class handle_mouse_drag_start:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
PO = TypeVar("PO", bound="handle_mouse_drag_move")
|
||||
PS = TypeVar("PS", bound="handle_mouse_drag_move")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class handle_mouse_drag_move:
|
||||
"""Continue dragging mouse.""" # noqa: E501
|
||||
|
||||
sequence: Union[Unset, int] = UNSET
|
||||
type: str = "handle_mouse_drag_move"
|
||||
window: Union[Unset, Point2d] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
sequence = self.sequence
|
||||
type = self.type
|
||||
if not isinstance(self.window, Unset):
|
||||
window = self.window
|
||||
@ -3480,6 +3489,8 @@ class handle_mouse_drag_move:
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if sequence is not UNSET:
|
||||
field_dict["sequence"] = sequence
|
||||
field_dict["type"] = type
|
||||
if window is not UNSET:
|
||||
field_dict["window"] = window
|
||||
@ -3487,8 +3498,10 @@ class handle_mouse_drag_move:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PO], src_dict: Dict[str, Any]) -> PO:
|
||||
def from_dict(cls: Type[PS], src_dict: Dict[str, Any]) -> PS:
|
||||
d = src_dict.copy()
|
||||
sequence = d.pop("sequence", UNSET)
|
||||
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
_window = d.pop("window", UNSET)
|
||||
@ -3499,6 +3512,7 @@ class handle_mouse_drag_move:
|
||||
window = _window # type: ignore[arg-type]
|
||||
|
||||
handle_mouse_drag_move = cls(
|
||||
sequence=sequence,
|
||||
type=type,
|
||||
window=window,
|
||||
)
|
||||
@ -3523,7 +3537,7 @@ class handle_mouse_drag_move:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
PS = TypeVar("PS", bound="handle_mouse_drag_end")
|
||||
WR = TypeVar("WR", bound="handle_mouse_drag_end")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -3550,7 +3564,7 @@ class handle_mouse_drag_end:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PS], src_dict: Dict[str, Any]) -> PS:
|
||||
def from_dict(cls: Type[WR], src_dict: Dict[str, Any]) -> WR:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -3586,6 +3600,65 @@ class handle_mouse_drag_end:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
XL = TypeVar("XL", bound="remove_scene_objects")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class remove_scene_objects:
|
||||
"""Remove scene objects.""" # noqa: E501
|
||||
|
||||
object_ids: Union[Unset, List[str]] = UNSET
|
||||
type: str = "remove_scene_objects"
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
object_ids: Union[Unset, List[str]] = UNSET
|
||||
if not isinstance(self.object_ids, Unset):
|
||||
object_ids = self.object_ids
|
||||
type = self.type
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if object_ids is not UNSET:
|
||||
field_dict["object_ids"] = object_ids
|
||||
field_dict["type"] = type
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[XL], src_dict: Dict[str, Any]) -> XL:
|
||||
d = src_dict.copy()
|
||||
object_ids = cast(List[str], d.pop("object_ids", UNSET))
|
||||
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
remove_scene_objects = cls(
|
||||
object_ids=object_ids,
|
||||
type=type,
|
||||
)
|
||||
|
||||
remove_scene_objects.additional_properties = d
|
||||
return remove_scene_objects
|
||||
|
||||
@property
|
||||
def additional_keys(self) -> List[str]:
|
||||
return list(self.additional_properties.keys())
|
||||
|
||||
def __getitem__(self, key: str) -> Any:
|
||||
return self.additional_properties[key]
|
||||
|
||||
def __setitem__(self, key: str, value: Any) -> None:
|
||||
self.additional_properties[key] = value
|
||||
|
||||
def __delitem__(self, key: str) -> None:
|
||||
del self.additional_properties[key]
|
||||
|
||||
def __contains__(self, key: str) -> bool:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
ModelingCmd = Union[
|
||||
start_path,
|
||||
move_path_pen,
|
||||
@ -3641,4 +3714,5 @@ ModelingCmd = Union[
|
||||
handle_mouse_drag_start,
|
||||
handle_mouse_drag_move,
|
||||
handle_mouse_drag_end,
|
||||
remove_scene_objects,
|
||||
]
|
||||
|
@ -6,7 +6,7 @@ from ..models.modeling_cmd import ModelingCmd
|
||||
from ..models.modeling_cmd_id import ModelingCmdId
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
WR = TypeVar("WR", bound="ModelingCmdReq")
|
||||
ZX = TypeVar("ZX", bound="ModelingCmdReq")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class ModelingCmdReq:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WR], src_dict: Dict[str, Any]) -> WR:
|
||||
def from_dict(cls: Type[ZX], src_dict: Dict[str, Any]) -> ZX:
|
||||
d = src_dict.copy()
|
||||
_cmd = d.pop("cmd", UNSET)
|
||||
cmd: Union[Unset, ModelingCmd]
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.modeling_cmd_req import ModelingCmdReq
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
XL = TypeVar("XL", bound="ModelingCmdReqBatch")
|
||||
FT = TypeVar("FT", bound="ModelingCmdReqBatch")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class ModelingCmdReqBatch:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[XL], src_dict: Dict[str, Any]) -> XL:
|
||||
def from_dict(cls: Type[FT], src_dict: Dict[str, Any]) -> FT:
|
||||
d = src_dict.copy()
|
||||
_cmds = d.pop("cmds", UNSET)
|
||||
if isinstance(_cmds, Unset):
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
ZX = TypeVar("ZX", bound="ModelingError")
|
||||
NX = TypeVar("NX", bound="ModelingError")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -39,7 +39,7 @@ class ModelingError:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ZX], src_dict: Dict[str, Any]) -> ZX:
|
||||
def from_dict(cls: Type[NX], src_dict: Dict[str, Any]) -> NX:
|
||||
d = src_dict.copy()
|
||||
error_code = d.pop("error_code", UNSET)
|
||||
|
||||
|
@ -13,7 +13,7 @@ success = OkModelingCmdResponse
|
||||
error = ModelingError
|
||||
|
||||
|
||||
FT = TypeVar("FT", bound="cancelled")
|
||||
SC = TypeVar("SC", bound="cancelled")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class cancelled:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FT], src_dict: Dict[str, Any]) -> FT:
|
||||
def from_dict(cls: Type[SC], src_dict: Dict[str, Any]) -> SC:
|
||||
d = src_dict.copy()
|
||||
_what_failed = d.pop("what_failed", UNSET)
|
||||
what_failed: Union[Unset, ModelingCmdId]
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.modeling_outcome import ModelingOutcome
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
NX = TypeVar("NX", bound="ModelingOutcomes")
|
||||
TX = TypeVar("TX", bound="ModelingOutcomes")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class ModelingOutcomes:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[NX], src_dict: Dict[str, Any]) -> NX:
|
||||
def from_dict(cls: Type[TX], src_dict: Dict[str, Any]) -> TX:
|
||||
d = src_dict.copy()
|
||||
_outcomes = d.pop("outcomes", UNSET)
|
||||
if isinstance(_outcomes, Unset):
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
SC = TypeVar("SC", bound="MouseClick")
|
||||
JA = TypeVar("JA", bound="MouseClick")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class MouseClick:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SC], src_dict: Dict[str, Any]) -> SC:
|
||||
def from_dict(cls: Type[JA], src_dict: Dict[str, Any]) -> JA:
|
||||
d = src_dict.copy()
|
||||
entities_modified = cast(List[str], d.pop("entities_modified", UNSET))
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.country_code import CountryCode
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TX = TypeVar("TX", bound="NewAddress")
|
||||
SK = TypeVar("SK", bound="NewAddress")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -53,7 +53,7 @@ class NewAddress:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TX], src_dict: Dict[str, Any]) -> TX:
|
||||
def from_dict(cls: Type[SK], src_dict: Dict[str, Any]) -> SK:
|
||||
d = src_dict.copy()
|
||||
city = d.pop("city", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
JA = TypeVar("JA", bound="OAuth2ClientInfo")
|
||||
UK = TypeVar("UK", bound="OAuth2ClientInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class OAuth2ClientInfo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JA], src_dict: Dict[str, Any]) -> JA:
|
||||
def from_dict(cls: Type[UK], src_dict: Dict[str, Any]) -> UK:
|
||||
d = src_dict.copy()
|
||||
csrf_token = d.pop("csrf_token", UNSET)
|
||||
|
||||
|
@ -23,7 +23,7 @@ from ..models.solid3d_get_prev_adjacent_edge import Solid3dGetPrevAdjacentEdge
|
||||
from ..models.take_snapshot import TakeSnapshot
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
SK = TypeVar("SK", bound="empty")
|
||||
CX = TypeVar("CX", bound="empty")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -45,7 +45,7 @@ class empty:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SK], src_dict: Dict[str, Any]) -> SK:
|
||||
def from_dict(cls: Type[CX], src_dict: Dict[str, Any]) -> CX:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -73,7 +73,7 @@ class empty:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UK = TypeVar("UK", bound="export")
|
||||
MT = TypeVar("MT", bound="export")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -100,7 +100,7 @@ class export:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UK], src_dict: Dict[str, Any]) -> UK:
|
||||
def from_dict(cls: Type[MT], src_dict: Dict[str, Any]) -> MT:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, Export]
|
||||
@ -136,7 +136,7 @@ class export:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
CX = TypeVar("CX", bound="select_with_point")
|
||||
LJ = TypeVar("LJ", bound="select_with_point")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -163,7 +163,7 @@ class select_with_point:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CX], src_dict: Dict[str, Any]) -> CX:
|
||||
def from_dict(cls: Type[LJ], src_dict: Dict[str, Any]) -> LJ:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, SelectWithPoint]
|
||||
@ -199,7 +199,7 @@ class select_with_point:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
MT = TypeVar("MT", bound="highlight_set_entity")
|
||||
TF = TypeVar("TF", bound="highlight_set_entity")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -226,7 +226,7 @@ class highlight_set_entity:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MT], src_dict: Dict[str, Any]) -> MT:
|
||||
def from_dict(cls: Type[TF], src_dict: Dict[str, Any]) -> TF:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, HighlightSetEntity]
|
||||
@ -262,7 +262,7 @@ class highlight_set_entity:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LJ = TypeVar("LJ", bound="entity_get_child_uuid")
|
||||
HF = TypeVar("HF", bound="entity_get_child_uuid")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -289,7 +289,7 @@ class entity_get_child_uuid:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LJ], src_dict: Dict[str, Any]) -> LJ:
|
||||
def from_dict(cls: Type[HF], src_dict: Dict[str, Any]) -> HF:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, EntityGetChildUuid]
|
||||
@ -325,7 +325,7 @@ class entity_get_child_uuid:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
TF = TypeVar("TF", bound="entity_get_num_children")
|
||||
JD = TypeVar("JD", bound="entity_get_num_children")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -352,7 +352,7 @@ class entity_get_num_children:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TF], src_dict: Dict[str, Any]) -> TF:
|
||||
def from_dict(cls: Type[JD], src_dict: Dict[str, Any]) -> JD:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, EntityGetNumChildren]
|
||||
@ -388,7 +388,7 @@ class entity_get_num_children:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
HF = TypeVar("HF", bound="entity_get_parent_id")
|
||||
RZ = TypeVar("RZ", bound="entity_get_parent_id")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -415,7 +415,7 @@ class entity_get_parent_id:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[HF], src_dict: Dict[str, Any]) -> HF:
|
||||
def from_dict(cls: Type[RZ], src_dict: Dict[str, Any]) -> RZ:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, EntityGetParentId]
|
||||
@ -451,7 +451,7 @@ class entity_get_parent_id:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
JD = TypeVar("JD", bound="entity_get_all_child_uuids")
|
||||
BH = TypeVar("BH", bound="entity_get_all_child_uuids")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -478,7 +478,7 @@ class entity_get_all_child_uuids:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JD], src_dict: Dict[str, Any]) -> JD:
|
||||
def from_dict(cls: Type[BH], src_dict: Dict[str, Any]) -> BH:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, EntityGetAllChildUuids]
|
||||
@ -514,7 +514,7 @@ class entity_get_all_child_uuids:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
RZ = TypeVar("RZ", bound="select_get")
|
||||
SX = TypeVar("SX", bound="select_get")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -541,7 +541,7 @@ class select_get:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RZ], src_dict: Dict[str, Any]) -> RZ:
|
||||
def from_dict(cls: Type[SX], src_dict: Dict[str, Any]) -> SX:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, SelectGet]
|
||||
@ -577,7 +577,7 @@ class select_get:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
BH = TypeVar("BH", bound="get_entity_type")
|
||||
CN = TypeVar("CN", bound="get_entity_type")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -604,7 +604,7 @@ class get_entity_type:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[BH], src_dict: Dict[str, Any]) -> BH:
|
||||
def from_dict(cls: Type[CN], src_dict: Dict[str, Any]) -> CN:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, GetEntityType]
|
||||
@ -640,7 +640,7 @@ class get_entity_type:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
SX = TypeVar("SX", bound="solid3d_get_all_edge_faces")
|
||||
GS = TypeVar("GS", bound="solid3d_get_all_edge_faces")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -667,7 +667,7 @@ class solid3d_get_all_edge_faces:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SX], src_dict: Dict[str, Any]) -> SX:
|
||||
def from_dict(cls: Type[GS], src_dict: Dict[str, Any]) -> GS:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, Solid3dGetAllEdgeFaces]
|
||||
@ -703,7 +703,7 @@ class solid3d_get_all_edge_faces:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
CN = TypeVar("CN", bound="solid3d_get_all_opposite_edges")
|
||||
SO = TypeVar("SO", bound="solid3d_get_all_opposite_edges")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -730,7 +730,7 @@ class solid3d_get_all_opposite_edges:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CN], src_dict: Dict[str, Any]) -> CN:
|
||||
def from_dict(cls: Type[SO], src_dict: Dict[str, Any]) -> SO:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, Solid3dGetAllOppositeEdges]
|
||||
@ -766,7 +766,7 @@ class solid3d_get_all_opposite_edges:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
GS = TypeVar("GS", bound="solid3d_get_opposite_edge")
|
||||
ZS = TypeVar("ZS", bound="solid3d_get_opposite_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -793,7 +793,7 @@ class solid3d_get_opposite_edge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GS], src_dict: Dict[str, Any]) -> GS:
|
||||
def from_dict(cls: Type[ZS], src_dict: Dict[str, Any]) -> ZS:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, Solid3dGetOppositeEdge]
|
||||
@ -829,7 +829,7 @@ class solid3d_get_opposite_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
SO = TypeVar("SO", bound="solid3d_get_prev_adjacent_edge")
|
||||
AM = TypeVar("AM", bound="solid3d_get_prev_adjacent_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -856,7 +856,7 @@ class solid3d_get_prev_adjacent_edge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SO], src_dict: Dict[str, Any]) -> SO:
|
||||
def from_dict(cls: Type[AM], src_dict: Dict[str, Any]) -> AM:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, Solid3dGetPrevAdjacentEdge]
|
||||
@ -892,7 +892,7 @@ class solid3d_get_prev_adjacent_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
ZS = TypeVar("ZS", bound="solid3d_get_next_adjacent_edge")
|
||||
GK = TypeVar("GK", bound="solid3d_get_next_adjacent_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -919,7 +919,7 @@ class solid3d_get_next_adjacent_edge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ZS], src_dict: Dict[str, Any]) -> ZS:
|
||||
def from_dict(cls: Type[GK], src_dict: Dict[str, Any]) -> GK:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, Solid3dGetNextAdjacentEdge]
|
||||
@ -955,7 +955,7 @@ class solid3d_get_next_adjacent_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
AM = TypeVar("AM", bound="mouse_click")
|
||||
SG = TypeVar("SG", bound="mouse_click")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -982,7 +982,7 @@ class mouse_click:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[AM], src_dict: Dict[str, Any]) -> AM:
|
||||
def from_dict(cls: Type[SG], src_dict: Dict[str, Any]) -> SG:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, MouseClick]
|
||||
@ -1018,7 +1018,7 @@ class mouse_click:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
GK = TypeVar("GK", bound="curve_get_type")
|
||||
QZ = TypeVar("QZ", bound="curve_get_type")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1045,7 +1045,7 @@ class curve_get_type:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GK], src_dict: Dict[str, Any]) -> GK:
|
||||
def from_dict(cls: Type[QZ], src_dict: Dict[str, Any]) -> QZ:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, CurveGetType]
|
||||
@ -1081,7 +1081,7 @@ class curve_get_type:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
SG = TypeVar("SG", bound="curve_get_control_points")
|
||||
SY = TypeVar("SY", bound="curve_get_control_points")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1108,7 +1108,7 @@ class curve_get_control_points:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SG], src_dict: Dict[str, Any]) -> SG:
|
||||
def from_dict(cls: Type[SY], src_dict: Dict[str, Any]) -> SY:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, CurveGetControlPoints]
|
||||
@ -1144,7 +1144,7 @@ class curve_get_control_points:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
QZ = TypeVar("QZ", bound="take_snapshot")
|
||||
YK = TypeVar("YK", bound="take_snapshot")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1171,7 +1171,7 @@ class take_snapshot:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QZ], src_dict: Dict[str, Any]) -> QZ:
|
||||
def from_dict(cls: Type[YK], src_dict: Dict[str, Any]) -> YK:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, TakeSnapshot]
|
||||
@ -1207,7 +1207,7 @@ class take_snapshot:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
SY = TypeVar("SY", bound="path_get_info")
|
||||
WS = TypeVar("WS", bound="path_get_info")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1234,7 +1234,7 @@ class path_get_info:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SY], src_dict: Dict[str, Any]) -> SY:
|
||||
def from_dict(cls: Type[WS], src_dict: Dict[str, Any]) -> WS:
|
||||
d = src_dict.copy()
|
||||
_data = d.pop("data", UNSET)
|
||||
data: Union[Unset, PathGetInfo]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
YK = TypeVar("YK", bound="ice_server_info")
|
||||
SL = TypeVar("SL", bound="ice_server_info")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -30,7 +30,7 @@ class ice_server_info:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[YK], src_dict: Dict[str, Any]) -> YK:
|
||||
def from_dict(cls: Type[SL], src_dict: Dict[str, Any]) -> SL:
|
||||
d = src_dict.copy()
|
||||
data = d.pop("data", UNSET)
|
||||
type = d.pop("type", UNSET)
|
||||
@ -60,7 +60,7 @@ class ice_server_info:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
WS = TypeVar("WS", bound="trickle_ice")
|
||||
MK = TypeVar("MK", bound="trickle_ice")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -86,7 +86,7 @@ class trickle_ice:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WS], src_dict: Dict[str, Any]) -> WS:
|
||||
def from_dict(cls: Type[MK], src_dict: Dict[str, Any]) -> MK:
|
||||
d = src_dict.copy()
|
||||
data = d.pop("data", UNSET)
|
||||
type = d.pop("type", UNSET)
|
||||
@ -116,7 +116,7 @@ class trickle_ice:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
SL = TypeVar("SL", bound="sdp_answer")
|
||||
TU = TypeVar("TU", bound="sdp_answer")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -142,7 +142,7 @@ class sdp_answer:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SL], src_dict: Dict[str, Any]) -> SL:
|
||||
def from_dict(cls: Type[TU], src_dict: Dict[str, Any]) -> TU:
|
||||
d = src_dict.copy()
|
||||
data = d.pop("data", UNSET)
|
||||
type = d.pop("type", UNSET)
|
||||
@ -172,7 +172,7 @@ class sdp_answer:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
MK = TypeVar("MK", bound="modeling")
|
||||
FY = TypeVar("FY", bound="modeling")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -198,7 +198,7 @@ class modeling:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MK], src_dict: Dict[str, Any]) -> MK:
|
||||
def from_dict(cls: Type[FY], src_dict: Dict[str, Any]) -> FY:
|
||||
d = src_dict.copy()
|
||||
data = d.pop("data", UNSET)
|
||||
type = d.pop("type", UNSET)
|
||||
@ -228,7 +228,7 @@ class modeling:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
TU = TypeVar("TU", bound="export")
|
||||
FD = TypeVar("FD", bound="export")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -254,7 +254,7 @@ class export:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TU], src_dict: Dict[str, Any]) -> TU:
|
||||
def from_dict(cls: Type[FD], src_dict: Dict[str, Any]) -> FD:
|
||||
d = src_dict.copy()
|
||||
data = d.pop("data", UNSET)
|
||||
type = d.pop("type", UNSET)
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FY = TypeVar("FY", bound="Onboarding")
|
||||
TZ = TypeVar("TZ", bound="Onboarding")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -37,7 +37,7 @@ class Onboarding:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FY], src_dict: Dict[str, Any]) -> FY:
|
||||
def from_dict(cls: Type[TZ], src_dict: Dict[str, Any]) -> TZ:
|
||||
d = src_dict.copy()
|
||||
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
|
||||
|
||||
FD = TypeVar("FD", bound="OutputFile")
|
||||
AX = TypeVar("AX", bound="OutputFile")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -31,7 +31,7 @@ class OutputFile:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FD], src_dict: Dict[str, Any]) -> FD:
|
||||
def from_dict(cls: Type[AX], src_dict: Dict[str, Any]) -> AX:
|
||||
d = src_dict.copy()
|
||||
contents = d.pop("contents", UNSET)
|
||||
|
||||
|
@ -10,7 +10,7 @@ from ..models.stl_storage import StlStorage
|
||||
from ..models.system import System
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TZ = TypeVar("TZ", bound="fbx")
|
||||
RQ = TypeVar("RQ", bound="fbx")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -37,7 +37,7 @@ class fbx:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TZ], src_dict: Dict[str, Any]) -> TZ:
|
||||
def from_dict(cls: Type[RQ], src_dict: Dict[str, Any]) -> RQ:
|
||||
d = src_dict.copy()
|
||||
_storage = d.pop("storage", UNSET)
|
||||
storage: Union[Unset, FbxStorage]
|
||||
@ -73,7 +73,7 @@ class fbx:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
AX = TypeVar("AX", bound="gltf")
|
||||
ZL = TypeVar("ZL", bound="gltf")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -105,7 +105,7 @@ class gltf:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[AX], src_dict: Dict[str, Any]) -> AX:
|
||||
def from_dict(cls: Type[ZL], src_dict: Dict[str, Any]) -> ZL:
|
||||
d = src_dict.copy()
|
||||
_presentation = d.pop("presentation", UNSET)
|
||||
presentation: Union[Unset, GltfPresentation]
|
||||
@ -149,7 +149,7 @@ class gltf:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
RQ = TypeVar("RQ", bound="obj")
|
||||
CM = TypeVar("CM", bound="obj")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -176,7 +176,7 @@ class obj:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RQ], src_dict: Dict[str, Any]) -> RQ:
|
||||
def from_dict(cls: Type[CM], src_dict: Dict[str, Any]) -> CM:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -212,7 +212,7 @@ class obj:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
ZL = TypeVar("ZL", bound="ply")
|
||||
OS = TypeVar("OS", bound="ply")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -244,7 +244,7 @@ class ply:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ZL], src_dict: Dict[str, Any]) -> ZL:
|
||||
def from_dict(cls: Type[OS], src_dict: Dict[str, Any]) -> OS:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -288,7 +288,7 @@ class ply:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
CM = TypeVar("CM", bound="step")
|
||||
WP = TypeVar("WP", bound="step")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -315,7 +315,7 @@ class step:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CM], src_dict: Dict[str, Any]) -> CM:
|
||||
def from_dict(cls: Type[WP], src_dict: Dict[str, Any]) -> WP:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -351,7 +351,7 @@ class step:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
OS = TypeVar("OS", bound="stl")
|
||||
XO = TypeVar("XO", bound="stl")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -383,7 +383,7 @@ class stl:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OS], src_dict: Dict[str, Any]) -> OS:
|
||||
def from_dict(cls: Type[XO], src_dict: Dict[str, Any]) -> XO:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
WP = TypeVar("WP", bound="PathGetInfo")
|
||||
LN = TypeVar("LN", bound="PathGetInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class PathGetInfo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WP], src_dict: Dict[str, Any]) -> WP:
|
||||
def from_dict(cls: Type[LN], src_dict: Dict[str, Any]) -> LN:
|
||||
d = src_dict.copy()
|
||||
from ..models.path_segment_info import PathSegmentInfo
|
||||
|
||||
|
@ -6,7 +6,7 @@ from ..models.point2d import Point2d
|
||||
from ..models.point3d import Point3d
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
XO = TypeVar("XO", bound="line")
|
||||
KR = TypeVar("KR", bound="line")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class line:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[XO], src_dict: Dict[str, Any]) -> XO:
|
||||
def from_dict(cls: Type[KR], src_dict: Dict[str, Any]) -> KR:
|
||||
d = src_dict.copy()
|
||||
_end = d.pop("end", UNSET)
|
||||
end: Union[Unset, Point3d]
|
||||
@ -69,7 +69,7 @@ class line:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LN = TypeVar("LN", bound="arc")
|
||||
MG = TypeVar("MG", bound="arc")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -108,7 +108,7 @@ class arc:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LN], src_dict: Dict[str, Any]) -> LN:
|
||||
def from_dict(cls: Type[MG], src_dict: Dict[str, Any]) -> MG:
|
||||
d = src_dict.copy()
|
||||
angle_end = d.pop("angle_end", UNSET)
|
||||
|
||||
@ -153,7 +153,7 @@ class arc:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
KR = TypeVar("KR", bound="bezier")
|
||||
UE = TypeVar("UE", bound="bezier")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -190,7 +190,7 @@ class bezier:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[KR], src_dict: Dict[str, Any]) -> KR:
|
||||
def from_dict(cls: Type[UE], src_dict: Dict[str, Any]) -> UE:
|
||||
d = src_dict.copy()
|
||||
_control1 = d.pop("control1", UNSET)
|
||||
control1: Union[Unset, Point3d]
|
||||
|
@ -6,7 +6,7 @@ from ..models.modeling_cmd_id import ModelingCmdId
|
||||
from ..models.path_command import PathCommand
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
MG = TypeVar("MG", bound="PathSegmentInfo")
|
||||
BF = TypeVar("BF", bound="PathSegmentInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class PathSegmentInfo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MG], src_dict: Dict[str, Any]) -> MG:
|
||||
def from_dict(cls: Type[BF], src_dict: Dict[str, Any]) -> BF:
|
||||
d = src_dict.copy()
|
||||
_command = d.pop("command", UNSET)
|
||||
command: Union[Unset, PathCommand]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
UE = TypeVar("UE", bound="PaymentIntent")
|
||||
UU = TypeVar("UU", bound="PaymentIntent")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class PaymentIntent:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UE], src_dict: Dict[str, Any]) -> UE:
|
||||
def from_dict(cls: Type[UU], src_dict: Dict[str, Any]) -> UU:
|
||||
d = src_dict.copy()
|
||||
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 ..types import UNSET, Unset
|
||||
|
||||
BF = TypeVar("BF", bound="PaymentMethod")
|
||||
MB = TypeVar("MB", bound="PaymentMethod")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -58,7 +58,7 @@ class PaymentMethod:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[BF], src_dict: Dict[str, Any]) -> BF:
|
||||
def from_dict(cls: Type[MB], src_dict: Dict[str, Any]) -> MB:
|
||||
d = src_dict.copy()
|
||||
_billing_info = d.pop("billing_info", UNSET)
|
||||
billing_info: Union[Unset, BillingInfo]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
UU = TypeVar("UU", bound="PaymentMethodCardChecks")
|
||||
TB = TypeVar("TB", bound="PaymentMethodCardChecks")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class PaymentMethodCardChecks:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UU], src_dict: Dict[str, Any]) -> UU:
|
||||
def from_dict(cls: Type[TB], src_dict: Dict[str, Any]) -> TB:
|
||||
d = src_dict.copy()
|
||||
address_line1_check = d.pop("address_line1_check", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
MB = TypeVar("MB", bound="PluginsInfo")
|
||||
FJ = TypeVar("FJ", bound="PluginsInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -50,7 +50,7 @@ class PluginsInfo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MB], src_dict: Dict[str, Any]) -> MB:
|
||||
def from_dict(cls: Type[FJ], src_dict: Dict[str, Any]) -> FJ:
|
||||
d = src_dict.copy()
|
||||
authorization = cast(List[str], d.pop("authorization", UNSET))
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TB = TypeVar("TB", bound="Point2d")
|
||||
HB = TypeVar("HB", bound="Point2d")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -31,7 +31,7 @@ class Point2d:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TB], src_dict: Dict[str, Any]) -> TB:
|
||||
def from_dict(cls: Type[HB], src_dict: Dict[str, Any]) -> HB:
|
||||
d = src_dict.copy()
|
||||
x = d.pop("x", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FJ = TypeVar("FJ", bound="Point3d")
|
||||
SF = TypeVar("SF", bound="Point3d")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class Point3d:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FJ], src_dict: Dict[str, Any]) -> FJ:
|
||||
def from_dict(cls: Type[SF], src_dict: Dict[str, Any]) -> SF:
|
||||
d = src_dict.copy()
|
||||
x = d.pop("x", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
HB = TypeVar("HB", bound="PointEMetadata")
|
||||
DU = TypeVar("DU", bound="PointEMetadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -29,7 +29,7 @@ class PointEMetadata:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[HB], src_dict: Dict[str, Any]) -> HB:
|
||||
def from_dict(cls: Type[DU], src_dict: Dict[str, Any]) -> DU:
|
||||
d = src_dict.copy()
|
||||
ok = d.pop("ok", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
SF = TypeVar("SF", bound="Pong")
|
||||
BM = TypeVar("BM", bound="Pong")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class Pong:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SF], src_dict: Dict[str, Any]) -> SF:
|
||||
def from_dict(cls: Type[BM], src_dict: Dict[str, Any]) -> BM:
|
||||
d = src_dict.copy()
|
||||
message = d.pop("message", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
DU = TypeVar("DU", bound="RawFile")
|
||||
TY = TypeVar("TY", bound="RawFile")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class RawFile:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[DU], src_dict: Dict[str, Any]) -> DU:
|
||||
def from_dict(cls: Type[TY], src_dict: Dict[str, Any]) -> TY:
|
||||
d = src_dict.copy()
|
||||
contents = cast(List[int], d.pop("contents", UNSET))
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.index_info import IndexInfo
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
BM = TypeVar("BM", bound="RegistryServiceConfig")
|
||||
NC = TypeVar("NC", bound="RegistryServiceConfig")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -67,7 +67,7 @@ class RegistryServiceConfig:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[BM], src_dict: Dict[str, Any]) -> BM:
|
||||
def from_dict(cls: Type[NC], src_dict: Dict[str, Any]) -> NC:
|
||||
d = src_dict.copy()
|
||||
allow_nondistributable_artifacts_cid_rs = cast(
|
||||
List[str], d.pop("allow_nondistributable_artifacts_cid_rs", UNSET)
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TY = TypeVar("TY", bound="RtcIceCandidateInit")
|
||||
GP = TypeVar("GP", bound="RtcIceCandidateInit")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -39,7 +39,7 @@ class RtcIceCandidateInit:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TY], src_dict: Dict[str, Any]) -> TY:
|
||||
def from_dict(cls: Type[GP], src_dict: Dict[str, Any]) -> GP:
|
||||
d = src_dict.copy()
|
||||
candidate = d.pop("candidate", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.rtc_sdp_type import RtcSdpType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
NC = TypeVar("NC", bound="RtcSessionDescription")
|
||||
FF = TypeVar("FF", bound="RtcSessionDescription")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class RtcSessionDescription:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[NC], src_dict: Dict[str, Any]) -> NC:
|
||||
def from_dict(cls: Type[FF], src_dict: Dict[str, Any]) -> FF:
|
||||
d = src_dict.copy()
|
||||
sdp = d.pop("sdp", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
GP = TypeVar("GP", bound="Runtime")
|
||||
YO = TypeVar("YO", bound="Runtime")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class Runtime:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GP], src_dict: Dict[str, Any]) -> GP:
|
||||
def from_dict(cls: Type[YO], src_dict: Dict[str, Any]) -> YO:
|
||||
d = src_dict.copy()
|
||||
path = d.pop("path", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FF = TypeVar("FF", bound="SelectGet")
|
||||
FS = TypeVar("FS", bound="SelectGet")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -29,7 +29,7 @@ class SelectGet:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FF], src_dict: Dict[str, Any]) -> FF:
|
||||
def from_dict(cls: Type[FS], src_dict: Dict[str, Any]) -> FS:
|
||||
d = src_dict.copy()
|
||||
entity_ids = cast(List[str], d.pop("entity_ids", UNSET))
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
YO = TypeVar("YO", bound="SelectWithPoint")
|
||||
WN = TypeVar("WN", bound="SelectWithPoint")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class SelectWithPoint:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[YO], src_dict: Dict[str, Any]) -> YO:
|
||||
def from_dict(cls: Type[WN], src_dict: Dict[str, Any]) -> WN:
|
||||
d = src_dict.copy()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
|
@ -7,7 +7,7 @@ from dateutil.parser import isoparse
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FS = TypeVar("FS", bound="Session")
|
||||
EQ = TypeVar("EQ", bound="Session")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -58,7 +58,7 @@ class Session:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FS], src_dict: Dict[str, Any]) -> FS:
|
||||
def from_dict(cls: Type[EQ], src_dict: Dict[str, Any]) -> EQ:
|
||||
d = src_dict.copy()
|
||||
_created_at = d.pop("created_at", UNSET)
|
||||
created_at: Union[Unset, datetime.datetime]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
WN = TypeVar("WN", bound="Solid3dGetAllEdgeFaces")
|
||||
UW = TypeVar("UW", bound="Solid3dGetAllEdgeFaces")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -29,7 +29,7 @@ class Solid3dGetAllEdgeFaces:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WN], src_dict: Dict[str, Any]) -> WN:
|
||||
def from_dict(cls: Type[UW], src_dict: Dict[str, Any]) -> UW:
|
||||
d = src_dict.copy()
|
||||
faces = cast(List[str], d.pop("faces", UNSET))
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
EQ = TypeVar("EQ", bound="Solid3dGetAllOppositeEdges")
|
||||
MD = TypeVar("MD", bound="Solid3dGetAllOppositeEdges")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -29,7 +29,7 @@ class Solid3dGetAllOppositeEdges:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[EQ], src_dict: Dict[str, Any]) -> EQ:
|
||||
def from_dict(cls: Type[MD], src_dict: Dict[str, Any]) -> MD:
|
||||
d = src_dict.copy()
|
||||
edges = cast(List[str], d.pop("edges", UNSET))
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
UW = TypeVar("UW", bound="Solid3dGetNextAdjacentEdge")
|
||||
HD = TypeVar("HD", bound="Solid3dGetNextAdjacentEdge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class Solid3dGetNextAdjacentEdge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UW], src_dict: Dict[str, Any]) -> UW:
|
||||
def from_dict(cls: Type[HD], src_dict: Dict[str, Any]) -> HD:
|
||||
d = src_dict.copy()
|
||||
edge = d.pop("edge", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
MD = TypeVar("MD", bound="Solid3dGetOppositeEdge")
|
||||
UJ = TypeVar("UJ", bound="Solid3dGetOppositeEdge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class Solid3dGetOppositeEdge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MD], src_dict: Dict[str, Any]) -> MD:
|
||||
def from_dict(cls: Type[UJ], src_dict: Dict[str, Any]) -> UJ:
|
||||
d = src_dict.copy()
|
||||
edge = d.pop("edge", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
HD = TypeVar("HD", bound="Solid3dGetPrevAdjacentEdge")
|
||||
RU = TypeVar("RU", bound="Solid3dGetPrevAdjacentEdge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class Solid3dGetPrevAdjacentEdge:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[HD], src_dict: Dict[str, Any]) -> HD:
|
||||
def from_dict(cls: Type[RU], src_dict: Dict[str, Any]) -> RU:
|
||||
d = src_dict.copy()
|
||||
edge = d.pop("edge", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.ok_web_socket_response_data import OkWebSocketResponseData
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
UJ = TypeVar("UJ", bound="SuccessWebSocketResponse")
|
||||
DL = TypeVar("DL", bound="SuccessWebSocketResponse")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -37,7 +37,7 @@ class SuccessWebSocketResponse:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UJ], src_dict: Dict[str, Any]) -> UJ:
|
||||
def from_dict(cls: Type[DL], src_dict: Dict[str, Any]) -> DL:
|
||||
d = src_dict.copy()
|
||||
request_id = d.pop("request_id", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.axis_direction_pair import AxisDirectionPair
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
RU = TypeVar("RU", bound="System")
|
||||
QT = TypeVar("QT", bound="System")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -41,7 +41,7 @@ class System:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RU], src_dict: Dict[str, Any]) -> RU:
|
||||
def from_dict(cls: Type[QT], src_dict: Dict[str, Any]) -> QT:
|
||||
d = src_dict.copy()
|
||||
_forward = d.pop("forward", UNSET)
|
||||
forward: Union[Unset, AxisDirectionPair]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
DL = TypeVar("DL", bound="SystemInfoDefaultAddressPools")
|
||||
PT = TypeVar("PT", bound="SystemInfoDefaultAddressPools")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -29,7 +29,7 @@ class SystemInfoDefaultAddressPools:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[DL], src_dict: Dict[str, Any]) -> DL:
|
||||
def from_dict(cls: Type[PT], src_dict: Dict[str, Any]) -> PT:
|
||||
d = src_dict.copy()
|
||||
base = d.pop("base", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.base64data import Base64Data
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
QT = TypeVar("QT", bound="TakeSnapshot")
|
||||
HR = TypeVar("HR", bound="TakeSnapshot")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -30,7 +30,7 @@ class TakeSnapshot:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QT], src_dict: Dict[str, Any]) -> QT:
|
||||
def from_dict(cls: Type[HR], src_dict: Dict[str, Any]) -> HR:
|
||||
d = src_dict.copy()
|
||||
_contents = d.pop("contents", UNSET)
|
||||
contents: Union[Unset, Base64Data]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_angle import UnitAngle
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
PT = TypeVar("PT", bound="UnitAngleConversion")
|
||||
VF = TypeVar("VF", bound="UnitAngleConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitAngleConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PT], src_dict: Dict[str, Any]) -> PT:
|
||||
def from_dict(cls: Type[VF], src_dict: Dict[str, Any]) -> VF:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_area import UnitArea
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
HR = TypeVar("HR", bound="UnitAreaConversion")
|
||||
VM = TypeVar("VM", bound="UnitAreaConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitAreaConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[HR], src_dict: Dict[str, Any]) -> HR:
|
||||
def from_dict(cls: Type[VM], src_dict: Dict[str, Any]) -> VM:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_current import UnitCurrent
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
VF = TypeVar("VF", bound="UnitCurrentConversion")
|
||||
WH = TypeVar("WH", bound="UnitCurrentConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitCurrentConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[VF], src_dict: Dict[str, Any]) -> VF:
|
||||
def from_dict(cls: Type[WH], src_dict: Dict[str, Any]) -> WH:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_energy import UnitEnergy
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
VM = TypeVar("VM", bound="UnitEnergyConversion")
|
||||
DQ = TypeVar("DQ", bound="UnitEnergyConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitEnergyConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[VM], src_dict: Dict[str, Any]) -> VM:
|
||||
def from_dict(cls: Type[DQ], src_dict: Dict[str, Any]) -> DQ:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_force import UnitForce
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
WH = TypeVar("WH", bound="UnitForceConversion")
|
||||
UY = TypeVar("UY", bound="UnitForceConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitForceConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WH], src_dict: Dict[str, Any]) -> WH:
|
||||
def from_dict(cls: Type[UY], src_dict: Dict[str, Any]) -> UY:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_frequency import UnitFrequency
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
DQ = TypeVar("DQ", bound="UnitFrequencyConversion")
|
||||
PD = TypeVar("PD", bound="UnitFrequencyConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitFrequencyConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[DQ], src_dict: Dict[str, Any]) -> DQ:
|
||||
def from_dict(cls: Type[PD], src_dict: Dict[str, Any]) -> PD:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_length import UnitLength
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
UY = TypeVar("UY", bound="UnitLengthConversion")
|
||||
SM = TypeVar("SM", bound="UnitLengthConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitLengthConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UY], src_dict: Dict[str, Any]) -> UY:
|
||||
def from_dict(cls: Type[SM], src_dict: Dict[str, Any]) -> SM:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_mass import UnitMass
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
PD = TypeVar("PD", bound="UnitMassConversion")
|
||||
JL = TypeVar("JL", bound="UnitMassConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitMassConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PD], src_dict: Dict[str, Any]) -> PD:
|
||||
def from_dict(cls: Type[JL], src_dict: Dict[str, Any]) -> JL:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_power import UnitPower
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
SM = TypeVar("SM", bound="UnitPowerConversion")
|
||||
CG = TypeVar("CG", bound="UnitPowerConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitPowerConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SM], src_dict: Dict[str, Any]) -> SM:
|
||||
def from_dict(cls: Type[CG], src_dict: Dict[str, Any]) -> CG:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_pressure import UnitPressure
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
JL = TypeVar("JL", bound="UnitPressureConversion")
|
||||
QA = TypeVar("QA", bound="UnitPressureConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitPressureConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JL], src_dict: Dict[str, Any]) -> JL:
|
||||
def from_dict(cls: Type[QA], src_dict: Dict[str, Any]) -> QA:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_temperature import UnitTemperature
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
CG = TypeVar("CG", bound="UnitTemperatureConversion")
|
||||
ZB = TypeVar("ZB", bound="UnitTemperatureConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitTemperatureConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CG], src_dict: Dict[str, Any]) -> CG:
|
||||
def from_dict(cls: Type[ZB], src_dict: Dict[str, Any]) -> ZB:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_torque import UnitTorque
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
QA = TypeVar("QA", bound="UnitTorqueConversion")
|
||||
AU = TypeVar("AU", bound="UnitTorqueConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitTorqueConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QA], src_dict: Dict[str, Any]) -> QA:
|
||||
def from_dict(cls: Type[AU], src_dict: Dict[str, Any]) -> AU:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_volume import UnitVolume
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
ZB = TypeVar("ZB", bound="UnitVolumeConversion")
|
||||
FX = TypeVar("FX", bound="UnitVolumeConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitVolumeConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ZB], src_dict: Dict[str, Any]) -> ZB:
|
||||
def from_dict(cls: Type[FX], src_dict: Dict[str, Any]) -> FX:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
AU = TypeVar("AU", bound="UpdateUser")
|
||||
BL = TypeVar("BL", bound="UpdateUser")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -47,7 +47,7 @@ class UpdateUser:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[AU], src_dict: Dict[str, Any]) -> AU:
|
||||
def from_dict(cls: Type[BL], src_dict: Dict[str, Any]) -> BL:
|
||||
d = src_dict.copy()
|
||||
company = d.pop("company", UNSET)
|
||||
|
||||
|
@ -6,7 +6,7 @@ from dateutil.parser import isoparse
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FX = TypeVar("FX", bound="User")
|
||||
KU = TypeVar("KU", bound="User")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -83,7 +83,7 @@ class User:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FX], src_dict: Dict[str, Any]) -> FX:
|
||||
def from_dict(cls: Type[KU], src_dict: Dict[str, Any]) -> KU:
|
||||
d = src_dict.copy()
|
||||
company = d.pop("company", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
BL = TypeVar("BL", bound="UserResultsPage")
|
||||
PZ = TypeVar("PZ", bound="UserResultsPage")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -37,7 +37,7 @@ class UserResultsPage:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[BL], src_dict: Dict[str, Any]) -> BL:
|
||||
def from_dict(cls: Type[PZ], src_dict: Dict[str, Any]) -> PZ:
|
||||
d = src_dict.copy()
|
||||
from ..models.user import User
|
||||
|
||||
|
@ -6,7 +6,7 @@ from dateutil.parser import isoparse
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
KU = TypeVar("KU", bound="VerificationToken")
|
||||
FA = TypeVar("FA", bound="VerificationToken")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -53,7 +53,7 @@ class VerificationToken:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[KU], src_dict: Dict[str, Any]) -> KU:
|
||||
def from_dict(cls: Type[FA], src_dict: Dict[str, Any]) -> FA:
|
||||
d = src_dict.copy()
|
||||
_created_at = d.pop("created_at", UNSET)
|
||||
created_at: Union[Unset, datetime.datetime]
|
||||
|
@ -8,7 +8,7 @@ from ..models.rtc_ice_candidate_init import RtcIceCandidateInit
|
||||
from ..models.rtc_session_description import RtcSessionDescription
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
PZ = TypeVar("PZ", bound="trickle_ice")
|
||||
GE = TypeVar("GE", bound="trickle_ice")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class trickle_ice:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PZ], src_dict: Dict[str, Any]) -> PZ:
|
||||
def from_dict(cls: Type[GE], src_dict: Dict[str, Any]) -> GE:
|
||||
d = src_dict.copy()
|
||||
_candidate = d.pop("candidate", UNSET)
|
||||
candidate: Union[Unset, RtcIceCandidateInit]
|
||||
@ -71,7 +71,7 @@ class trickle_ice:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
FA = TypeVar("FA", bound="sdp_offer")
|
||||
JG = TypeVar("JG", bound="sdp_offer")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -98,7 +98,7 @@ class sdp_offer:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FA], src_dict: Dict[str, Any]) -> FA:
|
||||
def from_dict(cls: Type[JG], src_dict: Dict[str, Any]) -> JG:
|
||||
d = src_dict.copy()
|
||||
_offer = d.pop("offer", UNSET)
|
||||
offer: Union[Unset, RtcSessionDescription]
|
||||
@ -134,7 +134,7 @@ class sdp_offer:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
GE = TypeVar("GE", bound="modeling_cmd_req")
|
||||
HH = TypeVar("HH", bound="modeling_cmd_req")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -166,7 +166,7 @@ class modeling_cmd_req:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GE], src_dict: Dict[str, Any]) -> GE:
|
||||
def from_dict(cls: Type[HH], src_dict: Dict[str, Any]) -> HH:
|
||||
d = src_dict.copy()
|
||||
_cmd = d.pop("cmd", UNSET)
|
||||
cmd: Union[Unset, ModelingCmd]
|
||||
@ -210,7 +210,7 @@ class modeling_cmd_req:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
JG = TypeVar("JG", bound="ping")
|
||||
RY = TypeVar("RY", bound="ping")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -232,7 +232,7 @@ class ping:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JG], src_dict: Dict[str, Any]) -> JG:
|
||||
def from_dict(cls: Type[RY], src_dict: Dict[str, Any]) -> RY:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
|
2405
poetry.lock
generated
Normal file
2405
poetry.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "kittycad"
|
||||
version = "0.5.1"
|
||||
version = "0.5.3"
|
||||
description = "A client library for accessing KittyCAD"
|
||||
|
||||
authors = []
|
||||
@ -23,15 +23,15 @@ autoclasstoc = "^1.6.0"
|
||||
black = "^23.7.0"
|
||||
isort = "^5.12.0"
|
||||
jinja2 = "^3.1.2"
|
||||
jsonpatch = "^1.32"
|
||||
mypy = "^1.2.0"
|
||||
jsonpatch = "^1.33"
|
||||
mypy = "^1.5.0"
|
||||
openapi-parser = "^0.2.6"
|
||||
openapi-spec-validator = "^0.6.0"
|
||||
prance = "^23.6.21"
|
||||
pyenchant = "^3.2.2"
|
||||
pytest = "^7.0.1"
|
||||
pytest-asyncio = "^0.21.0"
|
||||
pytest-cov = "^4.0.0"
|
||||
pytest = "^7.4.1"
|
||||
pytest-asyncio = "^0.21.1"
|
||||
pytest-cov = "^4.1.0"
|
||||
ruff = "^0.0.286"
|
||||
Sphinx = "^7.1.2"
|
||||
sphinx-autoapi = "^2.0.1"
|
||||
@ -41,7 +41,7 @@ sphinx-copybutton = "^0.5.2"
|
||||
sphinxext-opengraph = "^0.8.2"
|
||||
sphinx-rtd-theme = "^1.0.0"
|
||||
toml = "^0.10.2"
|
||||
types-python-dateutil = "^2.8.0"
|
||||
types-python-dateutil = "^2.8.19"
|
||||
types-toml = "^0.10.1"
|
||||
|
||||
[build-system]
|
||||
|
109
spec.json
109
spec.json
@ -848,14 +848,6 @@
|
||||
],
|
||||
"description": "The unique identifier of the API call.\n\nThis is the same as the API call ID."
|
||||
},
|
||||
"output": {
|
||||
"deprecated": true,
|
||||
"description": "The converted file (if single file conversion), if completed, base64 encoded. This field is deprecated, and will be removed in a future release. Use `outputs` instead.",
|
||||
"format": "byte",
|
||||
"nullable": true,
|
||||
"title": "String",
|
||||
"type": "string"
|
||||
},
|
||||
"output_format": {
|
||||
"allOf": [
|
||||
{
|
||||
@ -6128,14 +6120,6 @@
|
||||
],
|
||||
"description": "The unique identifier of the API call.\n\nThis is the same as the API call ID."
|
||||
},
|
||||
"output": {
|
||||
"deprecated": true,
|
||||
"description": "The converted file (if single file conversion), if completed, base64 encoded. This field is deprecated, and will be removed in a future release. Use `outputs` instead.",
|
||||
"format": "byte",
|
||||
"nullable": true,
|
||||
"title": "String",
|
||||
"type": "string"
|
||||
},
|
||||
"output_format": {
|
||||
"allOf": [
|
||||
{
|
||||
@ -6402,6 +6386,13 @@
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "SolidWorks part (SLDPRT) format.",
|
||||
"enum": [
|
||||
"sldprt"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "The STEP file format. <https://en.wikipedia.org/wiki/ISO_10303-21>",
|
||||
"enum": [
|
||||
@ -6936,21 +6927,6 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "ISO 10303-21 (STEP) format.",
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"step"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "Wavefront OBJ format.",
|
||||
"properties": {
|
||||
@ -7017,6 +6993,36 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "SolidWorks part (SLDPRT) format.",
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"sldprt"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "ISO 10303-21 (STEP) format.",
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": [
|
||||
"step"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"type"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "*ST**ereo**L**ithography format.",
|
||||
"properties": {
|
||||
@ -8877,6 +8883,13 @@
|
||||
{
|
||||
"description": "Send a mouse move event.",
|
||||
"properties": {
|
||||
"sequence": {
|
||||
"description": "Logical timestamp. The client should increment this with every event in the current mouse drag. That way, if the events are being sent over an unordered channel, the API can ignore the older events.",
|
||||
"format": "uint32",
|
||||
"minimum": 0,
|
||||
"nullable": true,
|
||||
"type": "integer"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"mouse_move"
|
||||
@ -9107,6 +9120,13 @@
|
||||
{
|
||||
"description": "Continue dragging mouse.",
|
||||
"properties": {
|
||||
"sequence": {
|
||||
"description": "Logical timestamp. The client should increment this with every event in the current mouse drag. That way, if the events are being sent over an unordered channel, the API can ignore the older events.",
|
||||
"format": "uint32",
|
||||
"minimum": 0,
|
||||
"nullable": true,
|
||||
"type": "integer"
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"handle_mouse_drag_move"
|
||||
@ -9151,6 +9171,31 @@
|
||||
"window"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
{
|
||||
"description": "Remove scene objects.",
|
||||
"properties": {
|
||||
"object_ids": {
|
||||
"description": "Objects to remove.",
|
||||
"items": {
|
||||
"format": "uuid",
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array",
|
||||
"uniqueItems": true
|
||||
},
|
||||
"type": {
|
||||
"enum": [
|
||||
"remove_scene_objects"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"object_ids",
|
||||
"type"
|
||||
],
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
},
|
||||
@ -20433,4 +20478,4 @@
|
||||
"name": "users"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user