The heat.engine.environment ModuleΒΆ

class heat.engine.environment.ClassResourceInfo(registry, path, value)[source]

Bases: heat.engine.environment.ResourceInfo

Store the mapping of resource name to python class implementation.

description = 'Plugin'
get_class()[source]
class heat.engine.environment.Environment(env=None, user_env=True)[source]

Bases: object

get_class(resource_type, resource_name=None)[source]
get_constraint(name)[source]
get_resource_info(resource_type, resource_name=None, registry_type=None)[source]
get_types(support_status=None)[source]
load(env_snippet)[source]
register_class(resource_type, resource_class)[source]
register_constraint(constraint_name, constraint)[source]
user_env_as_dict()[source]

Get the environment as a dict, ready for storing in the db.

class heat.engine.environment.GlobResourceInfo(registry, path, value)[source]

Bases: heat.engine.environment.MapResourceInfo

Store the mapping (with wild cards) of one resource type to another. like: OS::Networking::* -> OS::Neutron::*

description = 'Wildcard Mapping'
get_resource_info(resource_type=None, resource_name=None)[source]
matches(resource_type)[source]
class heat.engine.environment.MapResourceInfo(registry, path, value)[source]

Bases: heat.engine.environment.ResourceInfo

Store the mapping of one resource type to another. like: OS::Networking::FloatingIp -> OS::Neutron::FloatingIp

description = 'Mapping'
get_class()[source]
get_resource_info(resource_type=None, resource_name=None)[source]
class heat.engine.environment.ResourceInfo(registry, path, value)[source]

Bases: object

Base mapping of resource type to implementation.

get_resource_info(resource_type=None, resource_name=None)[source]
matches(resource_type)[source]
class heat.engine.environment.ResourceRegistry(global_registry)[source]

Bases: object

By looking at the environment, find the resource implementation.

as_dict()[source]

Return user resources in a dict format.

get_class(resource_type, resource_name=None, accept_fn=None)[source]
get_resource_info(resource_type, resource_name=None, registry_type=None, accept_fn=None)[source]

Find possible matches to the resource type and name. chain the results from the global and user registry to find a match.

get_types(support_status)[source]

Return a list of valid resource types.

iterable_by(resource_type, resource_name=None)[source]
load(json_snippet)[source]
register_class(resource_type, resource_class)[source]
class heat.engine.environment.TemplateResourceInfo(registry, path, value)[source]

Bases: heat.engine.environment.ResourceInfo

Store the info needed to start a TemplateResource.

description = 'Template'
get_class()[source]
heat.engine.environment.read_global_environment(env, env_dir=None)[source]

Previous topic

The heat.engine.api Module

Next topic

The heat.engine.clients Module

This Page