Bases: object
Driver to perform necessary checks to enforce quotas and obtain quota information. The default driver utilizes the local database.
Delete the quota entries for a given tenant_id.
Atfer deletion, this tenant will use default quota values in conf.
Given a list of resources, retrieve the quotas for the all tenants.
| Parameters: |
|
|---|---|
| Return quotas: | list of dict of tenant_id:, resourcekey1: |
resourcekey2: ...
Given a list of resources, retrieve the quotas for the given tenant.
| Parameters: |
|
|---|---|
| Return dict: | from resource name to dict of name and limit |
Check simple quota limits.
For limits–those quotas for which there is no usage synchronization function–this method checks that a set of proposed values are permitted by the limit restriction.
This method will raise a QuotaResourceUnknown exception if a given resource is unknown or if it is not a simple limit resource.
If any of the proposed values is over the defined quota, an OverQuota exception will be raised with the sorted list of the resources which are too high. Otherwise, the method returns nothing.
| Parameters: |
|
|---|