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;
}
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;
}
Aggregations