@Path(value="/snapshots")
@Consumes(value="application/json")
public interface SnapshotApi
Modifier and Type | Interface and Description |
---|---|
static class |
SnapshotApi.SnapshotPages |
Modifier and Type | Method and Description |
---|---|
Operation |
delete(String snapshot)
Deletes a snapshot by name and returns the operation in progress, or null if not found.
|
Snapshot |
get(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.
|
@Named(value="Snapshots:get") @GET @Path(value="/{snapshot}") @Nullable Snapshot get(@PathParam(value="snapshot") String snapshot)
@Named(value="Snapshots:delete") @DELETE @Path(value="/{snapshot}") @Nullable Operation delete(@PathParam(value="snapshot") String snapshot)
@Named(value="Snapshots:list") @GET ListPage<Snapshot> listPage(@Nullable@QueryParam(value="pageToken") String pageToken, ListOptions listOptions)
pageToken
- marks the beginning of the next list pagelistOptions
- listing options@Named(value="Snapshots:list") @GET Iterator<ListPage<Snapshot>> list()
listPage(String, ListOptions)
@Named(value="Snapshots:list") @GET Iterator<ListPage<Snapshot>> list(ListOptions options)
listPage(String, ListOptions)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.