heat.objects.resource module

heat.objects.resource module

Resource object.

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

Bases: HeatObject, VersionedObjectDictCompat, ComparableVersionedObject

property attr_data
classmethod attr_data_delete(context, resource_id, attr_id)[source]
convert_to_convergence(current_template_id, requires)[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 = {'action': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'atomic_key': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'attr_data': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'attr_data_id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'current_template_id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'data': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'engine_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'needed_by': List(default=None,nullable=True), 'physical_resource_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'replaced_by': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'replaces': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'requires': List(default=None,nullable=True), 'root_stack_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'rsrc_metadata': Json(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'rsrc_prop_data_id': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'stack_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'status': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'status_reason': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'uuid': String(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_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]
property properties_data
classmethod purge_deleted(context, stack_id)[source]
refresh()[source]
classmethod replacement(context, existing_res_id, 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.