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;
}
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;
}
Aggregations