Search in sources :

Example 1 with PlatformVirtualMachinesJson

use of com.sequenceiq.cloudbreak.api.model.PlatformVirtualMachinesJson in project cloudbreak by hortonworks.

the class PlatformVirtualMachineTypesToPlatformVirtualMachinesJsonConverter method convert.

@Override
public PlatformVirtualMachinesJson convert(PlatformVirtualMachines source) {
    PlatformVirtualMachinesJson json = new PlatformVirtualMachinesJson();
    json.setDefaultVirtualMachines(PlatformConverterUtil.convertDefaults(source.getDefaultVirtualMachines()));
    json.setVirtualMachines(convertVmMap(source.getVirtualMachines()));
    json.setVmTypesPerZones(convertVmsPerZoneMap(source.getVmTypesPerZones()));
    json.setDefaultVmTypePerZones(convertDefaultVmsPerZoneMap(source.getDefaultVmTypePerZones()));
    return json;
}
Also used : PlatformVirtualMachinesJson(com.sequenceiq.cloudbreak.api.model.PlatformVirtualMachinesJson)

Aggregations

PlatformVirtualMachinesJson (com.sequenceiq.cloudbreak.api.model.PlatformVirtualMachinesJson)1