kittycad.models.modeling_cmd_req.ModelingCmdReq
- class kittycad.models.modeling_cmd_req.ModelingCmdReq(cmd=<kittycad.types.Unset object>, cmd_id=<kittycad.types.Unset object>, file_id=<kittycad.types.Unset object>)[source][source]
Bases:
object
A graphics command submitted to the KittyCAD engine via the Modeling API.
Method generated by attrs for class ModelingCmdReq.
- __init__(cmd=<kittycad.types.Unset object>, cmd_id=<kittycad.types.Unset object>, file_id=<kittycad.types.Unset object>)[source]
Method generated by attrs for class ModelingCmdReq.
Methods
__init__
([cmd, cmd_id, file_id])Method generated by attrs for class ModelingCmdReq.
from_dict
(src_dict)- rtype:
TypeVar
(C
, bound= ModelingCmdReq)
to_dict
()Attributes
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'cmd': typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd.StartPath, kittycad.models.modeling_cmd.MovePathPen, kittycad.models.modeling_cmd.ExtendPath, kittycad.models.extrude.Extrude, kittycad.models.modeling_cmd.ClosePath, kittycad.models.modeling_cmd.CameraDragStart, kittycad.models.modeling_cmd.CameraDragMove, kittycad.models.modeling_cmd.CameraDragEnd], 'cmd_id': typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId], 'file_id': typing.Union[kittycad.types.Unset, str]}[source]
- __attrs_attrs__ = (Attribute(name='cmd', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd.StartPath, kittycad.models.modeling_cmd.MovePathPen, kittycad.models.modeling_cmd.ExtendPath, kittycad.models.extrude.Extrude, kittycad.models.modeling_cmd.ClosePath, kittycad.models.modeling_cmd.CameraDragStart, kittycad.models.modeling_cmd.CameraDragMove, kittycad.models.modeling_cmd.CameraDragEnd], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cmd'), Attribute(name='cmd_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cmd_id'), Attribute(name='file_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='file_id'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties'))[source]
- __dict__ = mappingproxy({'__module__': 'kittycad.models.modeling_cmd_req', '__annotations__': {'cmd': typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd.StartPath, kittycad.models.modeling_cmd.MovePathPen, kittycad.models.modeling_cmd.ExtendPath, kittycad.models.extrude.Extrude, kittycad.models.modeling_cmd.ClosePath, kittycad.models.modeling_cmd.CameraDragStart, kittycad.models.modeling_cmd.CameraDragMove, kittycad.models.modeling_cmd.CameraDragEnd], 'cmd_id': typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId], 'file_id': typing.Union[kittycad.types.Unset, str], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'A graphics command submitted to the KittyCAD engine via the Modeling API.', 'to_dict': <function ModelingCmdReq.to_dict>, 'from_dict': <classmethod(<function ModelingCmdReq.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function ModelingCmdReq.__getitem__>, '__setitem__': <function ModelingCmdReq.__setitem__>, '__delitem__': <function ModelingCmdReq.__delitem__>, '__contains__': <function ModelingCmdReq.__contains__>, '__dict__': <attribute '__dict__' of 'ModelingCmdReq' objects>, '__weakref__': <attribute '__weakref__' of 'ModelingCmdReq' objects>, '__attrs_attrs__': (Attribute(name='cmd', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd.StartPath, kittycad.models.modeling_cmd.MovePathPen, kittycad.models.modeling_cmd.ExtendPath, kittycad.models.extrude.Extrude, kittycad.models.modeling_cmd.ClosePath, kittycad.models.modeling_cmd.CameraDragStart, kittycad.models.modeling_cmd.CameraDragMove, kittycad.models.modeling_cmd.CameraDragEnd], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cmd'), Attribute(name='cmd_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, kittycad.models.modeling_cmd_id.ModelingCmdId], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cmd_id'), Attribute(name='file_id', default=<kittycad.types.Unset object>, validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=True, metadata=mappingproxy({}), type=typing.Union[kittycad.types.Unset, str], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='file_id'), Attribute(name='additional_properties', default=Factory(factory=<class 'dict'>, takes_self=False), validator=None, repr=True, eq=True, eq_key=None, order=True, order_key=None, hash=None, init=False, metadata=mappingproxy({}), type=typing.Dict[str, typing.Any], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='additional_properties')), '__repr__': <function ModelingCmdReq.__repr__>, '__eq__': <function ModelingCmdReq.__eq__>, '__ne__': <function ModelingCmdReq.__ne__>, '__lt__': <function ModelingCmdReq.__lt__>, '__le__': <function ModelingCmdReq.__le__>, '__gt__': <function ModelingCmdReq.__gt__>, '__ge__': <function ModelingCmdReq.__ge__>, '__hash__': None, '__init__': <function ModelingCmdReq.__init__>, '__match_args__': ('cmd', 'cmd_id', 'file_id')})[source]
- __init__(cmd=<kittycad.types.Unset object>, cmd_id=<kittycad.types.Unset object>, file_id=<kittycad.types.Unset object>)[source]
Method generated by attrs for class ModelingCmdReq.
-
cmd:
Union
[Unset
,StartPath
,MovePathPen
,ExtendPath
,Extrude
,ClosePath
,CameraDragStart
,CameraDragMove
,CameraDragEnd
][source]
-
cmd_id:
Union
[Unset
,ModelingCmdId
][source]