class documentation

class ACMEIntEnum(IntEnum):

Known subclasses: acme.etc.ResponseStatusCodes.ResponseStatusCode, acme.etc.Types.Announced, acme.etc.Types.AnnounceSyncType, acme.etc.Types.AuthorizationResult, acme.etc.Types.BasicType, acme.etc.Types.BatteryStatus, acme.etc.Types.BeaconCriteria, acme.etc.Types.BindingType, acme.etc.Types.Cardinality, acme.etc.Types.ConsistencyStrategy, acme.etc.Types.ContentSerializationType, acme.etc.Types.CSEStatus, acme.etc.Types.CSEType, acme.etc.Types.DesiredIdentifierResultType, acme.etc.Types.EvalCriteriaOperator, acme.etc.Types.EvalMode, acme.etc.Types.EventCategory, acme.etc.Types.EventEvaluationMode, acme.etc.Types.FilterOperation, acme.etc.Types.FilterUsage, acme.etc.Types.GeofenceEventCriteria, acme.etc.Types.GeometryType, acme.etc.Types.GeoSpatialFunctionType, acme.etc.Types.IdentifierScope, acme.etc.Types.LocationInformationType, acme.etc.Types.LocationSource, acme.etc.Types.LocationUpdateEventCriteria, acme.etc.Types.LogicalOperator, acme.etc.Types.LogLevel, acme.etc.Types.NotificationContentType, acme.etc.Types.NotificationEventType, acme.etc.Types.NotificationTargetPolicyAction, acme.etc.Types.Operation, acme.etc.Types.OriginatorType, acme.etc.Types.Permission, acme.etc.Types.ProcessControl, acme.etc.Types.ProcessState, acme.etc.Types.RequestOptionality, acme.etc.Types.RequestStatus, acme.etc.Types.RequestType, acme.etc.Types.ResourceTypes, acme.etc.Types.ResponseType, acme.etc.Types.ResultContentType, acme.etc.Types.SemanticFormat, acme.etc.Types.Status, acme.etc.Types.TimeWindowType, acme.etc.Types.TreeMode, acme.etc.Types.TriggerStatus, acme.etc.Types.WifiConnectionStatus

View In Hierarchy

A base class for many oneM2M related enum types in ACME. It provides additional halper methods to simplify working with IntEnum classes.

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 has(cls, value: int | str | list[int | str] | tuple[int | str]) -> bool:

Check whether the enum type has an entry with either the given int value or string name.

Parameters
value:int | str | list[int | str] | tuple[int | str]value can also be a tuple of values to test. In this case, all the values in the tuple must exist.
Returns
boolTrue if the value exists.
@classmethod
def to(cls, name: str | tuple[str], insensitive: bool | None = False) -> Any:

Return an enum value by its name.

Parameters
name:str | tuple[str]String or a tuple of strings with names.
insensitive:bool | NoneOptional boolean indicating whether names should be treated case-sensitive or not.
Returns
AnyA valid enum value, a list of enum values if name is a tupple of strings (according to the order in the tuple), or None in case of an error.
def __int__(self) -> int:

Get the integer value of an enum.

Returns
intThe value of an enum value.
def __repr__(self) -> str:

Stringify an enum.

Returns
strThe name of an enum value.
def __str__(self) -> str:

Stringify an enum.

Returns
strThe name of an enum value.