Class FirewallPolicyServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.networking.internal.ext.FirewallPolicyServiceImpl
-
- All Implemented Interfaces:
FirewallPolicyService,RestService
public class FirewallPolicyServiceImpl extends BaseNetworkingServices implements FirewallPolicyService
Networking (Neutron) FwaaS FirewallPolicy Extension API- Author:
- Vishvesh Deshmukh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description FirewallPolicyServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FirewallPolicycreate(FirewallPolicy firewallPolicy)Create a FirewallPolicyActionResponsedelete(String firewallPolicyId)Delete the specified FirewallPolicy by IDFirewallPolicyget(String firewallPolicyId)Get the specified FirewallPolicy by IDFirewallPolicyinsertFirewallRuleInPolicy(String firewallPolicyId, String firewallRuleId, FirewallRuleStrategy.RuleInsertStrategyType type, String insertAfterOrBeforeRuleId)Inserts a firewall rule in a firewall policy relative to the position of other rules.List<? extends FirewallPolicy>list()List all FirewallPolicy(s) that the current tenant has access to.List<? extends FirewallPolicy>list(Map<String,String> filteringParams)Returns list of FirewallPolicy(s) filtered by parameters.FirewallPolicyremoveFirewallRuleFromPolicy(String firewallPolicyId, String firewallRuleId)Removes a firewall rule from a firewall policy.FirewallPolicyupdate(String firewallPolicyId, FirewallPolicyUpdate firewallPolicyUpdate)Update a FirewallPolicy-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends FirewallPolicy> list()
List all FirewallPolicy(s) that the current tenant has access to.- Specified by:
listin interfaceFirewallPolicyService- Returns:
- list of all FirewallPolicy(s)
-
list
public List<? extends FirewallPolicy> list(Map<String,String> filteringParams)
Returns list of FirewallPolicy(s) filtered by parameters.- Specified by:
listin interfaceFirewallPolicyService- Parameters:
filteringParams- map (name, value) of filtering parameters- Returns:
- filtered list of FirewallPolicy(s)
-
get
public FirewallPolicy get(String firewallPolicyId)
Get the specified FirewallPolicy by ID- Specified by:
getin interfaceFirewallPolicyService- Parameters:
firewallPolicyId- the FirewallPolicy identifier- Returns:
- the FirewallPolicy or null if not found
-
delete
public ActionResponse delete(String firewallPolicyId)
Delete the specified FirewallPolicy by ID- Specified by:
deletein interfaceFirewallPolicyService- Parameters:
firewallPolicyId- the FirewallPolicy identifier- Returns:
- the action response
-
create
public FirewallPolicy create(FirewallPolicy firewallPolicy)
Create a FirewallPolicy- Specified by:
createin interfaceFirewallPolicyService- Returns:
- FirewallPolicy
-
update
public FirewallPolicy update(String firewallPolicyId, FirewallPolicyUpdate firewallPolicyUpdate)
Update a FirewallPolicy- Specified by:
updatein interfaceFirewallPolicyService- Parameters:
firewallPolicyId- the FirewallPolicy identifierfirewallPolicyUpdate- FirewallUpdate- Returns:
- FirewallPolicy
-
insertFirewallRuleInPolicy
public FirewallPolicy insertFirewallRuleInPolicy(String firewallPolicyId, String firewallRuleId, FirewallRuleStrategy.RuleInsertStrategyType type, String insertAfterOrBeforeRuleId)
Inserts a firewall rule in a firewall policy relative to the position of other rules.- Specified by:
insertFirewallRuleInPolicyin interfaceFirewallPolicyService- Parameters:
firewallPolicyId- rule inserted in FirewallPolicyfirewallRuleId- rule to be insertedtype-FirewallRuleStrategy.RuleInsertStrategyTypeinsertAfterOrBeforeRuleId- rule id where the new firewallRule will be inserted/switched from- Returns:
- FirewallPolicy
-
removeFirewallRuleFromPolicy
public FirewallPolicy removeFirewallRuleFromPolicy(String firewallPolicyId, String firewallRuleId)
Removes a firewall rule from a firewall policy.- Specified by:
removeFirewallRuleFromPolicyin interfaceFirewallPolicyServicefirewallRuleId- rule to be deleted.- Returns:
- FirewallPolicy
-
-