The heat.objects.resource Module

Resource object.

class heat.objects.resource.Resource(context=None, **kwargs)[source]

Bases: heat.objects.base.HeatObject, oslo_versionedobjects.base.VersionedObjectDictCompat, oslo_versionedobjects.base.ComparableVersionedObject

classmethod create(context, values)[source]
classmethod delete(context, resource_id)[source]
static encrypt_properties_data(data)[source]
classmethod exchange_stacks(context, resource_id1, resource_id2)[source]
fields = {'rsrc_metadata': Json(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'needed_by': List(default=None,nullable=True), 'rsrc_prop_data': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'current_template_id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'uuid': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'status_reason': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'atomic_key': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'rsrc_prop_data_id': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'status': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'engine_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'replaced_by': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'data': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'replaces': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'stack_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'root_stack_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'physical_resource_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'action': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'requires': List(default=None,nullable=True)}
classmethod get_all(context)[source]
classmethod get_all_active_by_stack(context, stack_id)[source]
classmethod get_all_by_physical_resource_id(context, physical_resource_id)[source]
classmethod get_all_by_root_stack(context, stack_id, filters, cache=False)[source]
classmethod get_all_by_stack(context, stack_id, filters=None)[source]
classmethod get_by_name_and_stack(context, resource_name, stack_id)[source]
classmethod get_obj(context, resource_id, refresh=False)[source]
properties_data
classmethod purge_deleted(context, stack_id)[source]
refresh()[source]
select_and_update(values, expected_engine_id=None, atomic_key=0)[source]
update_and_save(values)[source]
classmethod update_by_id(context, resource_id, values)[source]
update_metadata(metadata)[source]
class heat.objects.resource.ResourceCache[source]

Bases: object

delete_all()[source]
set_by_stack_id(resources)[source]
heat.objects.resource.retry_on_conflict(func)[source]