Search in sources :

Example 1 with V3QuotaClusterLimits

use of org.ovirt.engine.api.v3.types.V3QuotaClusterLimits in project ovirt-engine by oVirt.

the class V3QuotaClusterLimitsInAdapter method adapt.

@Override
public QuotaClusterLimits adapt(V3QuotaClusterLimits from) {
    QuotaClusterLimits to = new QuotaClusterLimits();
    if (from.isSetActions()) {
        to.setActions(adaptIn(from.getActions()));
    }
    if (from.isSetActive()) {
        to.setActive(from.getActive());
    }
    if (from.isSetSize()) {
        to.setSize(from.getSize());
    }
    if (from.isSetTotal()) {
        to.setTotal(from.getTotal());
    }
    to.getQuotaClusterLimits().addAll(adaptIn(from.getQuotaClusterLimits()));
    return to;
}
Also used : QuotaClusterLimits(org.ovirt.engine.api.model.QuotaClusterLimits) V3QuotaClusterLimits(org.ovirt.engine.api.v3.types.V3QuotaClusterLimits)

Example 2 with V3QuotaClusterLimits

use of org.ovirt.engine.api.v3.types.V3QuotaClusterLimits in project ovirt-engine by oVirt.

the class V3QuotaClusterLimitsOutAdapter method adapt.

@Override
public V3QuotaClusterLimits adapt(QuotaClusterLimits from) {
    V3QuotaClusterLimits to = new V3QuotaClusterLimits();
    if (from.isSetActions()) {
        to.setActions(adaptOut(from.getActions()));
    }
    if (from.isSetActive()) {
        to.setActive(from.getActive());
    }
    if (from.isSetSize()) {
        to.setSize(from.getSize());
    }
    if (from.isSetTotal()) {
        to.setTotal(from.getTotal());
    }
    to.getQuotaClusterLimits().addAll(adaptOut(from.getQuotaClusterLimits()));
    return to;
}
Also used : V3QuotaClusterLimits(org.ovirt.engine.api.v3.types.V3QuotaClusterLimits)

Aggregations

V3QuotaClusterLimits (org.ovirt.engine.api.v3.types.V3QuotaClusterLimits)2 QuotaClusterLimits (org.ovirt.engine.api.model.QuotaClusterLimits)1