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") @Path("/servers/{server}/action")
@Consumes @Consumes
@Produces(MediaType.APPLICATION_JSON) @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( ListenableFuture<Void> addFloatingIP(
@PayloadParam("server") String serverId, @PathParam("server") String serverId,
@PayloadParam("address") String address); @PayloadParam("address") String address);
/** /**
@ -113,9 +113,9 @@ public interface FloatingIPAsyncClient {
@Path("/servers/{server}/action") @Path("/servers/{server}/action")
@Consumes @Consumes
@Produces(MediaType.APPLICATION_JSON) @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( ListenableFuture<Void> removeFloatingIP(
@PayloadParam("server") String serverId, @PathParam("server") String serverId,
@PayloadParam("address") String address); @PayloadParam("address") String address);
} }