Bases: heat.engine.properties.Constraint
Constrain values to a predefined regular expression pattern.
Serialises to JSON as:
{
'allowed_pattern': <pattern>,
'description': <description>
}
Bases: heat.engine.properties.Constraint
Constrain values to a predefined set.
Serialises 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: _abcoll.Mapping
Parent class for constraints on allowable values for a Property.
Constraints are serialisable to dictionaries following the HOT input Parameter constraints schema using dict().
Bases: exceptions.Exception
Bases: heat.engine.properties.Range
Constrain the length of values within a range.
Serialises to JSON as:
{
'length': {'min': <min>, 'max': <max>},
'description': <description>
}
Bases: _abcoll.Mapping
Convert a template snippet that defines parameters into a properties schema
Parameters: | params_snippet – parameter definition from a template |
---|---|
Returns: | an equivalent properties schema for the specified params |
Generates properties with params resolved for a resource’s properties_schema.
Parameters: | schema – A resource’s properties_schema |
---|---|
Returns: | A tuple of params and properties dicts |
Bases: object
Bases: heat.engine.properties.Constraint
Constrain values within a range.
Serialises to JSON as:
{
'range': {'min': <min>, 'max': <max>},
'description': <description>
}
Bases: _abcoll.Mapping
A Schema for a resource Property.
Schema objects are serialisable 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.'
}
Return a new Schema object from a legacy schema dictionary.
Return a property Schema corresponding to a parameter.
Convert a parameter schema from a provider template to a property Schema for the corresponding resource facade.
Return a dictionary of Schema objects for the given dictionary of schemata.
The input schemata are converted from the legacy (dictionary-based) format to Schema objects where necessary.