public class Create extends OpenStackRequest<Volume> {
- // private Volume volume;
+
public Create(VolumeForCreate volume) {
super(CLIENT, HttpMethod.POST, "/os-volumes", Entity.json(volume),
Volume.class);
- // this.volume = volume;
+
}
}
public UploadToImage(VolumeForImageCreate volumeForImageCreate) {
super(CLIENT, HttpMethod.POST, new StringBuilder("/volumes/")
- .append(volumeForImageCreate.getVolumeId() + "/action"),
+ .append(volumeForImageCreate.getVolumeId() + "/action"),
Entity.json(volumeForImageCreate), Void.class);
}
public ShowMetadata(String id) {
super(CLIENT, HttpMethod.GET, new StringBuilder("/os-volumes/")
- .append(id).append("/metadata").toString(), null,
+ .append(id).append("/metadata").toString(), null,
Metadata.class);
}
}
-}
+}
\ No newline at end of file