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
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. |
Check whether the enum type has an entry with either the given int value or string name.
| Parameters | |
value:int | str | list[ | value can also be a tuple of values to test. In this case, all the values in the tuple must exist. |
| Returns | |
bool | True if the value exists. |
acme.etc.Types.BasicType, acme.etc.Types.CardinalityReturn an enum value by its name.
| Parameters | |
name:str | tuple[ | String or a tuple of strings with names. |
insensitive:bool | None | Optional boolean indicating whether names should be treated case-sensitive or not. |
| Returns | |
Any | A 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. |
acme.etc.Types.ResourceTypes, acme.etc.Types.TreeModeStringify an enum.
| Returns | |
str | The name of an enum value. |