Interface FlavorApi
-
@Consumes("application/json") @Path("/flavors") public interface FlavorApi
Provides access to the OpenStack Compute (Nova) Flavor API.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Flavor
create(Flavor flavor)
Create flavor according to the provided objectvoid
delete(String id)
Delete flavor with a given idFlavor
get(String id)
List details of the specified flavorPagedIterable<Resource>
list()
List all flavors (IDs, names, links)PaginatedCollection<Resource>
list(PaginationOptions options)
PagedIterable<Flavor>
listInDetail()
List all flavors (all details)PaginatedCollection<Flavor>
listInDetail(PaginationOptions options)
-
-
-
Method Detail
-
list
@Named("flavor:list") @GET PagedIterable<Resource> list()
List all flavors (IDs, names, links)- Returns:
- all flavors (IDs, names, links)
-
list
@Named("flavor:list") @GET PaginatedCollection<Resource> list(PaginationOptions options)
-
listInDetail
@Named("flavor:list") @GET @Path("/detail") PagedIterable<Flavor> listInDetail()
List all flavors (all details)- Returns:
- all flavors (all details)
-
listInDetail
@Named("flavor:list") @GET @Path("/detail") PaginatedCollection<Flavor> listInDetail(PaginationOptions options)
-
get
@Named("flavor:get") @GET @Path("/{id}") @Nullable Flavor get(@PathParam("id") String id)
List details of the specified flavor- Parameters:
id
- id of the flavor- Returns:
- flavor or null if not found
-
create
@Named("flavor:create") @POST @Produces("application/json") Flavor create(Flavor flavor)
Create flavor according to the provided object- Parameters:
flavor
- - flavor object- Returns:
- newly created flavor
-
delete
@Named("flavor:delete") @DELETE @Path("/{id}") void delete(@PathParam("id") String id)
Delete flavor with a given id- Parameters:
id
- - flavor id
-
-