Class PortForwardingServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.networking.internal.ext.PortForwardingServiceImpl
-
- All Implemented Interfaces:
PortForwardingService,RestService
public class PortForwardingServiceImpl extends BaseNetworkingServices implements PortForwardingService
Base Networking Operations Implementation is responsible for insuring the proper endpoint is used for all extending operation APIs
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description PortForwardingServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortForwardingcreate(String floatingIpId, PortForwarding portForwarding)Creates a floating IP port forwardingActionResponsedelete(String floatingIpId, String id)Deletes floating IP port forwarding by id.PortForwardingget(String floatingIpId, String id)Gets a floating IP port forwarding by id.List<? extends PortForwarding>list(String floatingIpId)Returns list of floating IP port forwarding.List<? extends PortForwarding>list(String floatingIpId, Map<String,String> filteringParams)Returns list of floating IP port forwarding filtered by parameters.-
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 PortForwarding> list(String floatingIpId)
Returns list of floating IP port forwarding.- Specified by:
listin interfacePortForwardingService- Parameters:
floatingIpId- the floating ip identifier- Returns:
- List of port forwarding
-
list
public List<? extends PortForwarding> list(String floatingIpId, Map<String,String> filteringParams)
Returns list of floating IP port forwarding filtered by parameters.- Specified by:
listin interfacePortForwardingService- Parameters:
floatingIpId- the floating ip identifierfilteringParams- map (name, value) of filtering parameters- Returns:
- list of floating IP port forwarding
-
get
public PortForwarding get(String floatingIpId, String id)
Gets a floating IP port forwarding by id.- Specified by:
getin interfacePortForwardingService- Parameters:
floatingIpId- the floating ip identifierid- the port_forwarding identifier- Returns:
- a floating IP port forwarding
-
delete
public ActionResponse delete(String floatingIpId, String id)
Deletes floating IP port forwarding by id.- Specified by:
deletein interfacePortForwardingService- Parameters:
floatingIpId- the floating ip identifierid- id the port forwarding identifier- Returns:
- the action response
-
create
public PortForwarding create(String floatingIpId, PortForwarding portForwarding)
Creates a floating IP port forwarding- Specified by:
createin interfacePortForwardingService- Parameters:
floatingIpId- the floating ip identifierportForwarding- the floating IP port forwarding- Returns:
- the floating IP port forwarding
-
-