Bases: Constraint
Constrain values to a predefined regular expression pattern.
Serializes to JSON as:
{
'allowed_pattern': <pattern>,
'description': <description>
}
Bases: Constraint
Constrain values to a predefined set.
Serializes to JSON as:
{
'allowed_values': [<allowed1>, <allowed2>, ...],
'description': <description>
}
Bases: Mapping
A Mapping that returns the same value for any integer index.
Used for storing the schema for a list. When converted to a dictionary, it contains a single item with the key ‘*’.
Bases: object
A base class for validation using API clients.
It will provide a better error message, and reduce a bit of duplication. Subclass must provide expected_exceptions and implement validate_with_client.
Bases: Mapping
Parent class for constraints on allowable values for a Property.
Constraints are serializable to dictionaries following the HOT input Parameter constraints schema using dict().
Bases: Constraint
A constraint delegating validation to an external class.
Bases: Range
Constrain the length of values within a range.
Serializes to JSON as:
{
'length': {'min': <min>, 'max': <max>},
'description': <description>
}
Bases: Constraint
Constrain values to modulo.
Serializes to JSON as:
{
'modulo': {'step': <step>, 'offset': <offset>},
'description': <description>
}
Bases: Constraint
Constrain values within a range.
Serializes to JSON as:
{
'range': {'min': <min>, 'max': <max>},
'description': <description>
}
Bases: Mapping
Schema base class for validating properties or parameters.
Schema objects are serializable to dictionaries following a superset of the HOT input Parameter schema using dict().
Serialises to JSON in the form:
{
'type': 'list',
'required': False
'constraints': [
{
'length': {'min': 1},
'description': 'List must not be empty'
}
],
'schema': {
'*': {
'type': 'string'
}
},
'description': 'An example list property.'
}
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.