The nova.objects.resource_provider Module

class Inventory(context=None, **kwargs)

Bases: nova.objects.resource_provider._HasAResourceProvider

VERSION = '1.0'
allocation_ratio
create(*args, **kwargs)
fields = {'step_size': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'max_unit': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'allocation_ratio': Float(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'total': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'resource_provider': Object(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'reserved': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'min_unit': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'resource_class': ResourceClass(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False,valid_values=('VCPU', 'MEMORY_MB', 'DISK_GB', 'PCI_DEVICE', 'SRIOV_NET_VF', 'NUMA_SOCKET', 'NUMA_CORE', 'NUMA_THREAD', 'NUMA_MEMORY_MB', 'IPV4_ADDRESS'))}
id
max_unit
min_unit
reserved
resource_class
resource_provider
save(*args, **kwargs)
step_size
total
class InventoryList(*args, **kwargs)

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

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

Bases: nova.objects.base.NovaObject

VERSION = '1.0'
create(*args, **kwargs)
fields = {'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'uuid': UUID(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False)}
classmethod get_by_uuid(context, *args, **kwargs)
id
uuid

Previous topic

The nova.objects.request_spec Module

Next topic

The nova.objects.security_group Module

Project Source

This Page