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