@Beta
public interface VolumeTypeApi
VolumeApi
,
VolumeTypeAsyncApi
,
,
Modifier and Type | Method and Description |
---|---|
VolumeType |
create(String name,
CreateVolumeTypeOptions... options)
Creates a new volume type
|
boolean |
delete(String id)
Deletes a volume type
|
boolean |
deleteExtraSpec(String id,
String key)
Deletes an existing extra spec
|
VolumeType |
get(String id) |
String |
getExtraSpec(String id,
String key)
Retrieve a single extra spec value
|
Map<String,String> |
getExtraSpecs(String id) |
com.google.common.collect.FluentIterable<? extends VolumeType> |
list() |
boolean |
updateExtraSpec(String id,
String key,
String value)
Creates or updates a single extra spec value
|
boolean |
updateExtraSpecs(String id,
Map<String,String> specs)
Creates or updates the extra metadata for a given flavor
|
com.google.common.collect.FluentIterable<? extends VolumeType> list()
VolumeType get(String id)
id
- the id of the volume type to retrieveVolumeType create(String name, CreateVolumeTypeOptions... options)
name
- the name of the new volume typeoptions
- optional settings for the new volume typeboolean delete(String id)
Map<String,String> getExtraSpecs(String id)
id
- the id of the volume typeboolean updateExtraSpecs(String id, Map<String,String> specs)
String getExtraSpec(String id, String key)
id
- the id of the volume typekey
- the key of the extra spec item to retrieveboolean updateExtraSpec(String id, String key, String value)
id
- the id of the volume typekey
- the extra spec key (when creating ensure this does not include whitespace or other difficult characters)value
- the new value to store associate with the keyCopyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.