Interface ZoneApi
-
@Path("/zones") @Consumes("application/json") public interface ZoneApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ZoneApi.ZonePages
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Zone
get(String zone)
Returns a zone by name or null if not found.Iterator<ListPage<Zone>>
list()
Iterator<ListPage<Zone>>
list(ListOptions options)
ListPage<Zone>
listPage(String pageToken, ListOptions listOptions)
Retrieves the list of zone resources available to the specified project.
-
-
-
Method Detail
-
get
@Named("Zones:get") @GET @Path("/{zone}") Zone get(@PathParam("zone") String zone)
Returns a zone by name or null if not found.
-
listPage
@Named("Zones:list") @GET ListPage<Zone> listPage(@Nullable @QueryParam("pageToken") String pageToken, ListOptions listOptions)
Retrieves the list of zone 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("Zones:list") @GET Iterator<ListPage<Zone>> list()
- See Also:
listPage(String, ListOptions)
-
list
@Named("Zones:list") @GET Iterator<ListPage<Zone>> list(ListOptions options)
- See Also:
listPage(String, ListOptions)
-
-