> @@ -103,4 +104,14 @@
>      */
>     @Delegate
>     Optional<SecurityGroupApi> getSecurityGroupApi(@EndpointParam(parser = 
> RegionToEndpoint.class) String region);
> +
> +   /**
> +    * Provides access to LBaaS version 1 features.
> +    *
> +    * <h3>NOTE</h3>
> +    * This API is an extension that may or may not be present in your 
> OpenStack cloud. Use the Optional return type
> +    * to determine if it is present.
> +    */
> +   @Delegate
> +   Optional<LBaaSApi> getLBaaSv1Api(@EndpointParam(parser = 
> RegionToEndpoint.class) String region);

No. Extension APIs use the alias name in the method signature. If you refer to 
the OpenStack sources, v1 is `lbaas` and v2 will be `lbaasv2`.

Given this fact, this method should read:
`Optional<LBaaSApi> getLBaaSApi(@EndpointParam(parser = RegionToEndpoint.class) 
String region);`

When v2 is supported, the method would be:
`Optional<LBaaSv2Api> getLBaaSv2Api(@EndpointParam(parser = 
RegionToEndpoint.class) String region);`

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

Reply via email to