public interface SubnetService extends RestService
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.
|
List<? extends Subnet> list()
Subnet get(String subnetId)
subnetId
- the subnet identifierActionResponse delete(String subnetId)
subnetId
- the subnet identifier to deleteSubnet create(Subnet subnet)
subnet
- the subnet to createSubnet update(Subnet subnet)
Example:
Subnet updateSN = update(existingSubnet.toBuilder().someChange(change).build());
subnet
- the subnet to updateSubnet update(String subnetId, Subnet subnet)
subnetId
- the subnet identifier to updatesubnet
- the subnet to updateCopyright © 2017. All rights reserved.