@Beta
public interface NetworkApi
Modifier and Type | Method and Description |
---|---|
Network |
create(Network.CreateNetwork network)
Create a new network with the specified type
|
com.google.common.collect.FluentIterable<Network> |
createBulk(com.google.common.collect.ImmutableList<Network.CreateNetwork> networks)
Create multiple networks
|
boolean |
delete(String id)
Deletes the specified network
|
Network |
get(String id)
Return a specific network
|
PagedIterable<Network> |
list()
Returns all networks currently defined in Neutron for the current tenant.
|
Networks |
list(PaginationOptions options) |
Network |
update(String id,
Network.UpdateNetwork network)
Update a network
|
@Named(value="network:list") PagedIterable<Network> list()
@Named(value="network:list") Networks list(PaginationOptions options)
@Named(value="network:get") @Nullable Network get(String id)
id
- the id of the network to return@Named(value="network:create") Network create(Network.CreateNetwork network)
network
- Describes the network to be created.@Named(value="network:createBulk") com.google.common.collect.FluentIterable<Network> createBulk(com.google.common.collect.ImmutableList<Network.CreateNetwork> networks)
networks
- the bulk of networks to create@Named(value="network:update") Network update(String id, Network.UpdateNetwork network)
id
- the id of the network to updatenetwork
- the network to update@Named(value="network:delete") boolean delete(String id)
id
- the id of the network to deleteCopyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.