public interface NetworkApi
Modifier and Type | Method and Description |
---|---|
Network |
create(CreateNetworkOptions... options)
Create a new network with the specified type
|
com.google.common.collect.FluentIterable<? extends Network> |
createBulk(CreateNetworkBulkOptions networks)
Create multiple networks
|
boolean |
delete(String id)
Deletes the specified network
|
Network |
get(String id)
Return a specific network
|
PagedIterable<? extends ReferenceWithName> |
list()
Returns the list of all networks currently defined in Neutron for the current tenant.
|
PagedIterable<? extends ReferenceWithName> |
list(PaginationOptions options) |
PagedIterable<? extends Network> |
listInDetail()
Returns all networks currently defined in Neutron for the current tenant.
|
PagedIterable<? extends Network> |
listInDetail(PaginationOptions options) |
boolean |
update(String id,
UpdateNetworkOptions... options)
Update a network
|
@Named(value="network:list") PagedIterable<? extends ReferenceWithName> list()
@Named(value="network:list") PagedIterable<? extends ReferenceWithName> list(PaginationOptions options)
@Named(value="network:list") PagedIterable<? extends Network> listInDetail()
@Named(value="network:list") PagedIterable<? extends Network> listInDetail(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(CreateNetworkOptions... options)
options
- optional arguments@Named(value="network:createBulk") com.google.common.collect.FluentIterable<? extends Network> createBulk(CreateNetworkBulkOptions networks)
networks
- the bulk of networks to create@Named(value="network:update") boolean update(String id, UpdateNetworkOptions... options)
id
- the id of the network to updateoptions
- the attributes to update@Named(value="network:delete") boolean delete(String id)
id
- the id of the network to deleteCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.