Class BlockVolumeSnapshotServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.storage.block.internal.BaseBlockStorageServices
-
- org.openstack4j.openstack.storage.block.internal.BlockVolumeSnapshotServiceImpl
-
- All Implemented Interfaces:
BlockVolumeSnapshotService,RestService
public class BlockVolumeSnapshotServiceImpl extends BaseBlockStorageServices implements BlockVolumeSnapshotService
OpenStack (Cinder) Volume Snapshot Operations API Implementation.- Author:
- Jeremy Unruh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description BlockVolumeSnapshotServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeSnapshotcreate(VolumeSnapshot snapshot)Creates a snapshot, which is a point-in-time copy of a volume.ActionResponsedelete(String snapshotId)Deletes a specified snapshotVolumeSnapshotget(String snapshotId)Shows information for a specified snapshot.List<? extends VolumeSnapshot>list()Lists detailed information for all Block Storage snapshots that the tenant who submits the request can access.List<? extends VolumeSnapshot>list(Map<String,String> filteringParams)Returns list of Block Storage snapshots filtered by parameters.ActionResponseupdate(String snapshotId, String name, String description)Updates the Name and/or Description for the specified snapshot-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends VolumeSnapshot> list()
Lists detailed information for all Block Storage snapshots that the tenant who submits the request can access.- Specified by:
listin interfaceBlockVolumeSnapshotService- Returns:
- List of VolumeSnapshot
-
list
public List<? extends VolumeSnapshot> list(Map<String,String> filteringParams)
Returns list of Block Storage snapshots filtered by parameters.- Specified by:
listin interfaceBlockVolumeSnapshotService- Parameters:
filteringParams- map (name, value) of filtering parameters
-
get
public VolumeSnapshot get(String snapshotId)
Shows information for a specified snapshot.- Specified by:
getin interfaceBlockVolumeSnapshotService- Parameters:
snapshotId- the snapshot identifier- Returns:
- the volume snapshot or null
-
delete
public ActionResponse delete(String snapshotId)
Deletes a specified snapshot- Specified by:
deletein interfaceBlockVolumeSnapshotService- Parameters:
snapshotId- the snapshot identifier- Returns:
- the action response
-
update
public ActionResponse update(String snapshotId, String name, String description)
Updates the Name and/or Description for the specified snapshot- Specified by:
updatein interfaceBlockVolumeSnapshotService- Parameters:
snapshotId- the snapshot identifiername- the new namedescription- the new description- Returns:
- the action response
-
create
public VolumeSnapshot create(VolumeSnapshot snapshot)
Creates a snapshot, which is a point-in-time copy of a volume. You can create a volume from the snapshot.NOTE: the volume ID within the snapshot must be set or an NullPointerException will be thrown
- Specified by:
createin interfaceBlockVolumeSnapshotService- Parameters:
snapshot- the snapshot to create- Returns:
- the newly created snapshot
-
-