@Beta
public interface FlavorExtraSpecsApi
FlavorApi
Modifier and Type | Method and Description |
---|---|
boolean |
deleteMetadataKey(String flavorId,
String key)
Deletes an extra spec
|
Map<String,String> |
getMetadata(String flavorId)
Retrieves all extra specs for a flavor
|
String |
getMetadataKey(String flavorId,
String key)
Return a single extra spec value
|
void |
updateMetadata(String flavorId,
Map<String,String> specs)
Creates or updates the extra specs for a given flavor
|
void |
updateMetadataEntry(String flavorId,
String key,
String value)
Creates or updates a single extra spec value
|
@Named(value="flavorExtraSpecs:getMetadata") Map<String,String> getMetadata(String flavorId)
@Named(value="flavorExtraSpecs:updateMetadata") void updateMetadata(String flavorId, Map<String,String> specs)
flavorId
- the id of the flavor to modifyspecs
- the extra specs to apply@Named(value="flavorExtraSpecs:getMetadataKey") @Nullable String getMetadataKey(String flavorId, String key)
flavorId
- the id of the flavor to modifykey
- the extra spec key to retrieve@Named(value="flavorExtraSpecs:updateMetadataEntry") void updateMetadataEntry(String flavorId, String key, String value)
flavorId
- the id of the flavor to modifykey
- the extra spec key (when creating ensure this does not include whitespace or
other difficult characters)value
- the value to associate with the keyCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.