Search in sources :

Example 1 with V3GlusterBrickAdvancedDetails

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

the class V3GlusterBrickAdvancedDetailsInAdapter method adapt.

@Override
public GlusterBrickAdvancedDetails adapt(V3GlusterBrickAdvancedDetails from) {
    GlusterBrickAdvancedDetails to = new GlusterBrickAdvancedDetails();
    if (from.isSetLinks()) {
        to.getLinks().addAll(adaptIn(from.getLinks()));
    }
    if (from.isSetActions()) {
        to.setActions(adaptIn(from.getActions()));
    }
    if (from.isSetComment()) {
        to.setComment(from.getComment());
    }
    if (from.isSetDescription()) {
        to.setDescription(from.getDescription());
    }
    if (from.isSetDevice()) {
        to.setDevice(from.getDevice());
    }
    if (from.isSetFsName()) {
        to.setFsName(from.getFsName());
    }
    if (from.isSetGlusterClients()) {
        to.setGlusterClients(new GlusterClients());
        to.getGlusterClients().getGlusterClients().addAll(adaptIn(from.getGlusterClients().getGlusterClients()));
    }
    if (from.isSetId()) {
        to.setId(from.getId());
    }
    if (from.isSetHref()) {
        to.setHref(from.getHref());
    }
    if (from.isSetMemoryPools()) {
        to.setMemoryPools(new GlusterMemoryPools());
        to.getMemoryPools().getGlusterMemoryPools().addAll(adaptIn(from.getMemoryPools().getGlusterMemoryPools()));
    }
    if (from.isSetMntOptions()) {
        to.setMntOptions(from.getMntOptions());
    }
    if (from.isSetName()) {
        to.setName(from.getName());
    }
    if (from.isSetPid()) {
        to.setPid(from.getPid());
    }
    if (from.isSetPort()) {
        to.setPort(from.getPort());
    }
    return to;
}
Also used : GlusterMemoryPools(org.ovirt.engine.api.model.GlusterMemoryPools) V3GlusterBrickAdvancedDetails(org.ovirt.engine.api.v3.types.V3GlusterBrickAdvancedDetails) GlusterBrickAdvancedDetails(org.ovirt.engine.api.model.GlusterBrickAdvancedDetails) GlusterClients(org.ovirt.engine.api.model.GlusterClients)

Example 2 with V3GlusterBrickAdvancedDetails

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

the class V3GlusterBrickAdvancedDetailsOutAdapter method adapt.

@Override
public V3GlusterBrickAdvancedDetails adapt(GlusterBrickAdvancedDetails from) {
    V3GlusterBrickAdvancedDetails to = new V3GlusterBrickAdvancedDetails();
    if (from.isSetLinks()) {
        to.getLinks().addAll(adaptOut(from.getLinks()));
    }
    if (from.isSetActions()) {
        to.setActions(adaptOut(from.getActions()));
    }
    if (from.isSetComment()) {
        to.setComment(from.getComment());
    }
    if (from.isSetDescription()) {
        to.setDescription(from.getDescription());
    }
    if (from.isSetDevice()) {
        to.setDevice(from.getDevice());
    }
    if (from.isSetFsName()) {
        to.setFsName(from.getFsName());
    }
    if (from.isSetGlusterClients()) {
        to.setGlusterClients(new V3GlusterClients());
        to.getGlusterClients().getGlusterClients().addAll(adaptOut(from.getGlusterClients().getGlusterClients()));
    }
    if (from.isSetId()) {
        to.setId(from.getId());
    }
    if (from.isSetHref()) {
        to.setHref(from.getHref());
    }
    if (from.isSetMemoryPools()) {
        to.setMemoryPools(new V3GlusterMemoryPools());
        to.getMemoryPools().getGlusterMemoryPools().addAll(adaptOut(from.getMemoryPools().getGlusterMemoryPools()));
    }
    if (from.isSetMntOptions()) {
        to.setMntOptions(from.getMntOptions());
    }
    if (from.isSetName()) {
        to.setName(from.getName());
    }
    if (from.isSetPid()) {
        to.setPid(from.getPid());
    }
    if (from.isSetPort()) {
        to.setPort(from.getPort());
    }
    return to;
}
Also used : V3GlusterClients(org.ovirt.engine.api.v3.types.V3GlusterClients) V3GlusterBrickAdvancedDetails(org.ovirt.engine.api.v3.types.V3GlusterBrickAdvancedDetails) V3GlusterMemoryPools(org.ovirt.engine.api.v3.types.V3GlusterMemoryPools)

Aggregations

V3GlusterBrickAdvancedDetails (org.ovirt.engine.api.v3.types.V3GlusterBrickAdvancedDetails)2 GlusterBrickAdvancedDetails (org.ovirt.engine.api.model.GlusterBrickAdvancedDetails)1 GlusterClients (org.ovirt.engine.api.model.GlusterClients)1 GlusterMemoryPools (org.ovirt.engine.api.model.GlusterMemoryPools)1 V3GlusterClients (org.ovirt.engine.api.v3.types.V3GlusterClients)1 V3GlusterMemoryPools (org.ovirt.engine.api.v3.types.V3GlusterMemoryPools)1