use of org.ovirt.engine.api.v3.types.V3StorageConnections in project ovirt-engine by oVirt.
the class V3StorageConnectionsInAdapter method adapt.
@Override
public StorageConnections adapt(V3StorageConnections from) {
StorageConnections to = new StorageConnections();
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.getStorageConnections().addAll(adaptIn(from.getStorageConnections()));
return to;
}
use of org.ovirt.engine.api.v3.types.V3StorageConnections in project ovirt-engine by oVirt.
the class V3StorageConnectionsOutAdapter method adapt.
@Override
public V3StorageConnections adapt(StorageConnections from) {
V3StorageConnections to = new V3StorageConnections();
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.getStorageConnections().addAll(adaptOut(from.getStorageConnections()));
return to;
}
use of org.ovirt.engine.api.v3.types.V3StorageConnections 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;
}
Aggregations