Interface SnapshotApi
@Path("/snapshots")
@Consumes("application/json")
public interface SnapshotApi
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionDeletes a snapshot by name and returns the operation in progress, or null if not found.Returns a snapshot by name or null if not found.list()
list
(ListOptions options) listPage
(String pageToken, ListOptions listOptions) Retrieves the list of snapshot resources available to the specified project.
-
Method Details
-
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
- See Also:
-
list
- See Also:
-