Class FloatingIPServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.networking.internal.FloatingIPServiceImpl
-
- All Implemented Interfaces:
NetFloatingIPService,RestService
public class FloatingIPServiceImpl extends BaseNetworkingServices implements NetFloatingIPService
FloatingIPService implementation that provides Neutron Floating-IP based Service Operations.- Author:
- Nathan Anderson
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description FloatingIPServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetFloatingIPassociateToPort(String fipId, String portId)Associates a Floating IP to a Port.NetFloatingIPcreate(NetFloatingIP floatingIp)Creates a new Floating IPActionResponsedelete(String fipId)Deletes NetFloatingIP by id.NetFloatingIPdisassociateFromPort(String fipId)Disassociate from port.NetFloatingIPget(String fipId)Gets a NetFloatingIP by id.List<? extends NetFloatingIP>list()Returns list of floating IPs.List<? extends NetFloatingIP>list(Map<String,String> filteringParams)Returns list of floating IPs filtered by parameters.PortForwardingServiceportForwarding()-
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 NetFloatingIP> list()
Returns list of floating IPs.- Specified by:
listin interfaceNetFloatingIPService- Returns:
- List of NetFloatingIPs.
-
list
public List<? extends NetFloatingIP> list(Map<String,String> filteringParams)
Returns list of floating IPs filtered by parameters.- Specified by:
listin interfaceNetFloatingIPService- Parameters:
filteringParams- map (name, value) of filtering parameters
-
get
public NetFloatingIP get(String fipId)
Gets a NetFloatingIP by id.- Specified by:
getin interfaceNetFloatingIPService- Parameters:
fipId- the floating-ip identifier.- Returns:
- the NetFloatingIP
-
delete
public ActionResponse delete(String fipId)
Deletes NetFloatingIP by id.- Specified by:
deletein interfaceNetFloatingIPService- Parameters:
fipId- the floating-ip identifier.- Returns:
- the action response
-
create
public NetFloatingIP create(NetFloatingIP floatingIp)
Creates a new Floating IP- Specified by:
createin interfaceNetFloatingIPService- Parameters:
floatingIp- the floating ip- Returns:
- the net floating ip
-
associateToPort
public NetFloatingIP associateToPort(String fipId, String portId)
Associates a Floating IP to a Port.- Specified by:
associateToPortin interfaceNetFloatingIPService- Parameters:
fipId- the floating-ip identifier.portId- Id of the port to associate to.- Returns:
- the net floating ip
-
disassociateFromPort
public NetFloatingIP disassociateFromPort(String fipId)
Disassociate from port.- Specified by:
disassociateFromPortin interfaceNetFloatingIPService- Parameters:
fipId- the floating-ip identifier.- Returns:
- the net floating ip
-
portForwarding
public PortForwardingService portForwarding()
- Specified by:
portForwardingin interfaceNetFloatingIPService- Returns:
- the port forwarding Service API
-
-