Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
As Everett pointed out:
In TroveApi you have the methods:
FlavorApi getFlavorApiForZone(
@EndpointParam(parser = ZoneToEndpoint.class) @Nullable String zone);
InstanceApi getInstanceApiForZone(
@EndpointParam(parser = ZoneToEndpoint.class) @Nullable String zone);
@Path("/instances/
{instanceId}")UserApi getUserApiForInstanceInZone(@PathParam("instanceId") String instanceId,
@EndpointParam(parser = ZoneToEndpoint.class) @Nullable String zone);
@Path("/instances/{instanceId}
")
DatabaseApi getDatabaseApiForInstanceInZone(@PathParam("instanceId") String instanceId,
@EndpointParam(parser = ZoneToEndpoint.class) @Nullable String zone);
Then look at the methods where there is a similar second param like MarconiApi or CloudLoadBalancersApi.
The methods are always named with For in the name (e.g. getWhateverApiForZoneAndSomething()).
Also the zone param always comes first. This is common practice when writing method signatures that have the same param in a lot of methods, that param should appear in the same position.
–
Note: backwards incompatible change.