Search in sources :

Example 1 with V3IscsiBond

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

the class V3IscsiBondInAdapter method adapt.

@Override
public IscsiBond adapt(V3IscsiBond from) {
    IscsiBond to = new IscsiBond();
    if (from.isSetLinks()) {
        to.getLinks().addAll(adaptIn(from.getLinks()));
    }
    if (from.isSetActions()) {
        to.setActions(adaptIn(from.getActions()));
    }
    if (from.isSetComment()) {
        to.setComment(from.getComment());
    }
    if (from.isSetDataCenter()) {
        to.setDataCenter(adaptIn(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 Networks());
        to.getNetworks().getNetworks().addAll(adaptIn(from.getNetworks().getNetworks()));
    }
    if (from.isSetStorageConnections()) {
        to.setStorageConnections(new StorageConnections());
        to.getStorageConnections().getStorageConnections().addAll(adaptIn(from.getStorageConnections().getStorageConnections()));
    }
    return to;
}
Also used : Networks(org.ovirt.engine.api.model.Networks) IscsiBond(org.ovirt.engine.api.model.IscsiBond) V3IscsiBond(org.ovirt.engine.api.v3.types.V3IscsiBond) StorageConnections(org.ovirt.engine.api.model.StorageConnections)

Example 2 with V3IscsiBond

use of org.ovirt.engine.api.v3.types.V3IscsiBond 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

V3IscsiBond (org.ovirt.engine.api.v3.types.V3IscsiBond)2 IscsiBond (org.ovirt.engine.api.model.IscsiBond)1 Networks (org.ovirt.engine.api.model.Networks)1 StorageConnections (org.ovirt.engine.api.model.StorageConnections)1 V3Networks (org.ovirt.engine.api.v3.types.V3Networks)1 V3StorageConnections (org.ovirt.engine.api.v3.types.V3StorageConnections)1