Cinder common internal object model
Bases: oslo_versionedobjects.base.ComparableVersionedObject
Bases: oslo_versionedobjects.base.VersionedObject
Returns a dict of changed fields with tz unaware datetimes.
Any timezone aware datetime field will be converted to UTC timezone and returned as timezone unaware datetime.
This will allow us to pass these fields directly to a db update method as they can’t have timezone information.
Bases: oslo_versionedobjects.base.VersionedObjectDictCompat
Mix-in to provide dictionary key access compat.
If an object needs to support attribute access using dictionary items instead of object attributes, inherit from this class. This should only be used as a temporary measure until all callers are converted to use modern attribute access.
NOTE(berrange) This class will eventually be deleted.
For backwards-compatibility with dict-based objects.
NOTE(danms): May be removed in the future.
Bases: oslo_versionedobjects.base.VersionedObjectRegistry
Bases: oslo_versionedobjects.base.VersionedObjectSerializer
alias of CinderObject
Bases: object
Mixin class for Persistent objects.
This adds the fields that we use in common for all persistent objects.
Context manager to make an object call as an admin.
This temporarily modifies the context embedded in an object to be elevated() and restores it after the call completes. Example usage:
- with obj.obj_as_admin():
- obj.save()
Bases: oslo_versionedobjects.base.ObjectListBase