The nova.objects.block_device Module

class BlockDeviceMapping(context=None, **kwargs)

Bases: nova.objects.base.NovaPersistentObject, nova.objects.base.NovaObject, nova.objects.base.NovaObjectDictCompat

VERSION = '1.15'
boot_index
connection_info
create(*args, **kwargs)
created_at
delete_on_termination
deleted
deleted_at
destination_type
destroy(*args, **kwargs)
device_name
device_type
disk_bus
fields = {'instance_uuid': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'device_type': BlockDeviceType(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True,valid_values=('cdrom', 'disk', 'floppy', 'fs', 'lun')), 'image_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'delete_on_termination': Boolean(default=False,nullable=False), 'no_device': Boolean(default=False,nullable=False), 'deleted': Boolean(default=False,nullable=False), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'disk_bus': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'instance': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'guest_format': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'snapshot_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'source_type': BlockDeviceSourceType(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True,valid_values=('blank', 'image', 'snapshot', 'volume')), 'volume_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'destination_type': BlockDeviceDestinationType(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True,valid_values=('local', 'volume')), 'boot_index': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'device_name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'volume_size': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'connection_info': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}
classmethod get_by_volume_id(context, *args, **kwargs)
get_image_mapping()
guest_format
id
image_id
instance
instance_uuid
is_image
is_root
is_volume
no_device
obj_load_attr(attrname)
obj_relationships = {'instance': [('1.0', '1.13'), ('1.2', '1.14'), ('1.3', '1.15'), ('1.4', '1.16'), ('1.5', '1.17'), ('1.6', '1.18'), ('1.8', '1.19'), ('1.9', '1.20'), ('1.13', '1.21'), ('1.14', '1.22'), ('1.15', '1.23')]}
save(*args, **kwargs)
snapshot_id
source_type
update_or_create(*args, **kwargs)
updated_at
volume_id
volume_size
class BlockDeviceMappingList(*args, **kwargs)

Bases: nova.objects.base.ObjectListBase, nova.objects.base.NovaObject

VERSION = '1.16'
fields = {'objects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
classmethod get_by_instance_uuid(context, *args, **kwargs)
obj_relationships = {'objects': [('1.0', '1.0'), ('1.1', '1.1'), ('1.2', '1.1'), ('1.3', '1.2'), ('1.4', '1.3'), ('1.5', '1.4'), ('1.6', '1.5'), ('1.7', '1.6'), ('1.8', '1.7'), ('1.9', '1.8'), ('1.10', '1.9'), ('1.11', '1.10'), ('1.12', '1.11'), ('1.13', '1.12'), ('1.14', '1.13'), ('1.15', '1.14'), ('1.16', '1.15')]}
objects
root_bdm()
block_device_make_list(context, db_list, **extra_args)
block_device_make_list_from_dicts(context, bdm_dicts_list)

Previous topic

The nova.objects.base Module

Next topic

The nova.objects.cell_mapping Module

Project Source

This Page