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 anAccountIntegrationassociated with aCloudthat is being deletedio.reactivex.rxjava3.core.Single<ServiceResponse>deleteCloudIntegration(Long cloudId, NetworkServer networkServer) Cleanup theNetworkServerassociated with aCloudthat is being deletedio.reactivex.rxjava3.core.Single<ServiceResponse>deleteCloudIntegration(Long cloudId, StorageServer storageServer) Cleanup theStorageServerassociated with aCloudthat is being deletedGets the inventory context for interacting withAccountInventoryobjects.io.reactivex.rxjava3.core.Single<ServiceResponse<AccountIntegration>>registerCloudIntegration(Long cloudId, AccountIntegration integration) Creates a newAccountIntegrationand associates it to aCloudthat 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 newNetworkServerand associates it to aCloudthat is being initializedio.reactivex.rxjava3.core.Single<ServiceResponse<StorageServer>>registerCloudIntegration(Long cloudId, StorageServer storageServer) Creates a newStorageServerand associates it to aCloudthat is being initializedio.reactivex.rxjava3.core.CompletableupdateAccountIntegrationStatus(AccountIntegration integration, AccountIntegration.Status status) Used for updating the status of aNetworkPoolServerintegration.io.reactivex.rxjava3.core.CompletableupdateAccountIntegrationStatus(AccountIntegration integration, AccountIntegration.Status status, String message) Used for updating the status of aNetworkPoolServerintegration.
-
Method Details
-
getAccountInventory
MorpheusAccountInventoryService getAccountInventory()Gets the inventory context for interacting withAccountInventoryobjects. 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 aNetworkPoolServerintegration.- 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 aNetworkPoolServerintegration.- 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 newAccountIntegrationand associates it to aCloudthat is being initialized- Parameters:
cloudId- ID of theCloudintegration-AccountIntegrationthat 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 newNetworkServerand associates it to aCloudthat is being initialized- Parameters:
cloudId- ID of theCloudnetworkServer-NetworkServerthat 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 newStorageServerand associates it to aCloudthat is being initialized- Parameters:
cloudId- ID of theCloudstorageServer-StorageServerthat 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 anAccountIntegrationassociated with aCloudthat is being deleted- Parameters:
cloudId- ID of theCloudintegration-AccountIntegrationthat 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 theNetworkServerassociated with aCloudthat is being deleted- Parameters:
cloudId- ID of theCloudnetworkServer-NetworkServerthat 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 theStorageServerassociated with aCloudthat is being deleted- Parameters:
cloudId- ID of theCloudstorageServer-StorageServerthat 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
-