use of org.ovirt.engine.api.v3.types.V3GlusterVolumeProfileDetails in project ovirt-engine by oVirt.
the class V3GlusterVolumeProfileDetailsInAdapter method adapt.
@Override
public GlusterVolumeProfileDetails adapt(V3GlusterVolumeProfileDetails from) {
GlusterVolumeProfileDetails to = new GlusterVolumeProfileDetails();
if (from.isSetLinks()) {
to.getLinks().addAll(adaptIn(from.getLinks()));
}
if (from.isSetActions()) {
to.setActions(adaptIn(from.getActions()));
}
if (from.isSetBrickProfileDetails()) {
to.setBrickProfileDetails(new BrickProfileDetails());
to.getBrickProfileDetails().getBrickProfileDetails().addAll(adaptIn(from.getBrickProfileDetails().getBrickProfileDetail()));
}
if (from.isSetComment()) {
to.setComment(from.getComment());
}
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.isSetNfsProfileDetails()) {
to.setNfsProfileDetails(new NfsProfileDetails());
to.getNfsProfileDetails().getNfsProfileDetails().addAll(adaptIn(from.getNfsProfileDetails().getNfsProfileDetail()));
}
return to;
}
use of org.ovirt.engine.api.v3.types.V3GlusterVolumeProfileDetails in project ovirt-engine by oVirt.
the class V3GlusterVolumeProfileDetailsOutAdapter method adapt.
@Override
public V3GlusterVolumeProfileDetails adapt(GlusterVolumeProfileDetails from) {
V3GlusterVolumeProfileDetails to = new V3GlusterVolumeProfileDetails();
if (from.isSetLinks()) {
to.getLinks().addAll(adaptOut(from.getLinks()));
}
if (from.isSetActions()) {
to.setActions(adaptOut(from.getActions()));
}
if (from.isSetBrickProfileDetails()) {
to.setBrickProfileDetails(new V3BrickProfileDetails());
to.getBrickProfileDetails().getBrickProfileDetail().addAll(adaptOut(from.getBrickProfileDetails().getBrickProfileDetails()));
}
if (from.isSetComment()) {
to.setComment(from.getComment());
}
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.isSetNfsProfileDetails()) {
to.setNfsProfileDetails(new V3NfsProfileDetails());
to.getNfsProfileDetails().getNfsProfileDetail().addAll(adaptOut(from.getNfsProfileDetails().getNfsProfileDetails()));
}
return to;
}
Aggregations