public class RegionServiceImpl extends BaseOpenStackService implements RegionService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
RegionServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Region |
create(Region region)
Create a new region
|
Region |
create(String regionId,
String description,
String parentRegionId)
Create a new region
|
ActionResponse |
delete(String regionId)
Delete a region specified by id
|
Region |
get(String regionId)
Get details for a region specified by id
|
List<? extends Region> |
list()
List regions
|
Region |
update(Region region)
Update a region
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public Region create(Region region)
RegionService
create
in interface RegionService
region
- the regionpublic Region create(String regionId, String description, String parentRegionId)
RegionService
create
in interface RegionService
regionId
- the user-defined region iddescription
- the description of the regionparentRegionId
- the region id of the parent regionpublic Region get(String regionId)
RegionService
get
in interface RegionService
regionId
- the region idpublic Region update(Region region)
RegionService
update
in interface RegionService
region
- the region set to updatepublic ActionResponse delete(String regionId)
RegionService
delete
in interface RegionService
regionId
- the id of the regionpublic List<? extends Region> list()
RegionService
list
in interface RegionService
Copyright © 2017. All rights reserved.