Class FirewallRuleServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.networking.internal.ext.FirewallRuleServiceImpl
-
- All Implemented Interfaces:
FirewallRuleService,RestService
public class FirewallRuleServiceImpl extends BaseNetworkingServices implements FirewallRuleService
Networking (Neutron) FwaaS FirewallRule Rule 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 FirewallRuleServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FirewallRulecreate(FirewallRule firewall)Create a FirewallRuleActionResponsedelete(String firewallRuleId)Delete the specified FirewallRule by IDFirewallRuleget(String firewallRuleId)Get the specified FirewallRule by IDList<? extends FirewallRule>list()List all FirewallRules(s) that the current tenant has access to.List<? extends FirewallRule>list(Map<String,String> filteringParams)Returns list of FirewallRules(s) filtered by parameters.FirewallRuleupdate(String firewallRuleId, FirewallRuleUpdate firewallRuleUpdate)Update a FirewallRule-
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 FirewallRule> list()
List all FirewallRules(s) that the current tenant has access to.- Specified by:
listin interfaceFirewallRuleService- Returns:
- list of all FirewallRules(s)
-
list
public List<? extends FirewallRule> list(Map<String,String> filteringParams)
Returns list of FirewallRules(s) filtered by parameters.- Specified by:
listin interfaceFirewallRuleService- Parameters:
filteringParams- map (name, value) of filtering parameters- Returns:
- filtered list of FirewallRules(s)
-
get
public FirewallRule get(String firewallRuleId)
Get the specified FirewallRule by ID- Specified by:
getin interfaceFirewallRuleService- Parameters:
firewallRuleId- the FirewallRule identifier- Returns:
- the FirewallRule or null if not found
-
delete
public ActionResponse delete(String firewallRuleId)
Delete the specified FirewallRule by ID- Specified by:
deletein interfaceFirewallRuleService- Parameters:
firewallRuleId- the FirewallRule identifier- Returns:
- the action response
-
create
public FirewallRule create(FirewallRule firewall)
Create a FirewallRule- Specified by:
createin interfaceFirewallRuleService- Returns:
- FirewallRule
-
update
public FirewallRule update(String firewallRuleId, FirewallRuleUpdate firewallRuleUpdate)
Update a FirewallRule- Specified by:
updatein interfaceFirewallRuleService- Parameters:
firewallRuleId- the FirewallRule identifierfirewallRuleUpdate- firewallRuleUpdate- Returns:
- FirewallRule
-
-