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
-
Method Summary
Modifier and TypeMethodDescriptioncreateApprovalRequest
(List instances, Request request, AccountIntegration accountIntegration, Policy policy, Map opts) Optionally provide custom configuration options when creating a newAccountIntegration
monitorApproval
(AccountIntegration accountIntegration) Periodically called to check on approval statusOptionally provide custom configuration options when creating a newPolicy
Methods 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 ofInstance
orApp
orComputeServer
request
- 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
RequestReference
containing 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
-