* regenerate

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes and cleanup

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* I have generated the latest API!

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Jess Frazelle
2023-07-31 12:50:30 -07:00
committed by GitHub
parent d678182dcf
commit 4c3f497d73
141 changed files with 1432 additions and 566 deletions

View File

@ -3,9 +3,10 @@ from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..models.system import System
from ..models.unit_length import UnitLength
from ..types import UNSET, Unset
K = TypeVar("K", bound="Gltf")
ET = TypeVar("ET", bound="Gltf")
@attr.s(auto_attribs=True)
@ -28,7 +29,7 @@ class Gltf:
return field_dict
@classmethod
def from_dict(cls: Type[K], src_dict: Dict[str, Any]) -> K:
def from_dict(cls: Type[ET], src_dict: Dict[str, Any]) -> ET:
d = src_dict.copy()
type = d.pop("type", UNSET)
@ -56,7 +57,7 @@ class Gltf:
return key in self.additional_properties
V = TypeVar("V", bound="Step")
QF = TypeVar("QF", bound="Step")
@attr.s(auto_attribs=True)
@ -84,14 +85,14 @@ class Step:
return field_dict
@classmethod
def from_dict(cls: Type[V], src_dict: Dict[str, Any]) -> V:
def from_dict(cls: Type[QF], src_dict: Dict[str, Any]) -> QF:
d = src_dict.copy()
_coords = d.pop("coords", UNSET)
coords: Union[Unset, System]
if isinstance(_coords, Unset):
coords = UNSET
else:
coords = System(_coords)
coords = _coords # type: ignore[arg-type]
type = d.pop("type", UNSET)
@ -120,7 +121,7 @@ class Step:
return key in self.additional_properties
R = TypeVar("R", bound="Obj")
DI = TypeVar("DI", bound="Obj")
@attr.s(auto_attribs=True)
@ -129,6 +130,7 @@ class Obj:
coords: Union[Unset, System] = UNSET
type: Union[Unset, str] = UNSET
units: Union[Unset, UnitLength] = UNSET
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
@ -136,6 +138,8 @@ class Obj:
if not isinstance(self.coords, Unset):
coords = self.coords
type = self.type
if not isinstance(self.units, Unset):
units = self.units
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
@ -144,24 +148,34 @@ class Obj:
field_dict["coords"] = coords
if type is not UNSET:
field_dict["type"] = type
if units is not UNSET:
field_dict["units"] = units
return field_dict
@classmethod
def from_dict(cls: Type[R], src_dict: Dict[str, Any]) -> R:
def from_dict(cls: Type[DI], src_dict: Dict[str, Any]) -> DI:
d = src_dict.copy()
_coords = d.pop("coords", UNSET)
coords: Union[Unset, System]
if isinstance(_coords, Unset):
coords = UNSET
else:
coords = System(_coords)
coords = _coords # type: ignore[arg-type]
type = d.pop("type", UNSET)
_units = d.pop("units", UNSET)
units: Union[Unset, UnitLength]
if isinstance(_units, Unset):
units = UNSET
else:
units = _units # type: ignore[arg-type]
obj = cls(
coords=coords,
type=type,
units=units,
)
obj.additional_properties = d
@ -184,15 +198,16 @@ class Obj:
return key in self.additional_properties
N = TypeVar("N", bound="Stl")
OJ = TypeVar("OJ", bound="Ply")
@attr.s(auto_attribs=True)
class Stl:
"""*ST**ereo**L**ithography format.""" # noqa: E501
class Ply:
"""The PLY Polygon File Format.""" # noqa: E501
coords: Union[Unset, System] = UNSET
type: Union[Unset, str] = UNSET
units: Union[Unset, UnitLength] = UNSET
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
@ -200,6 +215,8 @@ class Stl:
if not isinstance(self.coords, Unset):
coords = self.coords
type = self.type
if not isinstance(self.units, Unset):
units = self.units
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
@ -208,24 +225,111 @@ class Stl:
field_dict["coords"] = coords
if type is not UNSET:
field_dict["type"] = type
if units is not UNSET:
field_dict["units"] = units
return field_dict
@classmethod
def from_dict(cls: Type[N], src_dict: Dict[str, Any]) -> N:
def from_dict(cls: Type[OJ], src_dict: Dict[str, Any]) -> OJ:
d = src_dict.copy()
_coords = d.pop("coords", UNSET)
coords: Union[Unset, System]
if isinstance(_coords, Unset):
coords = UNSET
else:
coords = System(_coords)
coords = _coords # type: ignore[arg-type]
type = d.pop("type", UNSET)
_units = d.pop("units", UNSET)
units: Union[Unset, UnitLength]
if isinstance(_units, Unset):
units = UNSET
else:
units = _units # type: ignore[arg-type]
ply = cls(
coords=coords,
type=type,
units=units,
)
ply.additional_properties = d
return ply
@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
UF = TypeVar("UF", bound="Stl")
@attr.s(auto_attribs=True)
class Stl:
"""*ST**ereo**L**ithography format.""" # noqa: E501
coords: Union[Unset, System] = UNSET
type: Union[Unset, str] = UNSET
units: Union[Unset, UnitLength] = UNSET
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
def to_dict(self) -> Dict[str, Any]:
if not isinstance(self.coords, Unset):
coords = self.coords
type = self.type
if not isinstance(self.units, Unset):
units = self.units
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if coords is not UNSET:
field_dict["coords"] = coords
if type is not UNSET:
field_dict["type"] = type
if units is not UNSET:
field_dict["units"] = units
return field_dict
@classmethod
def from_dict(cls: Type[UF], src_dict: Dict[str, Any]) -> UF:
d = src_dict.copy()
_coords = d.pop("coords", UNSET)
coords: Union[Unset, System]
if isinstance(_coords, Unset):
coords = UNSET
else:
coords = _coords # type: ignore[arg-type]
type = d.pop("type", UNSET)
_units = d.pop("units", UNSET)
units: Union[Unset, UnitLength]
if isinstance(_units, Unset):
units = UNSET
else:
units = _units # type: ignore[arg-type]
stl = cls(
coords=coords,
type=type,
units=units,
)
stl.additional_properties = d
@ -248,4 +352,4 @@ class Stl:
return key in self.additional_properties
InputFormat = Union[Gltf, Step, Obj, Stl]
InputFormat = Union[Gltf, Step, Obj, Ply, Stl]