public class TenantServiceImpl extends BaseOpenStackService implements TenantService
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
TenantServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Tenant |
create(Tenant tenant)
Creates a new Tenant
|
ActionResponse |
delete(String tenantId)
Deletes the specified tenant by ID
|
Tenant |
get(String tenantId)
Gets detailed information about a specified tenant by ID
|
Tenant |
getByName(String tenantName)
Gets detailed information about a specified tenant by name
|
List<? extends Tenant> |
list()
Lists tenants to which the specified token has access.
|
List<? extends TenantUser> |
listUsers(String tenantId)
Returns a list of users associated by the
tenantId |
Tenant |
update(Tenant tenant)
Updates the tenant (ID must be set within the inbound tenant)
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic List<? extends Tenant> list()
TenantServicelist in interface TenantServicepublic Tenant get(String tenantId)
TenantServiceget in interface TenantServicetenantId - the tenant idpublic Tenant getByName(String tenantName)
TenantServicegetByName in interface TenantServicetenantName - the tenant namepublic Tenant create(Tenant tenant)
TenantServicecreate in interface TenantServicetenant - the tenant to createpublic ActionResponse delete(String tenantId)
TenantServicedelete in interface TenantServicetenantId - the tenant idpublic Tenant update(Tenant tenant)
TenantServiceupdate in interface TenantServicetenant - the tenantpublic List<? extends TenantUser> listUsers(String tenantId)
TenantServicetenantIdlistUsers in interface TenantServicetenantId - the tenant id to query users forCopyright © 2017. All rights reserved.