Interface SnapshotApi
-
@Path("/snapshots") @Consumes("application/json") public interface SnapshotApi
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSnapshotApi.SnapshotPages
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Operationdelete(String snapshot)Deletes a snapshot by name and returns the operation in progress, or null if not found.Snapshotget(String snapshot)Returns a snapshot by name or null if not found.Iterator<ListPage<Snapshot>>list()Iterator<ListPage<Snapshot>>list(ListOptions options)ListPage<Snapshot>listPage(String pageToken, ListOptions listOptions)Retrieves the list of snapshot resources available to the specified project.
-
-
-
Method Detail
-
get
@Named("Snapshots:get") @GET @Path("/{snapshot}") @Nullable Snapshot get(@PathParam("snapshot") String snapshot)Returns a snapshot by name or null if not found.
-
delete
@Named("Snapshots:delete") @DELETE @Path("/{snapshot}") @Nullable Operation delete(@PathParam("snapshot") String snapshot)Deletes a snapshot by name and returns the operation in progress, or null if not found.
-
listPage
@Named("Snapshots:list") @GET ListPage<Snapshot> listPage(@Nullable @QueryParam("pageToken") String pageToken, ListOptions listOptions)Retrieves the list of snapshot 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("Snapshots:list") @GET Iterator<ListPage<Snapshot>> list()- See Also:
listPage(String, ListOptions)
-
list
@Named("Snapshots:list") @GET Iterator<ListPage<Snapshot>> list(ListOptions options)- See Also:
listPage(String, ListOptions)
-
-