public class PortServiceImpl extends BaseNetworkingServices implements PortService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
PortServiceImpl() |
Modifier and Type | Method and Description |
---|---|
List<? extends Port> |
create(List<? extends Port> ports)
Creates new Ports
|
Port |
create(Port port)
Creates a new Port
|
ActionResponse |
delete(String portId)
Delete a Port by ID
|
Port |
get(String portId)
Gets the Port by ID
|
List<? extends Port> |
list()
Lists all Ports authorized by the current Tenant
|
List<? extends Port> |
list(PortListOptions options)
Lists all Ports authorized by the current Tenant
|
Port |
update(Port port)
Updates an existing Port.
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends Port> list()
list
in interface PortService
public List<? extends Port> list(PortListOptions options)
PortService
list
in interface PortService
options
- filtering optionspublic Port get(String portId)
get
in interface PortService
portId
- the port identifierpublic ActionResponse delete(String portId)
delete
in interface PortService
portId
- the port identifier to deletepublic Port create(Port port)
create
in interface PortService
port
- the port to createpublic List<? extends Port> create(List<? extends Port> ports)
create
in interface PortService
ports
- the ports to createpublic Port update(Port port)
update
in interface PortService
port
- the port to updateCopyright © 2017. All rights reserved.