jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds] adding attache detach interface to nova api (#697)
Date Mon, 02 Mar 2015 14:39:41 GMT
> +@Consumes(MediaType.APPLICATION_JSON)
> +@Path("/servers")
> +public interface InterfaceApi {
> +
> +   @POST
> +   @Consumes(MediaType.APPLICATION_JSON)
> +   @SelectJson("interfaceAttachment")
> +   @Path("/{server_id}/os-interface")
> +   @RequestFilters(AuthenticateRequest.class)
> +   InterfaceAttachment attachInterface(@PathParam("server_id") String serverId, AttachInterfaceOptions...
options);
> +
> +   @DELETE
> +   @Consumes(MediaType.APPLICATION_JSON)
> +   @Path("/{server_id}/os-interface/{port_id}")
> +   @RequestFilters(AuthenticateRequest.class)
> +   void detachInterface(@PathParam("server_id") String serverId, @PathParam("port_id")
String portId);

Add the corresponding `@Named` annotation to the method.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/697/files#r25602097
Mime
View raw message