> + builder.name(from.get("name"));
> + builder.media(MediaType.fromValue(from.get("media")));
> + if (from.containsKey("tags"))
> + builder.tags(Splitter.on(' ').split(from.get("tags")));
> + builder.uuid(from.get("drive"));
> + if (from.containsKey("claim:type"))
> + builder.claimType(ClaimType.fromValue(from.get("claim:type")));
> + if (from.containsKey("readers"))
> + builder.readers(Splitter.on(' ').split(from.get("readers")));
> + if (from.containsKey("size"))
> + builder.size(Long.valueOf(from.get("size")));
> + if (from.containsKey("rawsize"))
> + builder.rawSize(Long.valueOf(from.get("rawsize")));
> + if (from.containsKey("format"))
> + builder.format(ImageConversionType.fromValue(from.get("format")));
> + Map<String, String> metadata = Maps.newLinkedHashMap();
I really don't know the details of the API. Just used the same kind of map that
is being used in the rest of similar functions.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/362/files#r13038435