Interface RegionApi
-
@Path("/regions") @Consumes("application/json") public interface RegionApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
RegionApi.RegionPages
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Region
get(String region)
Returns a region by name or null if not found.Iterator<ListPage<Region>>
list()
Iterator<ListPage<Region>>
list(ListOptions options)
ListPage<Region>
listPage(String pageToken, ListOptions listOptions)
Retrieves the list of region resources available to the specified project.
-
-
-
Method Detail
-
get
@Named("Regions:get") @GET @Path("/{region}") Region get(@PathParam("region") String region)
Returns a region by name or null if not found.
-
listPage
@Named("Regions:list") @GET ListPage<Region> listPage(@Nullable @QueryParam("pageToken") String pageToken, ListOptions listOptions)
Retrieves the list of region resources available to the specified project. By default the list as a maximum size of 100, if no options are provided or ListOptions#getMaxResults() has not been set.- Parameters:
pageToken
- marks the beginning of the next list pagelistOptions
- listing options- Returns:
- a page of the list
-
list
@Named("Regions:list") @GET Iterator<ListPage<Region>> list()
- See Also:
listPage(String, ListOptions)
-
list
@Named("Regions:list") @GET Iterator<ListPage<Region>> list(ListOptions options)
- See Also:
listPage(String, ListOptions)
-
-