Class FirewallServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.networking.internal.ext.FirewallServiceImpl
-
- All Implemented Interfaces:
FirewallService,RestService
public class FirewallServiceImpl extends BaseNetworkingServices implements FirewallService
Networking (Neutron) FwaaS Firewall 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 FirewallServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Firewallcreate(Firewall firewall)Create a FirewallActionResponsedelete(String firewallId)Delete the specified Firewall by IDFirewallget(String firewallId)Get the specified Firewall by IDList<? extends Firewall>list()List all Firewall(s) that the current tenant has access to.List<? extends Firewall>list(Map<String,String> filteringParams)Returns list of Firewall(s) filtered by parameters.Firewallupdate(String firewallId, FirewallUpdate firewallUpdate)Update a Firewall-
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 Firewall> list()
List all Firewall(s) that the current tenant has access to.- Specified by:
listin interfaceFirewallService- Returns:
- list of all Firewall(s)
-
list
public List<? extends Firewall> list(Map<String,String> filteringParams)
Returns list of Firewall(s) filtered by parameters.- Specified by:
listin interfaceFirewallService- Parameters:
filteringParams- map (name, value) of filtering parameters- Returns:
- filtered list of Firewall(s)
-
get
public Firewall get(String firewallId)
Get the specified Firewall by ID- Specified by:
getin interfaceFirewallService- Parameters:
firewallId- the Firewall identifier- Returns:
- the Firewall or null if not found
-
delete
public ActionResponse delete(String firewallId)
Delete the specified Firewall by ID- Specified by:
deletein interfaceFirewallService- Parameters:
firewallId- the Firewall identifier- Returns:
- the action response
-
create
public Firewall create(Firewall firewall)
Create a Firewall- Specified by:
createin interfaceFirewallService- Returns:
- Firewall
-
update
public Firewall update(String firewallId, FirewallUpdate firewallUpdate)
Update a Firewall- Specified by:
updatein interfaceFirewallService- Parameters:
firewallId- the Firewall identifierfirewallUpdate- FirewallUpdate- Returns:
- Firewall
-
-