kittycad.models.commit

Classes

Commit([expected, id])

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.

class kittycad.models.commit.Commit(expected=<kittycad.types.Unset object>, id=<kittycad.types.Unset object>)[source][source]

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.

__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]
__contains__(key)[source][source]
Return type:

bool

__delitem__(key)[source][source]
Return type:

None

__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]
__eq__(other)[source]

Method generated by attrs for class Commit.

__ge__(other)[source]

Method generated by attrs for class Commit.

__getitem__(key)[source][source]
Return type:

Any

__gt__(other)[source]

Method generated by attrs for class Commit.

__hash__ = None[source]
__init__(expected=<kittycad.types.Unset object>, id=<kittycad.types.Unset object>)[source]

Method generated by attrs for class Commit.

__le__(other)[source]

Method generated by attrs for class Commit.

__lt__(other)[source]

Method generated by attrs for class Commit.

__match_args__ = ('expected', 'id')[source]
__module__ = 'kittycad.models.commit'[source]
__ne__(other)[source]

Method generated by attrs for class Commit.

__repr__()[source]

Method generated by attrs for class Commit.

__setitem__(key, value)[source][source]
Return type:

None

property additional_keys: List[str][source]
additional_properties: Dict[str, Any][source]
expected: Union[Unset, str][source]
classmethod from_dict(src_dict)[source][source]
Return type:

TypeVar(VR, bound= Commit)

id: Union[Unset, str][source]
to_dict()[source][source]
Return type:

Dict[str, Any]