org.jclouds.openstack.keystone.v2_0.extensions
Interface TenantAdminAsyncApi


@Beta
public interface TenantAdminAsyncApi

Provides asynchronous access to tenants Administration actions.

See Also:
TenantAdminApi

Method Summary
 com.google.common.util.concurrent.ListenableFuture<Boolean> addRoleOnTenant(String tenantId, String userdId, String roleId)
          Adds role to a user on a tenant
 com.google.common.util.concurrent.ListenableFuture<? extends Tenant> create(String name)
          Creates a new tenant
 com.google.common.util.concurrent.ListenableFuture<? extends Tenant> create(String name, CreateTenantOptions options)
          Creates a new tenant
 com.google.common.util.concurrent.ListenableFuture<Boolean> delete(String id)
          Deletes a tenant.
 com.google.common.util.concurrent.ListenableFuture<Boolean> deleteRoleOnTenant(String tenantId, String userdId, String roleId)
          Deletes role to a user on tenant
 com.google.common.util.concurrent.ListenableFuture<? extends Tenant> update(String id, UpdateTenantOptions options)
          Updates a tenant
 

Method Detail

create

@Named(value="tenant:create")
com.google.common.util.concurrent.ListenableFuture<? extends Tenant> create(String name)
Creates a new tenant

Returns:
the new tenant

create

@Named(value="tenant:create")
com.google.common.util.concurrent.ListenableFuture<? extends Tenant> create(String name,
                                                                                  CreateTenantOptions options)
Creates a new tenant

Returns:
the new tenant

delete

@Named(value="tenant:delete")
com.google.common.util.concurrent.ListenableFuture<Boolean> delete(String id)
Deletes a tenant.

Returns:
true if successful

update

@Named(value="tenant:updatetenant")
com.google.common.util.concurrent.ListenableFuture<? extends Tenant> update(String id,
                                                                                  UpdateTenantOptions options)
Updates a tenant

Returns:
the updated tenant

addRoleOnTenant

@Named(value="tenant:addroleontenant")
com.google.common.util.concurrent.ListenableFuture<Boolean> addRoleOnTenant(String tenantId,
                                                                                  String userdId,
                                                                                  String roleId)
Adds role to a user on a tenant

Returns:
true if successful

deleteRoleOnTenant

@Named(value="tenant:deleteroleontenant")
com.google.common.util.concurrent.ListenableFuture<Boolean> deleteRoleOnTenant(String tenantId,
                                                                                     String userdId,
                                                                                     String roleId)
Deletes role to a user on tenant

Returns:


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.