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 Details

    • getAccountInventory

      MorpheusAccountInventoryService getAccountInventory()
      Gets the inventory context for interacting with AccountInventory 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 a NetworkPoolServer 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 a NetworkPoolServer 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 new AccountIntegration and associates it to a Cloud that is being initialized
      Parameters:
      cloudId - ID of the Cloud
      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 new NetworkServer and associates it to a Cloud that is being initialized
      Parameters:
      cloudId - ID of the Cloud
      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 new StorageServer and associates it to a Cloud that is being initialized
      Parameters:
      cloudId - ID of the Cloud
      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 an AccountIntegration associated with a Cloud that is being deleted
      Parameters:
      cloudId - ID of the Cloud
      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 the NetworkServer associated with a Cloud that is being deleted
      Parameters:
      cloudId - ID of the Cloud
      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 the StorageServer associated with a Cloud that is being deleted
      Parameters:
      cloudId - ID of the Cloud
      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