Skip to content

Token

Bases: BaseModel

Token for authentication

Source code in reduct/client.py
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
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
106
107
108
109
110
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
80
81
82
83
84
85
86
87
88
89
90
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