mirror of https://github.com/apache/jclouds.git
fixing payload definitions to add and remove floating ips
This commit is contained in:
parent
2287d2bbcf
commit
2c2c901773
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue