The cinder.objects.qos_specs Module

class QualityOfServiceSpecs(*args, **kwargs)

Bases: cinder.objects.base.CinderPersistentObject, cinder.objects.base.CinderObject, cinder.objects.base.CinderObjectDictCompat, cinder.objects.base.CinderComparableObject

OPTIONAL_FIELDS = ['volume_types']
VERSION = '1.0'
consumer
create()
created_at
deleted
deleted_at
destroy(force=False)

Deletes the QoS spec.

Parameters:force – when force is True, all volume_type mappings for this QoS are deleted. When force is False and volume_type mappings still exist, a QoSSpecsInUse exception is thrown
fields = {'name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'deleted': Boolean(default=False,nullable=True), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'volume_types': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'consumer': QoSConsumerValues(default=back-end,nullable=False,valid_values=('back-end', 'front-end', 'both')), 'specs': Dict(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}
id
model

alias of QualityOfServiceSpecs

name
obj_get_changes()
obj_load_attr(attrname)
obj_reset_changes(fields=None, recursive=False)
obj_what_changed()
save()
specs
updated_at
volume_types
class QualityOfServiceSpecsList(*args, **kwargs)

Bases: cinder.objects.base.ObjectListBase, cinder.objects.base.CinderObject

VERSION = '1.0'
child_versions = {'1.0': '1.0'}
fields = {'objects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
classmethod get_all(context, *args, **kwargs)
objects