Search in sources :

Example 1 with V3NetworkAttachments

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

the class V3NetworkAttachmentsInAdapter method adapt.

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

Example 2 with V3NetworkAttachments

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

the class V3NetworkAttachmentsOutAdapter method adapt.

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

Aggregations

V3NetworkAttachments (org.ovirt.engine.api.v3.types.V3NetworkAttachments)2 NetworkAttachments (org.ovirt.engine.api.model.NetworkAttachments)1