The heat.engine.attributes ModuleΒΆ

class heat.engine.attributes.Attribute(attr_name, schema)[source]

Bases: object

An Attribute schema.

Attribute.as_output(resource_name)[source]

Return an Output schema entry for a provider template with the given resource name.

Parameters:resource_name – the logical name of the provider resource
Returns:This attribute as a template ‘Output’ entry
Attribute.support_status()[source]
class heat.engine.attributes.Attributes(res_name, schema, resolver)[source]

Bases: _abcoll.Mapping

Models a collection of Resource Attributes.

static Attributes.as_outputs(resource_name, resource_class)[source]
Parameters:
  • resource_name – logical name of the resource
  • resource_class – resource implementation class
Returns:

The attributes of the specified resource_class as a template Output map

Attributes.reset_resolved_values()[source]
static Attributes.schema_from_outputs(json_snippet)[source]
class heat.engine.attributes.Schema(description=None, support_status=<heat.engine.support.SupportStatus object at 0x7fed54d51750>, cache_mode='cache_local')[source]

Bases: heat.engine.constraints.Schema

Simple schema class for attributes.

Schema objects are serialisable to dictionaries following a superset of the HOT input Parameter schema using dict().

Schema.CACHE_LOCAL = 'cache_local'
Schema.CACHE_MODES = ('cache_local', 'cache_none')
Schema.CACHE_NONE = 'cache_none'
Schema.DESCRIPTION = 'description'
Schema.KEYS = ('description',)
classmethod Schema.from_attribute(schema_dict)[source]

Return a Property Schema corresponding to a Attribute Schema.

heat.engine.attributes.schemata(schema)[source]

Return dictionary of Schema objects for given dictionary of schemata.

heat.engine.attributes.select_from_attribute(attribute_value, path)[source]

Select an element from an attribute value.

Parameters:
  • attribute_value – the attribute value.
  • path – a list of path components to select from the attribute.
Returns:

the selected attribute component value.

Previous topic

The heat.engine.plugin_manager Module

Next topic

The heat.engine.scheduler Module

This Page