2023-08-30 15:59:51 -07:00
from typing import Any , Dict , List , Type , TypeVar , Union
2023-08-16 16:31:50 -07:00
import attr
2023-09-29 15:51:03 -07:00
from . . models . center_of_mass import CenterOfMass
2023-08-30 15:59:51 -07:00
from . . models . curve_get_control_points import CurveGetControlPoints
2023-09-29 15:51:03 -07:00
from . . models . curve_get_end_points import CurveGetEndPoints
2023-08-30 15:59:51 -07:00
from . . models . curve_get_type import CurveGetType
2023-09-29 15:51:03 -07:00
from . . models . density import Density
2023-08-30 15:59:51 -07:00
from . . models . entity_get_all_child_uuids import EntityGetAllChildUuids
from . . models . entity_get_child_uuid import EntityGetChildUuid
from . . models . entity_get_num_children import EntityGetNumChildren
from . . models . entity_get_parent_id import EntityGetParentId
from . . models . export import Export
from . . models . get_entity_type import GetEntityType
2023-10-12 09:02:59 -07:00
from . . models . get_sketch_mode_plane import GetSketchModePlane
2023-08-30 15:59:51 -07:00
from . . models . highlight_set_entity import HighlightSetEntity
2023-09-29 15:51:03 -07:00
from . . models . import_files import ImportFiles
from . . models . mass import Mass
2023-08-30 15:59:51 -07:00
from . . models . mouse_click import MouseClick
2023-09-29 15:51:03 -07:00
from . . models . path_get_curve_uuids_for_vertices import PathGetCurveUuidsForVertices
2023-08-30 15:59:51 -07:00
from . . models . path_get_info import PathGetInfo
2023-10-17 15:35:56 -07:00
from . . models . path_get_vertex_uuids import PathGetVertexUuids
2023-09-29 15:51:03 -07:00
from . . models . plane_intersect_and_project import PlaneIntersectAndProject
2023-08-30 15:59:51 -07:00
from . . models . select_get import SelectGet
from . . models . select_with_point import SelectWithPoint
from . . models . solid3d_get_all_edge_faces import Solid3dGetAllEdgeFaces
from . . models . solid3d_get_all_opposite_edges import Solid3dGetAllOppositeEdges
from . . models . solid3d_get_next_adjacent_edge import Solid3dGetNextAdjacentEdge
from . . models . solid3d_get_opposite_edge import Solid3dGetOppositeEdge
from . . models . solid3d_get_prev_adjacent_edge import Solid3dGetPrevAdjacentEdge
2023-09-29 15:51:03 -07:00
from . . models . surface_area import SurfaceArea
2023-08-30 15:59:51 -07:00
from . . models . take_snapshot import TakeSnapshot
2023-09-29 15:51:03 -07:00
from . . models . volume import Volume
2023-08-16 16:31:50 -07:00
from . . types import UNSET , Unset
2023-11-28 14:29:16 -08:00
FO = TypeVar ( " FO " , bound = " empty " )
2023-11-27 16:01:20 -08:00
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class empty :
2023-11-27 16:01:20 -08:00
""" An empty response, used for any command that does not explicitly have a response defined here. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type : str = " empty "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ FO ] , src_dict : Dict [ str , Any ] ) - > FO :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
empty = cls (
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
empty . additional_properties = d
return empty
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
KB = TypeVar ( " KB " , bound = " export " )
2023-08-16 16:31:50 -07:00
2023-09-29 16:05:40 -07:00
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class export :
2023-11-27 16:01:20 -08:00
""" The response from the `Export` command. When this is being performed over a websocket, this is sent as binary not JSON. The binary data can be deserialized as `bincode` into a `Vec<ExportFile>`. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , Export ] = UNSET
type : str = " export "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ KB ] , src_dict : Dict [ str , Any ] ) - > KB :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , Export ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = Export . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
export = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
export . additional_properties = d
return export
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
QH = TypeVar ( " QH " , bound = " select_with_point " )
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class select_with_point :
2023-11-27 16:01:20 -08:00
""" The response from the `SelectWithPoint` command. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , SelectWithPoint ] = UNSET
type : str = " select_with_point "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ QH ] , src_dict : Dict [ str , Any ] ) - > QH :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , SelectWithPoint ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = SelectWithPoint . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
select_with_point = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
select_with_point . additional_properties = d
return select_with_point
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
EV = TypeVar ( " EV " , bound = " highlight_set_entity " )
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class highlight_set_entity :
2023-11-27 16:01:20 -08:00
""" The response from the `HighlightSetEntity` command. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , HighlightSetEntity ] = UNSET
type : str = " highlight_set_entity "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ EV ] , src_dict : Dict [ str , Any ] ) - > EV :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , HighlightSetEntity ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = HighlightSetEntity . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
highlight_set_entity = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
highlight_set_entity . additional_properties = d
return highlight_set_entity
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
YL = TypeVar ( " YL " , bound = " entity_get_child_uuid " )
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class entity_get_child_uuid :
2023-11-27 16:01:20 -08:00
""" The response from the `EntityGetChildUuid` command. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , EntityGetChildUuid ] = UNSET
type : str = " entity_get_child_uuid "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ YL ] , src_dict : Dict [ str , Any ] ) - > YL :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , EntityGetChildUuid ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = EntityGetChildUuid . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
entity_get_child_uuid = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
entity_get_child_uuid . additional_properties = d
return entity_get_child_uuid
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
AN = TypeVar ( " AN " , bound = " entity_get_num_children " )
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class entity_get_num_children :
2023-11-27 16:01:20 -08:00
""" The response from the `EntityGetNumChildren` command. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , EntityGetNumChildren ] = UNSET
type : str = " entity_get_num_children "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ AN ] , src_dict : Dict [ str , Any ] ) - > AN :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , EntityGetNumChildren ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = EntityGetNumChildren . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
entity_get_num_children = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
entity_get_num_children . additional_properties = d
return entity_get_num_children
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
UV = TypeVar ( " UV " , bound = " entity_get_parent_id " )
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class entity_get_parent_id :
2023-11-27 16:01:20 -08:00
""" The response from the `EntityGetParentId` command. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , EntityGetParentId ] = UNSET
type : str = " entity_get_parent_id "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ UV ] , src_dict : Dict [ str , Any ] ) - > UV :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , EntityGetParentId ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = EntityGetParentId . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
entity_get_parent_id = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
entity_get_parent_id . additional_properties = d
return entity_get_parent_id
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
IB = TypeVar ( " IB " , bound = " entity_get_all_child_uuids " )
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class entity_get_all_child_uuids :
2023-11-27 16:01:20 -08:00
""" The response from the `EntityGetAllChildUuids` command. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , EntityGetAllChildUuids ] = UNSET
type : str = " entity_get_all_child_uuids "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ IB ] , src_dict : Dict [ str , Any ] ) - > IB :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , EntityGetAllChildUuids ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = EntityGetAllChildUuids . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
entity_get_all_child_uuids = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
entity_get_all_child_uuids . additional_properties = d
return entity_get_all_child_uuids
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
EU = TypeVar ( " EU " , bound = " select_get " )
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class select_get :
2023-11-27 16:01:20 -08:00
""" The response from the `SelectGet` command. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , SelectGet ] = UNSET
type : str = " select_get "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ EU ] , src_dict : Dict [ str , Any ] ) - > EU :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , SelectGet ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = SelectGet . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
select_get = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
select_get . additional_properties = d
return select_get
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
QW = TypeVar ( " QW " , bound = " get_entity_type " )
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class get_entity_type :
2023-11-27 16:01:20 -08:00
""" The response from the `GetEntityType` command. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , GetEntityType ] = UNSET
type : str = " get_entity_type "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ QW ] , src_dict : Dict [ str , Any ] ) - > QW :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , GetEntityType ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = GetEntityType . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
get_entity_type = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
get_entity_type . additional_properties = d
return get_entity_type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
RN = TypeVar ( " RN " , bound = " solid3d_get_all_edge_faces " )
2023-08-16 16:31:50 -07:00
2023-09-29 16:05:40 -07:00
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class solid3d_get_all_edge_faces :
2023-11-27 16:01:20 -08:00
""" The response from the `Solid3dGetAllEdgeFaces` command. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , Solid3dGetAllEdgeFaces ] = UNSET
type : str = " solid3d_get_all_edge_faces "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ RN ] , src_dict : Dict [ str , Any ] ) - > RN :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , Solid3dGetAllEdgeFaces ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = Solid3dGetAllEdgeFaces . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
solid3d_get_all_edge_faces = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
solid3d_get_all_edge_faces . additional_properties = d
return solid3d_get_all_edge_faces
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
JN = TypeVar ( " JN " , bound = " solid3d_get_all_opposite_edges " )
2023-08-16 16:31:50 -07:00
2023-09-29 16:05:40 -07:00
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class solid3d_get_all_opposite_edges :
2023-11-27 16:01:20 -08:00
""" The response from the `Solid3dGetAllOppositeEdges` command. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , Solid3dGetAllOppositeEdges ] = UNSET
type : str = " solid3d_get_all_opposite_edges "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ JN ] , src_dict : Dict [ str , Any ] ) - > JN :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , Solid3dGetAllOppositeEdges ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = Solid3dGetAllOppositeEdges . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
solid3d_get_all_opposite_edges = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
solid3d_get_all_opposite_edges . additional_properties = d
return solid3d_get_all_opposite_edges
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
BD = TypeVar ( " BD " , bound = " solid3d_get_opposite_edge " )
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class solid3d_get_opposite_edge :
2023-11-27 16:01:20 -08:00
""" The response from the `Solid3dGetOppositeEdge` command. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , Solid3dGetOppositeEdge ] = UNSET
type : str = " solid3d_get_opposite_edge "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ BD ] , src_dict : Dict [ str , Any ] ) - > BD :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , Solid3dGetOppositeEdge ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = Solid3dGetOppositeEdge . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
solid3d_get_opposite_edge = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
solid3d_get_opposite_edge . additional_properties = d
return solid3d_get_opposite_edge
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
XW = TypeVar ( " XW " , bound = " solid3d_get_prev_adjacent_edge " )
2023-08-16 16:31:50 -07:00
2023-09-29 16:05:40 -07:00
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class solid3d_get_prev_adjacent_edge :
2023-11-27 16:01:20 -08:00
""" The response from the `Solid3dGetPrevAdjacentEdge` command. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , Solid3dGetPrevAdjacentEdge ] = UNSET
type : str = " solid3d_get_prev_adjacent_edge "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ XW ] , src_dict : Dict [ str , Any ] ) - > XW :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , Solid3dGetPrevAdjacentEdge ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = Solid3dGetPrevAdjacentEdge . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
solid3d_get_prev_adjacent_edge = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
solid3d_get_prev_adjacent_edge . additional_properties = d
return solid3d_get_prev_adjacent_edge
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
LP = TypeVar ( " LP " , bound = " solid3d_get_next_adjacent_edge " )
2023-08-16 16:31:50 -07:00
2023-09-29 16:05:40 -07:00
2023-08-16 16:31:50 -07:00
@attr.s ( auto_attribs = True )
class solid3d_get_next_adjacent_edge :
2023-11-27 16:01:20 -08:00
""" The response from the `Solid3dGetNextAdjacentEdge` command. """ # noqa: E501
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , Solid3dGetNextAdjacentEdge ] = UNSET
type : str = " solid3d_get_next_adjacent_edge "
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ LP ] , src_dict : Dict [ str , Any ] ) - > LP :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , Solid3dGetNextAdjacentEdge ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = Solid3dGetNextAdjacentEdge . from_dict ( _data )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
solid3d_get_next_adjacent_edge = cls (
data = data ,
type = type ,
)
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
solid3d_get_next_adjacent_edge . additional_properties = d
return solid3d_get_next_adjacent_edge
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-16 16:31:50 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-16 16:31:50 -07:00
2023-11-28 14:29:16 -08:00
XN = TypeVar ( " XN " , bound = " mouse_click " )
2023-08-30 15:59:51 -07:00
@attr.s ( auto_attribs = True )
class mouse_click :
2023-11-27 16:01:20 -08:00
""" The response from the `MouseClick` command. """ # noqa: E501
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , MouseClick ] = UNSET
type : str = " mouse_click "
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ XN ] , src_dict : Dict [ str , Any ] ) - > XN :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , MouseClick ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = MouseClick . from_dict ( _data )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
mouse_click = cls (
data = data ,
type = type ,
)
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
mouse_click . additional_properties = d
return mouse_click
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-30 15:59:51 -07:00
2023-11-28 14:29:16 -08:00
PL = TypeVar ( " PL " , bound = " curve_get_type " )
2023-08-30 15:59:51 -07:00
2023-09-29 16:05:40 -07:00
2023-08-30 15:59:51 -07:00
@attr.s ( auto_attribs = True )
class curve_get_type :
2023-11-27 16:01:20 -08:00
""" The response from the `CurveGetType` command. """ # noqa: E501
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , CurveGetType ] = UNSET
type : str = " curve_get_type "
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ PL ] , src_dict : Dict [ str , Any ] ) - > PL :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , CurveGetType ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = CurveGetType . from_dict ( _data )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
curve_get_type = cls (
data = data ,
type = type ,
)
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
curve_get_type . additional_properties = d
return curve_get_type
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-30 15:59:51 -07:00
2023-11-28 14:29:16 -08:00
XS = TypeVar ( " XS " , bound = " curve_get_control_points " )
2023-08-30 15:59:51 -07:00
2023-09-29 16:05:40 -07:00
2023-08-30 15:59:51 -07:00
@attr.s ( auto_attribs = True )
class curve_get_control_points :
2023-11-27 16:01:20 -08:00
""" The response from the `CurveGetControlPoints` command. """ # noqa: E501
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , CurveGetControlPoints ] = UNSET
type : str = " curve_get_control_points "
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ XS ] , src_dict : Dict [ str , Any ] ) - > XS :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , CurveGetControlPoints ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = CurveGetControlPoints . from_dict ( _data )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
curve_get_control_points = cls (
data = data ,
type = type ,
)
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
curve_get_control_points . additional_properties = d
return curve_get_control_points
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-30 15:59:51 -07:00
2023-11-28 14:29:16 -08:00
YB = TypeVar ( " YB " , bound = " take_snapshot " )
2023-08-30 15:59:51 -07:00
@attr.s ( auto_attribs = True )
class take_snapshot :
2023-11-27 16:01:20 -08:00
""" The response from the `Take Snapshot` command. """ # noqa: E501
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , TakeSnapshot ] = UNSET
type : str = " take_snapshot "
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ YB ] , src_dict : Dict [ str , Any ] ) - > YB :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , TakeSnapshot ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = TakeSnapshot . from_dict ( _data )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
take_snapshot = cls (
data = data ,
type = type ,
)
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
take_snapshot . additional_properties = d
return take_snapshot
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-30 15:59:51 -07:00
2023-11-28 14:29:16 -08:00
YX = TypeVar ( " YX " , bound = " path_get_info " )
2023-08-30 15:59:51 -07:00
2023-09-29 16:05:40 -07:00
2023-08-30 15:59:51 -07:00
@attr.s ( auto_attribs = True )
class path_get_info :
2023-11-27 16:01:20 -08:00
""" The response from the `Path Get Info` command. """ # noqa: E501
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , PathGetInfo ] = UNSET
type : str = " path_get_info "
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ YX ] , src_dict : Dict [ str , Any ] ) - > YX :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , PathGetInfo ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = PathGetInfo . from_dict ( _data )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
path_get_info = cls (
data = data ,
type = type ,
)
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
path_get_info . additional_properties = d
return path_get_info
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-08-30 15:59:51 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-08-30 15:59:51 -07:00
2023-11-28 14:29:16 -08:00
LM = TypeVar ( " LM " , bound = " path_get_curve_uuids_for_vertices " )
2023-09-29 15:51:03 -07:00
@attr.s ( auto_attribs = True )
class path_get_curve_uuids_for_vertices :
2023-11-27 16:01:20 -08:00
""" The response from the `Path Get Curve UUIDs for Vertices` command. """ # noqa: E501
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , PathGetCurveUuidsForVertices ] = UNSET
type : str = " path_get_curve_uuids_for_vertices "
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ LM ] , src_dict : Dict [ str , Any ] ) - > LM :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , PathGetCurveUuidsForVertices ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = PathGetCurveUuidsForVertices . from_dict ( _data )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
path_get_curve_uuids_for_vertices = cls (
data = data ,
type = type ,
)
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
path_get_curve_uuids_for_vertices . additional_properties = d
return path_get_curve_uuids_for_vertices
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-09-29 15:51:03 -07:00
2023-11-28 14:29:16 -08:00
DM = TypeVar ( " DM " , bound = " path_get_vertex_uuids " )
2023-09-29 15:51:03 -07:00
2023-10-17 15:35:56 -07:00
@attr.s ( auto_attribs = True )
class path_get_vertex_uuids :
2023-11-27 16:01:20 -08:00
""" The response from the `Path Get Vertex UUIDs` command. """ # noqa: E501
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , PathGetVertexUuids ] = UNSET
type : str = " path_get_vertex_uuids "
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ DM ] , src_dict : Dict [ str , Any ] ) - > DM :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , PathGetVertexUuids ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = PathGetVertexUuids . from_dict ( _data )
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
path_get_vertex_uuids = cls (
data = data ,
type = type ,
)
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
path_get_vertex_uuids . additional_properties = d
return path_get_vertex_uuids
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-10-17 15:35:56 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-10-17 15:35:56 -07:00
2023-11-28 14:29:16 -08:00
HZ = TypeVar ( " HZ " , bound = " plane_intersect_and_project " )
2023-10-17 15:35:56 -07:00
2023-09-29 16:05:40 -07:00
2023-09-29 15:51:03 -07:00
@attr.s ( auto_attribs = True )
class plane_intersect_and_project :
2023-11-27 16:01:20 -08:00
""" The response from the `PlaneIntersectAndProject` command. """ # noqa: E501
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , PlaneIntersectAndProject ] = UNSET
type : str = " plane_intersect_and_project "
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ HZ ] , src_dict : Dict [ str , Any ] ) - > HZ :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , PlaneIntersectAndProject ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = PlaneIntersectAndProject . from_dict ( _data )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
plane_intersect_and_project = cls (
data = data ,
type = type ,
)
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
plane_intersect_and_project . additional_properties = d
return plane_intersect_and_project
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-09-29 15:51:03 -07:00
2023-11-28 14:29:16 -08:00
CP = TypeVar ( " CP " , bound = " curve_get_end_points " )
2023-09-29 15:51:03 -07:00
@attr.s ( auto_attribs = True )
class curve_get_end_points :
2023-11-27 16:01:20 -08:00
""" The response from the `CurveGetEndPoints` command. """ # noqa: E501
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , CurveGetEndPoints ] = UNSET
type : str = " curve_get_end_points "
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ CP ] , src_dict : Dict [ str , Any ] ) - > CP :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , CurveGetEndPoints ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = CurveGetEndPoints . from_dict ( _data )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
curve_get_end_points = cls (
data = data ,
type = type ,
)
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
curve_get_end_points . additional_properties = d
return curve_get_end_points
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-09-29 15:51:03 -07:00
2023-11-28 14:29:16 -08:00
IP = TypeVar ( " IP " , bound = " import_files " )
2023-09-29 15:51:03 -07:00
@attr.s ( auto_attribs = True )
class import_files :
2023-11-27 16:01:20 -08:00
""" The response from the `ImportFiles` command. """ # noqa: E501
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , ImportFiles ] = UNSET
type : str = " import_files "
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ IP ] , src_dict : Dict [ str , Any ] ) - > IP :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , ImportFiles ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = ImportFiles . from_dict ( _data )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
import_files = cls (
data = data ,
type = type ,
)
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
import_files . additional_properties = d
return import_files
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-09-29 15:51:03 -07:00
2023-11-28 14:29:16 -08:00
XV = TypeVar ( " XV " , bound = " mass " )
2023-09-29 15:51:03 -07:00
@attr.s ( auto_attribs = True )
class mass :
2023-11-27 16:01:20 -08:00
""" The response from the `Mass` command. """ # noqa: E501
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , Mass ] = UNSET
type : str = " mass "
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ XV ] , src_dict : Dict [ str , Any ] ) - > XV :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , Mass ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = Mass . from_dict ( _data )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
mass = cls (
data = data ,
type = type ,
)
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
mass . additional_properties = d
return mass
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-09-29 15:51:03 -07:00
2023-11-28 14:29:16 -08:00
TW = TypeVar ( " TW " , bound = " volume " )
2023-09-29 15:51:03 -07:00
@attr.s ( auto_attribs = True )
class volume :
2023-11-27 16:01:20 -08:00
""" The response from the `Volume` command. """ # noqa: E501
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , Volume ] = UNSET
type : str = " volume "
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ TW ] , src_dict : Dict [ str , Any ] ) - > TW :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , Volume ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = Volume . from_dict ( _data )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
volume = cls (
data = data ,
type = type ,
)
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
volume . additional_properties = d
return volume
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-09-29 15:51:03 -07:00
2023-11-28 14:29:16 -08:00
CH = TypeVar ( " CH " , bound = " density " )
2023-09-29 15:51:03 -07:00
2023-09-29 16:05:40 -07:00
2023-09-29 15:51:03 -07:00
@attr.s ( auto_attribs = True )
class density :
2023-11-27 16:01:20 -08:00
""" The response from the `Density` command. """ # noqa: E501
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , Density ] = UNSET
type : str = " density "
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ CH ] , src_dict : Dict [ str , Any ] ) - > CH :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , Density ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = Density . from_dict ( _data )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
density = cls (
data = data ,
type = type ,
)
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
density . additional_properties = d
return density
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-09-29 15:51:03 -07:00
2023-11-28 14:29:16 -08:00
MW = TypeVar ( " MW " , bound = " surface_area " )
2023-09-29 15:51:03 -07:00
@attr.s ( auto_attribs = True )
class surface_area :
2023-11-27 16:01:20 -08:00
""" The response from the `SurfaceArea` command. """ # noqa: E501
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , SurfaceArea ] = UNSET
type : str = " surface_area "
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ MW ] , src_dict : Dict [ str , Any ] ) - > MW :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , SurfaceArea ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = SurfaceArea . from_dict ( _data )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
surface_area = cls (
data = data ,
type = type ,
)
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
surface_area . additional_properties = d
return surface_area
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 15:51:03 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-09-29 15:51:03 -07:00
2023-11-28 14:29:16 -08:00
VN = TypeVar ( " VN " , bound = " center_of_mass " )
2023-09-29 15:51:03 -07:00
@attr.s ( auto_attribs = True )
class center_of_mass :
2023-11-27 16:01:20 -08:00
""" The response from the `CenterOfMass` command. """ # noqa: E501
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
data : Union [ Unset , CenterOfMass ] = UNSET
type : str = " center_of_mass "
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
return field_dict
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ VN ] , src_dict : Dict [ str , Any ] ) - > VN :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , CenterOfMass ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = CenterOfMass . from_dict ( _data )
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
center_of_mass = cls (
data = data ,
type = type ,
)
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
center_of_mass . additional_properties = d
return center_of_mass
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
2023-09-29 16:05:40 -07:00
2023-11-27 16:01:20 -08:00
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-10-12 09:02:59 -07:00
2023-11-28 14:29:16 -08:00
WE = TypeVar ( " WE " , bound = " get_sketch_mode_plane " )
2023-10-12 09:02:59 -07:00
@attr.s ( auto_attribs = True )
class get_sketch_mode_plane :
2023-11-27 16:01:20 -08:00
""" The response from the `GetSketchModePlane` command. """ # noqa: E501
data : Union [ Unset , GetSketchModePlane ] = UNSET
type : str = " get_sketch_mode_plane "
additional_properties : Dict [ str , Any ] = attr . ib ( init = False , factory = dict )
def to_dict ( self ) - > Dict [ str , Any ] :
if not isinstance ( self . data , Unset ) :
data = self . data
type = self . type
field_dict : Dict [ str , Any ] = { }
field_dict . update ( self . additional_properties )
field_dict . update ( { } )
if data is not UNSET :
2023-11-28 13:13:13 -08:00
field_dict [ " data " ] = data . to_dict ( )
2023-11-27 16:01:20 -08:00
field_dict [ " type " ] = type
return field_dict
@classmethod
2023-11-28 14:29:16 -08:00
def from_dict ( cls : Type [ WE ] , src_dict : Dict [ str , Any ] ) - > WE :
2023-11-27 16:01:20 -08:00
d = src_dict . copy ( )
_data = d . pop ( " data " , UNSET )
data : Union [ Unset , GetSketchModePlane ]
if isinstance ( _data , Unset ) :
data = UNSET
2023-11-28 15:17:44 -08:00
if _data is None :
data = UNSET
2023-11-27 16:01:20 -08:00
else :
2023-11-28 15:17:44 -08:00
data = GetSketchModePlane . from_dict ( _data )
2023-11-27 16:01:20 -08:00
type = d . pop ( " type " , UNSET )
get_sketch_mode_plane = cls (
data = data ,
type = type ,
)
get_sketch_mode_plane . additional_properties = d
return get_sketch_mode_plane
@property
def additional_keys ( self ) - > List [ str ] :
return list ( self . additional_properties . keys ( ) )
def __getitem__ ( self , key : str ) - > Any :
return self . additional_properties [ key ]
def __setitem__ ( self , key : str , value : Any ) - > None :
self . additional_properties [ key ] = value
def __delitem__ ( self , key : str ) - > None :
del self . additional_properties [ key ]
def __contains__ ( self , key : str ) - > bool :
return key in self . additional_properties
2023-11-28 14:29:16 -08:00
GY = TypeVar ( " GY " , bound = " OkModelingCmdResponse " )
@attr.s ( auto_attribs = True )
2023-11-28 14:16:05 -08:00
class OkModelingCmdResponse :
""" A successful response from a modeling command. This can be one of several types of responses, depending on the command. """
type : Union [
empty ,
export ,
select_with_point ,
highlight_set_entity ,
entity_get_child_uuid ,
entity_get_num_children ,
entity_get_parent_id ,
entity_get_all_child_uuids ,
select_get ,
get_entity_type ,
solid3d_get_all_edge_faces ,
solid3d_get_all_opposite_edges ,
solid3d_get_opposite_edge ,
solid3d_get_prev_adjacent_edge ,
solid3d_get_next_adjacent_edge ,
mouse_click ,
curve_get_type ,
curve_get_control_points ,
take_snapshot ,
path_get_info ,
path_get_curve_uuids_for_vertices ,
path_get_vertex_uuids ,
plane_intersect_and_project ,
curve_get_end_points ,
import_files ,
mass ,
volume ,
density ,
surface_area ,
center_of_mass ,
get_sketch_mode_plane ,
2023-11-28 14:29:16 -08:00
]
2023-11-28 14:16:05 -08:00
def __init__ (
self ,
type : Union [
2023-11-28 14:29:16 -08:00
empty ,
export ,
select_with_point ,
highlight_set_entity ,
entity_get_child_uuid ,
entity_get_num_children ,
entity_get_parent_id ,
entity_get_all_child_uuids ,
select_get ,
get_entity_type ,
solid3d_get_all_edge_faces ,
solid3d_get_all_opposite_edges ,
solid3d_get_opposite_edge ,
solid3d_get_prev_adjacent_edge ,
solid3d_get_next_adjacent_edge ,
mouse_click ,
curve_get_type ,
curve_get_control_points ,
take_snapshot ,
path_get_info ,
path_get_curve_uuids_for_vertices ,
path_get_vertex_uuids ,
plane_intersect_and_project ,
curve_get_end_points ,
import_files ,
mass ,
volume ,
density ,
surface_area ,
center_of_mass ,
get_sketch_mode_plane ,
2023-11-28 14:16:05 -08:00
] ,
) :
self . type = type
def to_dict ( self ) - > Dict [ str , Any ] :
if isinstance ( self . type , empty ) :
2023-11-28 14:29:16 -08:00
YZ : empty = self . type
return YZ . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , export ) :
2023-11-28 14:29:16 -08:00
SV : export = self . type
return SV . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , select_with_point ) :
2023-11-28 14:29:16 -08:00
ZF : select_with_point = self . type
return ZF . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , highlight_set_entity ) :
2023-11-28 14:29:16 -08:00
RA : highlight_set_entity = self . type
return RA . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , entity_get_child_uuid ) :
2023-11-28 14:29:16 -08:00
KP : entity_get_child_uuid = self . type
return KP . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , entity_get_num_children ) :
2023-11-28 14:29:16 -08:00
HM : entity_get_num_children = self . type
return HM . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , entity_get_parent_id ) :
2023-11-28 14:29:16 -08:00
NT : entity_get_parent_id = self . type
return NT . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , entity_get_all_child_uuids ) :
2023-11-28 14:29:16 -08:00
IH : entity_get_all_child_uuids = self . type
return IH . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , select_get ) :
2023-11-28 14:29:16 -08:00
WK : select_get = self . type
return WK . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , get_entity_type ) :
2023-11-28 14:29:16 -08:00
CA : get_entity_type = self . type
return CA . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , solid3d_get_all_edge_faces ) :
2023-11-28 14:29:16 -08:00
AF : solid3d_get_all_edge_faces = self . type
return AF . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , solid3d_get_all_opposite_edges ) :
2023-11-28 14:29:16 -08:00
IY : solid3d_get_all_opposite_edges = self . type
return IY . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , solid3d_get_opposite_edge ) :
2023-11-28 14:29:16 -08:00
QB : solid3d_get_opposite_edge = self . type
return QB . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , solid3d_get_prev_adjacent_edge ) :
2023-11-28 14:29:16 -08:00
QN : solid3d_get_prev_adjacent_edge = self . type
return QN . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , solid3d_get_next_adjacent_edge ) :
2023-11-28 14:29:16 -08:00
VL : solid3d_get_next_adjacent_edge = self . type
return VL . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , mouse_click ) :
2023-11-28 14:29:16 -08:00
IW : mouse_click = self . type
return IW . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , curve_get_type ) :
2023-11-28 14:29:16 -08:00
LW : curve_get_type = self . type
return LW . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , curve_get_control_points ) :
2023-11-28 14:29:16 -08:00
ID : curve_get_control_points = self . type
return ID . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , take_snapshot ) :
2023-11-28 14:29:16 -08:00
NI : take_snapshot = self . type
return NI . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , path_get_info ) :
2023-11-28 14:29:16 -08:00
BY : path_get_info = self . type
return BY . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , path_get_curve_uuids_for_vertices ) :
2023-11-28 14:29:16 -08:00
IC : path_get_curve_uuids_for_vertices = self . type
return IC . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , path_get_vertex_uuids ) :
2023-11-28 14:29:16 -08:00
SH : path_get_vertex_uuids = self . type
return SH . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , plane_intersect_and_project ) :
2023-11-28 14:29:16 -08:00
RV : plane_intersect_and_project = self . type
return RV . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , curve_get_end_points ) :
2023-11-28 14:29:16 -08:00
TI : curve_get_end_points = self . type
return TI . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , import_files ) :
2023-11-28 14:29:16 -08:00
KO : import_files = self . type
return KO . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , mass ) :
2023-11-28 14:29:16 -08:00
AL : mass = self . type
return AL . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , volume ) :
2023-11-28 14:29:16 -08:00
ZH : volume = self . type
return ZH . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , density ) :
2023-11-28 14:29:16 -08:00
KD : density = self . type
return KD . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , surface_area ) :
2023-11-28 14:29:16 -08:00
YA : surface_area = self . type
return YA . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , center_of_mass ) :
2023-11-28 14:29:16 -08:00
WD : center_of_mass = self . type
return WD . to_dict ( )
2023-11-28 14:16:05 -08:00
elif isinstance ( self . type , get_sketch_mode_plane ) :
2023-11-28 14:29:16 -08:00
RJ : get_sketch_mode_plane = self . type
return RJ . to_dict ( )
2023-11-28 14:16:05 -08:00
raise Exception ( " Unknown type " )
2023-11-28 14:29:16 -08:00
@classmethod
def from_dict ( cls : Type [ GY ] , d : Dict [ str , Any ] ) - > GY :
2023-11-28 14:16:05 -08:00
if d . get ( " type " ) == " empty " :
2023-11-28 14:29:16 -08:00
GZ : empty = empty ( )
GZ . from_dict ( d )
return cls ( type = GZ )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " export " :
2023-11-28 14:29:16 -08:00
XB : export = export ( )
XB . from_dict ( d )
return cls ( type = XB )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " select_with_point " :
2023-11-28 14:29:16 -08:00
XM : select_with_point = select_with_point ( )
XM . from_dict ( d )
return cls ( type = XM )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " highlight_set_entity " :
2023-11-28 14:29:16 -08:00
TQ : highlight_set_entity = highlight_set_entity ( )
TQ . from_dict ( d )
return cls ( type = TQ )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " entity_get_child_uuid " :
2023-11-28 14:29:16 -08:00
SU : entity_get_child_uuid = entity_get_child_uuid ( )
SU . from_dict ( d )
return cls ( type = SU )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " entity_get_num_children " :
2023-11-28 14:29:16 -08:00
QD : entity_get_num_children = entity_get_num_children ( )
QD . from_dict ( d )
return cls ( type = QD )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " entity_get_parent_id " :
2023-11-28 14:29:16 -08:00
XC : entity_get_parent_id = entity_get_parent_id ( )
XC . from_dict ( d )
return cls ( type = XC )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " entity_get_all_child_uuids " :
2023-11-28 14:29:16 -08:00
IX : entity_get_all_child_uuids = entity_get_all_child_uuids ( )
IX . from_dict ( d )
return cls ( type = IX )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " select_get " :
2023-11-28 14:29:16 -08:00
YS : select_get = select_get ( )
YS . from_dict ( d )
return cls ( type = YS )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " get_entity_type " :
2023-11-28 14:29:16 -08:00
TT : get_entity_type = get_entity_type ( )
TT . from_dict ( d )
return cls ( type = TT )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " solid3d_get_all_edge_faces " :
2023-11-28 14:29:16 -08:00
CK : solid3d_get_all_edge_faces = solid3d_get_all_edge_faces ( )
CK . from_dict ( d )
return cls ( type = CK )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " solid3d_get_all_opposite_edges " :
2023-11-28 14:29:16 -08:00
BO : solid3d_get_all_opposite_edges = solid3d_get_all_opposite_edges ( )
BO . from_dict ( d )
return cls ( type = BO )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " solid3d_get_opposite_edge " :
2023-11-28 14:29:16 -08:00
VB : solid3d_get_opposite_edge = solid3d_get_opposite_edge ( )
VB . from_dict ( d )
return cls ( type = VB )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " solid3d_get_prev_adjacent_edge " :
2023-11-28 14:29:16 -08:00
RR : solid3d_get_prev_adjacent_edge = solid3d_get_prev_adjacent_edge ( )
RR . from_dict ( d )
return cls ( type = RR )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " solid3d_get_next_adjacent_edge " :
2023-11-28 14:29:16 -08:00
JS : solid3d_get_next_adjacent_edge = solid3d_get_next_adjacent_edge ( )
JS . from_dict ( d )
return cls ( type = JS )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " mouse_click " :
2023-11-28 14:29:16 -08:00
JU : mouse_click = mouse_click ( )
JU . from_dict ( d )
return cls ( type = JU )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " curve_get_type " :
2023-11-28 14:29:16 -08:00
MF : curve_get_type = curve_get_type ( )
MF . from_dict ( d )
return cls ( type = MF )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " curve_get_control_points " :
2023-11-28 14:29:16 -08:00
ER : curve_get_control_points = curve_get_control_points ( )
ER . from_dict ( d )
return cls ( type = ER )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " take_snapshot " :
2023-11-28 14:29:16 -08:00
GV : take_snapshot = take_snapshot ( )
GV . from_dict ( d )
return cls ( type = GV )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " path_get_info " :
2023-11-28 14:29:16 -08:00
SR : path_get_info = path_get_info ( )
SR . from_dict ( d )
return cls ( type = SR )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " path_get_curve_uuids_for_vertices " :
2023-11-28 14:29:16 -08:00
CU : path_get_curve_uuids_for_vertices = path_get_curve_uuids_for_vertices ( )
CU . from_dict ( d )
return cls ( type = CU )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " path_get_vertex_uuids " :
2023-11-28 14:29:16 -08:00
OZ : path_get_vertex_uuids = path_get_vertex_uuids ( )
OZ . from_dict ( d )
return cls ( type = OZ )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " plane_intersect_and_project " :
2023-11-28 14:29:16 -08:00
HS : plane_intersect_and_project = plane_intersect_and_project ( )
HS . from_dict ( d )
return cls ( type = HS )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " curve_get_end_points " :
2023-11-28 14:29:16 -08:00
JB : curve_get_end_points = curve_get_end_points ( )
JB . from_dict ( d )
return cls ( type = JB )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " import_files " :
2023-11-28 14:29:16 -08:00
RP : import_files = import_files ( )
RP . from_dict ( d )
return cls ( type = RP )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " mass " :
2023-11-28 14:29:16 -08:00
PF : mass = mass ( )
PF . from_dict ( d )
return cls ( type = PF )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " volume " :
2023-11-28 14:29:16 -08:00
KV : volume = volume ( )
KV . from_dict ( d )
return cls ( type = KV )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " density " :
2023-11-28 14:29:16 -08:00
IN : density = density ( )
IN . from_dict ( d )
return cls ( type = IN )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " surface_area " :
2023-11-28 14:29:16 -08:00
QR : surface_area = surface_area ( )
QR . from_dict ( d )
return cls ( type = QR )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " center_of_mass " :
2023-11-28 14:29:16 -08:00
PG : center_of_mass = center_of_mass ( )
PG . from_dict ( d )
return cls ( type = PG )
2023-11-28 14:16:05 -08:00
elif d . get ( " type " ) == " get_sketch_mode_plane " :
2023-11-28 14:29:16 -08:00
QS : get_sketch_mode_plane = get_sketch_mode_plane ( )
QS . from_dict ( d )
return cls ( type = QS )
2023-11-28 14:16:05 -08:00
raise Exception ( " Unknown type " )