Package com.morpheusdata.core
Interface MorpheusServicePlanService
-
public interface MorpheusServicePlanService
Context methods for syncing ServicePlan in Morpheus- Since:
- 0.8.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.Single<java.lang.Boolean>
create(java.util.List<ServicePlan> servicePlans)
Create new ServicePlans in Morpheusio.reactivex.Observable<ServicePlan>
listById(java.util.Collection<java.lang.Long> ids)
Get a list of ServicePlan objects from a list of projection idsio.reactivex.Observable<ServicePlanIdentityProjection>
listSyncProjections(ProvisionType provisionType)
Get a list of ServicePlan projections based onProvisionType
ProvisionType must, at least, have an id or code setio.reactivex.Observable<ServicePlanIdentityProjection>
listSyncProjections(java.lang.Long cloudId)
Get a list of ServicePlan projections based on Cloud idio.reactivex.Single<java.lang.Boolean>
remove(java.util.List<ServicePlanIdentityProjection> servicePlans)
Remove persisted ServicePlan from Morpheusio.reactivex.Single<java.lang.Boolean>
save(java.util.List<ServicePlan> servicePlans)
Save updates to existing ServicePlans
-
-
-
Method Detail
-
listSyncProjections
io.reactivex.Observable<ServicePlanIdentityProjection> listSyncProjections(java.lang.Long cloudId)
Get a list of ServicePlan projections based on Cloud id- Parameters:
cloudId
- Cloud id- Returns:
- Observable stream of sync projection
-
listSyncProjections
io.reactivex.Observable<ServicePlanIdentityProjection> listSyncProjections(ProvisionType provisionType)
Get a list of ServicePlan projections based onProvisionType
ProvisionType must, at least, have an id or code set- Parameters:
provisionType
-ProvisionType
- Returns:
- Observable stream of sync projection
-
listById
io.reactivex.Observable<ServicePlan> listById(java.util.Collection<java.lang.Long> ids)
Get a list of ServicePlan objects from a list of projection ids- Parameters:
ids
- VirtualImage ids- Returns:
- Observable stream of servicePlans
-
save
io.reactivex.Single<java.lang.Boolean> save(java.util.List<ServicePlan> servicePlans)
Save updates to existing ServicePlans- Parameters:
servicePlans
- updated servicePlans- Returns:
- resulting servicePlans
-
create
io.reactivex.Single<java.lang.Boolean> create(java.util.List<ServicePlan> servicePlans)
Create new ServicePlans in Morpheus- Parameters:
servicePlans
- new servicePlans to persist- Returns:
- resulting servicePlans
-
remove
io.reactivex.Single<java.lang.Boolean> remove(java.util.List<ServicePlanIdentityProjection> servicePlans)
Remove persisted ServicePlan from Morpheus- Parameters:
servicePlans
- plans to delete- Returns:
- void
-
-