Search in sources :

Example 1 with V3NfsProfileDetail

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

the class V3NfsProfileDetailInAdapter method adapt.

@Override
public NfsProfileDetail adapt(V3NfsProfileDetail from) {
    NfsProfileDetail to = new NfsProfileDetail();
    if (from.isSetNfsServerIp()) {
        to.setNfsServerIp(from.getNfsServerIp());
    }
    if (from.isSetProfileDetail()) {
        to.setProfileDetails(new ProfileDetails());
        to.getProfileDetails().getProfileDetails().addAll(adaptIn(from.getProfileDetail()));
    }
    return to;
}
Also used : NfsProfileDetail(org.ovirt.engine.api.model.NfsProfileDetail) V3NfsProfileDetail(org.ovirt.engine.api.v3.types.V3NfsProfileDetail) ProfileDetails(org.ovirt.engine.api.model.ProfileDetails)

Aggregations

NfsProfileDetail (org.ovirt.engine.api.model.NfsProfileDetail)1 ProfileDetails (org.ovirt.engine.api.model.ProfileDetails)1 V3NfsProfileDetail (org.ovirt.engine.api.v3.types.V3NfsProfileDetail)1