Class DomainServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.identity.v3.internal.BaseIdentityServices
-
- org.openstack4j.openstack.identity.v3.internal.DomainServiceImpl
-
- All Implemented Interfaces:
DomainService,RestService
public class DomainServiceImpl extends BaseIdentityServices implements DomainService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description DomainServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Domaincreate(String name, String description, boolean enabled)Creates a new domainDomaincreate(Domain domain)Creates a new domainActionResponsedelete(String domainId)Deletes a domain by idDomainget(String domainId)Get detailed information on a domain by idList<? extends Domain>getByName(String domainName)Get detailed information on a domain by nameList<? extends Domain>list()lists all domains the current token has access toDomainupdate(Domain domain)Updates an existing domain-
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 Domain create(Domain domain)
Description copied from interface:DomainServiceCreates a new domain- Specified by:
createin interfaceDomainService- Parameters:
domain- the Domain to create- Returns:
- the new domain
-
create
public Domain create(String name, String description, boolean enabled)
Description copied from interface:DomainServiceCreates a new domain- Specified by:
createin interfaceDomainService- Parameters:
name- the name of the new domaindescription- the description of the new domainenabled- the enabled status of the new domain- Returns:
- the new domain
-
update
public Domain update(Domain domain)
Description copied from interface:DomainServiceUpdates an existing domain- Specified by:
updatein interfaceDomainService- Parameters:
domain- the domain set to update- Returns:
- the updated domain
-
get
public Domain get(String domainId)
Description copied from interface:DomainServiceGet detailed information on a domain by id- Specified by:
getin interfaceDomainService- Parameters:
domainId- the domain identifier- Returns:
- the domain
-
getByName
public List<? extends Domain> getByName(String domainName)
Description copied from interface:DomainServiceGet detailed information on a domain by name- Specified by:
getByNamein interfaceDomainService- Parameters:
domainName- the domain name- Returns:
- the domain
-
delete
public ActionResponse delete(String domainId)
Description copied from interface:DomainServiceDeletes a domain by id- Specified by:
deletein interfaceDomainService- Parameters:
domainId- the domain id- Returns:
- the ActionResponse
-
list
public List<? extends Domain> list()
Description copied from interface:DomainServicelists all domains the current token has access to- Specified by:
listin interfaceDomainService- Returns:
- list of domains
-
-