cinder.objects.cgsnapshot module
updated: 2024-06-21 07:19
cinder.objects.cgsnapshot module
-
class CGSnapshot(context=None, **kwargs)
Bases: CinderPersistentObject
, CinderObject
, CinderObjectDictCompat
, ClusteredObject
-
OPTIONAL_FIELDS = ['consistencygroup', 'snapshots']
-
VERSION = '1.1'
-
property cluster_name
-
property consistencygroup
-
property consistencygroup_id
-
create()
-
property created_at
-
property deleted
-
property deleted_at
-
property description
-
destroy()
-
fields = {'consistencygroup': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'consistencygroup_id': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'deleted': Boolean(default=False,nullable=True), 'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'description': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'project_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'snapshots': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'status': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'user_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
-
from_group_snapshot(group_snapshot)
Convert a generic volume group object to a cg object.
-
property host
-
property id
-
model
alias of CGSnapshot
-
property name
-
obj_load_attr(attrname)
Load an additional attribute from the real object.
This should load self.$attrname and cache any data that might
be useful for future load operations.
-
property project_id
-
save()
Save the changed fields back to the store.
This is optional for subclasses, but is presented here in the base
class for consistency among those that do.
-
property snapshots
-
property status
-
property updated_at
-
property user_id
-
class CGSnapshotList(*args, **kwargs)
Bases: ObjectListBase
, CinderObject
-
VERSION = '1.0'
-
fields = {'objects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
-
classmethod get_all(context, filters=None)
-
classmethod get_all_by_group(context, group_id, filters=None)
-
classmethod get_all_by_project(context, project_id, filters=None)
-
property objects
updated: 2024-06-21 07:19