Interface MorpheusVirtualImageLocationService

    • Method Detail

      • listSyncProjections

        io.reactivex.Observable<VirtualImageLocationIdentityProjection> listSyncProjections​(java.lang.Long cloudId)
        Get a list of VirtualImageLocation projections based on Cloud id
        Parameters:
        cloudId - Cloud id
        Returns:
        Observable stream of sync projection
      • findVirtualImageLocation

        io.reactivex.Single<VirtualImageLocation> findVirtualImageLocation​(java.lang.Long virtualImageId,
                                                                           java.lang.Long cloudId,
                                                                           java.lang.String regionCode,
                                                                           java.lang.String imageFolder,
                                                                           java.lang.Boolean sharedStorage)
        Find a VirtualImageLocation given the parameters
        Parameters:
        virtualImageId - The VirtualImage to search against
        cloudId - The id of the Cloud to search against
        regionCode - The regionCode of the Cloud to search against (optional) Defaults to null
        imageFolder - The name of the ComputeZoneFolder to search within (optional) Defaults to null
        sharedStorage - Whether to search for VirtualImageLocations with sharedStorage (optional) Defaults to false.
        Returns:
        Observable VirtualImageLocation matching the parameters
      • listById

        io.reactivex.Observable<VirtualImageLocation> listById​(java.util.Collection<java.lang.Long> ids)
        Get a list of VirtualImageLocation objects from a list of projection ids
        Parameters:
        ids - VirtualImageLocation ids
        Returns:
        Observable stream of VirtualImageLocations
      • save

        io.reactivex.Single<java.lang.Boolean> save​(java.util.List<VirtualImageLocation> virtualImageLocations,
                                                    Cloud cloud)
        Save updates to existing VirtualImageLocations
        Parameters:
        virtualImageLocations - updated VirtualImageLocations
        cloud - the Cloud instance
        Returns:
        success
      • create

        io.reactivex.Single<java.lang.Boolean> create​(java.util.List<VirtualImageLocation> virtualImageLocations,
                                                      Cloud cloud)
        Create new VirtualImageLocations in Morpheus
        Parameters:
        virtualImageLocations - new VirtualImageLocations to persist
        cloud - the Cloud instance
        Returns:
        success
      • remove

        io.reactivex.Single<java.lang.Boolean> remove​(java.util.List<VirtualImageLocationIdentityProjection> virtualImageLocations)
        Remove persisted VirtualImageLocations from Morpheus
        Parameters:
        virtualImageLocations - to delete
        Returns:
        success