kittycad.models.metadata.Metadata
- class kittycad.models.metadata.Metadata(cache=<kittycad.types.Unset object>, engine=<kittycad.types.Unset object>, environment=<kittycad.types.Unset object>, executor=<kittycad.types.Unset object>, fs=<kittycad.types.Unset object>, git_hash=<kittycad.types.Unset object>, point_e=<kittycad.types.Unset object>, pubsub=<kittycad.types.Unset object>)[source][source]
Bases:
object
Metadata about our currently running server.
This is mostly used for internal purposes and debugging.
Method generated by attrs for class Metadata.
- __init__(cache=<kittycad.types.Unset object>, engine=<kittycad.types.Unset object>, environment=<kittycad.types.Unset object>, executor=<kittycad.types.Unset object>, fs=<kittycad.types.Unset object>, git_hash=<kittycad.types.Unset object>, point_e=<kittycad.types.Unset object>, pubsub=<kittycad.types.Unset object>)[source]
Method generated by attrs for class Metadata.
Methods
__init__
([cache, engine, environment, ...])Method generated by attrs for class Metadata.
from_dict
(src_dict)- rtype:
TypeVar
(H
, bound= Metadata)
to_dict
()Attributes
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'cache': typing.Union[kittycad.types.Unset, kittycad.models.cache_metadata.CacheMetadata], 'engine': typing.Union[kittycad.types.Unset, kittycad.models.engine_metadata.EngineMetadata], 'environment': typing.Union[kittycad.types.Unset, kittycad.models.environment.Environment], 'executor': typing.Union[kittycad.types.Unset, kittycad.models.executor_metadata.ExecutorMetadata], 'fs': typing.Union[kittycad.types.Unset, kittycad.models.file_system_metadata.FileSystemMetadata], 'git_hash': typing.Union[kittycad.types.Unset, str], 'point_e': typing.Union[kittycad.types.Unset, kittycad.models.point_e_metadata.PointEMetadata], 'pubsub': typing.Union[kittycad.types.Unset, kittycad.models.connection.Connection]}[source]
- __attrs_attrs__ = (Attribute(name='cache', 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.cache_metadata.CacheMetadata], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cache'), Attribute(name='engine', 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.engine_metadata.EngineMetadata], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='engine'), Attribute(name='environment', 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.environment.Environment], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='environment'), Attribute(name='executor', 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.executor_metadata.ExecutorMetadata], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='executor'), Attribute(name='fs', 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.file_system_metadata.FileSystemMetadata], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='fs'), Attribute(name='git_hash', 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='git_hash'), Attribute(name='point_e', 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.point_e_metadata.PointEMetadata], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='point_e'), Attribute(name='pubsub', 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.connection.Connection], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='pubsub'), 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.metadata', '__annotations__': {'cache': typing.Union[kittycad.types.Unset, kittycad.models.cache_metadata.CacheMetadata], 'engine': typing.Union[kittycad.types.Unset, kittycad.models.engine_metadata.EngineMetadata], 'environment': typing.Union[kittycad.types.Unset, kittycad.models.environment.Environment], 'executor': typing.Union[kittycad.types.Unset, kittycad.models.executor_metadata.ExecutorMetadata], 'fs': typing.Union[kittycad.types.Unset, kittycad.models.file_system_metadata.FileSystemMetadata], 'git_hash': typing.Union[kittycad.types.Unset, str], 'point_e': typing.Union[kittycad.types.Unset, kittycad.models.point_e_metadata.PointEMetadata], 'pubsub': typing.Union[kittycad.types.Unset, kittycad.models.connection.Connection], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'Metadata about our currently running server.\n\n This is mostly used for internal purposes and debugging.', 'to_dict': <function Metadata.to_dict>, 'from_dict': <classmethod(<function Metadata.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function Metadata.__getitem__>, '__setitem__': <function Metadata.__setitem__>, '__delitem__': <function Metadata.__delitem__>, '__contains__': <function Metadata.__contains__>, '__dict__': <attribute '__dict__' of 'Metadata' objects>, '__weakref__': <attribute '__weakref__' of 'Metadata' objects>, '__attrs_attrs__': (Attribute(name='cache', 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.cache_metadata.CacheMetadata], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='cache'), Attribute(name='engine', 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.engine_metadata.EngineMetadata], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='engine'), Attribute(name='environment', 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.environment.Environment], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='environment'), Attribute(name='executor', 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.executor_metadata.ExecutorMetadata], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='executor'), Attribute(name='fs', 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.file_system_metadata.FileSystemMetadata], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='fs'), Attribute(name='git_hash', 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='git_hash'), Attribute(name='point_e', 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.point_e_metadata.PointEMetadata], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='point_e'), Attribute(name='pubsub', 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.connection.Connection], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='pubsub'), 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 Metadata.__repr__>, '__eq__': <function Metadata.__eq__>, '__ne__': <function Metadata.__ne__>, '__lt__': <function Metadata.__lt__>, '__le__': <function Metadata.__le__>, '__gt__': <function Metadata.__gt__>, '__ge__': <function Metadata.__ge__>, '__hash__': None, '__init__': <function Metadata.__init__>, '__match_args__': ('cache', 'engine', 'environment', 'executor', 'fs', 'git_hash', 'point_e', 'pubsub')})[source]
- __init__(cache=<kittycad.types.Unset object>, engine=<kittycad.types.Unset object>, environment=<kittycad.types.Unset object>, executor=<kittycad.types.Unset object>, fs=<kittycad.types.Unset object>, git_hash=<kittycad.types.Unset object>, point_e=<kittycad.types.Unset object>, pubsub=<kittycad.types.Unset object>)[source]
Method generated by attrs for class Metadata.
- __match_args__ = ('cache', 'engine', 'environment', 'executor', 'fs', 'git_hash', 'point_e', 'pubsub')[source]
-
cache:
Union
[Unset
,CacheMetadata
][source]
-
engine:
Union
[Unset
,EngineMetadata
][source]
-
environment:
Union
[Unset
,Environment
][source]
-
executor:
Union
[Unset
,ExecutorMetadata
][source]
-
point_e:
Union
[Unset
,PointEMetadata
][source]
-
pubsub:
Union
[Unset
,Connection
][source]