@Path(value="/datacenters/{dataCenterId}/volumes") public interface VolumeApi extends Closeable
Modifier and Type | Interface and Description |
---|---|
static class |
VolumeApi.VolumeParser |
Modifier and Type | Method and Description |
---|---|
Snapshot |
createSnapshot(Volume.Request.CreateSnapshotPayload payload) |
Volume |
createVolume(Volume.Request.CreatePayload payload) |
URI |
deleteVolume(String dataCenterId,
String volumeId) |
List<Volume> |
getList(String dataCenterId) |
List<Volume> |
getList(String dataCenterId,
DepthOptions options) |
Volume |
getVolume(String dataCenterId,
String volumeId) |
Volume |
getVolume(String dataCenterId,
String volumeId,
DepthOptions options) |
URI |
restoreSnapshot(Volume.Request.RestoreSnapshotPayload payload) |
Volume |
updateVolume(Volume.Request.UpdatePayload payload) |
@Named(value="volume:list") @GET List<Volume> getList(@PathParam(value="dataCenterId") String dataCenterId)
@Named(value="volume:list") @GET List<Volume> getList(@PathParam(value="dataCenterId") String dataCenterId, DepthOptions options)
@Named(value="volume:get") @GET @Path(value="/{volumeId}") Volume getVolume(@PathParam(value="dataCenterId") String dataCenterId, @PathParam(value="volumeId") String volumeId)
@Named(value="volume:get") @GET @Path(value="/{volumeId}") Volume getVolume(@PathParam(value="dataCenterId") String dataCenterId, @PathParam(value="volumeId") String volumeId, DepthOptions options)
@Named(value="volume:create") @POST Volume createVolume(Volume.Request.CreatePayload payload)
@Named(value="volume:update") @Path(value="/{volumeId}") @Produces(value="application/json") Volume updateVolume(Volume.Request.UpdatePayload payload)
@Named(value="volume:delete") @DELETE @Path(value="/{volumeId}") URI deleteVolume(@PathParam(value="dataCenterId") String dataCenterId, @PathParam(value="volumeId") String volumeId)
@Named(value="volume:snapshot:create") @POST Snapshot createSnapshot(Volume.Request.CreateSnapshotPayload payload)
@Named(value="volume:snapshot:restore") @POST URI restoreSnapshot(Volume.Request.RestoreSnapshotPayload payload)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.