Search in sources :

Example 6 with QuotaClusterLimit

use of org.ovirt.engine.api.model.QuotaClusterLimit in project ovirt-engine by oVirt.

the class BackendQuotaClusterLimitsResource method addLimit.

private void addLimit(String id, QuotaClusterLimits limits, Quota quota) {
    QuotaClusterLimit limit = new QuotaClusterLimit();
    limit.setId(id);
    limits.getQuotaClusterLimits().add(addLinks(map(quota, limit)));
}
Also used : QuotaClusterLimit(org.ovirt.engine.api.model.QuotaClusterLimit)

Aggregations

QuotaClusterLimit (org.ovirt.engine.api.model.QuotaClusterLimit)6 Quota (org.ovirt.engine.core.common.businessentities.Quota)3 Test (org.junit.Test)2 QuotaClusterLimits (org.ovirt.engine.api.model.QuotaClusterLimits)2 QuotaCluster (org.ovirt.engine.core.common.businessentities.QuotaCluster)2 LinkedList (java.util.LinkedList)1 QuotaCRUDParameters (org.ovirt.engine.core.common.action.QuotaCRUDParameters)1 Guid (org.ovirt.engine.core.compat.Guid)1