Quotas for instances, volumes, and floating ips.
Bases: object
Describe a single resource for quota checking.
Return the default value of the quota.
Bases: object
Driver to perform necessary checks to enforce quotas and obtain quota information. The default driver utilizes the default values in quantum.conf.
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: |
|
|---|
Bases: quantum.quota.BaseResource
Describe a resource where the counts are determined by a function.
Bases: object
Represent the set of recognized quotas.
Count a resource.
For countable resources, invokes the count() function and returns its result. Arguments following the context and resource are passed directly to the count function declared by the resource.
| Parameters: |
|
|---|
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. The values to check are given as keyword arguments, where the key identifies the specific quota limit to check, and the value is the proposed value.
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: | context – The request context, for access checks. |
|---|
Register a resource.
Register a resource by name.
Register a list of resources.