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, uripublic List<? extends Subnet> list()
list in interface SubnetServicepublic Subnet get(String subnetId)
get in interface SubnetServicesubnetId - the subnet identifierpublic ActionResponse delete(String subnetId)
delete in interface SubnetServicesubnetId - the subnet identifier to deletepublic Subnet create(Subnet subnet)
SubnetServicecreate in interface SubnetServicesubnet - the subnet to createpublic Subnet update(Subnet subnet)
SubnetService
Example:
Subnet updateSN = update(existingSubnet.toBuilder().someChange(change).build());
update in interface SubnetServicesubnet - the subnet to updatepublic Subnet update(String subnetId, Subnet subnet)
SubnetServiceupdate in interface SubnetServicesubnetId - the subnet identifier to updatesubnet - the subnet to updateCopyright © 2017. All rights reserved.