Class RegionServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.identity.v3.internal.BaseIdentityServices
-
- org.openstack4j.openstack.identity.v3.internal.RegionServiceImpl
-
- All Implemented Interfaces:
RegionService,RestService
public class RegionServiceImpl extends BaseIdentityServices implements RegionService
Implementation of v3 region service
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description RegionServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Regioncreate(String regionId, String description, String parentRegionId)Create a new regionRegioncreate(Region region)Create a new regionActionResponsedelete(String regionId)Delete a region specified by idRegionget(String regionId)Get details for a region specified by idList<? extends Region>list()List regionsRegionupdate(Region region)Update a region-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
create
public Region create(Region region)
Description copied from interface:RegionServiceCreate a new region- Specified by:
createin interfaceRegionService- Parameters:
region- the region- Returns:
- the newly created region
-
create
public Region create(String regionId, String description, String parentRegionId)
Description copied from interface:RegionServiceCreate a new region- Specified by:
createin interfaceRegionService- Parameters:
regionId- the user-defined region iddescription- the description of the regionparentRegionId- the region id of the parent region- Returns:
- the newly created region
-
get
public Region get(String regionId)
Description copied from interface:RegionServiceGet details for a region specified by id- Specified by:
getin interfaceRegionService- Parameters:
regionId- the region id- Returns:
- the region
-
update
public Region update(Region region)
Description copied from interface:RegionServiceUpdate a region- Specified by:
updatein interfaceRegionService- Parameters:
region- the region set to update- Returns:
- the updated region
-
delete
public ActionResponse delete(String regionId)
Description copied from interface:RegionServiceDelete a region specified by id- Specified by:
deletein interfaceRegionService- Parameters:
regionId- the id of the region- Returns:
- the ActionResponse
-
list
public List<? extends Region> list()
Description copied from interface:RegionServiceList regions- Specified by:
listin interfaceRegionService- Returns:
- a list of regions
-
-