@Path(value="/block_storages") @Produces(value="application/json") @Consumes(value="application/json") public interface BlockStorageApi extends Closeable
Modifier and Type | Method and Description |
---|---|
BlockStorage |
attachServer(String blockStorageId,
BlockStorage.Server.AttachServer server) |
BlockStorage |
create(BlockStorage.CreateBlockStorage blockStorage) |
void |
delete(String blockStorageId) |
BlockStorage |
detachServer(String blockStorageId) |
BlockStorage |
get(String blockStorageId) |
List<BlockStorage> |
list() |
List<BlockStorage> |
list(GenericQueryOptions options) |
BlockStorage |
update(String blockStorageId,
BlockStorage.UpdateBlockStorage blockStorage) |
@Named(value="blockstorages:list") @GET List<BlockStorage> list()
@Named(value="blockstorages:list") @GET List<BlockStorage> list(GenericQueryOptions options)
@Named(value="blockstorages:get") @GET @Path(value="/{blockStorageId}") BlockStorage get(@PathParam(value="blockStorageId") String blockStorageId)
@Named(value="blockstorages:create") @POST BlockStorage create(BlockStorage.CreateBlockStorage blockStorage)
@Named(value="blockstorages:update") @PUT @Path(value="/{blockStorageId}") BlockStorage update(@PathParam(value="blockStorageId") String blockStorageId, BlockStorage.UpdateBlockStorage blockStorage)
@Named(value="blockstorages:delete") @DELETE @Path(value="/{blockStorageId}") void delete(@PathParam(value="blockStorageId") String blockStorageId)
@Named(value="blockstorages:attachServer") @POST @Path(value="/{blockStorageId}/server") BlockStorage attachServer(@PathParam(value="blockStorageId") String blockStorageId, BlockStorage.Server.AttachServer server)
@Named(value="blockstorages:detachServer") @DELETE @Path(value="/{blockStorageId}/server") BlockStorage detachServer(@PathParam(value="blockStorageId") String blockStorageId)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.