Search in sources :

Example 1 with V3BrickProfileDetail

use of org.ovirt.engine.api.v3.types.V3BrickProfileDetail in project ovirt-engine by oVirt.

the class V3BrickProfileDetailInAdapter method adapt.

@Override
public BrickProfileDetail adapt(V3BrickProfileDetail from) {
    BrickProfileDetail to = new BrickProfileDetail();
    if (from.isSetBrick()) {
        to.setBrick(adaptIn(from.getBrick()));
    }
    if (from.isSetProfileDetail()) {
        to.setProfileDetails(new ProfileDetails());
        to.getProfileDetails().getProfileDetails().addAll(adaptIn(from.getProfileDetail()));
    }
    return to;
}
Also used : V3BrickProfileDetail(org.ovirt.engine.api.v3.types.V3BrickProfileDetail) BrickProfileDetail(org.ovirt.engine.api.model.BrickProfileDetail) ProfileDetails(org.ovirt.engine.api.model.ProfileDetails)

Aggregations

BrickProfileDetail (org.ovirt.engine.api.model.BrickProfileDetail)1 ProfileDetails (org.ovirt.engine.api.model.ProfileDetails)1 V3BrickProfileDetail (org.ovirt.engine.api.v3.types.V3BrickProfileDetail)1