Package com.morpheusdata.core
Interface MorpheusStorageVolumeService
- All Superinterfaces:
MorpheusDataQueryService<StorageVolume>
,MorpheusDataService<StorageVolume,
,StorageVolumeIdentityProjection> MorpheusIdentityService<StorageVolumeIdentityProjection>
public interface MorpheusStorageVolumeService
extends MorpheusDataService<StorageVolume,StorageVolumeIdentityProjection>, MorpheusIdentityService<StorageVolumeIdentityProjection>
Context methods for syncing StorageVolumes in Morpheus
- Since:
- 0.13.0
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>
create
(List<StorageVolume> storageVolumes, ComputeServerIdentityProjection computeServer) Create persisted StorageVolumes in Morpheus and add them to the ComputeServer.io.reactivex.rxjava3.core.Single<Boolean>
create
(List<StorageVolume> storageVolumes, VirtualImageIdentityProjection virtualImage) Create persisted StorageVolumes in Morpheus and add them to the VirtualImage.io.reactivex.rxjava3.core.Single<Boolean>
create
(List<StorageVolume> storageVolumes, VirtualImageLocationIdentityProjection virtualImageLocation) Create persisted StorageVolumes in Morpheus and add them to the VirtualImageLocation.Returns the StorageVolumeType Serviceio.reactivex.rxjava3.core.Observable<StorageVolumeIdentityProjection>
listIdentityProjections
(Long cloudId, String regionCode) Get a list ofStorageVolume
projections based on Cloud idio.reactivex.rxjava3.core.Single<Boolean>
remove
(List<StorageVolumeIdentityProjection> storageVolumes, ComputeServerIdentityProjection computeServer, Boolean force) Remove persisted StorageVolumes from Morpheus and remove them from the ComputeServer.io.reactivex.rxjava3.core.Single<Boolean>
remove
(List<StorageVolumeIdentityProjection> storageVolumes, VirtualImageIdentityProjection virtualImage) Remove persisted StorageVolumes from Morpheus and remove them from the VirtualImage.io.reactivex.rxjava3.core.Single<Boolean>
remove
(List<StorageVolumeIdentityProjection> storageVolumes, VirtualImageLocationIdentityProjection virtualImageLocation) Remove persisted StorageVolumes from Morpheus and remove them from the VirtualImageLocation.Methods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, search
Methods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, create, remove, remove, save, save
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
getStorageVolumeType
MorpheusStorageVolumeTypeService getStorageVolumeType()Returns the StorageVolumeType Service- Returns:
- An instance of the StorageVolumeType Service
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<StorageVolumeIdentityProjection> listIdentityProjections(Long cloudId, String regionCode) Get a list ofStorageVolume
projections based on Cloud id- Parameters:
cloudId
- Cloud idregionCode
- theCloudRegion
to optionally filter by- Returns:
- Observable stream of sync projection
-
create
io.reactivex.rxjava3.core.Single<Boolean> create(List<StorageVolume> storageVolumes, VirtualImageIdentityProjection virtualImage) Create persisted StorageVolumes in Morpheus and add them to the VirtualImage. Typically called during sync operations for the cloud- Parameters:
storageVolumes
- volumes to addvirtualImage
- VirtualImageIdentityProjection to add the volumes to- Returns:
- success
-
create
io.reactivex.rxjava3.core.Single<Boolean> create(List<StorageVolume> storageVolumes, VirtualImageLocationIdentityProjection virtualImageLocation) Create persisted StorageVolumes in Morpheus and add them to the VirtualImageLocation. Typically called during sync operations for the cloud- Parameters:
storageVolumes
- volumes to addvirtualImageLocation
- VirtualImageLocationIdentityProjection to add the volumes to- Returns:
- success
-
create
io.reactivex.rxjava3.core.Single<Boolean> create(List<StorageVolume> storageVolumes, ComputeServerIdentityProjection computeServer) Create persisted StorageVolumes in Morpheus and add them to the ComputeServer. Typically called during sync operations for the cloud.- Parameters:
storageVolumes
- volumes to addcomputeServer
- ComputeServerIdentityProjection to add the volumes to- Returns:
- success
-
remove
io.reactivex.rxjava3.core.Single<Boolean> remove(List<StorageVolumeIdentityProjection> storageVolumes, VirtualImageLocationIdentityProjection virtualImageLocation) Remove persisted StorageVolumes from Morpheus and remove them from the VirtualImageLocation. Typically called during sync operations for the cloud to inform Morpheus that the StorageVolume no longer exists in the cloud- Parameters:
storageVolumes
- volumes to removevirtualImageLocation
- VirtualImageLocationIdentityProjection to remove the volumes from- Returns:
- success
-
remove
io.reactivex.rxjava3.core.Single<Boolean> remove(List<StorageVolumeIdentityProjection> storageVolumes, ComputeServerIdentityProjection computeServer, Boolean force) Remove persisted StorageVolumes from Morpheus and remove them from the ComputeServer. Typically called during sync operations for the cloud to inform Morpheus that the StorageVolume no longer exists in the cloud- Parameters:
storageVolumes
- volumes to removecomputeServer
- ComputeServerIdentityProjection to remove the volumes fromforce
- Remove the StorageVolumes from the ComputeServer even if the status of the ComputeServer is 'resizing' (optional) defaults to false- Returns:
- success
-
remove
io.reactivex.rxjava3.core.Single<Boolean> remove(List<StorageVolumeIdentityProjection> storageVolumes, VirtualImageIdentityProjection virtualImage) Remove persisted StorageVolumes from Morpheus and remove them from the VirtualImage. Typically called during sync operations for the cloud to inform Morpheus that the StorageVolume no longer exists in the cloud- Parameters:
storageVolumes
- volumes to removevirtualImage
- VirtualImageIdentityProjection to remove the volumes from- Returns:
- success
-