Search in sources :

Example 1 with IscsiBonds

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

the class V3IscsiBondsInAdapter method adapt.

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

Example 2 with IscsiBonds

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

the class BackendIscsiBondsResource method mapCollection.

private IscsiBonds mapCollection(List<org.ovirt.engine.core.common.businessentities.IscsiBond> entities) {
    IscsiBonds iscsiBonds = new IscsiBonds();
    for (org.ovirt.engine.core.common.businessentities.IscsiBond entity : entities) {
        IscsiBond iscsiBond = IscsiBondMapper.map(entity, null);
        iscsiBonds.getIscsiBonds().add(addLinks(populate(iscsiBond, entity)));
    }
    return iscsiBonds;
}
Also used : IscsiBonds(org.ovirt.engine.api.model.IscsiBonds) IscsiBond(org.ovirt.engine.api.model.IscsiBond)

Aggregations

IscsiBonds (org.ovirt.engine.api.model.IscsiBonds)2 IscsiBond (org.ovirt.engine.api.model.IscsiBond)1 V3IscsiBonds (org.ovirt.engine.api.v3.types.V3IscsiBonds)1