Search in sources :

Example 1 with V3OpenStackVolumeProviders

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

the class V3OpenStackVolumeProvidersInAdapter method adapt.

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

Example 2 with V3OpenStackVolumeProviders

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

the class V3OpenStackVolumeProvidersOutAdapter method adapt.

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

Aggregations

V3OpenStackVolumeProviders (org.ovirt.engine.api.v3.types.V3OpenStackVolumeProviders)2 OpenStackVolumeProviders (org.ovirt.engine.api.model.OpenStackVolumeProviders)1