heat.engine.properties.
Properties
(schema, data, resolver=<function <lambda>>, parent_name=None, context=None, section=None, translation=None)[source]¶Bases: _abcoll.Mapping
schema_from_params
(params_snippet)[source]¶Create properties schema from the parameters section of a template.
Parameters: | params_snippet – parameter definition from a template |
---|---|
Returns: | equivalent properties schemata for the specified parameters |
schema_to_parameters_and_properties
(schema, template_type='cfn')[source]¶Convert a schema to template parameters and properties.
This can be used to generate a provider template that matches the given properties schemata.
Parameters: | schema – A resource type’s properties_schema |
---|---|
Returns: | A tuple of params and properties dicts |
heat.engine.properties.
Property
(schema, name=None, context=None, path=None)[source]¶Bases: object
heat.engine.properties.
Schema
(data_type, description=None, default=None, schema=None, required=False, constraints=None, implemented=True, update_allowed=False, immutable=False, support_status=<heat.engine.support.SupportStatus object>, allow_conversion=False)[source]¶Bases: heat.engine.constraints.Schema
Schema class for validating resource properties.
This class is used for defining schema constraints for resource properties. It inherits generic validation features from the base Schema class and add processing that is specific to resource properties.
CONSTRAINTS
= 'constraints'¶DEFAULT
= 'default'¶DESCRIPTION
= 'description'¶IMMUTABLE
= 'immutable'¶KEYS
= ('type', 'description', 'default', 'schema', 'required', 'constraints', 'update_allowed', 'immutable')¶REQUIRED
= 'required'¶SCHEMA
= 'schema'¶TYPE
= 'type'¶UPDATE_ALLOWED
= 'update_allowed'¶allowed_param_prop_type
()[source]¶Return allowed type of Property Schema converted from parameter.
Especially, when generating Schema from parameter, Integer Property Schema will be supplied by Number parameter.
from_legacy
(schema_dict)[source]¶Return a Property Schema object from a legacy schema dictionary.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.