Class BlockVolumeBackupServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.storage.block.internal.BaseBlockStorageServices
-
- org.openstack4j.openstack.storage.block.internal.BlockVolumeBackupServiceImpl
-
- All Implemented Interfaces:
BlockVolumeBackupService,RestService
public class BlockVolumeBackupServiceImpl extends BaseBlockStorageServices implements BlockVolumeBackupService
OpenStack (Cinder) Volume Backup Operations API Implementation.- Author:
- Huang Yi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description BlockVolumeBackupServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeBackupcreate(VolumeBackupCreate vbc)Create volume backupActionResponsedelete(String backupId)Delete a specified volume backupVolumeBackupget(String backupId)Shows information for a specified backup.List<? extends VolumeBackup>list()Lists detailed information for all Block Storage backups that the tenant who submits the request can access.List<? extends VolumeBackup>list(Map<String,String> filteringParams)Returns list of Block Storage backups filtered by parameters.VolumeBackupRestorerestore(String backupId, String name, String volumeId)Restore volume from a a specified backup.-
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 VolumeBackup> list()
Lists detailed information for all Block Storage backups that the tenant who submits the request can access.- Specified by:
listin interfaceBlockVolumeBackupService- Returns:
- List of VolumeBackup
-
list
public List<? extends VolumeBackup> list(Map<String,String> filteringParams)
Returns list of Block Storage backups filtered by parameters.- Specified by:
listin interfaceBlockVolumeBackupService- Parameters:
filteringParams- map (name, value) of filtering parameters
-
get
public VolumeBackup get(String backupId)
Shows information for a specified backup.- Specified by:
getin interfaceBlockVolumeBackupService- Parameters:
backupId- the backup identifier- Returns:
- the volume backup or null
-
delete
public ActionResponse delete(String backupId)
Delete a specified volume backup- Specified by:
deletein interfaceBlockVolumeBackupService- Parameters:
backupId- the backup identifier- Returns:
- the action response
-
create
public VolumeBackup create(VolumeBackupCreate vbc)
Create volume backup- Specified by:
createin interfaceBlockVolumeBackupService- Parameters:
vbc- the input for backup creation- Returns:
- the volume backup created.
-
restore
public VolumeBackupRestore restore(String backupId, String name, String volumeId)
Restore volume from a a specified backup. If volumeId is provided, the backup will be restored to existng volume specified by the volume id. Otherwise, a new volume will be created from the backup with assigned volume name.- Specified by:
restorein interfaceBlockVolumeBackupService- Parameters:
backupId- the backup identifiername- the volume namevolumeId- the identified of existing volume
-
-