> +@Extension(of = ServiceType.COMPUTE, namespace = 
> ExtensionNamespaces.CONSOLES)
> +@RequestFilters(AuthenticateRequest.class)
> +public interface ConsolesAsyncApi {
> +   /**
> +    * @see ConsolesApi#getConsole
> +    */
> +   @Named("server:console")
> +   @POST
> +   @Path("/servers/{serverId}/action")
> +   @SelectJson("console")
> +   @Consumes(MediaType.APPLICATION_JSON)
> +   @Produces(MediaType.APPLICATION_JSON)
> +   @Fallback(MapHttp4xxCodesToExceptions.class)
> +   @MapBinder(BindConsoleToJsonPayload.class)
> +   ListenableFuture<? extends Console> getConsole(@PathParam("serverId") 
> String serverId,
> +         @PayloadParam("type") Console.Type type);

Instead of a MapBinder does something like @WrapWith work? Seeing as GSON 
should be able to serialize the Console.Type.

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

Reply via email to