Search in sources :

Example 1 with PlatformDisksJson

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

the class PlatformDiskTypesToPlatformDisksJsonConverter method convert.

@Override
public PlatformDisksJson convert(PlatformDisks source) {
    PlatformDisksJson json = new PlatformDisksJson();
    json.setDefaultDisks(PlatformConverterUtil.convertDefaults(source.getDefaultDisks()));
    json.setDiskTypes(PlatformConverterUtil.convertPlatformMap(source.getDiskTypes()));
    json.setDiskMappings(diskMappingsConvert(source.getDiskMappings()));
    json.setDisplayNames(PlatformConverterUtil.convertDisplayNameMap(source.getDiskDisplayNames()));
    return json;
}
Also used : PlatformDisksJson(com.sequenceiq.cloudbreak.api.model.PlatformDisksJson)

Aggregations

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