@Beta
@Consumes(value="application/json")
@Path(value="/flavors")
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") @GET @Path(value="/{id}/os-extra_specs") Map<String,String> getMetadata(@PathParam(value="id") String flavorId)
@Named(value="flavorExtraSpecs:updateMetadata") @POST @Path(value="/{id}/os-extra_specs") @Produces(value="application/json") void updateMetadata(@PathParam(value="id") String flavorId, Map<String,String> specs)
flavorId
- the id of the flavor to modifyspecs
- the extra specs to apply@Named(value="flavorExtraSpecs:getMetadataKey") @GET @Path(value="/{id}/os-extra_specs/{key}") @Nullable String getMetadataKey(@PathParam(value="id") String flavorId, @PathParam(value="key") String key)
flavorId
- the id of the flavor to modifykey
- the extra spec key to retrieve@Named(value="flavorExtraSpecs:updateMetadataEntry") @PUT @Path(value="/{id}/os-extra_specs/{key}") @Produces(value="application/json") void updateMetadataEntry(@PathParam(value="id") String flavorId, @PathParam(value="key") 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 key@Named(value="flavorExtraSpecs:deleteMetadataKey") @DELETE @Path(value="/{id}/os-extra_specs/{key}") boolean deleteMetadataKey(@PathParam(value="id") String flavorId, @PathParam(value="key") String key)
flavorId
- the id of the flavor to modifykey
- the extra spec key to deleteCopyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.