Fixing return type for Nova Floating IP Pool extension

Follow-up to 6b83679. Thanks to @jdaggett for spotting!
This commit is contained in:
Andrew Phillips 2014-10-13 21:15:56 -04:00
parent 024009f211
commit 3e99fba425
1 changed files with 5 additions and 1 deletions

View File

@ -264,9 +264,13 @@ public interface NovaApi extends Closeable {
/** /**
* Provides access to Floating IP Pool features. * Provides access to Floating IP Pool 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 @Delegate
Optional<? extends FloatingIPPoolApi> getFloatingIPPoolApi( Optional<FloatingIPPoolApi> getFloatingIPPoolApi(
@EndpointParam(parser = RegionToEndpoint.class) String region); @EndpointParam(parser = RegionToEndpoint.class) String region);
/** /**