Package com.morpheusdata.core
Interface MorpheusInstanceService
-
public interface MorpheusInstanceService
Context methods for dealing withInstance
in Morpheus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.Single<ServiceResponse>
delete(Instance instance, DeleteInstanceRequest deleteRequest)
Delete the existing Instance from Morpheus and the resources from the underlying Cloud.io.reactivex.Observable<Instance>
listById(java.util.Collection<java.lang.Long> ids)
Get a list of Instance objects from a list of idsio.reactivex.Single<java.lang.Boolean>
save(java.util.List<Instance> instances)
Save updates to existing Instance
-
-
-
Method Detail
-
listById
io.reactivex.Observable<Instance> listById(java.util.Collection<java.lang.Long> ids)
Get a list of Instance objects from a list of ids- Parameters:
ids
- Instance ids- Returns:
- Observable stream of Instance
-
save
io.reactivex.Single<java.lang.Boolean> save(java.util.List<Instance> instances)
Save updates to existing Instance- Parameters:
instances
- updated Instances- Returns:
- success
-
delete
io.reactivex.Single<ServiceResponse> delete(Instance instance, DeleteInstanceRequest deleteRequest)
Delete the existing Instance from Morpheus and the resources from the underlying Cloud. Use with caution as resources within the Cloud will be deleted.- Parameters:
instance
- Instance to deletedeleteRequest
- Options for the delete- Returns:
- ServiceResponse indicating success or failure. This is an async request within Morpheus and the return will not capture any underlying errors experienced asynchronously.
-
-