Search in sources :

Example 6 with IscsiBond

use of org.ovirt.engine.api.model.IscsiBond 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

IscsiBond (org.ovirt.engine.api.model.IscsiBond)6 Networks (org.ovirt.engine.api.model.Networks)2 StorageConnections (org.ovirt.engine.api.model.StorageConnections)2 Guid (org.ovirt.engine.core.compat.Guid)2 Response (javax.ws.rs.core.Response)1 Test (org.junit.Test)1 DataCenter (org.ovirt.engine.api.model.DataCenter)1 IscsiBonds (org.ovirt.engine.api.model.IscsiBonds)1 Network (org.ovirt.engine.api.model.Network)1 StorageConnection (org.ovirt.engine.api.model.StorageConnection)1 V3IscsiBond (org.ovirt.engine.api.v3.types.V3IscsiBond)1 AddIscsiBondParameters (org.ovirt.engine.core.common.action.AddIscsiBondParameters)1 IdQueryParameters (org.ovirt.engine.core.common.queries.IdQueryParameters)1