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, uri
public List<? extends Tenant> list()
TenantService
list
in interface TenantService
public Tenant get(String tenantId)
TenantService
get
in interface TenantService
tenantId
- the tenant idpublic Tenant getByName(String tenantName)
TenantService
getByName
in interface TenantService
tenantName
- the tenant namepublic Tenant create(Tenant tenant)
TenantService
create
in interface TenantService
tenant
- the tenant to createpublic ActionResponse delete(String tenantId)
TenantService
delete
in interface TenantService
tenantId
- the tenant idpublic Tenant update(Tenant tenant)
TenantService
update
in interface TenantService
tenant
- the tenantpublic List<? extends TenantUser> listUsers(String tenantId)
TenantService
tenantId
listUsers
in interface TenantService
tenantId
- the tenant id to query users forCopyright © 2017. All rights reserved.