Package org.openstack4j.api.identity.v3
Interface DomainService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
DomainServiceImpl
public interface DomainService extends RestService
Identity V3 Domain Service
-
-
Method Summary
All Methods Instance Methods Abstract 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
-
-
-
Method Detail
-
create
Domain create(Domain domain)
Creates a new domain- Parameters:
domain- the Domain to create- Returns:
- the new domain
-
create
Domain create(String name, String description, boolean enabled)
Creates a new domain- 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
Domain update(Domain domain)
Updates an existing domain- Parameters:
domain- the domain set to update- Returns:
- the updated domain
-
get
Domain get(String domainId)
Get detailed information on a domain by id- Parameters:
domainId- the domain identifier- Returns:
- the domain
-
getByName
List<? extends Domain> getByName(String domainName)
Get detailed information on a domain by name- Parameters:
domainName- the domain name- Returns:
- the domain
-
delete
ActionResponse delete(String domainId)
Deletes a domain by id- Parameters:
domainId- the domain id- Returns:
- the ActionResponse
-
-