public class DomainServiceImpl extends BaseOpenStackService implements DomainService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
DomainServiceImpl() |
Modifier and Type | Method and Description |
---|---|
Domain |
create(Domain domain)
Creates a new domain
|
Domain |
create(String name,
String description,
boolean enabled)
Creates a new domain
|
ActionResponse |
delete(String domainId)
Deletes a domain by id
|
Domain |
get(String domainId)
Get detailed information on a domain by id
|
List<? extends Domain> |
getByName(String domainName)
Get detailed information on a domain by name
|
List<? extends Domain> |
list()
lists all domains the current token has access to
|
Domain |
update(Domain domain)
Updates an existing domain
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public Domain create(Domain domain)
DomainService
create
in interface DomainService
domain
- the Domain to createpublic Domain create(String name, String description, boolean enabled)
DomainService
create
in interface DomainService
name
- the name of the new domaindescription
- the description of the new domainenabled
- the enabled status of the new domainpublic Domain update(Domain domain)
DomainService
update
in interface DomainService
domain
- the domain set to updatepublic Domain get(String domainId)
DomainService
get
in interface DomainService
domainId
- the domain identifierpublic List<? extends Domain> getByName(String domainName)
DomainService
getByName
in interface DomainService
domainName
- the domain namepublic ActionResponse delete(String domainId)
DomainService
delete
in interface DomainService
domainId
- the domain idpublic List<? extends Domain> list()
DomainService
list
in interface DomainService
Copyright © 2017. All rights reserved.