Search in sources :

Example 6 with V3Hosts

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

the class V3HostsOutAdapter method adapt.

@Override
public V3Hosts adapt(Hosts from) {
    V3Hosts to = new V3Hosts();
    if (from.isSetActions()) {
        to.setActions(adaptOut(from.getActions()));
    }
    if (from.isSetActive()) {
        to.setActive(from.getActive());
    }
    if (from.isSetSize()) {
        to.setSize(from.getSize());
    }
    if (from.isSetTotal()) {
        to.setTotal(from.getTotal());
    }
    to.getHosts().addAll(adaptOut(from.getHosts()));
    return to;
}
Also used : V3Hosts(org.ovirt.engine.api.v3.types.V3Hosts)

Aggregations

V3Hosts (org.ovirt.engine.api.v3.types.V3Hosts)6 GET (javax.ws.rs.GET)1 ApiSummaryItem (org.ovirt.engine.api.model.ApiSummaryItem)1 Host (org.ovirt.engine.api.model.Host)1 Hosts (org.ovirt.engine.api.model.Hosts)1 V3HostHelper (org.ovirt.engine.api.v3.helpers.V3HostHelper)1 V3ApiSummary (org.ovirt.engine.api.v3.types.V3ApiSummary)1 V3DNS (org.ovirt.engine.api.v3.types.V3DNS)1 V3Host (org.ovirt.engine.api.v3.types.V3Host)1 V3StorageDomains (org.ovirt.engine.api.v3.types.V3StorageDomains)1 V3Users (org.ovirt.engine.api.v3.types.V3Users)1 V3VMs (org.ovirt.engine.api.v3.types.V3VMs)1 V3VmPlacementPolicy (org.ovirt.engine.api.v3.types.V3VmPlacementPolicy)1