Class ShareSnapshotServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.internal.MicroVersionedOpenStackService
-
- org.openstack4j.openstack.manila.internal.BaseShareServices
-
- org.openstack4j.openstack.manila.internal.ShareSnapshotServiceImpl
-
- All Implemented Interfaces:
ShareSnapshotService,RestService
public class ShareSnapshotServiceImpl extends BaseShareServices implements ShareSnapshotService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ShareSnapshotServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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.-
Methods inherited from class org.openstack4j.openstack.manila.internal.BaseShareServices
getApiVersionHeader
-
Methods inherited from class org.openstack4j.openstack.internal.MicroVersionedOpenStackService
delete, deleteWithResponse, get, head, patch, post, put, request
-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, patchWithResponse, postWithResponse, putWithResponse, toList, uri
-
-
-
-
Method Detail
-
create
public ShareSnapshot create(ShareSnapshotCreate snapshotCreate)
Description copied from interface:ShareSnapshotServiceCreates a snapshot from a share.- Specified by:
createin interfaceShareSnapshotService- Parameters:
snapshotCreate- the snapshot to create- Returns:
- the snapshot
-
list
public List<? extends ShareSnapshot> list()
Description copied from interface:ShareSnapshotServiceLists all share snapshots.- Specified by:
listin interfaceShareSnapshotService- Returns:
- a list of all snapshots
-
listDetails
public List<? extends ShareSnapshot> listDetails()
Description copied from interface:ShareSnapshotServiceLists all share snapshots with details.- Specified by:
listDetailsin interfaceShareSnapshotService- Returns:
- a list of all snapshots with details
-
get
public ShareSnapshot get(String snapshotId)
Description copied from interface:ShareSnapshotServiceShows details for a share snapshot.- Specified by:
getin interfaceShareSnapshotService- Parameters:
snapshotId- the snapshot ID- Returns:
- the snapshot
-
update
public ShareSnapshot update(String snapshotId, ShareSnapshotUpdateOptions snapshotUpdateOptions)
Description copied from interface:ShareSnapshotServiceUpdates a share snapshot.- Specified by:
updatein interfaceShareSnapshotService- Parameters:
snapshotId- the snapshot IDsnapshotUpdateOptions- the options to update on the snapshot- Returns:
- the snapshot
-
delete
public ActionResponse delete(String snapshotId)
Description copied from interface:ShareSnapshotServiceDeletes a share snapshot.- Specified by:
deletein interfaceShareSnapshotService- Parameters:
snapshotId- the snapshot ID- Returns:
- the action response
-
resetState
public ActionResponse resetState(String snapshotId, ShareSnapshot.Status status)
Description copied from interface:ShareSnapshotServiceAdministrator only. Explicitly updates the state of a share snapshot.- Specified by:
resetStatein interfaceShareSnapshotService- Parameters:
snapshotId- the snapshot IDstatus- the status to set- Returns:
- the action response
-
forceDelete
public ActionResponse forceDelete(String snapshotId)
Description copied from interface:ShareSnapshotServiceAdministrator only. Force-deletes a share snapshot in any state.- Specified by:
forceDeletein interfaceShareSnapshotService- Parameters:
snapshotId- the snapshot ID- Returns:
- the action response
-
-