kittycad.models.commit.Commit
- class kittycad.models.commit.Commit(expected=<kittycad.types.Unset object>, id=<kittycad.types.Unset object>)[source][source]
Bases:
object
Commit holds the Git-commit (SHA1) that a binary was built from, as reported in the version-string of external tools, such as containerd, or runC.
Method generated by attrs for class Commit.
- __init__(expected=<kittycad.types.Unset object>, id=<kittycad.types.Unset object>)[source]
Method generated by attrs for class Commit.
Methods
__init__
([expected, id])Method generated by attrs for class Commit.
from_dict
(src_dict)- rtype:
TypeVar
(L
, bound= Commit)
to_dict
()Attributes
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'expected': typing.Union[kittycad.types.Unset, str], 'id': typing.Union[kittycad.types.Unset, str]}[source]
- __attrs_attrs__ = (Attribute(name='expected', 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='expected'), Attribute(name='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='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.commit', '__annotations__': {'expected': typing.Union[kittycad.types.Unset, str], 'id': typing.Union[kittycad.types.Unset, str], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'Commit holds the Git-commit (SHA1) that a binary was built from, as reported in the version-string of external tools, such as `containerd`, or `runC`.', 'to_dict': <function Commit.to_dict>, 'from_dict': <classmethod(<function Commit.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function Commit.__getitem__>, '__setitem__': <function Commit.__setitem__>, '__delitem__': <function Commit.__delitem__>, '__contains__': <function Commit.__contains__>, '__dict__': <attribute '__dict__' of 'Commit' objects>, '__weakref__': <attribute '__weakref__' of 'Commit' objects>, '__attrs_attrs__': (Attribute(name='expected', 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='expected'), Attribute(name='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='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 Commit.__repr__>, '__eq__': <function Commit.__eq__>, '__ne__': <function Commit.__ne__>, '__lt__': <function Commit.__lt__>, '__le__': <function Commit.__le__>, '__gt__': <function Commit.__gt__>, '__ge__': <function Commit.__ge__>, '__hash__': None, '__init__': <function Commit.__init__>, '__match_args__': ('expected', 'id')})[source]