public class SubnetServiceImpl extends BaseNetworkingServices implements SubnetService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
SubnetServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Subnet |
create(Subnet subnet)
Creates a new Subnet
|
ActionResponse |
delete(String subnetId)
Delete a Subnet by ID
|
Subnet |
get(String subnetId)
Gets a Subnet by ID
|
List<? extends Subnet> |
list()
List all the Subnet(s) which are authorized by the current Tenant
|
Subnet |
update(String subnetId,
Subnet subnet)
This method is needed if you are updating a subnet without pre-fetching the subnet prior.
|
Subnet |
update(Subnet subnet)
Updates a Subnet.
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public List<? extends Subnet> list()
list
in interface SubnetService
public Subnet get(String subnetId)
get
in interface SubnetService
subnetId
- the subnet identifierpublic ActionResponse delete(String subnetId)
delete
in interface SubnetService
subnetId
- the subnet identifier to deletepublic Subnet create(Subnet subnet)
SubnetService
create
in interface SubnetService
subnet
- the subnet to createpublic Subnet update(Subnet subnet)
SubnetService
Example:
Subnet updateSN = update(existingSubnet.toBuilder().someChange(change).build());
update
in interface SubnetService
subnet
- the subnet to updatepublic Subnet update(String subnetId, Subnet subnet)
SubnetService
update
in interface SubnetService
subnetId
- the subnet identifier to updatesubnet
- the subnet to updateCopyright © 2017. All rights reserved.