public class ShareSnapshotServiceImpl extends BaseShareServices implements ShareSnapshotService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
ShareSnapshotServiceImpl() |
Modifier and Type | Method and Description |
---|---|
ShareSnapshot |
create(ShareSnapshotCreate snapshotCreate)
Creates a snapshot from a share.
|
ActionResponse |
delete(String snapshotId)
Deletes a share snapshot.
|
ActionResponse |
forceDelete(String snapshotId)
Administrator only.
|
ShareSnapshot |
get(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.
|
ActionResponse |
resetState(String snapshotId,
ShareSnapshot.Status status)
Administrator only.
|
ShareSnapshot |
update(String snapshotId,
ShareSnapshotUpdateOptions snapshotUpdateOptions)
Updates a share snapshot.
|
getApiVersionHeader
delete, deleteWithResponse, get, head, patch, post, put, request
getProvider, getServiceVersion, getXOpenstackRequestId, patchWithResponse, postWithResponse, toList, uri
public ShareSnapshot create(ShareSnapshotCreate snapshotCreate)
ShareSnapshotService
create
in interface ShareSnapshotService
snapshotCreate
- the snapshot to createpublic List<? extends ShareSnapshot> list()
ShareSnapshotService
list
in interface ShareSnapshotService
public List<? extends ShareSnapshot> listDetails()
ShareSnapshotService
listDetails
in interface ShareSnapshotService
public ShareSnapshot get(String snapshotId)
ShareSnapshotService
get
in interface ShareSnapshotService
snapshotId
- the snapshot IDpublic ShareSnapshot update(String snapshotId, ShareSnapshotUpdateOptions snapshotUpdateOptions)
ShareSnapshotService
update
in interface ShareSnapshotService
snapshotId
- the snapshot IDsnapshotUpdateOptions
- the options to update on the snapshotpublic ActionResponse delete(String snapshotId)
ShareSnapshotService
delete
in interface ShareSnapshotService
snapshotId
- the snapshot IDpublic ActionResponse resetState(String snapshotId, ShareSnapshot.Status status)
ShareSnapshotService
resetState
in interface ShareSnapshotService
snapshotId
- the snapshot IDstatus
- the status to setpublic ActionResponse forceDelete(String snapshotId)
ShareSnapshotService
forceDelete
in interface ShareSnapshotService
snapshotId
- the snapshot IDCopyright © 2017. All rights reserved.