Update api spec (#162)

* YOYO NEW API SPEC!

* I have generated the latest API!

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Jess Frazelle
2023-11-27 16:01:20 -08:00
committed by GitHub
parent 4f29f55190
commit 6b2fe3decb
287 changed files with 22901 additions and 24513 deletions

View File

@ -6,436 +6,432 @@ from ..models.system import System
from ..models.unit_length import UnitLength
from ..types import UNSET, Unset
LR = TypeVar("LR", bound="fbx")
WF = TypeVar("WF", bound="fbx")
@attr.s(auto_attribs=True)
class fbx:
""" Autodesk Filmbox (FBX) format. """ # noqa: E501
type: str = "fbx"
"""Autodesk Filmbox (FBX) format.""" # noqa: E501
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
type: str = "fbx"
def to_dict(self) -> Dict[str, Any]:
type = self.type
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
field_dict['type'] = type
def to_dict(self) -> Dict[str, Any]:
type = self.type
return field_dict
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
field_dict["type"] = type
@classmethod
def from_dict(cls: Type[LR], src_dict: Dict[str, Any]) -> LR:
d = src_dict.copy()
type = d.pop("type", UNSET)
return field_dict
@classmethod
def from_dict(cls: Type[WF], src_dict: Dict[str, Any]) -> WF:
d = src_dict.copy()
type = d.pop("type", UNSET)
fbx = cls(
type=type,
)
fbx.additional_properties = d
return fbx
@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
fbx = cls(
type= type,
)
RO = TypeVar("RO", bound="gltf")
fbx.additional_properties = d
return fbx
@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="gltf")
@attr.s(auto_attribs=True)
class gltf:
""" Binary glTF 2.0. We refer to this as glTF since that is how our customers refer to it, but this can also import binary glTF (glb). """ # noqa: E501
type: str = "gltf"
"""Binary glTF 2.0. We refer to this as glTF since that is how our customers refer to it, but this can also import binary glTF (glb).""" # noqa: E501
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
type: str = "gltf"
def to_dict(self) -> Dict[str, Any]:
type = self.type
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
field_dict['type'] = type
def to_dict(self) -> Dict[str, Any]:
type = self.type
return field_dict
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
field_dict["type"] = type
@classmethod
def from_dict(cls: Type[MP], src_dict: Dict[str, Any]) -> MP:
d = src_dict.copy()
type = d.pop("type", UNSET)
return field_dict
@classmethod
def from_dict(cls: Type[RO], src_dict: Dict[str, Any]) -> RO:
d = src_dict.copy()
type = d.pop("type", UNSET)
gltf = cls(
type=type,
)
gltf.additional_properties = d
return gltf
@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
gltf = cls(
type= type,
)
DN = TypeVar("DN", bound="obj")
gltf.additional_properties = d
return gltf
@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="obj")
@attr.s(auto_attribs=True)
class obj:
""" Wavefront OBJ format. """ # noqa: E501
coords: Union[Unset, System] = UNSET
type: str = "obj"
units: Union[Unset, UnitLength] = UNSET
"""Wavefront OBJ format.""" # noqa: E501
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
coords: Union[Unset, System] = UNSET
type: str = "obj"
units: Union[Unset, UnitLength] = UNSET
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
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if coords is not UNSET:
field_dict['coords'] = coords
field_dict['type'] = type
if units is not UNSET:
field_dict['units'] = units
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
return field_dict
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if coords is not UNSET:
field_dict["coords"] = coords
field_dict["type"] = type
if units is not UNSET:
field_dict["units"] = units
@classmethod
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]
if isinstance(_coords, Unset):
coords = UNSET
else:
coords = _coords # type: ignore[arg-type]
return field_dict
type = d.pop("type", UNSET)
@classmethod
def from_dict(cls: Type[DN], src_dict: Dict[str, Any]) -> DN:
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]
_units = d.pop("units", UNSET)
units: Union[Unset, UnitLength]
if isinstance(_units, Unset):
units = UNSET
else:
units = _units # 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
return obj
@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
obj = cls(
coords= coords,
type= type,
units= units,
)
BA = TypeVar("BA", bound="ply")
obj.additional_properties = d
return obj
@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
RO = TypeVar("RO", bound="ply")
@attr.s(auto_attribs=True)
class ply:
""" The PLY Polygon File Format. """ # noqa: E501
coords: Union[Unset, System] = UNSET
type: str = "ply"
units: Union[Unset, UnitLength] = UNSET
"""The PLY Polygon File Format.""" # noqa: E501
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
coords: Union[Unset, System] = UNSET
type: str = "ply"
units: Union[Unset, UnitLength] = UNSET
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
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if coords is not UNSET:
field_dict['coords'] = coords
field_dict['type'] = type
if units is not UNSET:
field_dict['units'] = units
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
return field_dict
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if coords is not UNSET:
field_dict["coords"] = coords
field_dict["type"] = type
if units is not UNSET:
field_dict["units"] = units
@classmethod
def from_dict(cls: Type[RO], src_dict: Dict[str, Any]) -> RO:
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]
return field_dict
type = d.pop("type", UNSET)
@classmethod
def from_dict(cls: Type[BA], src_dict: Dict[str, Any]) -> BA:
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]
_units = d.pop("units", UNSET)
units: Union[Unset, UnitLength]
if isinstance(_units, Unset):
units = UNSET
else:
units = _units # 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
ply = cls(
coords= coords,
type= type,
units= units,
)
OR = TypeVar("OR", bound="sldprt")
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
DN = TypeVar("DN", bound="sldprt")
@attr.s(auto_attribs=True)
class sldprt:
""" SolidWorks part (SLDPRT) format. """ # noqa: E501
type: str = "sldprt"
"""SolidWorks part (SLDPRT) format.""" # noqa: E501
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
type: str = "sldprt"
def to_dict(self) -> Dict[str, Any]:
type = self.type
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
field_dict['type'] = type
def to_dict(self) -> Dict[str, Any]:
type = self.type
return field_dict
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
field_dict["type"] = type
@classmethod
def from_dict(cls: Type[DN], src_dict: Dict[str, Any]) -> DN:
d = src_dict.copy()
type = d.pop("type", UNSET)
return field_dict
@classmethod
def from_dict(cls: Type[OR], src_dict: Dict[str, Any]) -> OR:
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
sldprt = cls(
type= type,
)
CB = TypeVar("CB", bound="step")
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
BA = TypeVar("BA", bound="step")
@attr.s(auto_attribs=True)
class step:
""" ISO 10303-21 (STEP) format. """ # noqa: E501
type: str = "step"
"""ISO 10303-21 (STEP) format.""" # noqa: E501
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
type: str = "step"
def to_dict(self) -> Dict[str, Any]:
type = self.type
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
field_dict['type'] = type
def to_dict(self) -> Dict[str, Any]:
type = self.type
return field_dict
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
field_dict["type"] = type
@classmethod
def from_dict(cls: Type[BA], src_dict: Dict[str, Any]) -> BA:
d = src_dict.copy()
type = d.pop("type", UNSET)
return field_dict
@classmethod
def from_dict(cls: Type[CB], src_dict: Dict[str, Any]) -> CB:
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
step = cls(
type= type,
)
LC = TypeVar("LC", bound="stl")
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
OR = TypeVar("OR", bound="stl")
@attr.s(auto_attribs=True)
class stl:
""" *ST**ereo**L**ithography format. """ # noqa: E501
coords: Union[Unset, System] = UNSET
type: str = "stl"
units: Union[Unset, UnitLength] = UNSET
"""*ST**ereo**L**ithography format.""" # noqa: E501
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
coords: Union[Unset, System] = UNSET
type: str = "stl"
units: Union[Unset, UnitLength] = UNSET
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
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if coords is not UNSET:
field_dict['coords'] = coords
field_dict['type'] = type
if units is not UNSET:
field_dict['units'] = units
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
return field_dict
field_dict: Dict[str, Any] = {}
field_dict.update(self.additional_properties)
field_dict.update({})
if coords is not UNSET:
field_dict["coords"] = coords
field_dict["type"] = type
if units is not UNSET:
field_dict["units"] = units
@classmethod
def from_dict(cls: Type[OR], src_dict: Dict[str, Any]) -> OR:
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]
return field_dict
type = d.pop("type", UNSET)
@classmethod
def from_dict(cls: Type[LC], src_dict: Dict[str, Any]) -> LC:
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]
_units = d.pop("units", UNSET)
units: Union[Unset, UnitLength]
if isinstance(_units, Unset):
units = UNSET
else:
units = _units # 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 = cls(
coords=coords,
type=type,
units=units,
)
stl.additional_properties = d
return stl
stl.additional_properties = d
return stl
@property
def additional_keys(self) -> List[str]:
return list(self.additional_properties.keys())
@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 __getitem__(self, key: str) -> Any:
return self.additional_properties[key]
def __setitem__(self, key: str, value: Any) -> None:
self.additional_properties[key] = value
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 __delitem__(self, key: str) -> None:
del self.additional_properties[key]
def __contains__(self, key: str) -> bool:
return key in self.additional_properties
def __contains__(self, key: str) -> bool:
return key in self.additional_properties
InputFormat = Union[fbx, gltf, obj, ply, sldprt, step, stl]