The cinder.objects.group
Module¶
-
class
Group
(context=None, **kwargs)¶ Bases:
cinder.objects.base.CinderPersistentObject
,cinder.objects.base.CinderObject
,cinder.objects.base.CinderObjectDictCompat
,cinder.objects.base.ClusteredObject
-
OPTIONAL_FIELDS
= [‘volumes’, ‘volume_types’, ‘group_snapshots’]¶
-
VERSION
= ‘1.2’¶
-
availability_zone
¶
-
cluster_name
¶
-
create
(group_snapshot_id=None, source_group_id=None)¶
-
created_at
¶
-
deleted
¶
-
deleted_at
¶
-
description
¶
-
destroy
()¶
-
fields
= {‘status’: GroupStatus(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True,valid_values=(‘error’, ‘available’, ‘creating’, ‘deleting’, ‘deleted’, ‘updating’, ‘in-use’, ‘error_deleting’)), ‘description’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘availability_zone’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘deleted’: Boolean(default=False,nullable=True), ‘group_type_id’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘updated_at’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘volume_types’: Object(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘volume_type_ids’: List(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘host’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘replication_status’: ReplicationStatus(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True,valid_values=(‘error’, ‘enabled’, ‘disabled’, ‘not-capable’, ‘failover-error’, ‘failing-over’, ‘failed-over’, ‘enabling’, ‘disabling’)), ‘deleted_at’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘id’: UUID(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘user_id’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘name’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘group_snapshot_id’: UUID(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘created_at’: DateTime(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘cluster_name’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘source_group_id’: UUID(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘volumes’: Object(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True), ‘project_id’: String(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False), ‘group_snapshots’: Object(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=True)}¶
-
group_snapshot_id
¶
-
group_snapshots
¶
-
group_type_id
¶
-
host
¶
-
id
¶
-
name
¶
-
obj_load_attr
(attrname)¶
-
obj_make_compatible
(primitive, target_version)¶ Make an object representation compatible with target version.
-
project_id
¶
-
replication_status
¶
-
save
()¶
-
source_group_id
¶
-
status
¶
-
updated_at
¶
-
user_id
¶
-
volume_type_ids
¶
-
volume_types
¶
-
volumes
¶
-
-
class
GroupList
(*args, **kwargs)¶ Bases:
cinder.objects.base.ObjectListBase
,cinder.objects.base.CinderObject
-
VERSION
= ‘1.0’¶
-
fields
= {‘objects’: List(default=<class ‘oslo_versionedobjects.fields.UnspecifiedDefault’>,nullable=False)}¶
-
classmethod
get_all
(context, filters=None, marker=None, limit=None, offset=None, sort_keys=None, sort_dirs=None)¶
-
classmethod
get_all_by_project
(context, project_id, filters=None, marker=None, limit=None, offset=None, sort_keys=None, sort_dirs=None)¶
-
objects
¶
-