Update api spec (#125)
* 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:
File diff suppressed because one or more lines are too long
@ -51,6 +51,7 @@ from .direction import Direction
|
||||
from .discount import Discount
|
||||
from .docker_system_info import DockerSystemInfo
|
||||
from .email_authentication_form import EmailAuthenticationForm
|
||||
from .engine_error import EngineError
|
||||
from .engine_metadata import EngineMetadata
|
||||
from .entity_type import EntityType
|
||||
from .environment import Environment
|
||||
|
69
kittycad/models/engine_error.py
Normal file
69
kittycad/models/engine_error.py
Normal file
@ -0,0 +1,69 @@
|
||||
from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.error_code import ErrorCode
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
CE = TypeVar("CE", bound="EngineError")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class EngineError:
|
||||
"""An error.""" # noqa: E501
|
||||
|
||||
error_code: Union[Unset, ErrorCode] = UNSET
|
||||
message: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
if not isinstance(self.error_code, Unset):
|
||||
error_code = self.error_code
|
||||
message = self.message
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if error_code is not UNSET:
|
||||
field_dict["error_code"] = error_code
|
||||
if message is not UNSET:
|
||||
field_dict["message"] = message
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CE], src_dict: Dict[str, Any]) -> CE:
|
||||
d = src_dict.copy()
|
||||
_error_code = d.pop("error_code", UNSET)
|
||||
error_code: Union[Unset, ErrorCode]
|
||||
if isinstance(_error_code, Unset):
|
||||
error_code = UNSET
|
||||
else:
|
||||
error_code = _error_code # type: ignore[arg-type]
|
||||
|
||||
message = d.pop("message", UNSET)
|
||||
|
||||
engine_error = cls(
|
||||
error_code=error_code,
|
||||
message=message,
|
||||
)
|
||||
|
||||
engine_error.additional_properties = d
|
||||
return engine_error
|
||||
|
||||
@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
|
@ -8,7 +8,7 @@ from ..models.environment import Environment
|
||||
from ..models.file_system_metadata import FileSystemMetadata
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
CE = TypeVar("CE", bound="EngineMetadata")
|
||||
MS = TypeVar("MS", bound="EngineMetadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -57,7 +57,7 @@ class EngineMetadata:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CE], src_dict: Dict[str, Any]) -> CE:
|
||||
def from_dict(cls: Type[MS], src_dict: Dict[str, Any]) -> MS:
|
||||
d = src_dict.copy()
|
||||
async_jobs_running = d.pop("async_jobs_running", UNSET)
|
||||
|
||||
|
@ -2,51 +2,51 @@ from typing import Any, Dict, List, Type, TypeVar, Union
|
||||
|
||||
import attr
|
||||
|
||||
from ..models.error_code import ErrorCode
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
MS = TypeVar("MS", bound="Error")
|
||||
LT = TypeVar("LT", bound="Error")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class Error:
|
||||
"""An error.""" # noqa: E501
|
||||
"""Error information from a response.""" # noqa: E501
|
||||
|
||||
code: Union[Unset, ErrorCode] = UNSET
|
||||
error_code: Union[Unset, str] = UNSET
|
||||
message: Union[Unset, str] = UNSET
|
||||
request_id: Union[Unset, str] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
if not isinstance(self.code, Unset):
|
||||
code = self.code
|
||||
error_code = self.error_code
|
||||
message = self.message
|
||||
request_id = self.request_id
|
||||
|
||||
field_dict: Dict[str, Any] = {}
|
||||
field_dict.update(self.additional_properties)
|
||||
field_dict.update({})
|
||||
if code is not UNSET:
|
||||
field_dict["code"] = code
|
||||
if error_code is not UNSET:
|
||||
field_dict["error_code"] = error_code
|
||||
if message is not UNSET:
|
||||
field_dict["message"] = message
|
||||
if request_id is not UNSET:
|
||||
field_dict["request_id"] = request_id
|
||||
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MS], src_dict: Dict[str, Any]) -> MS:
|
||||
def from_dict(cls: Type[LT], src_dict: Dict[str, Any]) -> LT:
|
||||
d = src_dict.copy()
|
||||
_code = d.pop("code", UNSET)
|
||||
code: Union[Unset, ErrorCode]
|
||||
if isinstance(_code, Unset):
|
||||
code = UNSET
|
||||
else:
|
||||
code = _code # type: ignore[arg-type]
|
||||
error_code = d.pop("error_code", UNSET)
|
||||
|
||||
message = d.pop("message", UNSET)
|
||||
|
||||
request_id = d.pop("request_id", UNSET)
|
||||
|
||||
error = cls(
|
||||
code=code,
|
||||
error_code=error_code,
|
||||
message=message,
|
||||
request_id=request_id,
|
||||
)
|
||||
|
||||
error.additional_properties = d
|
||||
|
@ -4,23 +4,23 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
LT = TypeVar("LT", bound="ErrorResponse")
|
||||
ED = TypeVar("ED", bound="ErrorResponse")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
class ErrorResponse:
|
||||
"""The error response.""" # noqa: E501
|
||||
|
||||
from ..models.error import Error
|
||||
from ..models.engine_error import EngineError
|
||||
|
||||
errors: Union[Unset, List[Error]] = UNSET
|
||||
errors: Union[Unset, List[EngineError]] = UNSET
|
||||
|
||||
additional_properties: Dict[str, Any] = attr.ib(init=False, factory=dict)
|
||||
|
||||
def to_dict(self) -> Dict[str, Any]:
|
||||
from ..models.error import Error
|
||||
from ..models.engine_error import EngineError
|
||||
|
||||
errors: Union[Unset, List[Error]] = UNSET
|
||||
errors: Union[Unset, List[EngineError]] = UNSET
|
||||
if not isinstance(self.errors, Unset):
|
||||
errors = self.errors
|
||||
|
||||
@ -33,11 +33,11 @@ class ErrorResponse:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LT], src_dict: Dict[str, Any]) -> LT:
|
||||
def from_dict(cls: Type[ED], src_dict: Dict[str, Any]) -> ED:
|
||||
d = src_dict.copy()
|
||||
from ..models.error import Error
|
||||
from ..models.engine_error import EngineError
|
||||
|
||||
errors = cast(List[Error], d.pop("errors", UNSET))
|
||||
errors = cast(List[EngineError], d.pop("errors", UNSET))
|
||||
|
||||
error_response = cls(
|
||||
errors=errors,
|
||||
|
@ -6,7 +6,7 @@ from ..models.docker_system_info import DockerSystemInfo
|
||||
from ..models.environment import Environment
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
ED = TypeVar("ED", bound="ExecutorMetadata")
|
||||
YY = TypeVar("YY", bound="ExecutorMetadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -41,7 +41,7 @@ class ExecutorMetadata:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ED], src_dict: Dict[str, Any]) -> ED:
|
||||
def from_dict(cls: Type[YY], src_dict: Dict[str, Any]) -> YY:
|
||||
d = src_dict.copy()
|
||||
_docker_info = d.pop("docker_info", UNSET)
|
||||
docker_info: Union[Unset, DockerSystemInfo]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
YY = TypeVar("YY", bound="ExportFile")
|
||||
DO = TypeVar("DO", bound="ExportFile")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -31,7 +31,7 @@ class ExportFile:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[YY], src_dict: Dict[str, Any]) -> YY:
|
||||
def from_dict(cls: Type[DO], src_dict: Dict[str, Any]) -> DO:
|
||||
d = src_dict.copy()
|
||||
contents = d.pop("contents", UNSET)
|
||||
|
||||
|
@ -6,7 +6,7 @@ from dateutil.parser import isoparse
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
DO = TypeVar("DO", bound="ExtendedUser")
|
||||
FZ = TypeVar("FZ", bound="ExtendedUser")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -98,7 +98,7 @@ class ExtendedUser:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[DO], src_dict: Dict[str, Any]) -> DO:
|
||||
def from_dict(cls: Type[FZ], src_dict: Dict[str, Any]) -> FZ:
|
||||
d = src_dict.copy()
|
||||
company = d.pop("company", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FZ = TypeVar("FZ", bound="ExtendedUserResultsPage")
|
||||
GL = TypeVar("GL", bound="ExtendedUserResultsPage")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -37,7 +37,7 @@ class ExtendedUserResultsPage:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FZ], src_dict: Dict[str, Any]) -> FZ:
|
||||
def from_dict(cls: Type[GL], src_dict: Dict[str, Any]) -> GL:
|
||||
d = src_dict.copy()
|
||||
from ..models.extended_user import ExtendedUser
|
||||
|
||||
|
@ -11,7 +11,7 @@ from ..models.unit_length import UnitLength
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
GL = TypeVar("GL", bound="FileCenterOfMass")
|
||||
NN = TypeVar("NN", bound="FileCenterOfMass")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -86,7 +86,7 @@ class FileCenterOfMass:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GL], src_dict: Dict[str, Any]) -> GL:
|
||||
def from_dict(cls: Type[NN], src_dict: Dict[str, Any]) -> NN:
|
||||
d = src_dict.copy()
|
||||
_center_of_mass = d.pop("center_of_mass", UNSET)
|
||||
center_of_mass: Union[Unset, Point3d]
|
||||
|
@ -12,7 +12,7 @@ from ..models.output_format import OutputFormat
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
NN = TypeVar("NN", bound="FileConversion")
|
||||
OH = TypeVar("OH", bound="FileConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -100,7 +100,7 @@ class FileConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[NN], src_dict: Dict[str, Any]) -> NN:
|
||||
def from_dict(cls: Type[OH], src_dict: Dict[str, Any]) -> OH:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -11,7 +11,7 @@ from ..models.unit_mass import UnitMass
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
OH = TypeVar("OH", bound="FileDensity")
|
||||
VI = TypeVar("VI", bound="FileDensity")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -94,7 +94,7 @@ class FileDensity:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OH], src_dict: Dict[str, Any]) -> OH:
|
||||
def from_dict(cls: Type[VI], src_dict: Dict[str, Any]) -> VI:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -11,7 +11,7 @@ from ..models.unit_mass import UnitMass
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
VI = TypeVar("VI", bound="FileMass")
|
||||
ET = TypeVar("ET", bound="FileMass")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -94,7 +94,7 @@ class FileMass:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[VI], src_dict: Dict[str, Any]) -> VI:
|
||||
def from_dict(cls: Type[ET], src_dict: Dict[str, Any]) -> ET:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -10,7 +10,7 @@ from ..models.unit_area import UnitArea
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
ET = TypeVar("ET", bound="FileSurfaceArea")
|
||||
QF = TypeVar("QF", bound="FileSurfaceArea")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -84,7 +84,7 @@ class FileSurfaceArea:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ET], src_dict: Dict[str, Any]) -> ET:
|
||||
def from_dict(cls: Type[QF], src_dict: Dict[str, Any]) -> QF:
|
||||
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
|
||||
|
||||
QF = TypeVar("QF", bound="FileSystemMetadata")
|
||||
DI = TypeVar("DI", bound="FileSystemMetadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -29,7 +29,7 @@ class FileSystemMetadata:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QF], src_dict: Dict[str, Any]) -> QF:
|
||||
def from_dict(cls: Type[DI], src_dict: Dict[str, Any]) -> DI:
|
||||
d = src_dict.copy()
|
||||
ok = d.pop("ok", UNSET)
|
||||
|
||||
|
@ -10,7 +10,7 @@ from ..models.unit_volume import UnitVolume
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
DI = TypeVar("DI", bound="FileVolume")
|
||||
OJ = TypeVar("OJ", bound="FileVolume")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -84,7 +84,7 @@ class FileVolume:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[DI], src_dict: Dict[str, Any]) -> DI:
|
||||
def from_dict(cls: Type[OJ], src_dict: Dict[str, Any]) -> OJ:
|
||||
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
|
||||
|
||||
OJ = TypeVar("OJ", bound="Gateway")
|
||||
UF = TypeVar("UF", bound="Gateway")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -43,7 +43,7 @@ class Gateway:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OJ], src_dict: Dict[str, Any]) -> OJ:
|
||||
def from_dict(cls: Type[UF], src_dict: Dict[str, Any]) -> UF:
|
||||
d = src_dict.copy()
|
||||
auth_timeout = d.pop("auth_timeout", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
UF = TypeVar("UF", bound="IceServer")
|
||||
YF = TypeVar("YF", bound="IceServer")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -37,7 +37,7 @@ class IceServer:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UF], src_dict: Dict[str, Any]) -> UF:
|
||||
def from_dict(cls: Type[YF], src_dict: Dict[str, Any]) -> YF:
|
||||
d = src_dict.copy()
|
||||
credential = d.pop("credential", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
YF = TypeVar("YF", bound="IndexInfo")
|
||||
PY = TypeVar("PY", bound="IndexInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -41,7 +41,7 @@ class IndexInfo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[YF], src_dict: Dict[str, Any]) -> YF:
|
||||
def from_dict(cls: Type[PY], src_dict: Dict[str, Any]) -> PY:
|
||||
d = src_dict.copy()
|
||||
mirrors = cast(List[str], d.pop("mirrors", UNSET))
|
||||
|
||||
|
@ -6,7 +6,7 @@ from ..models.system import System
|
||||
from ..models.unit_length import UnitLength
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
PY = TypeVar("PY", bound="gltf")
|
||||
LK = TypeVar("LK", bound="gltf")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -28,7 +28,7 @@ class gltf:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PY], src_dict: Dict[str, Any]) -> PY:
|
||||
def from_dict(cls: Type[LK], src_dict: Dict[str, Any]) -> LK:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -56,7 +56,7 @@ class gltf:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LK = TypeVar("LK", bound="step")
|
||||
AR = TypeVar("AR", bound="step")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -78,7 +78,7 @@ class step:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LK], src_dict: Dict[str, Any]) -> LK:
|
||||
def from_dict(cls: Type[AR], src_dict: Dict[str, Any]) -> AR:
|
||||
d = src_dict.copy()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -106,7 +106,7 @@ class step:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
AR = TypeVar("AR", bound="obj")
|
||||
WB = TypeVar("WB", bound="obj")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -138,7 +138,7 @@ class obj:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[AR], src_dict: Dict[str, Any]) -> AR:
|
||||
def from_dict(cls: Type[WB], src_dict: Dict[str, Any]) -> WB:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -182,7 +182,7 @@ class obj:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
WB = TypeVar("WB", bound="ply")
|
||||
KK = TypeVar("KK", bound="ply")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -214,7 +214,7 @@ class ply:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WB], src_dict: Dict[str, Any]) -> WB:
|
||||
def from_dict(cls: Type[KK], src_dict: Dict[str, Any]) -> KK:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -258,7 +258,7 @@ class ply:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
KK = TypeVar("KK", bound="stl")
|
||||
HC = TypeVar("HC", bound="stl")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -290,7 +290,7 @@ class stl:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[KK], src_dict: Dict[str, Any]) -> KK:
|
||||
def from_dict(cls: Type[HC], src_dict: Dict[str, Any]) -> HC:
|
||||
d = src_dict.copy()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
|
@ -8,7 +8,7 @@ from ..models.currency import Currency
|
||||
from ..models.invoice_status import InvoiceStatus
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
HC = TypeVar("HC", bound="Invoice")
|
||||
FM = TypeVar("FM", bound="Invoice")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -143,7 +143,7 @@ class Invoice:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[HC], src_dict: Dict[str, Any]) -> HC:
|
||||
def from_dict(cls: Type[FM], src_dict: Dict[str, Any]) -> FM:
|
||||
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
|
||||
|
||||
FM = TypeVar("FM", bound="InvoiceLineItem")
|
||||
PV = TypeVar("PV", bound="InvoiceLineItem")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -49,7 +49,7 @@ class InvoiceLineItem:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FM], src_dict: Dict[str, Any]) -> FM:
|
||||
def from_dict(cls: Type[PV], src_dict: Dict[str, Any]) -> PV:
|
||||
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
|
||||
|
||||
PV = TypeVar("PV", bound="Jetstream")
|
||||
QI = TypeVar("QI", bound="Jetstream")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -41,7 +41,7 @@ class Jetstream:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[PV], src_dict: Dict[str, Any]) -> PV:
|
||||
def from_dict(cls: Type[QI], src_dict: Dict[str, Any]) -> QI:
|
||||
d = src_dict.copy()
|
||||
_config = d.pop("config", UNSET)
|
||||
config: Union[Unset, JetstreamConfig]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
QI = TypeVar("QI", bound="JetstreamApiStats")
|
||||
TP = TypeVar("TP", bound="JetstreamApiStats")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class JetstreamApiStats:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QI], src_dict: Dict[str, Any]) -> QI:
|
||||
def from_dict(cls: Type[TP], src_dict: Dict[str, Any]) -> TP:
|
||||
d = src_dict.copy()
|
||||
errors = d.pop("errors", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TP = TypeVar("TP", bound="JetstreamConfig")
|
||||
CF = TypeVar("CF", bound="JetstreamConfig")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -39,7 +39,7 @@ class JetstreamConfig:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TP], src_dict: Dict[str, Any]) -> TP:
|
||||
def from_dict(cls: Type[CF], src_dict: Dict[str, Any]) -> CF:
|
||||
d = src_dict.copy()
|
||||
domain = d.pop("domain", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.jetstream_api_stats import JetstreamApiStats
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
CF = TypeVar("CF", bound="JetstreamStats")
|
||||
OM = TypeVar("OM", bound="JetstreamStats")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -53,7 +53,7 @@ class JetstreamStats:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CF], src_dict: Dict[str, Any]) -> CF:
|
||||
def from_dict(cls: Type[OM], src_dict: Dict[str, Any]) -> OM:
|
||||
d = src_dict.copy()
|
||||
accounts = d.pop("accounts", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
OM = TypeVar("OM", bound="LeafNode")
|
||||
EN = TypeVar("EN", bound="LeafNode")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -39,7 +39,7 @@ class LeafNode:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OM], src_dict: Dict[str, Any]) -> OM:
|
||||
def from_dict(cls: Type[EN], src_dict: Dict[str, Any]) -> EN:
|
||||
d = src_dict.copy()
|
||||
auth_timeout = d.pop("auth_timeout", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
EN = TypeVar("EN", bound="Mesh")
|
||||
RS = TypeVar("RS", bound="Mesh")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -25,7 +25,7 @@ class Mesh:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[EN], src_dict: Dict[str, Any]) -> EN:
|
||||
def from_dict(cls: Type[RS], src_dict: Dict[str, Any]) -> RS:
|
||||
d = src_dict.copy()
|
||||
mesh = d.pop("mesh", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
RS = TypeVar("RS", bound="MetaClusterInfo")
|
||||
LR = TypeVar("LR", bound="MetaClusterInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class MetaClusterInfo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RS], src_dict: Dict[str, Any]) -> RS:
|
||||
def from_dict(cls: Type[LR], src_dict: Dict[str, Any]) -> LR:
|
||||
d = src_dict.copy()
|
||||
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
|
||||
|
||||
LR = TypeVar("LR", bound="Metadata")
|
||||
MP = TypeVar("MP", bound="Metadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -71,7 +71,7 @@ class Metadata:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LR], src_dict: Dict[str, Any]) -> LR:
|
||||
def from_dict(cls: Type[MP], src_dict: Dict[str, Any]) -> MP:
|
||||
d = src_dict.copy()
|
||||
_cache = d.pop("cache", UNSET)
|
||||
cache: Union[Unset, CacheMetadata]
|
||||
|
@ -13,7 +13,7 @@ from ..models.point3d import Point3d
|
||||
from ..models.scene_selection_type import SceneSelectionType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
MP = TypeVar("MP", bound="start_path")
|
||||
WF = TypeVar("WF", bound="start_path")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class start_path:
|
||||
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()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -63,7 +63,7 @@ class start_path:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
WF = TypeVar("WF", bound="move_path_pen")
|
||||
RO = TypeVar("RO", bound="move_path_pen")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -95,7 +95,7 @@ class move_path_pen:
|
||||
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()
|
||||
_path = d.pop("path", UNSET)
|
||||
path: Union[Unset, ModelingCmdId]
|
||||
@ -139,7 +139,7 @@ class move_path_pen:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
RO = TypeVar("RO", bound="extend_path")
|
||||
DN = TypeVar("DN", bound="extend_path")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -171,7 +171,7 @@ class extend_path:
|
||||
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()
|
||||
_path = d.pop("path", UNSET)
|
||||
path: Union[Unset, ModelingCmdId]
|
||||
@ -215,7 +215,7 @@ class extend_path:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
DN = TypeVar("DN", bound="extrude")
|
||||
BA = TypeVar("BA", bound="extrude")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -250,7 +250,7 @@ class extrude:
|
||||
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()
|
||||
cap = d.pop("cap", UNSET)
|
||||
|
||||
@ -292,7 +292,7 @@ class extrude:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
BA = TypeVar("BA", bound="close_path")
|
||||
OR = TypeVar("OR", bound="close_path")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -318,7 +318,7 @@ class close_path:
|
||||
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()
|
||||
path_id = d.pop("path_id", UNSET)
|
||||
|
||||
@ -349,7 +349,7 @@ class close_path:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
OR = TypeVar("OR", bound="camera_drag_start")
|
||||
CB = TypeVar("CB", bound="camera_drag_start")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -381,7 +381,7 @@ class camera_drag_start:
|
||||
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()
|
||||
_interaction = d.pop("interaction", UNSET)
|
||||
interaction: Union[Unset, CameraDragInteractionType]
|
||||
@ -425,7 +425,7 @@ class camera_drag_start:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
CB = TypeVar("CB", bound="camera_drag_move")
|
||||
LC = TypeVar("LC", bound="camera_drag_move")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -461,7 +461,7 @@ class camera_drag_move:
|
||||
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()
|
||||
_interaction = d.pop("interaction", UNSET)
|
||||
interaction: Union[Unset, CameraDragInteractionType]
|
||||
@ -508,7 +508,7 @@ class camera_drag_move:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LC = TypeVar("LC", bound="camera_drag_end")
|
||||
TO = TypeVar("TO", bound="camera_drag_end")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -540,7 +540,7 @@ class camera_drag_end:
|
||||
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()
|
||||
_interaction = d.pop("interaction", UNSET)
|
||||
interaction: Union[Unset, CameraDragInteractionType]
|
||||
@ -584,7 +584,7 @@ class camera_drag_end:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
TO = TypeVar("TO", bound="default_camera_look_at")
|
||||
ZP = TypeVar("ZP", bound="default_camera_look_at")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -621,7 +621,7 @@ class default_camera_look_at:
|
||||
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()
|
||||
_center = d.pop("center", UNSET)
|
||||
center: Union[Unset, Point3d]
|
||||
@ -673,7 +673,7 @@ class default_camera_look_at:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
ZP = TypeVar("ZP", bound="default_camera_enable_sketch_mode")
|
||||
EO = TypeVar("EO", bound="default_camera_enable_sketch_mode")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -722,7 +722,7 @@ class default_camera_enable_sketch_mode:
|
||||
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()
|
||||
animated = d.pop("animated", UNSET)
|
||||
|
||||
@ -783,7 +783,7 @@ class default_camera_enable_sketch_mode:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
EO = TypeVar("EO", bound="default_camera_disable_sketch_mode")
|
||||
NY = TypeVar("NY", bound="default_camera_disable_sketch_mode")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -805,7 +805,7 @@ class default_camera_disable_sketch_mode:
|
||||
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()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -833,7 +833,7 @@ class default_camera_disable_sketch_mode:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
NY = TypeVar("NY", bound="export")
|
||||
QO = TypeVar("QO", bound="export")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -866,7 +866,7 @@ class export:
|
||||
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()
|
||||
entity_ids = cast(List[str], d.pop("entity_ids", UNSET))
|
||||
|
||||
@ -905,7 +905,7 @@ class export:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
QO = TypeVar("QO", bound="entity_get_parent_id")
|
||||
KX = TypeVar("KX", bound="entity_get_parent_id")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -931,7 +931,7 @@ class entity_get_parent_id:
|
||||
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()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -962,7 +962,7 @@ class entity_get_parent_id:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
KX = TypeVar("KX", bound="entity_get_num_children")
|
||||
IZ = TypeVar("IZ", bound="entity_get_num_children")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -988,7 +988,7 @@ class entity_get_num_children:
|
||||
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()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -1019,7 +1019,7 @@ class entity_get_num_children:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
IZ = TypeVar("IZ", bound="entity_get_child_uuid")
|
||||
WO = TypeVar("WO", bound="entity_get_child_uuid")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1049,7 +1049,7 @@ class entity_get_child_uuid:
|
||||
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()
|
||||
child_index = d.pop("child_index", UNSET)
|
||||
|
||||
@ -1083,7 +1083,7 @@ class entity_get_child_uuid:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
WO = TypeVar("WO", bound="entity_get_all_child_uuids")
|
||||
NK = TypeVar("NK", bound="entity_get_all_child_uuids")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1109,7 +1109,7 @@ class entity_get_all_child_uuids:
|
||||
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()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -1140,7 +1140,7 @@ class entity_get_all_child_uuids:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
NK = TypeVar("NK", bound="edit_mode_enter")
|
||||
UQ = TypeVar("UQ", bound="edit_mode_enter")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1166,7 +1166,7 @@ class edit_mode_enter:
|
||||
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()
|
||||
target = d.pop("target", UNSET)
|
||||
|
||||
@ -1197,7 +1197,7 @@ class edit_mode_enter:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UQ = TypeVar("UQ", bound="edit_mode_exit")
|
||||
QE = TypeVar("QE", bound="edit_mode_exit")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1219,7 +1219,7 @@ class edit_mode_exit:
|
||||
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()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -1247,7 +1247,7 @@ class edit_mode_exit:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
QE = TypeVar("QE", bound="select_with_point")
|
||||
XH = TypeVar("XH", bound="select_with_point")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1279,7 +1279,7 @@ class select_with_point:
|
||||
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()
|
||||
_selected_at_window = d.pop("selected_at_window", UNSET)
|
||||
selected_at_window: Union[Unset, Point2d]
|
||||
@ -1323,7 +1323,7 @@ class select_with_point:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
XH = TypeVar("XH", bound="select_clear")
|
||||
KT = TypeVar("KT", bound="select_clear")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1345,7 +1345,7 @@ class select_clear:
|
||||
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()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -1373,7 +1373,7 @@ class select_clear:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
KT = TypeVar("KT", bound="select_add")
|
||||
BV = TypeVar("BV", bound="select_add")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1401,7 +1401,7 @@ class select_add:
|
||||
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()
|
||||
entities = cast(List[str], d.pop("entities", UNSET))
|
||||
|
||||
@ -1432,7 +1432,7 @@ class select_add:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
BV = TypeVar("BV", bound="select_remove")
|
||||
GU = TypeVar("GU", bound="select_remove")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1460,7 +1460,7 @@ class select_remove:
|
||||
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()
|
||||
entities = cast(List[str], d.pop("entities", UNSET))
|
||||
|
||||
@ -1491,7 +1491,7 @@ class select_remove:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
GU = TypeVar("GU", bound="select_replace")
|
||||
SS = TypeVar("SS", bound="select_replace")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1519,7 +1519,7 @@ class select_replace:
|
||||
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()
|
||||
entities = cast(List[str], d.pop("entities", UNSET))
|
||||
|
||||
@ -1550,7 +1550,7 @@ class select_replace:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
SS = TypeVar("SS", bound="select_get")
|
||||
UP = TypeVar("UP", bound="select_get")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1572,7 +1572,7 @@ class select_get:
|
||||
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()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -1600,7 +1600,7 @@ class select_get:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UP = TypeVar("UP", bound="highlight_set_entity")
|
||||
AZ = TypeVar("AZ", bound="highlight_set_entity")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1631,7 +1631,7 @@ class highlight_set_entity:
|
||||
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()
|
||||
_selected_at_window = d.pop("selected_at_window", UNSET)
|
||||
selected_at_window: Union[Unset, Point2d]
|
||||
@ -1670,7 +1670,7 @@ class highlight_set_entity:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
AZ = TypeVar("AZ", bound="highlight_set_entities")
|
||||
DJ = TypeVar("DJ", bound="highlight_set_entities")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1698,7 +1698,7 @@ class highlight_set_entities:
|
||||
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()
|
||||
entities = cast(List[str], d.pop("entities", UNSET))
|
||||
|
||||
@ -1729,7 +1729,7 @@ class highlight_set_entities:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
DJ = TypeVar("DJ", bound="new_annotation")
|
||||
WJ = TypeVar("WJ", bound="new_annotation")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1765,7 +1765,7 @@ class new_annotation:
|
||||
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()
|
||||
_annotation_type = d.pop("annotation_type", UNSET)
|
||||
annotation_type: Union[Unset, AnnotationType]
|
||||
@ -1812,7 +1812,7 @@ class new_annotation:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
WJ = TypeVar("WJ", bound="update_annotation")
|
||||
TR = TypeVar("TR", bound="update_annotation")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1843,7 +1843,7 @@ class update_annotation:
|
||||
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()
|
||||
annotation_id = d.pop("annotation_id", UNSET)
|
||||
|
||||
@ -1882,7 +1882,7 @@ class update_annotation:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
TR = TypeVar("TR", bound="object_visible")
|
||||
YD = TypeVar("YD", bound="object_visible")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1912,7 +1912,7 @@ class object_visible:
|
||||
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()
|
||||
hidden = d.pop("hidden", UNSET)
|
||||
|
||||
@ -1946,7 +1946,7 @@ class object_visible:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
YD = TypeVar("YD", bound="get_entity_type")
|
||||
JF = TypeVar("JF", bound="get_entity_type")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -1972,7 +1972,7 @@ class get_entity_type:
|
||||
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()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -2003,7 +2003,7 @@ class get_entity_type:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
JF = TypeVar("JF", bound="solid3d_get_all_edge_faces")
|
||||
VP = TypeVar("VP", bound="solid3d_get_all_edge_faces")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2033,7 +2033,7 @@ class solid3d_get_all_edge_faces:
|
||||
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()
|
||||
edge_id = d.pop("edge_id", UNSET)
|
||||
|
||||
@ -2067,7 +2067,7 @@ class solid3d_get_all_edge_faces:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
VP = TypeVar("VP", bound="solid3d_get_all_opposite_edges")
|
||||
EL = TypeVar("EL", bound="solid3d_get_all_opposite_edges")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2102,7 +2102,7 @@ class solid3d_get_all_opposite_edges:
|
||||
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()
|
||||
_along_vector = d.pop("along_vector", UNSET)
|
||||
along_vector: Union[Unset, Point3d]
|
||||
@ -2144,7 +2144,7 @@ class solid3d_get_all_opposite_edges:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
EL = TypeVar("EL", bound="solid3d_get_opposite_edge")
|
||||
ZG = TypeVar("ZG", bound="solid3d_get_opposite_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2178,7 +2178,7 @@ class solid3d_get_opposite_edge:
|
||||
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()
|
||||
edge_id = d.pop("edge_id", UNSET)
|
||||
|
||||
@ -2215,7 +2215,7 @@ class solid3d_get_opposite_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
ZG = TypeVar("ZG", bound="solid3d_get_next_adjacent_edge")
|
||||
LF = TypeVar("LF", bound="solid3d_get_next_adjacent_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2249,7 +2249,7 @@ class solid3d_get_next_adjacent_edge:
|
||||
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()
|
||||
edge_id = d.pop("edge_id", UNSET)
|
||||
|
||||
@ -2286,7 +2286,7 @@ class solid3d_get_next_adjacent_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LF = TypeVar("LF", bound="solid3d_get_prev_adjacent_edge")
|
||||
CS = TypeVar("CS", bound="solid3d_get_prev_adjacent_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -2320,7 +2320,7 @@ class solid3d_get_prev_adjacent_edge:
|
||||
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()
|
||||
edge_id = d.pop("edge_id", UNSET)
|
||||
|
||||
|
@ -6,7 +6,7 @@ from ..models.modeling_cmd import ModelingCmd
|
||||
from ..models.modeling_cmd_id import ModelingCmdId
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
CS = TypeVar("CS", bound="ModelingCmdReq")
|
||||
GN = TypeVar("GN", bound="ModelingCmdReq")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class ModelingCmdReq:
|
||||
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()
|
||||
_cmd = d.pop("cmd", UNSET)
|
||||
cmd: Union[Unset, ModelingCmd]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
GN = TypeVar("GN", bound="ModelingCmdReqBatch")
|
||||
GD = TypeVar("GD", bound="ModelingCmdReqBatch")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class ModelingCmdReqBatch:
|
||||
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()
|
||||
cmds = d.pop("cmds", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
GD = TypeVar("GD", bound="ModelingError")
|
||||
VJ = TypeVar("VJ", bound="ModelingError")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -39,7 +39,7 @@ class ModelingError:
|
||||
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()
|
||||
error_code = d.pop("error_code", UNSET)
|
||||
|
||||
|
@ -13,7 +13,7 @@ success = OkModelingCmdResponse
|
||||
error = ModelingError
|
||||
|
||||
|
||||
VJ = TypeVar("VJ", bound="cancelled")
|
||||
OX = TypeVar("OX", bound="cancelled")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class cancelled:
|
||||
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()
|
||||
_what_failed = d.pop("what_failed", UNSET)
|
||||
what_failed: Union[Unset, ModelingCmdId]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
OX = TypeVar("OX", bound="ModelingOutcomes")
|
||||
YW = TypeVar("YW", bound="ModelingOutcomes")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class ModelingOutcomes:
|
||||
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()
|
||||
outcomes = d.pop("outcomes", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.country_code import CountryCode
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
YW = TypeVar("YW", bound="NewAddress")
|
||||
QX = TypeVar("QX", bound="NewAddress")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -53,7 +53,7 @@ class NewAddress:
|
||||
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()
|
||||
city = d.pop("city", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
QX = TypeVar("QX", bound="OAuth2ClientInfo")
|
||||
NO = TypeVar("NO", bound="OAuth2ClientInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class OAuth2ClientInfo:
|
||||
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()
|
||||
csrf_token = d.pop("csrf_token", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.entity_type import EntityType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
NO = TypeVar("NO", bound="empty")
|
||||
VX = TypeVar("VX", bound="empty")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class empty:
|
||||
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()
|
||||
type = d.pop("type", UNSET)
|
||||
|
||||
@ -55,7 +55,7 @@ class empty:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
VX = TypeVar("VX", bound="export")
|
||||
RG = TypeVar("RG", bound="export")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class export:
|
||||
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()
|
||||
from ..models.export_file import ExportFile
|
||||
|
||||
@ -120,7 +120,7 @@ class export:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
RG = TypeVar("RG", bound="select_with_point")
|
||||
IT = TypeVar("IT", bound="select_with_point")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -146,7 +146,7 @@ class select_with_point:
|
||||
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()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -177,7 +177,7 @@ class select_with_point:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
IT = TypeVar("IT", bound="highlight_set_entity")
|
||||
LD = TypeVar("LD", bound="highlight_set_entity")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -207,7 +207,7 @@ class highlight_set_entity:
|
||||
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()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -241,7 +241,7 @@ class highlight_set_entity:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LD = TypeVar("LD", bound="entity_get_child_uuid")
|
||||
UA = TypeVar("UA", bound="entity_get_child_uuid")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -267,7 +267,7 @@ class entity_get_child_uuid:
|
||||
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()
|
||||
entity_id = d.pop("entity_id", UNSET)
|
||||
|
||||
@ -298,7 +298,7 @@ class entity_get_child_uuid:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UA = TypeVar("UA", bound="entity_get_num_children")
|
||||
TN = TypeVar("TN", bound="entity_get_num_children")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -324,7 +324,7 @@ class entity_get_num_children:
|
||||
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()
|
||||
num = d.pop("num", UNSET)
|
||||
|
||||
@ -355,7 +355,7 @@ class entity_get_num_children:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
TN = TypeVar("TN", bound="entity_get_parent_id")
|
||||
MZ = TypeVar("MZ", bound="entity_get_parent_id")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -381,7 +381,7 @@ class entity_get_parent_id:
|
||||
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)
|
||||
|
||||
@ -412,7 +412,7 @@ class entity_get_parent_id:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
MZ = TypeVar("MZ", bound="entity_get_all_child_uuids")
|
||||
UG = TypeVar("UG", bound="entity_get_all_child_uuids")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -440,7 +440,7 @@ class entity_get_all_child_uuids:
|
||||
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()
|
||||
entity_ids = cast(List[str], d.pop("entity_ids", UNSET))
|
||||
|
||||
@ -471,7 +471,7 @@ class entity_get_all_child_uuids:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
UG = TypeVar("UG", bound="select_get")
|
||||
CY = TypeVar("CY", bound="select_get")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -499,7 +499,7 @@ class select_get:
|
||||
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()
|
||||
entity_ids = cast(List[str], d.pop("entity_ids", UNSET))
|
||||
|
||||
@ -530,7 +530,7 @@ class select_get:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
CY = TypeVar("CY", bound="get_entity_type")
|
||||
NZ = TypeVar("NZ", bound="get_entity_type")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -557,7 +557,7 @@ class get_entity_type:
|
||||
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()
|
||||
_entity_type = d.pop("entity_type", UNSET)
|
||||
entity_type: Union[Unset, EntityType]
|
||||
@ -593,7 +593,7 @@ class get_entity_type:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
NZ = TypeVar("NZ", bound="solid3d_get_all_edge_faces")
|
||||
LI = TypeVar("LI", bound="solid3d_get_all_edge_faces")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -621,7 +621,7 @@ class solid3d_get_all_edge_faces:
|
||||
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()
|
||||
faces = cast(List[str], d.pop("faces", UNSET))
|
||||
|
||||
@ -652,7 +652,7 @@ class solid3d_get_all_edge_faces:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LI = TypeVar("LI", bound="solid3d_get_all_opposite_edges")
|
||||
LO = TypeVar("LO", bound="solid3d_get_all_opposite_edges")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -680,7 +680,7 @@ class solid3d_get_all_opposite_edges:
|
||||
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()
|
||||
edges = cast(List[str], d.pop("edges", UNSET))
|
||||
|
||||
@ -711,7 +711,7 @@ class solid3d_get_all_opposite_edges:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LO = TypeVar("LO", bound="solid3d_get_opposite_edge")
|
||||
XJ = TypeVar("XJ", bound="solid3d_get_opposite_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -737,7 +737,7 @@ class solid3d_get_opposite_edge:
|
||||
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()
|
||||
edge = d.pop("edge", UNSET)
|
||||
|
||||
@ -768,7 +768,7 @@ class solid3d_get_opposite_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
XJ = TypeVar("XJ", bound="solid3d_get_prev_adjacent_edge")
|
||||
OW = TypeVar("OW", bound="solid3d_get_prev_adjacent_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -794,7 +794,7 @@ class solid3d_get_prev_adjacent_edge:
|
||||
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()
|
||||
edge = d.pop("edge", UNSET)
|
||||
|
||||
@ -825,7 +825,7 @@ class solid3d_get_prev_adjacent_edge:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
OW = TypeVar("OW", bound="solid3d_get_next_adjacent_edge")
|
||||
JQ = TypeVar("JQ", bound="solid3d_get_next_adjacent_edge")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -851,7 +851,7 @@ class solid3d_get_next_adjacent_edge:
|
||||
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()
|
||||
edge = d.pop("edge", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
JQ = TypeVar("JQ", bound="Onboarding")
|
||||
PQ = TypeVar("PQ", bound="Onboarding")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -37,7 +37,7 @@ class Onboarding:
|
||||
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()
|
||||
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
|
||||
|
||||
PQ = TypeVar("PQ", bound="OutputFile")
|
||||
IM = TypeVar("IM", bound="OutputFile")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -31,7 +31,7 @@ class OutputFile:
|
||||
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()
|
||||
contents = d.pop("contents", UNSET)
|
||||
|
||||
|
@ -6,7 +6,7 @@ from ..models.storage import Storage
|
||||
from ..models.system import System
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
IM = TypeVar("IM", bound="gltf")
|
||||
OU = TypeVar("OU", bound="gltf")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class gltf:
|
||||
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()
|
||||
_storage = d.pop("storage", UNSET)
|
||||
storage: Union[Unset, Storage]
|
||||
@ -69,7 +69,7 @@ class gltf:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
OU = TypeVar("OU", bound="obj")
|
||||
KL = TypeVar("KL", bound="obj")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -96,7 +96,7 @@ class obj:
|
||||
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()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -132,7 +132,7 @@ class obj:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
KL = TypeVar("KL", bound="ply")
|
||||
XI = TypeVar("XI", bound="ply")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -164,7 +164,7 @@ class ply:
|
||||
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()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -208,7 +208,7 @@ class ply:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
XI = TypeVar("XI", bound="step")
|
||||
PO = TypeVar("PO", bound="step")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -235,7 +235,7 @@ class step:
|
||||
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()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
@ -271,7 +271,7 @@ class step:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
PO = TypeVar("PO", bound="stl")
|
||||
PS = TypeVar("PS", bound="stl")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -303,7 +303,7 @@ class stl:
|
||||
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()
|
||||
_coords = d.pop("coords", UNSET)
|
||||
coords: Union[Unset, System]
|
||||
|
@ -6,7 +6,7 @@ from ..models.point2d import Point2d
|
||||
from ..models.point3d import Point3d
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
PS = TypeVar("PS", bound="line")
|
||||
WR = TypeVar("WR", bound="line")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class line:
|
||||
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()
|
||||
_end = d.pop("end", UNSET)
|
||||
end: Union[Unset, Point3d]
|
||||
@ -69,7 +69,7 @@ class line:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
WR = TypeVar("WR", bound="arc")
|
||||
XL = TypeVar("XL", bound="arc")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -108,7 +108,7 @@ class arc:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WR], src_dict: Dict[str, Any]) -> WR:
|
||||
def from_dict(cls: Type[XL], src_dict: Dict[str, Any]) -> XL:
|
||||
d = src_dict.copy()
|
||||
angle_end = d.pop("angle_end", UNSET)
|
||||
|
||||
@ -153,7 +153,7 @@ class arc:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
XL = TypeVar("XL", bound="bezier")
|
||||
ZX = TypeVar("ZX", bound="bezier")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -190,7 +190,7 @@ class bezier:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[XL], src_dict: Dict[str, Any]) -> XL:
|
||||
def from_dict(cls: Type[ZX], src_dict: Dict[str, Any]) -> ZX:
|
||||
d = src_dict.copy()
|
||||
_control1 = d.pop("control1", UNSET)
|
||||
control1: Union[Unset, Point3d]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
ZX = TypeVar("ZX", bound="PaymentIntent")
|
||||
FT = TypeVar("FT", bound="PaymentIntent")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class PaymentIntent:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ZX], src_dict: Dict[str, Any]) -> ZX:
|
||||
def from_dict(cls: Type[FT], src_dict: Dict[str, Any]) -> FT:
|
||||
d = src_dict.copy()
|
||||
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
|
||||
|
||||
FT = TypeVar("FT", bound="PaymentMethod")
|
||||
NX = TypeVar("NX", bound="PaymentMethod")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -57,7 +57,7 @@ class PaymentMethod:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FT], src_dict: Dict[str, Any]) -> FT:
|
||||
def from_dict(cls: Type[NX], src_dict: Dict[str, Any]) -> NX:
|
||||
d = src_dict.copy()
|
||||
_billing_info = d.pop("billing_info", UNSET)
|
||||
billing_info: Union[Unset, BillingInfo]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
NX = TypeVar("NX", bound="PaymentMethodCardChecks")
|
||||
SC = TypeVar("SC", bound="PaymentMethodCardChecks")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class PaymentMethodCardChecks:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[NX], src_dict: Dict[str, Any]) -> NX:
|
||||
def from_dict(cls: Type[SC], src_dict: Dict[str, Any]) -> SC:
|
||||
d = src_dict.copy()
|
||||
address_line1_check = d.pop("address_line1_check", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
SC = TypeVar("SC", bound="PluginsInfo")
|
||||
TX = TypeVar("TX", bound="PluginsInfo")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -50,7 +50,7 @@ class PluginsInfo:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SC], src_dict: Dict[str, Any]) -> SC:
|
||||
def from_dict(cls: Type[TX], src_dict: Dict[str, Any]) -> TX:
|
||||
d = src_dict.copy()
|
||||
authorization = cast(List[str], d.pop("authorization", UNSET))
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TX = TypeVar("TX", bound="Point2d")
|
||||
JA = TypeVar("JA", bound="Point2d")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -31,7 +31,7 @@ class Point2d:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TX], src_dict: Dict[str, Any]) -> TX:
|
||||
def from_dict(cls: Type[JA], src_dict: Dict[str, Any]) -> JA:
|
||||
d = src_dict.copy()
|
||||
x = d.pop("x", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
JA = TypeVar("JA", bound="Point3d")
|
||||
SK = TypeVar("SK", bound="Point3d")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class Point3d:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JA], src_dict: Dict[str, Any]) -> JA:
|
||||
def from_dict(cls: Type[SK], src_dict: Dict[str, Any]) -> SK:
|
||||
d = src_dict.copy()
|
||||
x = d.pop("x", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
SK = TypeVar("SK", bound="PointEMetadata")
|
||||
UK = TypeVar("UK", bound="PointEMetadata")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -29,7 +29,7 @@ class PointEMetadata:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SK], src_dict: Dict[str, Any]) -> SK:
|
||||
def from_dict(cls: Type[UK], src_dict: Dict[str, Any]) -> UK:
|
||||
d = src_dict.copy()
|
||||
ok = d.pop("ok", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
UK = TypeVar("UK", bound="Pong")
|
||||
CX = TypeVar("CX", bound="Pong")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -27,7 +27,7 @@ class Pong:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[UK], src_dict: Dict[str, Any]) -> UK:
|
||||
def from_dict(cls: Type[CX], src_dict: Dict[str, Any]) -> CX:
|
||||
d = src_dict.copy()
|
||||
message = d.pop("message", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
CX = TypeVar("CX", bound="RawFile")
|
||||
MT = TypeVar("MT", bound="RawFile")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class RawFile:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CX], src_dict: Dict[str, Any]) -> CX:
|
||||
def from_dict(cls: Type[MT], src_dict: Dict[str, Any]) -> MT:
|
||||
d = src_dict.copy()
|
||||
contents = cast(List[int], d.pop("contents", UNSET))
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
MT = TypeVar("MT", bound="RegistryServiceConfig")
|
||||
LJ = TypeVar("LJ", bound="RegistryServiceConfig")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -59,7 +59,7 @@ class RegistryServiceConfig:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MT], src_dict: Dict[str, Any]) -> MT:
|
||||
def from_dict(cls: Type[LJ], src_dict: Dict[str, Any]) -> LJ:
|
||||
d = src_dict.copy()
|
||||
allow_nondistributable_artifacts_cid_rs = cast(
|
||||
List[str], d.pop("allow_nondistributable_artifacts_cid_rs", UNSET)
|
||||
|
@ -6,7 +6,7 @@ from ..models.rtc_ice_candidate_type import RtcIceCandidateType
|
||||
from ..models.rtc_ice_protocol import RtcIceProtocol
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
LJ = TypeVar("LJ", bound="RtcIceCandidate")
|
||||
TF = TypeVar("TF", bound="RtcIceCandidate")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -71,7 +71,7 @@ class RtcIceCandidate:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LJ], src_dict: Dict[str, Any]) -> LJ:
|
||||
def from_dict(cls: Type[TF], src_dict: Dict[str, Any]) -> TF:
|
||||
d = src_dict.copy()
|
||||
address = d.pop("address", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TF = TypeVar("TF", bound="RtcIceCandidateInit")
|
||||
HF = TypeVar("HF", bound="RtcIceCandidateInit")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -39,7 +39,7 @@ class RtcIceCandidateInit:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TF], src_dict: Dict[str, Any]) -> TF:
|
||||
def from_dict(cls: Type[HF], src_dict: Dict[str, Any]) -> HF:
|
||||
d = src_dict.copy()
|
||||
candidate = d.pop("candidate", UNSET)
|
||||
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.rtc_sdp_type import RtcSdpType
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
HF = TypeVar("HF", bound="RtcSessionDescription")
|
||||
JD = TypeVar("JD", bound="RtcSessionDescription")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class RtcSessionDescription:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[HF], src_dict: Dict[str, Any]) -> HF:
|
||||
def from_dict(cls: Type[JD], src_dict: Dict[str, Any]) -> JD:
|
||||
d = src_dict.copy()
|
||||
sdp = d.pop("sdp", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
JD = TypeVar("JD", bound="Runtime")
|
||||
RZ = TypeVar("RZ", bound="Runtime")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -33,7 +33,7 @@ class Runtime:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[JD], src_dict: Dict[str, Any]) -> JD:
|
||||
def from_dict(cls: Type[RZ], src_dict: Dict[str, Any]) -> RZ:
|
||||
d = src_dict.copy()
|
||||
path = d.pop("path", UNSET)
|
||||
|
||||
|
@ -7,7 +7,7 @@ from dateutil.parser import isoparse
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
RZ = TypeVar("RZ", bound="Session")
|
||||
BH = TypeVar("BH", bound="Session")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -58,7 +58,7 @@ class Session:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RZ], src_dict: Dict[str, Any]) -> RZ:
|
||||
def from_dict(cls: Type[BH], src_dict: Dict[str, Any]) -> BH:
|
||||
d = src_dict.copy()
|
||||
_created_at = d.pop("created_at", UNSET)
|
||||
created_at: Union[Unset, datetime.datetime]
|
||||
|
@ -5,7 +5,7 @@ import attr
|
||||
from ..models.axis_direction_pair import AxisDirectionPair
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
BH = TypeVar("BH", bound="System")
|
||||
SX = TypeVar("SX", bound="System")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -41,7 +41,7 @@ class System:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[BH], src_dict: Dict[str, Any]) -> BH:
|
||||
def from_dict(cls: Type[SX], src_dict: Dict[str, Any]) -> SX:
|
||||
d = src_dict.copy()
|
||||
_forward = d.pop("forward", UNSET)
|
||||
forward: Union[Unset, AxisDirectionPair]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
SX = TypeVar("SX", bound="SystemInfoDefaultAddressPools")
|
||||
CN = TypeVar("CN", bound="SystemInfoDefaultAddressPools")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -29,7 +29,7 @@ class SystemInfoDefaultAddressPools:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SX], src_dict: Dict[str, Any]) -> SX:
|
||||
def from_dict(cls: Type[CN], src_dict: Dict[str, Any]) -> CN:
|
||||
d = src_dict.copy()
|
||||
base = d.pop("base", UNSET)
|
||||
|
||||
|
@ -9,7 +9,7 @@ from ..models.unit_angle import UnitAngle
|
||||
from ..models.uuid import Uuid
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
CN = TypeVar("CN", bound="UnitAngleConversion")
|
||||
GS = TypeVar("GS", bound="UnitAngleConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitAngleConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CN], src_dict: Dict[str, Any]) -> CN:
|
||||
def from_dict(cls: Type[GS], src_dict: Dict[str, Any]) -> GS:
|
||||
d = src_dict.copy()
|
||||
_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
|
||||
|
||||
GS = TypeVar("GS", bound="UnitAreaConversion")
|
||||
SO = TypeVar("SO", bound="UnitAreaConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitAreaConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GS], src_dict: Dict[str, Any]) -> GS:
|
||||
def from_dict(cls: Type[SO], src_dict: Dict[str, Any]) -> SO:
|
||||
d = src_dict.copy()
|
||||
_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
|
||||
|
||||
SO = TypeVar("SO", bound="UnitCurrentConversion")
|
||||
ZS = TypeVar("ZS", bound="UnitCurrentConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitCurrentConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SO], src_dict: Dict[str, Any]) -> SO:
|
||||
def from_dict(cls: Type[ZS], src_dict: Dict[str, Any]) -> ZS:
|
||||
d = src_dict.copy()
|
||||
_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
|
||||
|
||||
ZS = TypeVar("ZS", bound="UnitEnergyConversion")
|
||||
AM = TypeVar("AM", bound="UnitEnergyConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitEnergyConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[ZS], src_dict: Dict[str, Any]) -> ZS:
|
||||
def from_dict(cls: Type[AM], src_dict: Dict[str, Any]) -> AM:
|
||||
d = src_dict.copy()
|
||||
_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
|
||||
|
||||
AM = TypeVar("AM", bound="UnitForceConversion")
|
||||
GK = TypeVar("GK", bound="UnitForceConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitForceConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[AM], src_dict: Dict[str, Any]) -> AM:
|
||||
def from_dict(cls: Type[GK], src_dict: Dict[str, Any]) -> GK:
|
||||
d = src_dict.copy()
|
||||
_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
|
||||
|
||||
GK = TypeVar("GK", bound="UnitFrequencyConversion")
|
||||
SG = TypeVar("SG", bound="UnitFrequencyConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitFrequencyConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[GK], src_dict: Dict[str, Any]) -> GK:
|
||||
def from_dict(cls: Type[SG], src_dict: Dict[str, Any]) -> SG:
|
||||
d = src_dict.copy()
|
||||
_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
|
||||
|
||||
SG = TypeVar("SG", bound="UnitLengthConversion")
|
||||
QZ = TypeVar("QZ", bound="UnitLengthConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitLengthConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SG], src_dict: Dict[str, Any]) -> SG:
|
||||
def from_dict(cls: Type[QZ], src_dict: Dict[str, Any]) -> QZ:
|
||||
d = src_dict.copy()
|
||||
_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
|
||||
|
||||
QZ = TypeVar("QZ", bound="UnitMassConversion")
|
||||
SY = TypeVar("SY", bound="UnitMassConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitMassConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[QZ], src_dict: Dict[str, Any]) -> QZ:
|
||||
def from_dict(cls: Type[SY], src_dict: Dict[str, Any]) -> SY:
|
||||
d = src_dict.copy()
|
||||
_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
|
||||
|
||||
SY = TypeVar("SY", bound="UnitPowerConversion")
|
||||
YK = TypeVar("YK", bound="UnitPowerConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitPowerConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SY], src_dict: Dict[str, Any]) -> SY:
|
||||
def from_dict(cls: Type[YK], src_dict: Dict[str, Any]) -> YK:
|
||||
d = src_dict.copy()
|
||||
_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
|
||||
|
||||
YK = TypeVar("YK", bound="UnitPressureConversion")
|
||||
WS = TypeVar("WS", bound="UnitPressureConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitPressureConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[YK], src_dict: Dict[str, Any]) -> YK:
|
||||
def from_dict(cls: Type[WS], src_dict: Dict[str, Any]) -> WS:
|
||||
d = src_dict.copy()
|
||||
_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
|
||||
|
||||
WS = TypeVar("WS", bound="UnitTemperatureConversion")
|
||||
SL = TypeVar("SL", bound="UnitTemperatureConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitTemperatureConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WS], src_dict: Dict[str, Any]) -> WS:
|
||||
def from_dict(cls: Type[SL], src_dict: Dict[str, Any]) -> SL:
|
||||
d = src_dict.copy()
|
||||
_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
|
||||
|
||||
SL = TypeVar("SL", bound="UnitTorqueConversion")
|
||||
MK = TypeVar("MK", bound="UnitTorqueConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitTorqueConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[SL], src_dict: Dict[str, Any]) -> SL:
|
||||
def from_dict(cls: Type[MK], src_dict: Dict[str, Any]) -> MK:
|
||||
d = src_dict.copy()
|
||||
_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
|
||||
|
||||
MK = TypeVar("MK", bound="UnitVolumeConversion")
|
||||
TU = TypeVar("TU", bound="UnitVolumeConversion")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -87,7 +87,7 @@ class UnitVolumeConversion:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[MK], src_dict: Dict[str, Any]) -> MK:
|
||||
def from_dict(cls: Type[TU], src_dict: Dict[str, Any]) -> TU:
|
||||
d = src_dict.copy()
|
||||
_completed_at = d.pop("completed_at", UNSET)
|
||||
completed_at: Union[Unset, datetime.datetime]
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TU = TypeVar("TU", bound="UpdateUser")
|
||||
FY = TypeVar("FY", bound="UpdateUser")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -47,7 +47,7 @@ class UpdateUser:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TU], src_dict: Dict[str, Any]) -> TU:
|
||||
def from_dict(cls: Type[FY], src_dict: Dict[str, Any]) -> FY:
|
||||
d = src_dict.copy()
|
||||
company = d.pop("company", UNSET)
|
||||
|
||||
|
@ -6,7 +6,7 @@ from dateutil.parser import isoparse
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FY = TypeVar("FY", bound="User")
|
||||
FD = TypeVar("FD", bound="User")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -83,7 +83,7 @@ class User:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FY], src_dict: Dict[str, Any]) -> FY:
|
||||
def from_dict(cls: Type[FD], src_dict: Dict[str, Any]) -> FD:
|
||||
d = src_dict.copy()
|
||||
company = d.pop("company", UNSET)
|
||||
|
||||
|
@ -4,7 +4,7 @@ import attr
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
FD = TypeVar("FD", bound="UserResultsPage")
|
||||
TZ = TypeVar("TZ", bound="UserResultsPage")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -37,7 +37,7 @@ class UserResultsPage:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[FD], src_dict: Dict[str, Any]) -> FD:
|
||||
def from_dict(cls: Type[TZ], src_dict: Dict[str, Any]) -> TZ:
|
||||
d = src_dict.copy()
|
||||
from ..models.user import User
|
||||
|
||||
|
@ -6,7 +6,7 @@ from dateutil.parser import isoparse
|
||||
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
TZ = TypeVar("TZ", bound="VerificationToken")
|
||||
AX = TypeVar("AX", bound="VerificationToken")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -53,7 +53,7 @@ class VerificationToken:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[TZ], src_dict: Dict[str, Any]) -> TZ:
|
||||
def from_dict(cls: Type[AX], src_dict: Dict[str, Any]) -> AX:
|
||||
d = src_dict.copy()
|
||||
_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
|
||||
|
||||
AX = TypeVar("AX", bound="trickle_ice")
|
||||
RQ = TypeVar("RQ", bound="trickle_ice")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class trickle_ice:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[AX], src_dict: Dict[str, Any]) -> AX:
|
||||
def from_dict(cls: Type[RQ], src_dict: Dict[str, Any]) -> RQ:
|
||||
d = src_dict.copy()
|
||||
_candidate = d.pop("candidate", UNSET)
|
||||
candidate: Union[Unset, RtcIceCandidateInit]
|
||||
@ -71,7 +71,7 @@ class trickle_ice:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
RQ = TypeVar("RQ", bound="sdp_offer")
|
||||
ZL = TypeVar("ZL", bound="sdp_offer")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -98,7 +98,7 @@ class sdp_offer:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[RQ], src_dict: Dict[str, Any]) -> RQ:
|
||||
def from_dict(cls: Type[ZL], src_dict: Dict[str, Any]) -> ZL:
|
||||
d = src_dict.copy()
|
||||
_offer = d.pop("offer", UNSET)
|
||||
offer: Union[Unset, RtcSessionDescription]
|
||||
@ -134,7 +134,7 @@ class sdp_offer:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
ZL = TypeVar("ZL", bound="modeling_cmd_req")
|
||||
CM = TypeVar("CM", 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[ZL], src_dict: Dict[str, Any]) -> ZL:
|
||||
def from_dict(cls: Type[CM], src_dict: Dict[str, Any]) -> CM:
|
||||
d = src_dict.copy()
|
||||
_cmd = d.pop("cmd", UNSET)
|
||||
cmd: Union[Unset, ModelingCmd]
|
||||
|
@ -8,7 +8,7 @@ from ..models.rtc_session_description import RtcSessionDescription
|
||||
from ..models.snake_case_result import SnakeCaseResult
|
||||
from ..types import UNSET, Unset
|
||||
|
||||
CM = TypeVar("CM", bound="trickle_ice")
|
||||
OS = TypeVar("OS", bound="trickle_ice")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -35,7 +35,7 @@ class trickle_ice:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[CM], src_dict: Dict[str, Any]) -> CM:
|
||||
def from_dict(cls: Type[OS], src_dict: Dict[str, Any]) -> OS:
|
||||
d = src_dict.copy()
|
||||
_candidate = d.pop("candidate", UNSET)
|
||||
candidate: Union[Unset, RtcIceCandidate]
|
||||
@ -71,7 +71,7 @@ class trickle_ice:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
OS = TypeVar("OS", bound="sdp_answer")
|
||||
WP = TypeVar("WP", bound="sdp_answer")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -98,7 +98,7 @@ class sdp_answer:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[OS], src_dict: Dict[str, Any]) -> OS:
|
||||
def from_dict(cls: Type[WP], src_dict: Dict[str, Any]) -> WP:
|
||||
d = src_dict.copy()
|
||||
_answer = d.pop("answer", UNSET)
|
||||
answer: Union[Unset, RtcSessionDescription]
|
||||
@ -134,7 +134,7 @@ class sdp_answer:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
WP = TypeVar("WP", bound="ice_server_info")
|
||||
XO = TypeVar("XO", bound="ice_server_info")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -166,7 +166,7 @@ class ice_server_info:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[WP], src_dict: Dict[str, Any]) -> WP:
|
||||
def from_dict(cls: Type[XO], src_dict: Dict[str, Any]) -> XO:
|
||||
d = src_dict.copy()
|
||||
from ..models.ice_server import IceServer
|
||||
|
||||
@ -199,7 +199,7 @@ class ice_server_info:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
XO = TypeVar("XO", bound="modeling")
|
||||
LN = TypeVar("LN", bound="modeling")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -231,7 +231,7 @@ class modeling:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[XO], src_dict: Dict[str, Any]) -> XO:
|
||||
def from_dict(cls: Type[LN], src_dict: Dict[str, Any]) -> LN:
|
||||
d = src_dict.copy()
|
||||
_cmd_id = d.pop("cmd_id", UNSET)
|
||||
cmd_id: Union[Unset, ModelingCmdId]
|
||||
@ -275,7 +275,7 @@ class modeling:
|
||||
return key in self.additional_properties
|
||||
|
||||
|
||||
LN = TypeVar("LN", bound="export")
|
||||
KR = TypeVar("KR", bound="export")
|
||||
|
||||
|
||||
@attr.s(auto_attribs=True)
|
||||
@ -307,7 +307,7 @@ class export:
|
||||
return field_dict
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls: Type[LN], src_dict: Dict[str, Any]) -> LN:
|
||||
def from_dict(cls: Type[KR], src_dict: Dict[str, Any]) -> KR:
|
||||
d = src_dict.copy()
|
||||
from ..models.raw_file import RawFile
|
||||
|
||||
|
43
spec.json
43
spec.json
@ -5493,6 +5493,28 @@
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"EngineError": {
|
||||
"description": "An error.",
|
||||
"properties": {
|
||||
"error_code": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ErrorCode"
|
||||
}
|
||||
],
|
||||
"description": "The error code."
|
||||
},
|
||||
"message": {
|
||||
"description": "The error message.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"error_code",
|
||||
"message"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"EngineMetadata": {
|
||||
"description": "Metadata about our currently running server.\n\nThis is mostly used for internal purposes and debugging.",
|
||||
"properties": {
|
||||
@ -5588,24 +5610,21 @@
|
||||
]
|
||||
},
|
||||
"Error": {
|
||||
"description": "An error.",
|
||||
"description": "Error information from a response.",
|
||||
"properties": {
|
||||
"code": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/ErrorCode"
|
||||
}
|
||||
],
|
||||
"description": "The error code."
|
||||
"error_code": {
|
||||
"type": "string"
|
||||
},
|
||||
"message": {
|
||||
"description": "The error message.",
|
||||
"type": "string"
|
||||
},
|
||||
"request_id": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"code",
|
||||
"message"
|
||||
"message",
|
||||
"request_id"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
@ -5634,7 +5653,7 @@
|
||||
"errors": {
|
||||
"description": "A list of errors.",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/Error"
|
||||
"$ref": "#/components/schemas/EngineError"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
|
Reference in New Issue
Block a user