org.jclouds.openstack.nova.v2_0.extensions
Interface FlavorExtraSpecsApi


public interface FlavorExtraSpecsApi

Provide access to extra metadata for Nova flavors.

Author:
Adam Lowe
See Also:
, FlavorApi, FlavorExtraSpecsAsyncApi

Method Summary
 Boolean deleteExtraSpec(String flavorId, String key)
          Deletes an extra spec
 Map<String,String> getAllExtraSpecs(String flavorId)
          Retrieve all extra specs for a flavor
 String getExtraSpec(String flavorId, String key)
          Return a single extra spec value
 Boolean setAllExtraSpecs(String flavorId, Map<String,String> specs)
          Creates or updates the extra specs for a given flavor
 Boolean setExtraSpec(String flavorId, String key, String value)
          Creates or updates a single extra spec value
 

Method Detail

getAllExtraSpecs

Map<String,String> getAllExtraSpecs(String flavorId)
Retrieve all extra specs for a flavor

Returns:
the set of extra metadata for the flavor

setAllExtraSpecs

Boolean setAllExtraSpecs(String flavorId,
                         Map<String,String> specs)
Creates or updates the extra specs for a given flavor

Parameters:
flavorId - the id of the flavor to modify
specs - the extra specs to apply

getExtraSpec

String getExtraSpec(String flavorId,
                    String key)
Return a single extra spec value

Parameters:
flavorId - the id of the flavor to modify
key - the extra spec key to retrieve

setExtraSpec

Boolean setExtraSpec(String flavorId,
                     String key,
                     String value)
Creates or updates a single extra spec value

Parameters:
flavorId - the id of the flavor to modify
key - the extra spec key (when creating ensure this does not include whitespace or other difficult characters)
value - the value to associate with the key

deleteExtraSpec

Boolean deleteExtraSpec(String flavorId,
                        String key)
Deletes an extra spec

Parameters:
flavorId - the id of the flavor to modify
key - the extra spec key to delete


Copyright © 2009-2012 jclouds. All Rights Reserved.