Class NetworkServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.networking.internal.NetworkServiceImpl
-
- All Implemented Interfaces:
NetworkService,RestService
public class NetworkServiceImpl extends BaseNetworkingServices implements NetworkService
OpenStack (Neutron) Network based Operations- 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 NetworkServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Networkcreate(Network network)Creates a new NetworkActionResponsedelete(String networkId)Deletes a specified network and its associated resourcesNetworkget(String networkId)Gets the network by IDList<? extends Network>list()Lists the networks to which the current authorized tenant has accessList<? extends Network>list(Map<String,String> filteringParams)Networkupdate(String networkId, NetworkUpdate network)Updates a network associated by the specifiednetworkId-
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 Network> list(Map<String,String> filteringParams)
- Specified by:
listin interfaceNetworkService- Parameters:
filteringParams- map (name, value) of filtering parameters- Returns:
- List of Network
-
list
public List<? extends Network> list()
Lists the networks to which the current authorized tenant has access- Specified by:
listin interfaceNetworkService- Returns:
- List of Network
-
delete
public ActionResponse delete(String networkId)
Deletes a specified network and its associated resources- Specified by:
deletein interfaceNetworkService- Parameters:
networkId- the network identifier- Returns:
- the action response
-
get
public Network get(String networkId)
Description copied from interface:NetworkServiceGets the network by ID- Specified by:
getin interfaceNetworkService- Parameters:
networkId- the network identifier- Returns:
- the Network or null if not found
-
create
public Network create(Network network)
Description copied from interface:NetworkServiceCreates a new Network- Specified by:
createin interfaceNetworkService- Parameters:
network- the network to create- Returns:
- the newly created network
-
update
public Network update(String networkId, NetworkUpdate network)
Description copied from interface:NetworkServiceUpdates a network associated by the specifiednetworkId- Specified by:
updatein interfaceNetworkService- Parameters:
networkId- the network identifiernetwork- the network options to update (seeBuilders.networkUpdate()- Returns:
- the updated network
-
-