Interface OperationApi
-
@Consumes("application/json") public interface OperationApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classOperationApi.OperationPagesstatic classOperationApi.OperationPagesInRegionstatic classOperationApi.OperationPagesInZone
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddelete(URI operation)Deletes an operation by name.Operationget(URI operation)Returns an operation by self-link or null if not found.Iterator<ListPage<Operation>>list()Iterator<ListPage<Operation>>list(ListOptions options)Iterator<ListPage<Operation>>listInRegion(String region)Iterator<ListPage<Operation>>listInRegion(String region, ListOptions options)Iterator<ListPage<Operation>>listInZone(String zone)Iterator<ListPage<Operation>>listInZone(String zone, ListOptions options)ListPage<Operation>listPage(String pageToken, ListOptions listOptions)Retrieves the list of operation resources available to the specified project.ListPage<Operation>listPageInRegion(String region, String pageToken, ListOptions listOptions)Retrieves the list of operation resources available in the specified region.ListPage<Operation>listPageInZone(String zone, String pageToken, ListOptions listOptions)Retrieves the list of operation resources available in the specified zone.
-
-
-
Method Detail
-
get
@Named("Operations:get") @GET @Nullable Operation get(URI operation)Returns an operation by self-link or null if not found.
-
delete
@Named("Operations:delete") @DELETE void delete(URI operation)Deletes an operation by name.
-
listPage
@Named("GlobalOperations:list") @GET @Path("/global/operations") ListPage<Operation> listPage(@Nullable @QueryParam("pageToken") String pageToken, ListOptions listOptions)Retrieves the list of operation 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("GlobalOperations:list") @GET @Path("/global/operations") Iterator<ListPage<Operation>> list()- See Also:
listPage(String, ListOptions)
-
list
@Named("GlobalOperations:list") @GET @Path("/global/operations") Iterator<ListPage<Operation>> list(ListOptions options)- See Also:
listPage(String, ListOptions)
-
listPageInRegion
@Named("RegionOperations:list") @GET @Path("/regions/{region}/operations") ListPage<Operation> listPageInRegion(@PathParam("region") String region, @Nullable @QueryParam("pageToken") String pageToken, ListOptions listOptions)Retrieves the list of operation resources available in the specified region. 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
-
listInRegion
@Named("RegionOperations:list") @GET @Path("/regions/{region}/operations") Iterator<ListPage<Operation>> listInRegion(@PathParam("region") String region)
-
listInRegion
@Named("RegionOperations:list") @GET @Path("/regions/{region}/operations") Iterator<ListPage<Operation>> listInRegion(@PathParam("region") String region, ListOptions options)
-
listPageInZone
@Named("ZoneOperations:list") @GET @Path("/zones/{zone}/operations") ListPage<Operation> listPageInZone(@PathParam("zone") String zone, @Nullable @QueryParam("pageToken") String pageToken, ListOptions listOptions)Retrieves the list of operation resources available in the specified zone. 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
-
listInZone
@Named("ZoneOperations:list") @GET @Path("/zones/{zone}/operations") Iterator<ListPage<Operation>> listInZone(@PathParam("zone") String zone)
-
listInZone
@Named("ZoneOperations:list") @GET @Path("/zones/{zone}/operations") Iterator<ListPage<Operation>> listInZone(@PathParam("zone") String zone, ListOptions options)
-
-