Search in sources :

Example 1 with V3OpenStackNetworks

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

the class V3OpenStackNetworksInAdapter method adapt.

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

Example 2 with V3OpenStackNetworks

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

the class V3OpenStackNetworksOutAdapter method adapt.

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

Aggregations

V3OpenStackNetworks (org.ovirt.engine.api.v3.types.V3OpenStackNetworks)2 OpenStackNetworks (org.ovirt.engine.api.model.OpenStackNetworks)1