class documentation
class AttributePolicy: (source)
Attribute policy for a single resource attribute.
| Method | select |
Return the n-th attributes in the dataclass. |
| Class Variable | announcement |
Whether the attribute is announced. |
| Class Variable | cardinality |
Cardinality of the attribute. |
| Class Variable | choice |
Whether this attribute is part of a choice. |
| Class Variable | ctype |
Definition name for a complex type attribute. |
| Class Variable | etype |
Name of the enum type (if the attribute is of type enum). |
| Class Variable | evalues |
Dict of enum values and interpretations. |
| Class Variable | fname |
Name of the definition file. |
| Class Variable | lname |
Long name of the attribute. |
| Class Variable | l |
Mandatory size of a list. |
| Class Variable | ltype |
Sub-type of a list as writen in the definition. |
| Class Variable | l |
Sub-type of a list as writen in the definition. |
| Class Variable | namespace |
Namespace of the attribute. |
| Class Variable | optional |
Optionality of the attribute for create requests. |
| Class Variable | optional |
Optionality of the attribute for discovery requests. |
| Class Variable | optional |
Optionality of the attribute for update requests. |
| Class Variable | ptype |
Implementation type of the enum values. |
| Class Variable | releases |
Tuple of releases that this attribute is valid for. If this attribute is None, then it is valid for all releases. If only one release is specified, then it is valid from that release onwards. If two releases are specified, then it is valid from the first release until the second release. |
| Class Variable | rtypes |
List of resource types that this attribute is valid for. |
| Class Variable | sname |
Short name of the attribute. |
| Class Variable | type |
Type of the attribute. |
| Class Variable | type |
The type as written in the definition. |
| Class Variable | type |
Type name of the attribute. |
Return the n-th attributes in the dataclass.
| Parameters | |
index:int | Attribute index |
| Returns | |
Any | None | n-th attribute from the dataclass, or None in case of an error. |