aistore.sdk.authn.access_attr

View as Markdown

Module Contents

Classes

NameDescription
AccessAttrAccessAttr defines permissions as bitwise flags for access control (for more details, refer to the Go API).

API

class aistore.sdk.authn.access_attr.AccessAttr()

Bases: IntFlag

AccessAttr defines permissions as bitwise flags for access control (for more details, refer to the Go API).

ACCESS_BUCKET_ADMIN
= PATCH | BCK_SET_ACL | OBJ_UPDATE
ACCESS_RO
= GET | OBJ_HEAD | BCK_HEAD | OBJ_LIST
ACCESS_RW
ACCESS_SU
ADMIN
= 1 << 17
APPEND
= 1 << 3
BCK_HEAD
= 1 << 8
BCK_SET_ACL
= 1 << 11
CLUSTER_ACCESS_RO
= LIST_BUCKETS | SHOW_CLUSTER
CLUSTER_ACCESS_RW
CREATE_BUCKET
= 1 << 14
DESTROY_BUCKET
= 1 << 15
GET
= 1 << 0
LIST_BUCKETS
= 1 << 12
MOVE_BUCKET
= 1 << 16
OBJ_DELETE
= 1 << 4
OBJ_HEAD
= 1 << 1
OBJ_LIST
= 1 << 9
OBJ_MOVE
= 1 << 5
OBJ_UPDATE
= 1 << 7
PATCH
= 1 << 10
PROMOTE
= 1 << 6
PUT
= 1 << 2
SHOW_CLUSTER
= 1 << 13
aistore.sdk.authn.access_attr.AccessAttr.describe(
perms: int
) -> str
staticmethod

Returns a comma-separated string describing the permissions based on the provided bitwise flags.