Skip to main content

Token

Description: Token is a subclass of Base and represents a token used to store file information.

Attributes

NameTypeDescription
idStrictStr
createddatetime.datetime
shaStrictStr
saltStrictStr
created_by_idOptional[StrictStr]

Methods

NameDescription
to_strReturns the string representation of the model using alias
to_jsonReturns the JSON representation of the model using alias
from_jsonCreate an instance of Token from a JSON string
to_dictReturn the dictionary representation of the model using alias.
from_dictCreate an instance of Token from a dict
from_storage_token
compare_tokenCompare the token with the data and raise an exception if they do not match.
from_bytesCreate a Token from bytes and salt.