Package com.morpheusdata.core
Interface MorpheusMetadataTagService
-
public interface MorpheusMetadataTagService
Context methods for syncing MetadataTags in Morpheus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.Single<java.lang.Boolean>
create(MetadataTag metadataTag)
Create and return a new MetadataTag in Morpheusio.reactivex.Single<java.lang.Boolean>
create(java.util.List<MetadataTag> metadataTags)
Create new MetadataTags in Morpheusio.reactivex.Single<java.lang.Boolean>
create(java.util.List<MetadataTag> addList, ComputeServerIdentityProjection computeServerProj)
Create new MetadataTags in Morpheus associated with a ComputeServerio.reactivex.Single<java.lang.Boolean>
create(java.util.List<MetadataTag> addList, InstanceIdentityProjection instanceProj)
Create new MetadataTags in Morpheus associated with an InstanceMorpheusMetadataTagTypeService
getMetadataTagType()
Returns the MetadataTypeType context used for performing updates or queries onMetadataTagType
related assets within Morpheus.io.reactivex.Observable<MetadataTag>
listById(java.util.Collection<java.lang.Long> ids)
Get a list of MetadataTag objects from a list of projection idsio.reactivex.Observable<MetadataTagIdentityProjection>
listSyncProjections(MetadataTagType metadataTagType)
Get a list of MetadataTag projections based on the MetadataTagTypeio.reactivex.Observable<MetadataTagIdentityProjection>
listSyncProjections(java.lang.String refType, java.lang.Long refId)
Get a list of MetadataTag projections based on the refId and refType associated with the MetadataTagio.reactivex.Single<java.lang.Boolean>
remove(java.util.List<MetadataTagIdentityProjection> metadataTags)
Remove persisted MetadataTags from Morpheusio.reactivex.Single<java.lang.Boolean>
remove(java.util.List<MetadataTagIdentityProjection> metadataTags, ComputeServerIdentityProjection serverProj)
Remove persisted MetadataTags associated with a ComputeServer from Morpheusio.reactivex.Single<java.lang.Boolean>
remove(java.util.List<MetadataTagIdentityProjection> metadataTags, InstanceIdentityProjection instanceProj)
Remove persisted MetadataTags associated with an Instance from Morpheusio.reactivex.Single<java.lang.Boolean>
save(java.util.List<MetadataTag> metadataTags)
Save updates to existing MetadataTags
-
-
-
Method Detail
-
getMetadataTagType
MorpheusMetadataTagTypeService getMetadataTagType()
Returns the MetadataTypeType context used for performing updates or queries onMetadataTagType
related assets within Morpheus.- Returns:
- An instance of the MetadataTypeType Context
-
listSyncProjections
io.reactivex.Observable<MetadataTagIdentityProjection> listSyncProjections(java.lang.String refType, java.lang.Long refId)
Get a list of MetadataTag projections based on the refId and refType associated with the MetadataTag- 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
-
listSyncProjections
io.reactivex.Observable<MetadataTagIdentityProjection> listSyncProjections(MetadataTagType metadataTagType)
Get a list of MetadataTag projections based on the MetadataTagType- Parameters:
metadataTagType
- the MetadataTagType to match on- Returns:
- Observable stream of sync projection
-
listById
io.reactivex.Observable<MetadataTag> listById(java.util.Collection<java.lang.Long> ids)
Get a list of MetadataTag objects from a list of projection ids- Parameters:
ids
- MetadataTag ids- Returns:
- Observable stream of MetadataTag
-
save
io.reactivex.Single<java.lang.Boolean> save(java.util.List<MetadataTag> metadataTags)
Save updates to existing MetadataTags- Parameters:
metadataTags
- updated MetadataTags- Returns:
- success
-
create
io.reactivex.Single<java.lang.Boolean> create(java.util.List<MetadataTag> metadataTags)
Create new MetadataTags in Morpheus- Parameters:
metadataTags
- new MetadataTags to persist- Returns:
- success
-
create
io.reactivex.Single<java.lang.Boolean> create(java.util.List<MetadataTag> addList, ComputeServerIdentityProjection computeServerProj)
Create new MetadataTags in Morpheus associated with a ComputeServer- Parameters:
addList
- new MetadataTags to persist- Returns:
- success
-
create
io.reactivex.Single<java.lang.Boolean> create(java.util.List<MetadataTag> addList, InstanceIdentityProjection instanceProj)
Create new MetadataTags in Morpheus associated with an Instance- Parameters:
addList
- new MetadataTags to persist- Returns:
- success
-
create
io.reactivex.Single<java.lang.Boolean> create(MetadataTag metadataTag)
Create and return a new MetadataTag in Morpheus- Parameters:
metadataTag
- new MetadataTag to persist- Returns:
- the tag
-
remove
io.reactivex.Single<java.lang.Boolean> remove(java.util.List<MetadataTagIdentityProjection> metadataTags)
Remove persisted MetadataTags from Morpheus- Parameters:
metadataTags
- MetadataTags to delete- Returns:
- success
-
remove
io.reactivex.Single<java.lang.Boolean> remove(java.util.List<MetadataTagIdentityProjection> metadataTags, ComputeServerIdentityProjection serverProj)
Remove persisted MetadataTags associated with a ComputeServer from Morpheus- Parameters:
metadataTags
- MetadataTags to delete- Returns:
- success
-
remove
io.reactivex.Single<java.lang.Boolean> remove(java.util.List<MetadataTagIdentityProjection> metadataTags, InstanceIdentityProjection instanceProj)
Remove persisted MetadataTags associated with an Instance from Morpheus- Parameters:
metadataTags
- MetadataTags to delete- Returns:
- success
-
-