Package org.openstack4j.api.identity.v2
Interface TenantService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
TenantServiceImpl
public interface TenantService extends RestService
Identity Tenant based Operations- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tenantcreate(Tenant tenant)Creates a new TenantActionResponsedelete(String tenantId)Deletes the specified tenant by IDTenantget(String tenantId)Gets detailed information about a specified tenant by IDTenantgetByName(String tenantName)Gets detailed information about a specified tenant by nameList<? 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 thetenantIdTenantupdate(Tenant tenant)Updates the tenant (ID must be set within the inbound tenant)
-
-
-
Method Detail
-
list
List<? extends Tenant> list()
Lists tenants to which the specified token has access.- Returns:
- List of Tenants
-
get
Tenant get(String tenantId)
Gets detailed information about a specified tenant by ID- Parameters:
tenantId- the tenant id- Returns:
- the tenant
-
getByName
Tenant getByName(String tenantName)
Gets detailed information about a specified tenant by name- Parameters:
tenantName- the tenant name- Returns:
- the tenant
-
create
Tenant create(Tenant tenant)
Creates a new Tenant- Parameters:
tenant- the tenant to create- Returns:
- the newly created tenant and it's assigned ID
-
delete
ActionResponse delete(String tenantId)
Deletes the specified tenant by ID- Parameters:
tenantId- the tenant id- Returns:
- the action response
-
update
Tenant update(Tenant tenant)
Updates the tenant (ID must be set within the inbound tenant)- Parameters:
tenant- the tenant- Returns:
- the tenant
-
listUsers
List<? extends TenantUser> listUsers(String tenantId)
Returns a list of users associated by thetenantId- Parameters:
tenantId- the tenant id to query users for- Returns:
- List of TenantUser
-
-