Interface MorpheusComputeZoneFolderService

    • Method Detail

      • listSyncProjections

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

        io.reactivex.Single<ComputeZoneFolder> getDefaultFolderForAccount​(java.lang.Long cloudId,
                                                                          java.lang.Long accountId,
                                                                          java.lang.Long siteId,
                                                                          java.lang.Long servicePlanId)
        Get the default ComputeZoneFolder
        Parameters:
        cloudId - The id of the cloud
        accountId - The id of the account
        siteId - The id of the site (optional)
        servicePlanId - The id of the ServicePlan (optional)
        Returns:
        The default ComputeZoneFolder
      • getDefaultImageFolderForAccount

        io.reactivex.Single<ComputeZoneFolder> getDefaultImageFolderForAccount​(java.lang.Long cloudId,
                                                                               java.lang.Long accountId)
        Get the default image ComputeZoneFolder
        Parameters:
        cloudId - The id of the cloud
        accountId - The id of the account
        Returns:
        The default image ComputeZoneFolder
      • listById

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

        io.reactivex.Single<java.lang.Boolean> save​(java.util.List<ComputeZoneFolder> folders)
        Save updates to existing ComputeZoneFolders
        Parameters:
        folders - updated ComputeZoneFolder
        Returns:
        success
      • create

        io.reactivex.Single<java.lang.Boolean> create​(java.util.List<ComputeZoneFolder> folders)
        Create new ComputeZoneFolders in Morpheus
        Parameters:
        folders - new ComputeZoneFolders to persist
        Returns:
        success
      • remove

        io.reactivex.Single<java.lang.Boolean> remove​(java.util.List<ComputeZoneFolderIdentityProjection> folders)
        Remove persisted ComputeZoneFolder from Morpheus
        Parameters:
        folders - Folders to delete
        Returns:
        success