Package com.morpheusdata.core
Interface MorpheusMetadataTagService
- All Superinterfaces:
MorpheusDataService<MetadataTag,
,MetadataTagIdentityProjection> MorpheusIdentityService<MetadataTagIdentityProjection>
public interface MorpheusMetadataTagService
extends MorpheusDataService<MetadataTag,MetadataTagIdentityProjection>, MorpheusIdentityService<MetadataTagIdentityProjection>
Context methods for syncing MetadataTags in Morpheus
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>
create
(List<MetadataTag> metadataTags) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
create
(List<MetadataTag> addList, ComputeServerIdentityProjection computeServerProj) Create new MetadataTags in Morpheus associated with a ComputeServerio.reactivex.rxjava3.core.Single<Boolean>
create
(List<MetadataTag> addList, InstanceIdentityProjection instanceProj) Create new MetadataTags in Morpheus associated with an InstanceReturns the MetadataTypeType context used for performing updates or queries onMetadataTagType
related assets within Morpheus.io.reactivex.rxjava3.core.Observable<MetadataTag>
listById
(Collection<Long> ids) Get a list of MetadataTag objects from a list of projection idsio.reactivex.rxjava3.core.Observable<MetadataTagIdentityProjection>
listSyncProjections
(MetadataTagType metadataTagType) Get a list of MetadataTag projections based on the MetadataTagTypeio.reactivex.rxjava3.core.Observable<MetadataTagIdentityProjection>
listSyncProjections
(String refType, Long refId) Get a list of MetadataTag projections based on the refId and refType associated with the MetadataTagio.reactivex.rxjava3.core.Single<Boolean>
remove
(List<MetadataTagIdentityProjection> metadataTags) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>
remove
(List<MetadataTagIdentityProjection> metadataTags, ComputeServerIdentityProjection serverProj) Remove persisted MetadataTags associated with a ComputeServer from Morpheusio.reactivex.rxjava3.core.Single<Boolean>
remove
(List<MetadataTagIdentityProjection> metadataTags, InstanceIdentityProjection instanceProj) Remove persisted MetadataTags associated with an Instance from Morpheusio.reactivex.rxjava3.core.Single<Boolean>
save
(List<MetadataTag> metadataTags) Deprecated.Methods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, count, create, find, get, list, listById, listOptions, remove, save, search
Methods inherited from interface com.morpheusdata.core.MorpheusIdentityService
getIdentityProperties, listIdentityProjections
-
Method Details
-
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.rxjava3.core.Observable<MetadataTagIdentityProjection> listSyncProjections(String refType, 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.rxjava3.core.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
Get a list of MetadataTag objects from a list of projection ids- Parameters:
ids
- MetadataTag ids- Returns:
- Observable stream of MetadataTag
-
save
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> save(List<MetadataTag> metadataTags) Deprecated.Save updates to existing MetadataTags- Specified by:
save
in interfaceMorpheusDataService<MetadataTag,
MetadataTagIdentityProjection> - Parameters:
metadataTags
- updated MetadataTags- Returns:
- success
- See Also:
-
create
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> create(List<MetadataTag> metadataTags) Deprecated.Create new MetadataTags in Morpheus- Specified by:
create
in interfaceMorpheusDataService<MetadataTag,
MetadataTagIdentityProjection> - Parameters:
metadataTags
- new MetadataTags to persist- Returns:
- success
- See Also:
-
create
io.reactivex.rxjava3.core.Single<Boolean> create(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.rxjava3.core.Single<Boolean> create(List<MetadataTag> addList, InstanceIdentityProjection instanceProj) Create new MetadataTags in Morpheus associated with an Instance- Parameters:
addList
- new MetadataTags to persist- Returns:
- success
-
remove
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<MetadataTagIdentityProjection> metadataTags) Deprecated.Remove persisted MetadataTags from Morpheus- Specified by:
remove
in interfaceMorpheusDataService<MetadataTag,
MetadataTagIdentityProjection> - Parameters:
metadataTags
- MetadataTags to delete- Returns:
- success
- See Also:
-
remove
io.reactivex.rxjava3.core.Single<Boolean> remove(List<MetadataTagIdentityProjection> metadataTags, ComputeServerIdentityProjection serverProj) Remove persisted MetadataTags associated with a ComputeServer from Morpheus- Parameters:
metadataTags
- MetadataTags to delete- Returns:
- success
-
remove
io.reactivex.rxjava3.core.Single<Boolean> remove(List<MetadataTagIdentityProjection> metadataTags, InstanceIdentityProjection instanceProj) Remove persisted MetadataTags associated with an Instance from Morpheus- Parameters:
metadataTags
- MetadataTags to delete- Returns:
- success
-