> +   @Path("/health_monitors/{id}")
> +   @Fallback(FalseOnNotFoundOr404.class)
> +   boolean deleteHealthMonitor(@PathParam("id") String id);
> +
> +   /**
> +    * Associate a HealthMonitor to a Pool.
> +    * 
> +    * @param poolId the id of the Pool to associate.
> +    * @param healthMonitor the HealthMonitor to associate.
> +    * @return the newly associated HealthMonitor.
> +    */
> +   @Named("pool:associate_health_monitor")
> +   @POST
> +   @Path("/pools/{pool-id}/health_monitors")
> +   @SelectJson("health_monitor")
> +   HealthMonitor associateHealthMonitor(@PathParam("pool-id") String poolId,

As I explained to @demobox , LBaaS v1 association method takes a health_monitor 
as parameter, not a String. However, only the health monitor's id must be 
specified.
I thought that AssociateBuilder was the more elegant way to map the "associate 
health monitor" call.
However, let me know how to simplify the method signature (without 
AssociateBuilder) and generate a json payload with health_monitor object in the 
same time:
associateHealthMonitor(String poolId, String healthMonitorId) -> { 
"health_monitor": { "id":"5d4b5228-33b0-4e60-b225-9b727c1a20e7" } }


---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/146/files#r17898166

Reply via email to