Interface MorpheusSecurityGroupLocationService


  • public interface MorpheusSecurityGroupLocationService
    Context methods for syncing SecurityGroupLocations in Morpheus
    • Method Detail

      • listSyncProjections

        io.reactivex.Observable<SecurityGroupLocationIdentityProjection> listSyncProjections​(java.lang.Long cloudId)
        Get a list of SecurityGroupLocation projections based on the Cloud associated with the SecurityGroupLocation
        Parameters:
        cloudId - the id of the Cloud
        Returns:
        Observable stream of sync projection
      • listSyncProjections

        io.reactivex.Observable<SecurityGroupLocationIdentityProjection> listSyncProjections​(java.lang.String refType,
                                                                                             java.lang.Long refId)
        Get a list of SecurityGroupLocation projections based on the refId and refType associated with the SecurityGroupLocation
        Parameters:
        refType - the refType to match on. Typically 'ComputeZone' for Cloud related tags
        refId - the refId to match on. Typically the id of the Cloud for Cloud related tags
        Returns:
        Observable stream of sync projection
      • listByIds

        io.reactivex.Observable<SecurityGroupLocation> listByIds​(java.util.List<java.lang.Long> ids)
        Fetch the SecurityGroups given a list of ids
        Parameters:
        ids - list of ids
        Returns:
        Observable list of SecurityGroups
      • save

        io.reactivex.Single<java.lang.Boolean> save​(java.util.List<SecurityGroupLocation> securityGroupLocations)
        Save updates to existing SecurityGroupLocations
        Parameters:
        securityGroupLocations - SecurityGroupLocations to update
        Returns:
        whether the save was successful
      • create

        io.reactivex.Single<SecurityGroupLocation> create​(SecurityGroupLocation securityGroupLocation)
        Create and return a new SecurityGroupLocation in Morpheus
        Parameters:
        securityGroupLocation - new SecurityGroupLocation to persist
        Returns:
        the SecurityGroupLocation
      • removeSecurityGroupLocations

        io.reactivex.Single<java.lang.Boolean> removeSecurityGroupLocations​(java.util.List<SecurityGroupLocationIdentityProjection> securityGroupLocations)
        Remove SecurityGroupLocations from Morpheus
        Parameters:
        securityGroupLocations - SecurityGroupLocations to remove
        Returns:
        whether the removal was successful