class documentation

class Operation(ACMEIntEnum):

View In Hierarchy

Request operations.

Class Method isvalid Check whether an operation is valid.
Class Method toOperation Convert an integer or None to an Operation. Returns an Operation or None.
Method permission Return the corresponding permission for an operation.
Constant CREATE CREATE operation
Constant DELETE DELETE operation
Constant DISCOVERY DISCOVERY operation (special form of a RETRIEVE operation)
Constant NA Not applicable
Constant NOTIFY NOTIFY operation
Constant RETRIEVE RETRIEVE operation
Constant UPDATE UPDATE operation

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 isvalid(cls, op: int) -> bool:

Check whether an operation is valid.

@classmethod
def toOperation(cls, v: int | None) -> Operation | None:

Convert an integer or None to an Operation. Returns an Operation or None.

def permission(self) -> Permission:

Return the corresponding permission for an operation.

CREATE: int =

CREATE operation

Value
1
DELETE: int =

DELETE operation

Value
4
DISCOVERY: int =

DISCOVERY operation (special form of a RETRIEVE operation)

Value
-2
NA: int =

Not applicable

Value
-1
NOTIFY: int =

NOTIFY operation

Value
5
RETRIEVE: int =

RETRIEVE operation

Value
2
UPDATE: int =

UPDATE operation

Value
3