Package com.morpheusdata.core
Interface MorpheusMetadataTagTypeService
-
public interface MorpheusMetadataTagTypeService
Context methods for syncing MetadataTagTypes in Morpheus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.Single<java.lang.Boolean>
create(java.util.List<MetadataTagType> metadataTagTypes)
Create new MetadataTagTypes in Morpheusio.reactivex.Observable<MetadataTagType>
listById(java.util.Collection<java.lang.Long> ids)
Get a list of MetadataTagType objects from a list of projection idsio.reactivex.Observable<MetadataTagTypeIdentityProjection>
listSyncProjections(java.lang.String refType, java.lang.Long refId)
Get a list of MetadataTagType projections based on the refId and refType associated with the MetadataTagTypeio.reactivex.Single<java.lang.Boolean>
remove(java.util.List<MetadataTagTypeIdentityProjection> metadataTagTypes)
Remove persisted MetadataTagTypes from Morpheusio.reactivex.Single<java.lang.Boolean>
save(java.util.List<MetadataTagType> metadataTagTypes)
Save updates to existing MetadataTagTypes
-
-
-
Method Detail
-
listSyncProjections
io.reactivex.Observable<MetadataTagTypeIdentityProjection> listSyncProjections(java.lang.String refType, java.lang.Long refId)
Get a list of MetadataTagType projections based on the refId and refType associated with the MetadataTagType- Parameters:
refType
- the refType to match on. Typically 'ComputeZone' for Cloud related tagsrefId
- the refId to match on. Typically the id of the Cloud for Cloud related tags- Returns:
- Observable stream of sync projection
-
listById
io.reactivex.Observable<MetadataTagType> listById(java.util.Collection<java.lang.Long> ids)
Get a list of MetadataTagType objects from a list of projection ids- Parameters:
ids
- MetadataTagType ids- Returns:
- Observable stream of MetadataTagType
-
save
io.reactivex.Single<java.lang.Boolean> save(java.util.List<MetadataTagType> metadataTagTypes)
Save updates to existing MetadataTagTypes- Parameters:
metadataTagTypes
- updated MetadataTagTypes- Returns:
- success
-
create
io.reactivex.Single<java.lang.Boolean> create(java.util.List<MetadataTagType> metadataTagTypes)
Create new MetadataTagTypes in Morpheus- Parameters:
metadataTagTypes
- new MetadataTagType to persist- Returns:
- success
-
remove
io.reactivex.Single<java.lang.Boolean> remove(java.util.List<MetadataTagTypeIdentityProjection> metadataTagTypes)
Remove persisted MetadataTagTypes from Morpheus- Parameters:
metadataTagTypes
- MetadataTagTypes to delete- Returns:
- success
-
-