> +@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);
As stated in my previous comments we need a custom wrap value depending on the
Console.Type value. As I see with @WrapWith we can only have one value.
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/339/files#r13025530