Class TenantServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.identity.v2.internal.TenantServiceImpl
-
- All Implemented Interfaces:
TenantService,RestService
public class TenantServiceImpl extends BaseOpenStackService implements TenantService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description TenantServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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)-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends Tenant> list()
Description copied from interface:TenantServiceLists tenants to which the specified token has access.- Specified by:
listin interfaceTenantService- Returns:
- List of Tenants
-
get
public Tenant get(String tenantId)
Description copied from interface:TenantServiceGets detailed information about a specified tenant by ID- Specified by:
getin interfaceTenantService- Parameters:
tenantId- the tenant id- Returns:
- the tenant
-
getByName
public Tenant getByName(String tenantName)
Description copied from interface:TenantServiceGets detailed information about a specified tenant by name- Specified by:
getByNamein interfaceTenantService- Parameters:
tenantName- the tenant name- Returns:
- the tenant
-
create
public Tenant create(Tenant tenant)
Description copied from interface:TenantServiceCreates a new Tenant- Specified by:
createin interfaceTenantService- Parameters:
tenant- the tenant to create- Returns:
- the newly created tenant and it's assigned ID
-
delete
public ActionResponse delete(String tenantId)
Description copied from interface:TenantServiceDeletes the specified tenant by ID- Specified by:
deletein interfaceTenantService- Parameters:
tenantId- the tenant id- Returns:
- the action response
-
update
public Tenant update(Tenant tenant)
Description copied from interface:TenantServiceUpdates the tenant (ID must be set within the inbound tenant)- Specified by:
updatein interfaceTenantService- Parameters:
tenant- the tenant- Returns:
- the tenant
-
listUsers
public List<? extends TenantUser> listUsers(String tenantId)
Description copied from interface:TenantServiceReturns a list of users associated by thetenantId- Specified by:
listUsersin interfaceTenantService- Parameters:
tenantId- the tenant id to query users for- Returns:
- List of TenantUser
-
-