Package com.morpheusdata.core
Interface MorpheusVirtualImageLocationService
- All Superinterfaces:
MorpheusDataQueryService<VirtualImageLocation>
,MorpheusDataService<VirtualImageLocation,
,VirtualImageLocationIdentityProjection> MorpheusIdentityService<VirtualImageLocationIdentityProjection>
public interface MorpheusVirtualImageLocationService
extends MorpheusDataService<VirtualImageLocation,VirtualImageLocationIdentityProjection>, MorpheusIdentityService<VirtualImageLocationIdentityProjection>
Context methods for syncing VirtualImageLocations in Morpheus. It can normally
be accessed via the primary
MorpheusContext
via the MorpheusVirtualImageService
Examples:
morpheusContext.getVirtualImage().getLocation()
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<VirtualImageLocation>
create
(VirtualImageLocation virtualImageLocation, Cloud cloud) Create a new VirtualImageLocation in Morpheusio.reactivex.rxjava3.core.Single<Boolean>
create
(List<VirtualImageLocation> virtualImageLocations, Cloud cloud) Create new VirtualImageLocations in Morpheusio.reactivex.rxjava3.core.Single<VirtualImageLocation>
findVirtualImageLocation
(Long virtualImageId, Long cloudId, String regionCode, String imageFolder, Boolean sharedStorage) Deprecated.io.reactivex.rxjava3.core.Single<Optional<VirtualImageLocation>>
findVirtualImageLocationByExternalIdForCloudAndType
(String externalId, Long cloudId, String regionCode, String imageType) Deprecated.io.reactivex.rxjava3.core.Single<Optional<VirtualImageLocation>>
findVirtualImageLocationByExternalIdForCloudAndType
(String externalId, Long cloudId, String regionCode, String imageType, Long accountId) Deprecated.io.reactivex.rxjava3.core.Observable<VirtualImageLocationIdentityProjection>
listIdentityProjections
(Long cloudId, String regionCode) Get a list of VirtualImageLocation projections based on Cloud idio.reactivex.rxjava3.core.Observable<VirtualImageLocationIdentityProjection>
listSyncProjections
(Long cloudId) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
remove
(List<VirtualImageLocationIdentityProjection> virtualImageLocations) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
save
(List<VirtualImageLocation> virtualImageLocations, Cloud cloud) Save updates to existing VirtualImageLocationsMethods 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, save, save
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<VirtualImageLocationIdentityProjection> listIdentityProjections(Long cloudId, String regionCode) Get a list of VirtualImageLocation projections based on Cloud id- Parameters:
cloudId
- Cloud idregionCode
- theCloudRegion
to optionally filter by- Returns:
- Observable stream of sync projection
-
listSyncProjections
@Deprecated io.reactivex.rxjava3.core.Observable<VirtualImageLocationIdentityProjection> listSyncProjections(Long cloudId) Deprecated.replaced by {listIdentityProjections(Long, String)
}Get a list of VirtualImageLocation projections based on Cloud id- Parameters:
cloudId
- Cloud id- Returns:
- Observable stream of sync projection
-
findVirtualImageLocation
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<VirtualImageLocation> findVirtualImageLocation(Long virtualImageId, Long cloudId, String regionCode, String imageFolder, Boolean sharedStorage) Deprecated.Find a VirtualImageLocation given the parameters- Parameters:
virtualImageId
- The VirtualImage to search againstcloudId
- The id of the Cloud to search againstregionCode
- The regionCode of the Cloud to search against (optional) Defaults to nullimageFolder
- The name of the ComputeZoneFolder to search within (optional) Defaults to nullsharedStorage
- Whether to search for VirtualImageLocations with sharedStorage (optional) Defaults to false.- Returns:
- Observable VirtualImageLocation matching the parameters
-
findVirtualImageLocationByExternalIdForCloudAndType
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Optional<VirtualImageLocation>> findVirtualImageLocationByExternalIdForCloudAndType(String externalId, Long cloudId, String regionCode, String imageType, Long accountId) Deprecated.Looks up a VirtualImageLocation by the externalId within the context of a cloud,region,type, and account This is useful if a request is made based on a clouds remote id as opposed to the morpheus id. (i.e. AMI lookup).- Parameters:
externalId
- the external identifier in the cloud of this image (i.e. ami-adfadsf)cloudId
- the id of theCloud
to scope the search toregionCode
- the region code scope of the imageimageType
- image type to scope toaccountId
- optional accountId to scope it based on user access permissions on the lookup- Returns:
- an optional VirtualImageLocation with parent VirtualImage (if it exists)
-
findVirtualImageLocationByExternalIdForCloudAndType
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Optional<VirtualImageLocation>> findVirtualImageLocationByExternalIdForCloudAndType(String externalId, Long cloudId, String regionCode, String imageType) Deprecated.Looks up a VirtualImageLocation by the externalId within the context of a cloud,region,type, and account This is useful if a request is made based on a clouds remote id as opposed to the morpheus id. (i.e. AMI lookup).- Parameters:
externalId
- the external identifier in the cloud of this image (i.e. ami-adfadsf)cloudId
- the id of theCloud
to scope the search toregionCode
- the region code scope of the imageimageType
- image type to scope to- Returns:
- an optional VirtualImageLocation with parent VirtualImage (if it exists)
-
save
io.reactivex.rxjava3.core.Single<Boolean> save(List<VirtualImageLocation> virtualImageLocations, Cloud cloud) Save updates to existing VirtualImageLocations- Parameters:
virtualImageLocations
- updated VirtualImageLocationscloud
- the Cloud instance- Returns:
- success
-
create
io.reactivex.rxjava3.core.Single<Boolean> create(List<VirtualImageLocation> virtualImageLocations, Cloud cloud) Create new VirtualImageLocations in Morpheus- Parameters:
virtualImageLocations
- new VirtualImageLocations to persistcloud
- the Cloud instance- Returns:
- success
-
create
io.reactivex.rxjava3.core.Single<VirtualImageLocation> create(VirtualImageLocation virtualImageLocation, Cloud cloud) Create a new VirtualImageLocation in Morpheus- Parameters:
virtualImageLocation
- a new VirtualImageLocation to persistcloud
- the Cloud instance- Returns:
- success
-
remove
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<VirtualImageLocationIdentityProjection> virtualImageLocations) Deprecated.Remove persisted VirtualImageLocations from Morpheus- Specified by:
remove
in interfaceMorpheusDataService<VirtualImageLocation,
VirtualImageLocationIdentityProjection> - Parameters:
virtualImageLocations
- to delete- Returns:
- success
- See Also:
-
listIdentityProjections(Long, String)
}