The nova.objects.flavor Module

class Flavor(*args, **kwargs)

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

VERSION = '1.1'
add_access(*args, **kwargs)
create(*args, **kwargs)
created_at
deleted
deleted_at
destroy(*args, **kwargs)
disabled
ephemeral_gb
extra_specs
fields = {'ephemeral_gb': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'root_gb': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'is_public': Boolean(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'name': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'id': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'created_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'flavorid': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'disabled': Boolean(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'extra_specs': Dict(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'memory_mb': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'rxtx_factor': Float(default=1.0,nullable=True), 'projects': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'swap': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'deleted_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'vcpus': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=False), 'updated_at': DateTime(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'deleted': Boolean(default=False,nullable=False), 'vcpu_weight': Integer(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}
flavorid
classmethod get_by_flavor_id(context, *args, **kwargs)
classmethod get_by_id(context, *args, **kwargs)
classmethod get_by_name(context, *args, **kwargs)
id
is_public
memory_mb
name
obj_load_attr(attrname)
obj_reset_changes(fields=None, recursive=False)
obj_what_changed()
projects
remove_access(*args, **kwargs)
root_gb
rxtx_factor
save()
save_extra_specs(*args, **kwargs)

Add or delete extra_specs.

:param:to_add: A dict of new keys to add/update :param:to_delete: A list of keys to remove

save_projects(*args, **kwargs)

Add or delete projects.

:param:to_add: A list of projects to add :param:to_delete: A list of projects to remove

swap
updated_at
vcpu_weight
vcpus
class FlavorList(*args, **kwargs)

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

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

Previous topic

The nova.objects.fixed_ip Module

Next topic

The nova.objects.floating_ip Module

Project Source

This Page