The heat.engine.api Module

heat.engine.api.build_resource_description(docstring)[source]
heat.engine.api.extract_args(params)[source]

Extract arguments passed as parameters and return them as a dictionary.

Extract any arguments passed as parameters through the API and return them as a dictionary. This allows us to filter the passed args and do type conversion where appropriate

heat.engine.api.format_event(event, stack_identifier, root_stack_identifier=None)[source]
heat.engine.api.format_notification_body(stack)[source]
heat.engine.api.format_resource_attributes(resource, with_attr=None)[source]
heat.engine.api.format_resource_properties(resource)[source]
heat.engine.api.format_snapshot(snapshot)[source]
heat.engine.api.format_software_config(sc, detail=True, include_project=False)[source]
heat.engine.api.format_software_deployment(sd)[source]
heat.engine.api.format_stack(stack, preview=False, resolve_outputs=True)[source]

Return a representation of the given stack.

Return a representation of the given stack that matches the API output expectations.

heat.engine.api.format_stack_db_object(stack)[source]

Return a summary representation of the given stack.

Given a stack versioned db object, return a representation of the given stack for a stack listing.

heat.engine.api.format_stack_output(output_defn, resolve_value=True)[source]
heat.engine.api.format_stack_outputs(outputs, resolve_value=False)[source]

Return a representation of the given output template.

Return a representation of the given output template for the given stack that matches the API output expectations.

heat.engine.api.format_stack_preview(stack)[source]
heat.engine.api.format_stack_resource(resource, detail=True, with_props=False, with_attr=None)[source]

Return a representation of the given resource.

Return a representation of the given resource that matches the API output expectations.

heat.engine.api.format_validate_parameter(param)[source]

Format a template parameter for validate template API call.

Formats a template parameter and its schema information from the engine’s internal representation (i.e. a Parameter object and its associated Schema object) to a representation expected by the current API (for example to be compatible to CFN syntax).

heat.engine.api.format_watch(watch)[source]
heat.engine.api.format_watch_data(wd, rule_names)[source]
heat.engine.api.translate_filters(params)[source]

Translate filter names to their corresponding DB field names.

Parameters:params – A dictionary containing keys from engine.api.STACK_KEYS and other keys previously leaked to users.
Returns:A dict containing only valid DB filed names.