The heat.objects.stack
Module¶
Stack object.
-
class
heat.objects.stack.
Stack
(context=None, **kwargs)[source]¶ Bases:
heat.objects.base.HeatObject
,oslo_versionedobjects.base.VersionedObjectDictCompat
,oslo_versionedobjects.base.ComparableVersionedObject
-
fields
= {‘deleted_at’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘prev_raw_template’: Object(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘name’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘action’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘prev_raw_template_id’: Integer(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘timeout’: Integer(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘nested_depth’: Integer(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘status_reason’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘user_creds_id’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘id’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘backup’: Boolean(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘disable_rollback’: Boolean(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘current_traversal’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘updated_at’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘username’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘tenant’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘current_deps’: Json(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘created_at’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘status’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘stack_user_project_id’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘raw_template_id’: Integer(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘owner_id’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘convergence’: Boolean(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘raw_template’: Object(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘parent_resource_name’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True)}¶
-
classmethod
get_all
(context, limit=None, sort_keys=None, marker=None, sort_dir=None, filters=None, show_deleted=False, show_nested=False, show_hidden=False, tags=None, tags_any=None, not_tags=None, not_tags_any=None, eager_load=False)[source]¶
-
classmethod
select_and_update
(context, stack_id, values, exp_trvsl=None)[source]¶ Update the stack by selecting on traversal ID.
Uses UPDATE … WHERE (compare and swap) to catch any concurrent update problem.
If the stack is found with given traversal, it is updated.
If there occurs a race while updating, only one will succeed and other will get return value of False.
-