class documentation
class Permission(ACMEIntEnum):
Permissions.
| Class Method | all |
Get a permission set without the specified permission(s). |
| Class Method | from |
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. |
Get a permission set without the specified permission(s).
| Parameters | |
permission:Permission | The permission(s) to remove from a permission. |
| Returns | |
int | The new permission without the specified permission, or Permission.NONE in case of an error. |
Get a list of permissions from a bitfield.
| Parameters | |
bitfield:AccessControlOperations | The bitfield to convert. |
| Returns | |
list[ | A list of permissions. |