Skip to content

Token

Bases: BaseModel

Token for authentication

Source code in reduct/client.py
64
65
66
67
68
69
70
71
72
73
74
class Token(BaseModel):
    """Token for authentication"""

    name: str
    """name of token"""

    created_at: datetime
    """creation time of token"""

    is_provisioned: bool = False
    """token is provisioned and can't be deleted or changed"""

created_at: datetime instance-attribute

creation time of token

is_provisioned: bool = False class-attribute instance-attribute

token is provisioned and can't be deleted or changed

name: str instance-attribute

name of token

Bases: Token

Full information about token with permissions

Source code in reduct/client.py
77
78
79
80
81
class FullTokenInfo(Token):
    """Full information about token with permissions"""

    permissions: Permissions
    """permissions of token"""

permissions: Permissions instance-attribute

permissions of token

Bases: BaseModel

Token permission

Source code in reduct/client.py
51
52
53
54
55
56
57
58
59
60
61
class Permissions(BaseModel):
    """Token permission"""

    full_access: bool
    """full access to manage buckets and tokens"""

    read: Optional[List[str]]
    """list of buckets with read access"""

    write: Optional[List[str]]
    """list of buckets with write access"""

full_access: bool instance-attribute

full access to manage buckets and tokens

read: Optional[List[str]] instance-attribute

list of buckets with read access

write: Optional[List[str]] instance-attribute

list of buckets with write access