class documentation

class Permission(ACMEIntEnum):

View In Hierarchy

Permissions.

Class Method allExcept Get a permission set without the specified permission(s).
Class Method fromBitfield Get a list of permissions from a bitfield.
Constant ALL ALL permission (includes all other permissions)
Constant CREATE CREATE permission
Constant DELETE DELETE permission
Constant DISCOVERY DISCOVERY permission
Constant NONE No permission
Constant NOTIFY NOTIFY permission
Constant RETRIEVE RETRIEVE permission
Constant UPDATE UPDATE permission

Inherited from ACMEIntEnum:

Class Method has Check whether the enum type has an entry with either the given int value or string name.
Class Method to Return an enum value by its name.
Method __int__ Get the integer value of an enum.
Method __repr__ Stringify an enum.
Method __str__ Stringify an enum.
@classmethod
def allExcept(cls, permission: Permission) -> int:

Get a permission set without the specified permission(s).

Parameters
permission:PermissionThe permission(s) to remove from a permission.
Returns
intThe new permission without the specified permission, or Permission.NONE in case of an error.
@classmethod
def fromBitfield(cls, bitfield: AccessControlOperations) -> list[Permission]:

Get a list of permissions from a bitfield.

Parameters
bitfield:AccessControlOperationsThe bitfield to convert.
Returns
list[Permission]A list of permissions.
ALL: int =

ALL permission (includes all other permissions)

Value
63
CREATE: int =

CREATE permission

Value
1
DELETE: int =

DELETE permission

Value
8
DISCOVERY: int =

DISCOVERY permission

Value
32
NONE: int =

No permission

Value
0
NOTIFY: int =

NOTIFY permission

Value
16
RETRIEVE: int =

RETRIEVE permission

Value
2
UPDATE: int =

UPDATE permission

Value
4