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 = {'engine_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'physical_resource_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'rsrc_metadata': Json(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'action': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'atomic_key': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'status_reason': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'status': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'data': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'uuid': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'current_template_id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'properties_data_encrypted': Boolean(default=False,nullable=False), 'replaces': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'properties_data': Json(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'needed_by': List(default=None,nullable=True), 'requires': List(default=None,nullable=True), 'stack_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'root_stack_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'replaced_by': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
classmethod get_all(context)[source]
classmethod get_all_active_by_stack(context, stack_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_by_physical_resource_id(context, physical_resource_id)[source]
classmethod get_obj(context, resource_id, refresh=False)[source]
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]

Previous topic

The heat.objects.raw_template_files Module

Next topic

The heat.objects.resource_data Module

Project Source

This Page