Bases: heat.engine.constraints.Constraint
Constrain values to a predefined regular expression pattern.
Serializes to JSON as:
{
'allowed_pattern': <pattern>,
'description': <description>
}
Bases: heat.engine.constraints.Constraint
Constrain values to a predefined set.
Serializes to JSON as:
{
'allowed_values': [<allowed1>, <allowed2>, ...],
'description': <description>
}
Bases: _abcoll.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: _abcoll.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: heat.engine.constraints.Constraint
A constraint delegating validation to an external class.
Bases: heat.engine.constraints.Range
Constrain the length of values within a range.
Serializes to JSON as:
{
'length': {'min': <min>, 'max': <max>},
'description': <description>
}
Bases: heat.engine.constraints.Constraint
Constrain values within a range.
Serializes to JSON as:
{
'range': {'min': <min>, 'max': <max>},
'description': <description>
}
Bases: _abcoll.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.'
}