public interface FlavorService extends RestService
| Modifier and Type | Method and Description |
|---|---|
Flavor |
create(Flavor flavor)
Creates a new Flavor
|
Flavor |
create(String name,
int ram,
int vcpus,
int disk,
int ephemeral,
int swap,
float rxtxFactor,
boolean isPublic)
Creates a new Flavor
|
Map<String,String> |
createAndUpdateExtraSpecs(String flavorId,
Map<String,String> spec)
post a key-value map, if key exist, value will be updated, if not ,new
extra spec created.
|
ActionResponse |
delete(String flavorId)
Deletes a Flavor by it's identifier
|
void |
deleteExtraSpecs(String flavorId,
String key)
delete the extra spec with the key and flavorId
|
Flavor |
get(String flavorId)
Get a Flavor by it's identifier
|
String |
getSpec(String flavorId,
String key)
get the extra spec's value by the key
|
List<? extends Flavor> |
list()
List all Flavors
|
Map<String,String> |
listExtraSpecs(String flavorId)
list extra specs
|
Flavor get(String flavorId)
flavorId - the flavor identifierActionResponse delete(String flavorId)
flavorId - the flavor identifierFlavor create(Flavor flavor)
flavor - the flavor to createFlavor create(String name, int ram, int vcpus, int disk, int ephemeral, int swap, float rxtxFactor, boolean isPublic)
name - the descriptive name of the flavorram - the Memory in MB for the flavorvcpus - the Number of VCPUs for the flavordisk - the size of the local disk in GBthe - space in GB that will disappear when the VM is terminated (default is 0) [OPTIONAL]swap - the Swap space in MBrxtxFactor - the RX/TX factor (default is 1) [OPTIONAL]isPublic - makes the flavor accessible to the public (the default is true).Map<String,String> listExtraSpecs(String flavorId)
flavorId - Map<String,String> createAndUpdateExtraSpecs(String flavorId, Map<String,String> spec)
flavorId - spec - void deleteExtraSpecs(String flavorId, String key)
flavorId - key -