public interface SubnetApi
Modifier and Type | Method and Description |
---|---|
Subnet |
create(String networkId,
Integer ipVersion,
String cidr,
CreateSubnetOptions... options)
Create a subnet within a specified network
|
com.google.common.collect.FluentIterable<? extends Subnet> |
createBulk(CreateSubnetBulkOptions subnets)
Create multiple subnets
|
boolean |
delete(String id)
Delete a subnet
|
Subnet |
get(String id)
Returns the specific Subnet.
|
PagedIterable<? extends ReferenceWithName> |
list()
Returns the list of all subnets currently defined in Neutron for the current tenant.
|
PagedIterable<? extends ReferenceWithName> |
list(PaginationOptions options) |
PagedIterable<? extends Subnet> |
listInDetail()
Returns all subnets currently defined in Neutron for the current tenant.
|
PagedIterable<? extends Subnet> |
listInDetail(PaginationOptions options) |
boolean |
update(String id,
UpdateSubnetOptions... options)
Update a subnet
|
@Named(value="subnet:list") PagedIterable<? extends ReferenceWithName> list()
@Named(value="subnet:list") PagedIterable<? extends ReferenceWithName> list(PaginationOptions options)
@Named(value="subnet:list") PagedIterable<? extends Subnet> listInDetail()
@Named(value="subnet:list") PagedIterable<? extends Subnet> listInDetail(PaginationOptions options)
@Named(value="subnet:get") @Nullable Subnet get(String id)
id
- the id of the subnet to return@Named(value="subnet:create") Subnet create(String networkId, Integer ipVersion, String cidr, CreateSubnetOptions... options)
networkId
- the id of the network to associate the subnet withipVersion
- the ip version of this subnetcidr
- the cidr for this subnetoptions
- optional arugments@Named(value="subnet:createBulk") com.google.common.collect.FluentIterable<? extends Subnet> createBulk(CreateSubnetBulkOptions subnets)
subnets
- the bulk of subnets to create@Named(value="subnet:update") boolean update(String id, UpdateSubnetOptions... options)
id
- the id of the subnet to updateoptions
- the attributes to update@Named(value="subnet:delete") boolean delete(String id)
id
- the id of the subnet to deleteCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.