Class NovaParserModule.ImageAdapter
- java.lang.Object
-
- org.jclouds.openstack.nova.v2_0.config.NovaParserModule.ImageAdapter
-
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<Image>
- Enclosing class:
- NovaParserModule
@Singleton public static class NovaParserModule.ImageAdapter extends Object implements com.google.gson.JsonDeserializer<Image>
-
-
Field Summary
Fields Modifier and Type Field Description static String
BLOCK_DEVICE_MAPPING
static String
METADATA
-
Constructor Summary
Constructors Constructor Description ImageAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Image
apply(org.jclouds.openstack.nova.v2_0.config.NovaParserModule.ImageAdapter.ImageInternal in, Map<String,String> metadata, List<BlockDeviceMapping> blockDeviceMapping)
Image
deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext context)
-
-
-
Field Detail
-
METADATA
public static final String METADATA
- See Also:
- Constant Field Values
-
BLOCK_DEVICE_MAPPING
public static final String BLOCK_DEVICE_MAPPING
- See Also:
- Constant Field Values
-
-
Method Detail
-
deserialize
public Image deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<Image>
- Throws:
com.google.gson.JsonParseException
-
-