Package com.morpheusdata.core
Interface MorpheusInstanceScaleService
- All Superinterfaces:
MorpheusDataQueryService<InstanceScale>,MorpheusDataService<InstanceScale,InstanceScaleIdentityProjection>
public interface MorpheusInstanceScaleService
extends MorpheusDataService<InstanceScale,InstanceScaleIdentityProjection>
Context methods for dealing with
InstanceScale in Morpheus-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>create(List<InstanceScale> instanceScales) Deprecated.Returns the Instance Scale Type Serviceio.reactivex.rxjava3.core.Observable<InstanceScale>listById(Collection<Long> ids) Get a list of InstanceScale objects from a list of idsio.reactivex.rxjava3.core.Observable<InstanceScaleIdentityProjection>listIdentityProjections(Long cloudId, String regionCode) Get a list ofInstanceScaleprojections based on Cloud idio.reactivex.rxjava3.core.Single<Boolean>remove(List<InstanceScaleIdentityProjection> instanceScales) Deprecated.io.reactivex.rxjava3.core.Single<Boolean>save(List<InstanceScale> instanceScales) Deprecated.Methods inherited from interface com.morpheusdata.core.MorpheusDataQueryService
count, find, get, list, list, listById, listOptions, listOptions, searchMethods inherited from interface com.morpheusdata.core.MorpheusDataService
bulkCreate, bulkRemove, bulkSave, create, remove, save
-
Method Details
-
listById
Get a list of InstanceScale objects from a list of ids- Parameters:
ids- InstanceScale ids- Returns:
- Observable stream of InstanceScale
-
listIdentityProjections
io.reactivex.rxjava3.core.Observable<InstanceScaleIdentityProjection> listIdentityProjections(Long cloudId, String regionCode) Get a list ofInstanceScaleprojections based on Cloud id- Parameters:
cloudId- Cloud idregionCode- theCloudRegionto optionally filter by- Returns:
- Observable stream of identity projection
-
create
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> create(List<InstanceScale> instanceScales) Deprecated.Create new InstanceScale in Morpheus- Specified by:
createin interfaceMorpheusDataService<InstanceScale,InstanceScaleIdentityProjection> - Parameters:
instanceScales- new InstanceScales to persist- Returns:
- success
- See Also:
-
save
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> save(List<InstanceScale> instanceScales) Deprecated.Save updates to existing InstanceScale- Specified by:
savein interfaceMorpheusDataService<InstanceScale,InstanceScaleIdentityProjection> - Parameters:
instanceScales- updated InstanceScales- Returns:
- success
- See Also:
-
remove
@Deprecated(since="0.15.4") io.reactivex.rxjava3.core.Single<Boolean> remove(List<InstanceScaleIdentityProjection> instanceScales) Deprecated.Remove persisted InstanceScale from Morpheus- Specified by:
removein interfaceMorpheusDataService<InstanceScale,InstanceScaleIdentityProjection> - Parameters:
instanceScales- InstanceScales to delete- Returns:
- success
- See Also:
-
getScaleType
MorpheusInstanceScaleTypeService getScaleType()Returns the Instance Scale Type Service- Returns:
- An instance of the Instance Scale Type Service
-