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


@Beta
public interface FlavorExtraSpecsApi

Provides access to the OpenStack Compute (Nova) Flavor Extra Specs Extension API.

See Also:
FlavorApi

Method Summary
 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
 Boolean updateMetadata(String flavorId, Map<String,String> specs)
          Creates or updates the extra specs for a given flavor
 Boolean updateMetadataEntry(String flavorId, String key, String value)
          Creates or updates a single extra spec value
 

Method Detail

getMetadata

@Named(value="flavorExtraSpecs:getMetadata")
Map<String,String> getMetadata(String flavorId)
Retrieves all extra specs for a flavor

Returns:
the set of extra metadata for the flavor

updateMetadata

@Named(value="flavorExtraSpecs:updateMetadata")
Boolean updateMetadata(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

getMetadataKey

@Named(value="flavorExtraSpecs:getMetadataKey")
@Nullable
String getMetadataKey(String flavorId,
                                     String key)
Return a single extra spec value

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

updateMetadataEntry

@Named(value="flavorExtraSpecs:updateMetadataEntry")
Boolean updateMetadataEntry(String flavorId,
                                  String key,
                                  String value)
Creates or updates a single extra spec value

Parameters:
id - 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

deleteMetadataKey

@Named(value="flavorExtraSpecs:deleteMetadataKey")
Boolean deleteMetadataKey(String flavorId,
                                String key)
Deletes an extra spec

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


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.