org.jclouds.openstack.nova.v2_0.features
Interface FlavorApi


public interface FlavorApi

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


Method Summary
 Flavor create(Flavor flavor)
          Create flavor according to the provided object
 void delete(String id)
          Delete flavor with a given id
 Flavor get(String id)
          List details of the specified flavor
 org.jclouds.collect.PagedIterable<org.jclouds.openstack.v2_0.domain.Resource> list()
          List all flavors (IDs, names, links)
 org.jclouds.openstack.v2_0.domain.PaginatedCollection<org.jclouds.openstack.v2_0.domain.Resource> list(org.jclouds.openstack.v2_0.options.PaginationOptions options)
           
 org.jclouds.collect.PagedIterable<Flavor> listInDetail()
          List all flavors (all details)
 org.jclouds.openstack.v2_0.domain.PaginatedCollection<Flavor> listInDetail(org.jclouds.openstack.v2_0.options.PaginationOptions options)
           
 

Method Detail

list

@Named(value="flavor:list")
org.jclouds.collect.PagedIterable<org.jclouds.openstack.v2_0.domain.Resource> list()
List all flavors (IDs, names, links)

Returns:
all flavors (IDs, names, links)

list

@Named(value="flavor:list")
org.jclouds.openstack.v2_0.domain.PaginatedCollection<org.jclouds.openstack.v2_0.domain.Resource> list(org.jclouds.openstack.v2_0.options.PaginationOptions options)

listInDetail

@Named(value="flavor:list")
org.jclouds.collect.PagedIterable<Flavor> listInDetail()
List all flavors (all details)

Returns:
all flavors (all details)

listInDetail

@Named(value="flavor:list")
org.jclouds.openstack.v2_0.domain.PaginatedCollection<Flavor> listInDetail(org.jclouds.openstack.v2_0.options.PaginationOptions options)

get

@Named(value="flavor:get")
@Nullable
Flavor get(String id)
List details of the specified flavor

Parameters:
id - id of the flavor
Returns:
flavor or null if not found

create

@Named(value="flavor:create")
@Nullable
Flavor create(Flavor flavor)
Create flavor according to the provided object

Parameters:
flavor - - flavor object
Returns:
newly created flavor

delete

@Named(value="flavor:delete")
void delete(String id)
Delete flavor with a given id

Parameters:
id - - flavor id


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