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 NetFloatingIP
associateToPort(String fipId, String portId)
Associates a Floating IP to a Port.NetFloatingIP
create(NetFloatingIP floatingIp)
Creates a new Floating IPActionResponse
delete(String fipId)
Deletes NetFloatingIP by id.NetFloatingIP
disassociateFromPort(String fipId)
Disassociate from port.NetFloatingIP
get(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.PortForwardingService
portForwarding()
-
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:
list
in 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:
list
in interfaceNetFloatingIPService
- Parameters:
filteringParams
- map (name, value) of filtering parameters
-
get
public NetFloatingIP get(String fipId)
Gets a NetFloatingIP by id.- Specified by:
get
in interfaceNetFloatingIPService
- Parameters:
fipId
- the floating-ip identifier.- Returns:
- the NetFloatingIP
-
delete
public ActionResponse delete(String fipId)
Deletes NetFloatingIP by id.- Specified by:
delete
in interfaceNetFloatingIPService
- Parameters:
fipId
- the floating-ip identifier.- Returns:
- the action response
-
create
public NetFloatingIP create(NetFloatingIP floatingIp)
Creates a new Floating IP- Specified by:
create
in 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:
associateToPort
in 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:
disassociateFromPort
in interfaceNetFloatingIPService
- Parameters:
fipId
- the floating-ip identifier.- Returns:
- the net floating ip
-
portForwarding
public PortForwardingService portForwarding()
- Specified by:
portForwarding
in interfaceNetFloatingIPService
- Returns:
- the port forwarding Service API
-
-