The nova.objects.fields Module

class Architecture(**kwargs)

Bases: oslo_versionedobjects.fields.Enum

coerce(obj, attr, value)
class ArchitectureField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.Architecture object at 0x7f3116423910>
class AutoTypedField(**kwargs)

Bases: oslo_versionedobjects.fields.Field

AUTO_TYPE = None
class BaseEnumField(**kwargs)

Bases: nova.objects.fields.AutoTypedField

This class should not be directly instantiated. Instead subclass it and set AUTO_TYPE to be a SomeEnum() where SomeEnum is a subclass of Enum.

class BlockDeviceDestinationType

Bases: oslo_versionedobjects.fields.Enum

Represents possible destination_type values for a BlockDeviceMapping.

ALL = ('local', 'volume')
LOCAL = 'local'
VOLUME = 'volume'
class BlockDeviceDestinationTypeField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.BlockDeviceDestinationType object at 0x7f31164239d0>
class BlockDeviceSourceType

Bases: oslo_versionedobjects.fields.Enum

Represents the possible source_type values for a BlockDeviceMapping.

ALL = ('blank', 'image', 'snapshot', 'volume')
BLANK = 'blank'
IMAGE = 'image'
SNAPSHOT = 'snapshot'
VOLUME = 'volume'
class BlockDeviceSourceTypeField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.BlockDeviceSourceType object at 0x7f3116423a50>
class BlockDeviceType

Bases: oslo_versionedobjects.fields.Enum

Represents possible device_type values for a BlockDeviceMapping.

ALL = ('cdrom', 'disk', 'floppy', 'fs', 'lun')
CDROM = 'cdrom'
DISK = 'disk'
FLOPPY = 'floppy'
FS = 'fs'
LUN = 'lun'
class BlockDeviceTypeField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.BlockDeviceType object at 0x7f3116423a90>
class CPUAllocationPolicy

Bases: oslo_versionedobjects.fields.Enum

ALL = ('dedicated', 'shared')
DEDICATED = 'dedicated'
SHARED = 'shared'
class CPUAllocationPolicyField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.CPUAllocationPolicy object at 0x7f3116423b90>
class CPUFeaturePolicy(**kwargs)

Bases: oslo_versionedobjects.fields.Enum

class CPUFeaturePolicyField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.CPUFeaturePolicy object at 0x7f3116423dd0>
class CPUMatch(**kwargs)

Bases: oslo_versionedobjects.fields.Enum

class CPUMatchField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.CPUMatch object at 0x7f3116423d50>
class CPUMode(**kwargs)

Bases: oslo_versionedobjects.fields.Enum

class CPUModeField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.CPUMode object at 0x7f3116423c90>
class CPUThreadAllocationPolicy

Bases: oslo_versionedobjects.fields.Enum

ALL = ('prefer', 'isolate', 'require')
ISOLATE = 'isolate'
PREFER = 'prefer'
REQUIRE = 'require'
class CPUThreadAllocationPolicyField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.CPUThreadAllocationPolicy object at 0x7f3116423c10>
class ConfigDrivePolicy

Bases: oslo_versionedobjects.fields.Enum

ALL = ('optional', 'mandatory')
MANDATORY = 'mandatory'
OPTIONAL = 'optional'
class ConfigDrivePolicyField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.ConfigDrivePolicy object at 0x7f3116423b10>
class DiskBus

Bases: oslo_versionedobjects.fields.Enum

ALL = ('fdc', 'ide', 'sata', 'scsi', 'usb', 'virtio', 'xen', 'lxc', 'uml')
FDC = 'fdc'
IDE = 'ide'
LXC = 'lxc'
SATA = 'sata'
SCSI = 'scsi'
UML = 'uml'
USB = 'usb'
VIRTIO = 'virtio'
XEN = 'xen'
class DiskBusField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.DiskBus object at 0x7f3116423e50>
class DiskFormat

Bases: oslo_versionedobjects.fields.Enum

ALL = ('rbd', 'lvm', 'qcow2', 'raw', 'ploop', 'vhd', 'vmdk', 'vdi', 'iso')
ISO = 'iso'
LVM = 'lvm'
PLOOP = 'ploop'
QCOW2 = 'qcow2'
RAW = 'raw'
RBD = 'rbd'
VDI = 'vdi'
VHD = 'vhd'
VMDK = 'vmdk'
class DiskFormatField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.DiskFormat object at 0x7f311642f650>
class FirmwareType

Bases: oslo_versionedobjects.fields.Enum

ALL = ('uefi', 'bios')
BIOS = 'bios'
UEFI = 'uefi'
class FirmwareTypeField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.FirmwareType object at 0x7f3116423ed0>
class HVType

Bases: oslo_versionedobjects.fields.Enum

coerce(obj, attr, value)
class HVTypeField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.HVType object at 0x7f3116423f10>
class HostStatus

Bases: oslo_versionedobjects.fields.Enum

ALL = ('UP', 'DOWN', 'MAINTENANCE', 'UNKNOWN', '')
DOWN = 'DOWN'
MAINTENANCE = 'MAINTENANCE'
NONE = ''
UNKNOWN = 'UNKNOWN'
UP = 'UP'
class IPAddress

Bases: oslo_versionedobjects.fields.FieldType

static coerce(obj, attr, value)
from_primitive(obj, attr, value)
static to_primitive(obj, attr, value)
class IPAddressField(**kwargs)

Bases: nova.objects.fields.AutoTypedField

AUTO_TYPE = <nova.objects.fields.IPAddress object at 0x7f311642f850>
class IPNetwork

Bases: nova.objects.fields.IPAddress

static coerce(obj, attr, value)
class IPNetworkField(**kwargs)

Bases: nova.objects.fields.AutoTypedField

AUTO_TYPE = <nova.objects.fields.IPNetwork object at 0x7f311642fa50>
class IPV4Address

Bases: nova.objects.fields.IPAddress

static coerce(obj, attr, value)
class IPV4AddressField(**kwargs)

Bases: nova.objects.fields.AutoTypedField

AUTO_TYPE = <nova.objects.fields.IPV4Address object at 0x7f311642f8d0>
class IPV4AndV6Address

Bases: nova.objects.fields.IPAddress

static coerce(obj, attr, value)
class IPV4AndV6AddressField(**kwargs)

Bases: nova.objects.fields.AutoTypedField

AUTO_TYPE = <nova.objects.fields.IPV4AndV6Address object at 0x7f311642f9d0>
class IPV4Network

Bases: nova.objects.fields.IPNetwork

static coerce(obj, attr, value)
class IPV4NetworkField(**kwargs)

Bases: nova.objects.fields.AutoTypedField

AUTO_TYPE = <nova.objects.fields.IPV4Network object at 0x7f311642fad0>
class IPV6Address

Bases: nova.objects.fields.IPAddress

static coerce(obj, attr, value)
class IPV6AddressField(**kwargs)

Bases: nova.objects.fields.AutoTypedField

AUTO_TYPE = <nova.objects.fields.IPV6Address object at 0x7f311642f950>
class IPV6Network

Bases: nova.objects.fields.IPNetwork

static coerce(obj, attr, value)
class IPV6NetworkField(**kwargs)

Bases: nova.objects.fields.AutoTypedField

AUTO_TYPE = <nova.objects.fields.IPV6Network object at 0x7f311642fb50>
class ImageSignatureHashType

Bases: oslo_versionedobjects.fields.Enum

class ImageSignatureHashTypeField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.ImageSignatureHashType object at 0x7f3116423f90>
class ImageSignatureKeyType

Bases: oslo_versionedobjects.fields.Enum

class ImageSignatureKeyTypeField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.ImageSignatureKeyType object at 0x7f311642f050>
class ListOfIntegersField(**kwargs)

Bases: nova.objects.fields.AutoTypedField

AUTO_TYPE = <oslo_versionedobjects.fields.List object at 0x7f311642fc50>
class MonitorMetricType

Bases: oslo_versionedobjects.fields.Enum

ALL = ('cpu.frequency', 'cpu.user.time', 'cpu.kernel.time', 'cpu.idle.time', 'cpu.iowait.time', 'cpu.user.percent', 'cpu.kernel.percent', 'cpu.idle.percent', 'cpu.iowait.percent', 'cpu.percent', 'numa.membw.max', 'numa.membw.current')
CPU_FREQUENCY = 'cpu.frequency'
CPU_IDLE_PERCENT = 'cpu.idle.percent'
CPU_IDLE_TIME = 'cpu.idle.time'
CPU_IOWAIT_PERCENT = 'cpu.iowait.percent'
CPU_IOWAIT_TIME = 'cpu.iowait.time'
CPU_KERNEL_PERCENT = 'cpu.kernel.percent'
CPU_KERNEL_TIME = 'cpu.kernel.time'
CPU_PERCENT = 'cpu.percent'
CPU_USER_PERCENT = 'cpu.user.percent'
CPU_USER_TIME = 'cpu.user.time'
NUMA_MEM_BW_CURRENT = 'numa.membw.current'
NUMA_MEM_BW_MAX = 'numa.membw.max'
class MonitorMetricTypeField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.MonitorMetricType object at 0x7f311642f4d0>
class NetworkModel

Bases: oslo_versionedobjects.fields.FieldType

static coerce(obj, attr, value)
static from_primitive(obj, attr, value)
stringify(value)
static to_primitive(obj, attr, value)
class NonNegativeFloat

Bases: oslo_versionedobjects.fields.FieldType

static coerce(obj, attr, value)
class NonNegativeFloatField(**kwargs)

Bases: nova.objects.fields.AutoTypedField

AUTO_TYPE = <nova.objects.fields.NonNegativeFloat object at 0x7f311642fd10>
class NonNegativeInteger

Bases: oslo_versionedobjects.fields.FieldType

static coerce(obj, attr, value)
class NonNegativeIntegerField(**kwargs)

Bases: nova.objects.fields.AutoTypedField

AUTO_TYPE = <nova.objects.fields.NonNegativeInteger object at 0x7f311642fd50>
class NotificationAction

Bases: oslo_versionedobjects.fields.Enum

ALL = ('update',)
UPDATE = 'update'
class NotificationActionField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.NotificationAction object at 0x7f311642f7d0>
class NotificationPhase

Bases: oslo_versionedobjects.fields.Enum

ALL = ('start', 'end', 'error')
END = 'end'
ERROR = 'error'
START = 'start'
class NotificationPhaseField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.NotificationPhase object at 0x7f311642f750>
class NotificationPriority

Bases: oslo_versionedobjects.fields.Enum

ALL = ('audit', 'critical', 'debug', 'info', 'error', 'sample', 'warn')
AUDIT = 'audit'
CRITICAL = 'critical'
DEBUG = 'debug'
ERROR = 'error'
INFO = 'info'
SAMPLE = 'sample'
WARN = 'warn'
class NotificationPriorityField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.NotificationPriority object at 0x7f311642f6d0>
class OSType

Bases: oslo_versionedobjects.fields.Enum

ALL = ('linux', 'windows')
LINUX = 'linux'
WINDOWS = 'windows'
coerce(obj, attr, value)
class OSTypeField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.OSType object at 0x7f311642f0d0>
class PciDeviceStatus

Bases: oslo_versionedobjects.fields.Enum

ALL = ('available', 'claimed', 'allocated', 'removed', 'deleted', 'unavailable', 'unclaimable')
ALLOCATED = 'allocated'
AVAILABLE = 'available'
CLAIMED = 'claimed'
DELETED = 'deleted'
REMOVED = 'removed'
UNAVAILABLE = 'unavailable'
UNCLAIMABLE = 'unclaimable'
class PciDeviceStatusField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.PciDeviceStatus object at 0x7f311642f550>
class PciDeviceType

Bases: oslo_versionedobjects.fields.Enum

ALL = ('type-PCI', 'type-PF', 'type-VF')
SRIOV_PF = 'type-PF'
SRIOV_VF = 'type-VF'
STANDARD = 'type-PCI'
class PciDeviceTypeField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.PciDeviceType object at 0x7f311642f5d0>
class RNGModel

Bases: oslo_versionedobjects.fields.Enum

ALL = ('virtio',)
VIRTIO = 'virtio'
class RNGModelField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.RNGModel object at 0x7f311642f1d0>
class ResourceClass

Bases: oslo_versionedobjects.fields.Enum

Classes of resources provided to consumers.

ALL = ('VCPU', 'MEMORY_MB', 'DISK_GB', 'PCI_DEVICE', 'SRIOV_NET_VF', 'NUMA_SOCKET', 'NUMA_CORE', 'NUMA_THREAD', 'NUMA_MEMORY_MB', 'IPV4_ADDRESS')
DISK_GB = 'DISK_GB'
IPV4_ADDRESS = 'IPV4_ADDRESS'
MEMORY_MB = 'MEMORY_MB'
NUMA_CORE = 'NUMA_CORE'
NUMA_MEMORY_MB = 'NUMA_MEMORY_MB'
NUMA_SOCKET = 'NUMA_SOCKET'
NUMA_THREAD = 'NUMA_THREAD'
PCI_DEVICE = 'PCI_DEVICE'
SRIOV_NET_VF = 'SRIOV_NET_VF'
VCPU = 'VCPU'
classmethod from_index(index)

Return the Enum value at a given index.

classmethod index(value)

Return an index into the Enum given a value.

class ResourceClassField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.ResourceClass object at 0x7f311642f150>
from_index(index)

Return the Enum value at a given index.

index(value)

Return an index into the Enum given a value.

class SCSIModel

Bases: oslo_versionedobjects.fields.Enum

ALL = ('buslogic', 'ibmvscsi', 'lsilogic', 'lsisas1068', 'lsisas1078', 'virtio-scsi', 'vmpvscsi')
BUSLOGIC = 'buslogic'
IBMVSCSI = 'ibmvscsi'
LSILOGIC = 'lsilogic'
LSISAS1068 = 'lsisas1068'
LSISAS1078 = 'lsisas1078'
VIRTIO_SCSI = 'virtio-scsi'
VMPVSCSI = 'vmpvscsi'
coerce(obj, attr, value)
class SCSIModelField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.SCSIModel object at 0x7f311642f250>
class VIFModel

Bases: oslo_versionedobjects.fields.Enum

LEGACY_VALUES = {'virtualvmxnet3': 'vmxnet3', 'virtuale1000': 'e1000', 'virtuale1000e': 'e1000e', 'virtualvmxnet': 'vmxnet', 'virtualpcnet32': 'pcnet', 'virtualsriovethernetcard': 'sriov'}
coerce(obj, attr, value)
class VIFModelField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.VIFModel object at 0x7f311642f350>
class VMMode

Bases: oslo_versionedobjects.fields.Enum

coerce(obj, attr, value)
class VMModeField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.VMMode object at 0x7f311642f3d0>
class VideoModel

Bases: oslo_versionedobjects.fields.Enum

ALL = ('cirrus', 'qxl', 'vga', 'vmvga', 'xen')
CIRRUS = 'cirrus'
QXL = 'qxl'
VGA = 'vga'
VMVGA = 'vmvga'
XEN = 'xen'
class VideoModelField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.VideoModel object at 0x7f311642f2d0>
class WatchdogAction

Bases: oslo_versionedobjects.fields.Enum

ALL = ('none', 'pause', 'poweroff', 'reset')
NONE = 'none'
PAUSE = 'pause'
POWEROFF = 'poweroff'
RESET = 'reset'
class WatchdogActionField(**kwargs)

Bases: nova.objects.fields.BaseEnumField

AUTO_TYPE = <nova.objects.fields.WatchdogAction object at 0x7f311642f450>

Previous topic

The nova.objects.external_event Module

Next topic

The nova.objects.fixed_ip Module

Project Source

This Page