Package com.morpheusdata.core.providers
Interface ApprovalProvider
- All Superinterfaces:
PluginProvider
- All Known Subinterfaces:
ApprovalProvider
Provides capability to create custom approval policies
- Since:
- 0.15.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.morpheusdata.core.providers.PluginProvider
PluginProvider.EventSubscriberFacet<E extends Event> -
Method Summary
Modifier and TypeMethodDescriptioncreateApprovalRequest(List instances, Request request, AccountIntegration accountIntegration, Policy policy, Map opts) Optionally provide custom configuration options when creating a newAccountIntegrationmonitorApproval(AccountIntegration accountIntegration) Periodically called to check on approval statusOptionally provide custom configuration options when creating a newPolicyMethods inherited from interface com.morpheusdata.core.providers.PluginProvider
getCode, getMorpheus, getName, getPlugin, isPlugin
-
Method Details
-
createApprovalRequest
RequestResponse createApprovalRequest(List instances, Request request, AccountIntegration accountIntegration, Policy policy, Map opts) - Parameters:
instances- List ofInstanceorApporComputeServerrequest- the Morpheus provision RequestaccountIntegration- the integration details. OptionType values are keyed under configMap.cm.pluginpolicy- the approval policy containing a Map config with values from provided optionTypesopts- provision options- Returns:
- a response object with a success status and references to external approval system
-
monitorApproval
Periodically called to check on approval status- Parameters:
accountIntegration- account integration details- Returns:
- Request objects with their corresponding
RequestReferencecontaining approval status
-
integrationOptionTypes
List<OptionType> integrationOptionTypes()Optionally provide custom configuration options when creating a newAccountIntegration- Returns:
- a List of OptionType
-
policyOptionTypes
List<OptionType> policyOptionTypes()Optionally provide custom configuration options when creating a newPolicy- Returns:
- a List of OptionType
-