Interface MorpheusIntegrationService
public interface MorpheusIntegrationService
Holds context methods for interacting with common integration type operations. This could be used for updating
integration type statuses or accessing object models that typically relate to integrations.
- Since:
- 0.8.0
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<ServiceResponse>
deleteCloudIntegration
(Long cloudId, AccountIntegration integration) Cleanup anAccountIntegration
associated with aCloud
that is being deletedio.reactivex.rxjava3.core.Single<ServiceResponse>
deleteCloudIntegration
(Long cloudId, NetworkServer networkServer) Cleanup theNetworkServer
associated with aCloud
that is being deletedio.reactivex.rxjava3.core.Single<ServiceResponse>
deleteCloudIntegration
(Long cloudId, StorageServer storageServer) Cleanup theStorageServer
associated with aCloud
that is being deletedGets the inventory context for interacting withAccountInventory
objects.io.reactivex.rxjava3.core.Single<ServiceResponse<AccountIntegration>>
registerCloudIntegration
(Long cloudId, AccountIntegration integration) Creates a newAccountIntegration
and associates it to aCloud
that is being initializedio.reactivex.rxjava3.core.Single<ServiceResponse<NetworkLoadBalancer>>
registerCloudIntegration
(Long cloudId, NetworkLoadBalancer networkLoadBalancer) io.reactivex.rxjava3.core.Single<ServiceResponse<NetworkServer>>
registerCloudIntegration
(Long cloudId, NetworkServer networkServer) Creates a newNetworkServer
and associates it to aCloud
that is being initializedio.reactivex.rxjava3.core.Single<ServiceResponse<StorageServer>>
registerCloudIntegration
(Long cloudId, StorageServer storageServer) Creates a newStorageServer
and associates it to aCloud
that is being initializedio.reactivex.rxjava3.core.Completable
updateAccountIntegrationStatus
(AccountIntegration integration, AccountIntegration.Status status) Used for updating the status of aNetworkPoolServer
integration.io.reactivex.rxjava3.core.Completable
updateAccountIntegrationStatus
(AccountIntegration integration, AccountIntegration.Status status, String message) Used for updating the status of aNetworkPoolServer
integration.
-
Method Details
-
getAccountInventory
MorpheusAccountInventoryService getAccountInventory()Gets the inventory context for interacting withAccountInventory
objects. This is mostly used for Ansible Tower integrations and is not yet really extensible but could be in the future.- Returns:
- the inventory context
-
updateAccountIntegrationStatus
io.reactivex.rxjava3.core.Completable updateAccountIntegrationStatus(AccountIntegration integration, AccountIntegration.Status status, String message) Used for updating the status of aNetworkPoolServer
integration.- Parameters:
integration
- the integration with which we want to update the status.status
- the status of the pool server (ok,syncing,error)message
- the status message for more details. typically only used when status is 'error'.- Returns:
- a Completable for notification or subscription
-
updateAccountIntegrationStatus
io.reactivex.rxjava3.core.Completable updateAccountIntegrationStatus(AccountIntegration integration, AccountIntegration.Status status) Used for updating the status of aNetworkPoolServer
integration.- Parameters:
integration
- the integration with which we want to update the status.status
- the status string of the pool server (ok,syncing,error)- Returns:
- the on complete state
-
registerCloudIntegration
io.reactivex.rxjava3.core.Single<ServiceResponse<AccountIntegration>> registerCloudIntegration(Long cloudId, AccountIntegration integration) Creates a newAccountIntegration
and associates it to aCloud
that is being initialized- Parameters:
cloudId
- ID of theCloud
integration
-AccountIntegration
that needs to be created and associated with the cloud.- Returns:
- ServiceResponse
-
registerCloudIntegration
io.reactivex.rxjava3.core.Single<ServiceResponse<NetworkServer>> registerCloudIntegration(Long cloudId, NetworkServer networkServer) Creates a newNetworkServer
and associates it to aCloud
that is being initialized- Parameters:
cloudId
- ID of theCloud
networkServer
-NetworkServer
that needs to be created and associated with the cloud.- Returns:
- ServiceResponse
-
registerCloudIntegration
io.reactivex.rxjava3.core.Single<ServiceResponse<StorageServer>> registerCloudIntegration(Long cloudId, StorageServer storageServer) Creates a newStorageServer
and associates it to aCloud
that is being initialized- Parameters:
cloudId
- ID of theCloud
storageServer
-StorageServer
that needs to be created and associated with the cloud.- Returns:
- ServiceResponse
-
registerCloudIntegration
io.reactivex.rxjava3.core.Single<ServiceResponse<NetworkLoadBalancer>> registerCloudIntegration(Long cloudId, NetworkLoadBalancer networkLoadBalancer) -
deleteCloudIntegration
io.reactivex.rxjava3.core.Single<ServiceResponse> deleteCloudIntegration(Long cloudId, AccountIntegration integration) Cleanup anAccountIntegration
associated with aCloud
that is being deleted- Parameters:
cloudId
- ID of theCloud
integration
-AccountIntegration
that needs to be deleted. A mock object with just the type instead of the actual id can be passed here to have the actual record looked up by cloud and type alone.- Returns:
- ServiceResponse
-
deleteCloudIntegration
io.reactivex.rxjava3.core.Single<ServiceResponse> deleteCloudIntegration(Long cloudId, NetworkServer networkServer) Cleanup theNetworkServer
associated with aCloud
that is being deleted- Parameters:
cloudId
- ID of theCloud
networkServer
-NetworkServer
that needs to be deleted. A mock object with just the type instead of the actual id can be passed here to have the actual record looked up by cloud and type alone.- Returns:
- ServiceResponse
-
deleteCloudIntegration
io.reactivex.rxjava3.core.Single<ServiceResponse> deleteCloudIntegration(Long cloudId, StorageServer storageServer) Cleanup theStorageServer
associated with aCloud
that is being deleted- Parameters:
cloudId
- ID of theCloud
storageServer
-StorageServer
that needs to be deleted. A mock object with just the type instead of the actual id can be passed here to have the actual record looked up by cloud and type alone.- Returns:
- ServiceResponse
-