class documentation
Resource attribute cardinalities.
| Class Method | has |
Check whether an Cardinality without the 'car' prefix exists. |
| Class Method | is |
Check whether a Cardinality is mandatory. |
| Class Method | to |
Convert a cardinality name string to an enum value. |
| Constant | CAR01 |
Optional. |
| Constant | CAR01L |
Optional list. |
| Constant | CAR1 |
Mandatory. |
| Constant | CAR1L |
Mandatory list. |
| Constant | CAR1LN |
Mandatory list that shall not be empty. |
| Constant | CAR1N |
Mandatory but may be Null/None. |
Inherited from ACMEIntEnum:
| Class Method | has |
Check whether the enum type has an entry with either the given int value or string name. |
| Method | __int__ |
Get the integer value of an enum. |
| Method | __repr__ |
Stringify an enum. |
| Method | __str__ |
Stringify an enum. |
Check whether an Cardinality without the 'car' prefix exists.
Example
hasCar('01')
| Parameters | |
name:str | Cardinality. |
| Returns | |
bool | Retun True if the cardinality exists. |
Check whether a Cardinality is mandatory.
| Parameters | |
car:Cardinality | Cardinality to check. |
| Returns | |
bool | True if the Cardinality is of mandatory kind. |
overrides
acme.helpers.ACMEIntEnum.ACMEIntEnum.toConvert a cardinality name string to an enum value.
| Parameters | |
name:str | tuple[ | String or a Tuple of strings with names. |
insensitive:bool | None | Whether to handle the name case-insensitive. |
| Returns | |
Cardinality | Enum value. |