Package com.morpheusdata.core.providers
Interface SecurityGroupProvider
- All Superinterfaces:
PluginProvider
-
Method Summary
Modifier and TypeMethodDescriptioncreateSecurityGroup
(SecurityGroup securityGroup, Map opts) Creates aSecurityGroupLocation
from the submittedSecurityGroup
createSecurityGroupRule
(SecurityGroupLocation securityGroupLocation, SecurityGroupRule securityGroupRule) Creates aSecurityGroupRuleLocation
from the submittedSecurityGroupRule
deleteSecurityGroup
(SecurityGroup securityGroup) Delete aSecurityGroup
deleteSecurityGroupLocation
(SecurityGroupLocation securityGroupLocation) Delete aSecurityGroupLocation
deleteSecurityGroupRule
(SecurityGroupLocation securityGroupLocation, SecurityGroupRule rule) Delete aSecurityGroupRule
prepareSecurityGroup
(SecurityGroup securityGroup, Map opts) Prepare theSecurityGroup
information before validate, create, and update.prepareSecurityGroupRule
(SecurityGroupRule securityGroupRule, Map opts) Prepare the security group rule before validate, create, and update.updateSecurityGroup
(SecurityGroup securityGroup, Map opts) Update the security groupupdateSecurityGroupRule
(SecurityGroupLocation securityGroupLocation, SecurityGroupRule originalRule, SecurityGroupRule updatedRule) Update the security group rulevalidateSecurityGroup
(SecurityGroup securityGroup, Map opts) Validates the submittedSecurityGroup
information.validateSecurityGroupRule
(SecurityGroupRule securityGroupRule) Validate the submitted security group rule object.Methods inherited from interface com.morpheusdata.core.providers.PluginProvider
getCode, getMorpheus, getName, getPlugin, isPlugin
-
Method Details
-
prepareSecurityGroup
Prepare theSecurityGroup
information before validate, create, and update. If aServiceResponse
is not marked as successful the parent process will be terminated and the results may be presented to the user.- Parameters:
securityGroup
- SecurityGroup informationopts
- additional configuration options including any form data- Returns:
- ServiceResponse
-
validateSecurityGroup
Validates the submittedSecurityGroup
information. If aServiceResponse
is not marked as successful the validation results will be bubbled up to the user.- Parameters:
securityGroup
- SecurityGroup informationopts
- additional configuration options- Returns:
- ServiceResponse
-
createSecurityGroup
Creates aSecurityGroupLocation
from the submittedSecurityGroup
- Parameters:
securityGroup
- SecurityGroup objectopts
- additional configuration options- Returns:
- ServiceResponse containing the resulting
SecurityGroupLocation
including the information (externalId, etc.) which identifies the security group within the current context (usually a cloud).
-
updateSecurityGroup
Update the security group- Parameters:
securityGroup
- SecurityGroup objectopts
- additional configuration options- Returns:
- ServiceResponse
-
deleteSecurityGroup
Delete aSecurityGroup
- Parameters:
securityGroup
- SecurityGroup object- Returns:
- ServiceResponse
-
deleteSecurityGroupLocation
Delete aSecurityGroupLocation
- Parameters:
securityGroupLocation
- SecurityGroupLocation information- Returns:
- ServiceResponse
-
prepareSecurityGroupRule
ServiceResponse<SecurityGroupRule> prepareSecurityGroupRule(SecurityGroupRule securityGroupRule, Map opts) Prepare the security group rule before validate, create, and update. If aServiceResponse
is not marked as successful the parent process will be terminated and the results may be presented to the user.- Parameters:
securityGroupRule
- SecurityGroupRule objectopts
- additional configuration options including all form data- Returns:
- ServiceResponse
-
validateSecurityGroupRule
Validate the submitted security group rule object. If aServiceResponse
is not marked as successful the validation results in the errors and msg properties will be surfaced to the user interface.- Parameters:
securityGroupRule
- SecurityGroupRule object- Returns:
- ServiceResponse
-
createSecurityGroupRule
ServiceResponse<SecurityGroupRuleLocation> createSecurityGroupRule(SecurityGroupLocation securityGroupLocation, SecurityGroupRule securityGroupRule) Creates aSecurityGroupRuleLocation
from the submittedSecurityGroupRule
- Parameters:
securityGroupRule
- SecurityGroupRule object- Returns:
- ServiceResponse containing the resulting
SecurityGroupRuleLocation
including the information (externalId, etc.) which identifies the security group rule within the current context (usually a cloud).
-
updateSecurityGroupRule
ServiceResponse<SecurityGroupRule> updateSecurityGroupRule(SecurityGroupLocation securityGroupLocation, SecurityGroupRule originalRule, SecurityGroupRule updatedRule) Update the security group rule- Parameters:
securityGroupLocation
- theSecurityGroupLocation
originalRule
- the rule before any updates were applied.updatedRule
- the rule with all updates applied- Returns:
ServiceResponse
-
deleteSecurityGroupRule
ServiceResponse deleteSecurityGroupRule(SecurityGroupLocation securityGroupLocation, SecurityGroupRule rule) Delete aSecurityGroupRule
- Parameters:
securityGroupLocation
- SecurityGroupLocation objectrule
- SecurityGroupRule to be deleted- Returns:
- ServiceResponse
-