heat.engine.node_data module

heat.engine.node_data module

class heat.engine.node_data.NodeData(primary_key, resource_name, uuid, reference_id, attributes, action, status)[source]

Bases: object

Data about a node in the graph, to be passed along to other nodes.

action
as_dict()[source]

Return a dict representation of the data.

This is the format that is serialised and stored in the database’s SyncPoints.

attribute(attr_name)[source]

Return the specified attribute value.

attribute_names()[source]

Iterate over valid top-level attribute names.

attributes()[source]

Return a dict of all available top-level attribute values.

classmethod from_dict(node_data)[source]

Create a new NodeData object from deserialised data.

This reads the format that is stored in the database, and is the inverse of as_dict().

name
primary_key
reference_id()[source]

Return the reference ID of the resource.

i.e. the result that the {get_resource: } intrinsic function should return for this resource.

status
uuid
heat.engine.node_data.load_resources_data(data)[source]

Return the data for all of the resources that meet at a SyncPoint.

The input is the input_data dict from a SyncPoint received over RPC. The keys (which are ignored) are resource primary keys.

The output is a dict of NodeData objects with the resource names as the keys.

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.