kittycad.models.session.Session
- class kittycad.models.session.Session(created_at=<kittycad.types.Unset object>, expires=<kittycad.types.Unset object>, id=<kittycad.types.Unset object>, session_token=<kittycad.types.Unset object>, updated_at=<kittycad.types.Unset object>, user_id=<kittycad.types.Unset object>)[source][source]
Bases:
object
An authentication session.
For our UIs, these are automatically created by Next.js.
Method generated by attrs for class Session.
- __init__(created_at=<kittycad.types.Unset object>, expires=<kittycad.types.Unset object>, id=<kittycad.types.Unset object>, session_token=<kittycad.types.Unset object>, updated_at=<kittycad.types.Unset object>, user_id=<kittycad.types.Unset object>)[source]
Method generated by attrs for class Session.
Methods
__init__
([created_at, expires, id, ...])Method generated by attrs for class Session.
from_dict
(src_dict)- rtype:
TypeVar
(F
, bound= Session)
to_dict
()Attributes
- __annotations__ = {'additional_properties': typing.Dict[str, typing.Any], 'created_at': typing.Union[kittycad.types.Unset, datetime.datetime], 'expires': typing.Union[kittycad.types.Unset, datetime.datetime], 'id': typing.Union[kittycad.types.Unset, str], 'session_token': typing.Union[kittycad.types.Unset, str], 'updated_at': typing.Union[kittycad.types.Unset, datetime.datetime], 'user_id': typing.Union[kittycad.types.Unset, str]}[source]
- __attrs_attrs__ = (Attribute(name='created_at', 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, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='created_at'), Attribute(name='expires', 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, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='expires'), 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='session_token', 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='session_token'), Attribute(name='updated_at', 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, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='updated_at'), Attribute(name='user_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='user_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.session', '__annotations__': {'created_at': typing.Union[kittycad.types.Unset, datetime.datetime], 'expires': typing.Union[kittycad.types.Unset, datetime.datetime], 'id': typing.Union[kittycad.types.Unset, str], 'session_token': typing.Union[kittycad.types.Unset, str], 'updated_at': typing.Union[kittycad.types.Unset, datetime.datetime], 'user_id': typing.Union[kittycad.types.Unset, str], 'additional_properties': typing.Dict[str, typing.Any]}, '__doc__': 'An authentication session.\n\n For our UIs, these are automatically created by Next.js.', 'to_dict': <function Session.to_dict>, 'from_dict': <classmethod(<function Session.from_dict>)>, 'additional_keys': <property object>, '__getitem__': <function Session.__getitem__>, '__setitem__': <function Session.__setitem__>, '__delitem__': <function Session.__delitem__>, '__contains__': <function Session.__contains__>, '__dict__': <attribute '__dict__' of 'Session' objects>, '__weakref__': <attribute '__weakref__' of 'Session' objects>, '__attrs_attrs__': (Attribute(name='created_at', 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, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='created_at'), Attribute(name='expires', 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, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='expires'), 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='session_token', 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='session_token'), Attribute(name='updated_at', 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, datetime.datetime], converter=None, kw_only=False, inherited=False, on_setattr=None, alias='updated_at'), Attribute(name='user_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='user_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 Session.__repr__>, '__eq__': <function Session.__eq__>, '__ne__': <function Session.__ne__>, '__lt__': <function Session.__lt__>, '__le__': <function Session.__le__>, '__gt__': <function Session.__gt__>, '__ge__': <function Session.__ge__>, '__hash__': None, '__init__': <function Session.__init__>, '__match_args__': ('created_at', 'expires', 'id', 'session_token', 'updated_at', 'user_id')})[source]
- __init__(created_at=<kittycad.types.Unset object>, expires=<kittycad.types.Unset object>, id=<kittycad.types.Unset object>, session_token=<kittycad.types.Unset object>, updated_at=<kittycad.types.Unset object>, user_id=<kittycad.types.Unset object>)[source]
Method generated by attrs for class Session.