The heat.objects.resource Module

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

attr_data
classmethod attr_data_delete(context, resource_id, attr_id)[source]
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), '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), 'attr_data': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'status': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'engine_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'attr_data_id': Integer(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_all_stack_ids_by_root_stack(context, stack_id)[source]
classmethod get_by_name_and_stack(context, resource_name, stack_id)[source]
classmethod get_obj(context, resource_id, refresh=False, fields=None)[source]
properties_data
classmethod purge_deleted(context, stack_id)[source]
refresh()[source]
classmethod replacement(context, existing_res_id, existing_res_values, new_res_values, atomic_key=0, expected_engine_id=None)[source]
select_and_update(values, expected_engine_id=None, atomic_key=0)[source]
classmethod select_and_update_by_id(context, resource_id, values, expected_engine_id=None, atomic_key=0)[source]
classmethod store_attributes(context, resource_id, atomic_key, attr_data, attr_id)[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]
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.