@Beta
public interface VolumeTypeApi
VolumeApi
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)
Gets a volume type
|
String |
getExtraSpec(String id,
String key)
Retrieve a single extra spec value
|
Map<String,String> |
getExtraSpecs(String id)
Gets the extra specs for a volume type
|
com.google.common.collect.FluentIterable<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
|
@Named(value="volumeType:list") com.google.common.collect.FluentIterable<VolumeType> list()
@Named(value="volumeType:get") @Nullable VolumeType get(String id)
id
- the id of the volume type to retrieve@Named(value="volumeType:create") VolumeType create(String name, CreateVolumeTypeOptions... options)
name
- the name of the new volume typeoptions
- optional settings for the new volume type@Named(value="volumeType:delete") boolean delete(String id)
id
- the id of the volume type to delete@Named(value="volumeType:getExtraSpecs") Map<String,String> getExtraSpecs(String id)
id
- the id of the volume type@Named(value="volumeType:updateExtraSpecs") boolean updateExtraSpecs(String id, Map<String,String> specs)
@Named(value="volumeType:getExtraSpec") @Nullable String getExtraSpec(String id, String key)
id
- the id of the volume typekey
- the key of the extra spec item to retrieve@Named(value="volumeType:updateExtraSpec") boolean 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-2016 The Apache Software Foundation. All Rights Reserved.