The heat.objects.resource Module

Resource object

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

Bases: oslo_versionedobjects.base.VersionedObject, 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 = {'uuid': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'stack': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'current_template_id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'replaces': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'engine_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'replaced_by': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'rsrc_metadata': NoneType(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'stack_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'needed_by': NoneType(default=None,nullable=True), 'requires': NoneType(default=None,nullable=True), 'status': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'data': List(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), 'properties_data': NoneType(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'properties_data_encrypted': Boolean(default=False,nullable=False), 'atomic_key': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'nova_instance': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'action': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'root_stack_id': String(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_by_stack(context, stack_id, key_id=False)[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)[source]
refresh(attrs=None)[source]
select_and_update(values, expected_engine_id=None, atomic_key=0)[source]
update_and_save(values)[source]
update_metadata(metadata)[source]
heat.objects.resource.retry_on_conflict(func)[source]

Previous topic

The heat.objects.raw_template Module

Next topic

The heat.objects.resource_data Module

Project Source

This Page