> +   FluentIterable<? extends Service> list();
> +
> +   /**
> +    * enable an os-service
> +    * @param host - host to enable
> +    * @param binary - binary to enable
> +    * @return os-service that was enabled
> +    */
> +   @Named("os-services:list")
> +   @PUT
> +   @Path("/enable")
> +   @SelectJson("service")
> +   @Produces(MediaType.APPLICATION_JSON)
> +   @Consumes(MediaType.APPLICATION_JSON)
> +   @Fallback(Fallbacks.NullOnNotFoundOr404.class)
> +   @MapBinder(BindToJsonPayload.class)

A shortcut for this would be to replace the MapBinder with: 
`@Payload("%7B\"host\":\"{host}\", \"binary\":\"{binary}\"%7D")` :+1: 

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/573/files#r19232979

Reply via email to