Class BlockVolumeTransferServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.storage.block.internal.BaseBlockStorageServices
-
- org.openstack4j.openstack.storage.block.internal.BlockVolumeTransferServiceImpl
-
- All Implemented Interfaces:
BlockVolumeTransferService,RestService
public class BlockVolumeTransferServiceImpl extends BaseBlockStorageServices implements BlockVolumeTransferService
Related services for managing volume transfers (os-volume-transfer)- 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 BlockVolumeTransferServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VolumeTransferaccept(String transferId, String authKey)Accepts a pending volume transferVolumeTransfercreate(String volumeId)Creates a new Volume TransferVolumeTransfercreate(String volumeId, String name)Creates a new Volume TransferActionResponsedelete(String transferId)Deletes a specific transferVolumeTransferget(String transferId)Gets details about a specific transferList<? extends VolumeTransfer>list()Gets ALL volume transfers in detailed formList<? extends VolumeTransfer>list(boolean detailed)Gets ALL volume transfers-
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 VolumeTransfer> list()
Description copied from interface:BlockVolumeTransferServiceGets ALL volume transfers in detailed form- Specified by:
listin interfaceBlockVolumeTransferService- Returns:
- List of Volume Transfers
-
list
public List<? extends VolumeTransfer> list(boolean detailed)
Description copied from interface:BlockVolumeTransferServiceGets ALL volume transfers- Specified by:
listin interfaceBlockVolumeTransferService- Parameters:
detailed- if true all fields are populated otherwise just id, volumeId and name- Returns:
- List of Volume Transfers
-
get
public VolumeTransfer get(String transferId)
Description copied from interface:BlockVolumeTransferServiceGets details about a specific transfer- Specified by:
getin interfaceBlockVolumeTransferService- Parameters:
transferId- the transfer identifier- Returns:
- the transfer details or null
-
create
public VolumeTransfer create(String volumeId)
Description copied from interface:BlockVolumeTransferServiceCreates a new Volume Transfer- Specified by:
createin interfaceBlockVolumeTransferService- Parameters:
volumeId- the identifier of the volume to transfer- Returns:
- the created volume transfer containing the authorization key
-
create
public VolumeTransfer create(String volumeId, String name)
Description copied from interface:BlockVolumeTransferServiceCreates a new Volume Transfer- Specified by:
createin interfaceBlockVolumeTransferService- Parameters:
volumeId- the identifier of the volume to transfername- the name of the transfer (optional)- Returns:
- the created volume transfer containing the authorization key
-
accept
public VolumeTransfer accept(String transferId, String authKey)
Description copied from interface:BlockVolumeTransferServiceAccepts a pending volume transfer- Specified by:
acceptin interfaceBlockVolumeTransferService- Parameters:
transferId- the identifier of the transfer to acceptauthKey- the auth key of the transfer- Returns:
- VolumeTransfer detailing the name and volume identifier that was transfer
-
delete
public ActionResponse delete(String transferId)
Description copied from interface:BlockVolumeTransferServiceDeletes a specific transfer- Specified by:
deletein interfaceBlockVolumeTransferService- Parameters:
transferId- the transfer identifier to delete- Returns:
- the action response
-
-