The openstack_dashboard.usage.quotas ModuleΒΆ

class openstack_dashboard.usage.quotas.QuotaUsage[source]

Bases: dict

Tracks quota limit, used, and available for a given set of quotas.

QuotaUsage.add_quota(quota)[source]

Adds an internal tracking reference for the given quota.

QuotaUsage.get(key, default=None)[source]
QuotaUsage.tally(name, value)[source]

Adds to the “used” metric for the given quota.

QuotaUsage.update_available(name)[source]

Updates the “available” metric for the given quota.

openstack_dashboard.usage.quotas.get_default_quota_data(request, disabled_quotas=None, tenant_id=None)[source]
openstack_dashboard.usage.quotas.get_disabled_quotas(request)[source]
openstack_dashboard.usage.quotas.get_tenant_quota_data(request, disabled_quotas=None, tenant_id=None)[source]
openstack_dashboard.usage.quotas.tenant_limit_usages(request)[source]
openstack_dashboard.usage.quotas.tenant_quota_usages(*args, **kwargs)[source]

Previous topic

The openstack_dashboard.usage.tables Module

Next topic

The openstack_dashboard.usage.base Module

This Page