Search in sources :

Example 1 with V3GlusterVolumeProfileDetails

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;
}
Also used : NfsProfileDetails(org.ovirt.engine.api.model.NfsProfileDetails) GlusterVolumeProfileDetails(org.ovirt.engine.api.model.GlusterVolumeProfileDetails) V3GlusterVolumeProfileDetails(org.ovirt.engine.api.v3.types.V3GlusterVolumeProfileDetails) BrickProfileDetails(org.ovirt.engine.api.model.BrickProfileDetails)

Example 2 with V3GlusterVolumeProfileDetails

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

V3GlusterVolumeProfileDetails (org.ovirt.engine.api.v3.types.V3GlusterVolumeProfileDetails)2 BrickProfileDetails (org.ovirt.engine.api.model.BrickProfileDetails)1 GlusterVolumeProfileDetails (org.ovirt.engine.api.model.GlusterVolumeProfileDetails)1 NfsProfileDetails (org.ovirt.engine.api.model.NfsProfileDetails)1 V3BrickProfileDetails (org.ovirt.engine.api.v3.types.V3BrickProfileDetails)1 V3NfsProfileDetails (org.ovirt.engine.api.v3.types.V3NfsProfileDetails)1