Package org.openstack4j.api.manila
Interface ShareSnapshotService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
ShareSnapshotServiceImpl
public interface ShareSnapshotService extends RestService
Share Snapshot Service for Manila SHared Filesystems.- Author:
- Daniel Gonzalez Nothnagel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ShareSnapshotcreate(ShareSnapshotCreate snapshotCreate)Creates a snapshot from a share.ActionResponsedelete(String snapshotId)Deletes a share snapshot.ActionResponseforceDelete(String snapshotId)Administrator only.ShareSnapshotget(String snapshotId)Shows details for a share snapshot.List<? extends ShareSnapshot>list()Lists all share snapshots.List<? extends ShareSnapshot>listDetails()Lists all share snapshots with details.ActionResponseresetState(String snapshotId, ShareSnapshot.Status status)Administrator only.ShareSnapshotupdate(String snapshotId, ShareSnapshotUpdateOptions snapshotUpdateOptions)Updates a share snapshot.
-
-
-
Method Detail
-
create
ShareSnapshot create(ShareSnapshotCreate snapshotCreate)
Creates a snapshot from a share.- Parameters:
snapshotCreate- the snapshot to create- Returns:
- the snapshot
-
list
List<? extends ShareSnapshot> list()
Lists all share snapshots.- Returns:
- a list of all snapshots
-
listDetails
List<? extends ShareSnapshot> listDetails()
Lists all share snapshots with details.- Returns:
- a list of all snapshots with details
-
get
ShareSnapshot get(String snapshotId)
Shows details for a share snapshot.- Parameters:
snapshotId- the snapshot ID- Returns:
- the snapshot
-
update
ShareSnapshot update(String snapshotId, ShareSnapshotUpdateOptions snapshotUpdateOptions)
Updates a share snapshot.- Parameters:
snapshotId- the snapshot IDsnapshotUpdateOptions- the options to update on the snapshot- Returns:
- the snapshot
-
delete
ActionResponse delete(String snapshotId)
Deletes a share snapshot.- Parameters:
snapshotId- the snapshot ID- Returns:
- the action response
-
resetState
ActionResponse resetState(String snapshotId, ShareSnapshot.Status status)
Administrator only. Explicitly updates the state of a share snapshot.- Parameters:
snapshotId- the snapshot IDstatus- the status to set- Returns:
- the action response
-
forceDelete
ActionResponse forceDelete(String snapshotId)
Administrator only. Force-deletes a share snapshot in any state.- Parameters:
snapshotId- the snapshot ID- Returns:
- the action response
-
-