Search in sources :

Example 1 with V3NfsProfileDetails

use of org.ovirt.engine.api.v3.types.V3NfsProfileDetails 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;
}
Also used : V3GlusterVolumeProfileDetails(org.ovirt.engine.api.v3.types.V3GlusterVolumeProfileDetails) V3NfsProfileDetails(org.ovirt.engine.api.v3.types.V3NfsProfileDetails) V3BrickProfileDetails(org.ovirt.engine.api.v3.types.V3BrickProfileDetails)

Aggregations

V3BrickProfileDetails (org.ovirt.engine.api.v3.types.V3BrickProfileDetails)1 V3GlusterVolumeProfileDetails (org.ovirt.engine.api.v3.types.V3GlusterVolumeProfileDetails)1 V3NfsProfileDetails (org.ovirt.engine.api.v3.types.V3NfsProfileDetails)1