Class PortServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.networking.internal.PortServiceImpl
-
- All Implemented Interfaces:
PortService,RestService
public class PortServiceImpl extends BaseNetworkingServices implements PortService
OpenStack (Neutron) Port based Operations Implementation- Author:
- Jeremy Unruh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description PortServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<? extends Port>create(List<? extends Port> ports)Creates new PortsPortcreate(Port port)Creates a new PortActionResponsedelete(String portId)Delete a Port by IDPortget(String portId)Gets the Port by IDList<? extends Port>list()Lists all Ports authorized by the current TenantList<? extends Port>list(PortListOptions options)Lists all Ports authorized by the current TenantPortupdate(Port port)Updates an existing Port.-
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 Port> list()
Lists all Ports authorized by the current Tenant- Specified by:
listin interfacePortService- Returns:
- the list of ports
-
list
public List<? extends Port> list(PortListOptions options)
Description copied from interface:PortServiceLists all Ports authorized by the current Tenant- Specified by:
listin interfacePortService- Parameters:
options- filtering options- Returns:
- the list of ports
-
get
public Port get(String portId)
Gets the Port by ID- Specified by:
getin interfacePortService- Parameters:
portId- the port identifier- Returns:
- the port or null if not found
-
delete
public ActionResponse delete(String portId)
Delete a Port by ID- Specified by:
deletein interfacePortService- Parameters:
portId- the port identifier to delete- Returns:
- the action response
-
create
public Port create(Port port)
Creates a new Port- Specified by:
createin interfacePortService- Parameters:
port- the port to create- Returns:
- the newly create Port
-
create
public List<? extends Port> create(List<? extends Port> ports)
Creates new Ports- Specified by:
createin interfacePortService- Parameters:
ports- the ports to create- Returns:
- the newly created Ports
-
update
public Port update(Port port)
Updates an existing Port. The Port identifier must be set on the port object to be successful- Specified by:
updatein interfacePortService- Parameters:
port- the port to update- Returns:
- the updated port
-
-