Interface SnapshotApi


  • @Path("/snapshots")
    @Consumes("application/json")
    public interface SnapshotApi
    • 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 page
        listOptions - listing options
        Returns:
        a page of the list