The nova.objects.quotas Module

class Quotas(*args, **kwargs)

Bases: nova.objects.base.NovaObject

VERSION = '1.2'
commit(*args, **kwargs)
classmethod count(context, *args, **kwargs)

Count a resource.

classmethod create_limit(context, *args, **kwargs)
fields = {'reservations': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'project_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'user_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}
classmethod from_reservations(context, reservations, instance=None)

Transitional for compatibility.

classmethod limit_check(context, *args, **kwargs)

Check quota limits.

project_id
reservations
reserve(*args, **kwargs)
rollback(*args, **kwargs)

Rollback quotas.

classmethod update_limit(context, *args, **kwargs)
user_id
class QuotasNoOp(*args, **kwargs)

Bases: nova.objects.quotas.Quotas

commit(context=None)
fields = {'reservations': List(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'project_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True), 'user_id': String(default=<class 'oslo_versionedobjects.fields.UnspecifiedDefault'>,nullable=True)}
project_id
reservations
reserve(context, expire=None, project_id=None, user_id=None, **deltas)
rollback(context=None)
user_id
ids_from_instance(context, instance)
ids_from_security_group(context, security_group)
ids_from_server_group(context, server_group)

Previous topic

The nova.objects.pci_device_pool Module

Next topic

The nova.objects.request_spec Module

Project Source

This Page