use of org.ovirt.engine.api.v3.types.V3IscsiBond in project ovirt-engine by oVirt.
the class V3IscsiBondInAdapter method adapt.
@Override
public IscsiBond adapt(V3IscsiBond from) {
IscsiBond to = new IscsiBond();
if (from.isSetLinks()) {
to.getLinks().addAll(adaptIn(from.getLinks()));
}
if (from.isSetActions()) {
to.setActions(adaptIn(from.getActions()));
}
if (from.isSetComment()) {
to.setComment(from.getComment());
}
if (from.isSetDataCenter()) {
to.setDataCenter(adaptIn(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 Networks());
to.getNetworks().getNetworks().addAll(adaptIn(from.getNetworks().getNetworks()));
}
if (from.isSetStorageConnections()) {
to.setStorageConnections(new StorageConnections());
to.getStorageConnections().getStorageConnections().addAll(adaptIn(from.getStorageConnections().getStorageConnections()));
}
return to;
}
use of org.ovirt.engine.api.v3.types.V3IscsiBond 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