org.jclouds.openstack.trove.v1.features
Interface FlavorApi


public interface FlavorApi

This API strictly for listing and retrieving Flavor. Flavors cannot be created or deleted.

See Also:
Flavor, api doc, api src

Method Summary
 Flavor get(int flavorId)
          Returns a Flavor by id.
 com.google.common.collect.FluentIterable<Flavor> list()
          Returns a summary list of Flavors.
 com.google.common.collect.FluentIterable<Flavor> list(String accountId)
          Returns a list of Flavors by Account ID (Tenant Id).
 

Method Detail

list

@Named(value="flavor:list")
com.google.common.collect.FluentIterable<Flavor> list()
Returns a summary list of Flavors.

Returns:
The list of Flavors.

get

@Named(value="flavors:get/{id}")
Flavor get(int flavorId)
Returns a Flavor by id.

Parameters:
flavorId - The id of the Flavor.
Returns:
Flavor The Flavor for the specified id.

list

@Named(value="flavors:get/{id}")
com.google.common.collect.FluentIterable<Flavor> list(String accountId)
Returns a list of Flavors by Account ID (Tenant Id).

Parameters:
flavorId - The id of the tenant.
Returns:
The list of Flavors for Account/Tenant Id.


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