fixing payload definitions to add and remove floating ips

This commit is contained in:
Mike Arnold 2012-03-05 16:30:43 -06:00
parent 2287d2bbcf
commit 2c2c901773
1 changed files with 4 additions and 4 deletions

View File

@ -101,9 +101,9 @@ public interface FloatingIPAsyncClient {
@Path("/servers/{server}/action")
@Consumes
@Produces(MediaType.APPLICATION_JSON)
@Payload("%7B\"addFloatingIp\":%7B\"server\":\"{server}\",\"address\":\"{address}\"%7D%7D")
@Payload("%7B\"addFloatingIp\":%7B\"address\":\"{address}\"%7D%7D")
ListenableFuture<Void> addFloatingIP(
@PayloadParam("server") String serverId,
@PathParam("server") String serverId,
@PayloadParam("address") String address);
/**
@ -113,9 +113,9 @@ public interface FloatingIPAsyncClient {
@Path("/servers/{server}/action")
@Consumes
@Produces(MediaType.APPLICATION_JSON)
@Payload("%7B\"removeFloatingIp\":%7B\"server\":\"{server}\",\"address\":\"{address}\"%7D%7D")
@Payload("%7B\"removeFloatingIp\":%7B\"address\":\"{address}\"%7D%7D")
ListenableFuture<Void> removeFloatingIP(
@PayloadParam("server") String serverId,
@PathParam("server") String serverId,
@PayloadParam("address") String address);
}