Search in sources :

Example 1 with V3QuotaStorageLimits

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

the class V3QuotaStorageLimitsInAdapter method adapt.

@Override
public QuotaStorageLimits adapt(V3QuotaStorageLimits from) {
    QuotaStorageLimits to = new QuotaStorageLimits();
    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.getQuotaStorageLimits().addAll(adaptIn(from.getQuotaStorageLimits()));
    return to;
}
Also used : QuotaStorageLimits(org.ovirt.engine.api.model.QuotaStorageLimits) V3QuotaStorageLimits(org.ovirt.engine.api.v3.types.V3QuotaStorageLimits)

Example 2 with V3QuotaStorageLimits

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

the class V3QuotaStorageLimitsOutAdapter method adapt.

@Override
public V3QuotaStorageLimits adapt(QuotaStorageLimits from) {
    V3QuotaStorageLimits to = new V3QuotaStorageLimits();
    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.getQuotaStorageLimits().addAll(adaptOut(from.getQuotaStorageLimits()));
    return to;
}
Also used : V3QuotaStorageLimits(org.ovirt.engine.api.v3.types.V3QuotaStorageLimits)

Aggregations

V3QuotaStorageLimits (org.ovirt.engine.api.v3.types.V3QuotaStorageLimits)2 QuotaStorageLimits (org.ovirt.engine.api.model.QuotaStorageLimits)1