aistore.sdk.authn.types
Module Contents
Classes
API
Bases: BaseModel
Represents a bucket with its associated permissions.
Bases: BaseModel
Represents information about a cluster.
The alias name of the cluster. Defaults to None.
The unique identifier of the cluster.
A list of URLs associated with the cluster.
Bases: BaseModel
Represents a list of clusters.
A dictionary of cluster IDs to ClusterInfo objects.
Bases: BaseModel
Represents a cluster with its associated permissions.
Bases: BaseModel
Represents a login message with a password and optional expiration duration.
The expiration duration in seconds.
The password string.
Converts the instance to a dict, converting the expiration duration to nanoseconds if specified.
Returns:
Dict[str, Union[str, int]]: The dict representation of the login message.
Bases: BaseModel
Represents role information including permissions for clusters and buckets.
Whether the role has admin privileges.
List of bucket permissions.
List of cluster permissions.
Description of the role.
Name of the role.
Bases: RootModel[List[RoleInfo]]
Represents a list of roles.
Bases: BaseModel
Represents a message containing a token.
The token string.
Bases: BaseModel
Represents user information in the AuthN service.
The username or ID of the user.
The user’s password. Serialized as ‘pass’ in the request.
The list of roles assigned to the user.
Override the dict method to serialize the ‘password’ field as ‘pass’.
Returns:
Dict[str, Union[str, RolesList]]: The dict representation of the user information.
Bases: RootModel[Dict[str, UserInfo]]
Represents a map of usernames to their info.