Search in sources :

Example 1 with V3StorageConnections

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

the class V3StorageConnectionsInAdapter method adapt.

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

Example 2 with V3StorageConnections

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

the class V3StorageConnectionsOutAdapter method adapt.

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

Example 3 with V3StorageConnections

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

the class V3IscsiBondOutAdapter method adapt.

@Override
public V3IscsiBond adapt(IscsiBond from) {
    V3IscsiBond to = new V3IscsiBond();
    if (from.isSetLinks()) {
        to.getLinks().addAll(adaptOut(from.getLinks()));
    }
    if (from.isSetActions()) {
        to.setActions(adaptOut(from.getActions()));
    }
    if (from.isSetComment()) {
        to.setComment(from.getComment());
    }
    if (from.isSetDataCenter()) {
        to.setDataCenter(adaptOut(from.getDataCenter()));
    }
    if (from.isSetDescription()) {
        to.setDescription(from.getDescription());
    }
    if (from.isSetId()) {
        to.setId(from.getId());
    }
    if (from.isSetHref()) {
        to.setHref(from.getHref());
    }
    if (from.isSetName()) {
        to.setName(from.getName());
    }
    if (from.isSetNetworks()) {
        to.setNetworks(new V3Networks());
        to.getNetworks().getNetworks().addAll(adaptOut(from.getNetworks().getNetworks()));
    }
    if (from.isSetStorageConnections()) {
        to.setStorageConnections(new V3StorageConnections());
        to.getStorageConnections().getStorageConnections().addAll(adaptOut(from.getStorageConnections().getStorageConnections()));
    }
    return to;
}
Also used : V3Networks(org.ovirt.engine.api.v3.types.V3Networks) V3StorageConnections(org.ovirt.engine.api.v3.types.V3StorageConnections) V3IscsiBond(org.ovirt.engine.api.v3.types.V3IscsiBond)

Aggregations

V3StorageConnections (org.ovirt.engine.api.v3.types.V3StorageConnections)3 StorageConnections (org.ovirt.engine.api.model.StorageConnections)1 V3IscsiBond (org.ovirt.engine.api.v3.types.V3IscsiBond)1 V3Networks (org.ovirt.engine.api.v3.types.V3Networks)1