Class BlockQuotaSetServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.storage.block.internal.BaseBlockStorageServices
-
- org.openstack4j.openstack.storage.block.internal.BlockQuotaSetServiceImpl
-
- All Implemented Interfaces:
BlockQuotaSetService
,RestService
public class BlockQuotaSetServiceImpl extends BaseBlockStorageServices implements BlockQuotaSetService
Quota-Set Extension API for Block Storage- Author:
- Jeremy Unruh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description BlockQuotaSetServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionResponse
delete(String tenantId)
Deletes quotas for a tenant so the quotas revert to default valuesBlockQuotaSet
get(String tenantId)
Gets quotas for a tenantBlockQuotaSet
getDefaults(String tenantId)
Gets default quotas for a tenantBlockQuotaSet
updateForTenant(String tenantId, BlockQuotaSet quota)
Updates quotas for a tenantBlockQuotaSetUsage
usageForTenant(String tenantId)
Gets details for quotas for a specified tenantBlockQuotaSetUsage
usageForUser(String tenantId, String userId)
Gets details for quotas for a specified tenant and user.-
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
-
getDefaults
public BlockQuotaSet getDefaults(String tenantId)
Gets default quotas for a tenant- Specified by:
getDefaults
in interfaceBlockQuotaSetService
- Parameters:
tenantId
- the tenant identifier- Returns:
- the default quotas
-
get
public BlockQuotaSet get(String tenantId)
Gets quotas for a tenant- Specified by:
get
in interfaceBlockQuotaSetService
- Parameters:
tenantId
- the tenant identifier- Returns:
- the quotas for a tenant
-
updateForTenant
public BlockQuotaSet updateForTenant(String tenantId, BlockQuotaSet quota)
Updates quotas for a tenant- Specified by:
updateForTenant
in interfaceBlockQuotaSetService
- Parameters:
tenantId
- the tenant identifierquota
- the quota-set to update- Returns:
- the updated quotas
-
delete
public ActionResponse delete(String tenantId)
Deletes quotas for a tenant so the quotas revert to default values- Specified by:
delete
in interfaceBlockQuotaSetService
- Parameters:
tenantId
- the tenant identifier- Returns:
- the action response
-
usageForTenant
public BlockQuotaSetUsage usageForTenant(String tenantId)
Gets details for quotas for a specified tenant- Specified by:
usageForTenant
in interfaceBlockQuotaSetService
- Parameters:
tenantId
- the tenant identifier- Returns:
- the quota usage details
-
usageForUser
public BlockQuotaSetUsage usageForUser(String tenantId, String userId)
Description copied from interface:BlockQuotaSetService
Gets details for quotas for a specified tenant and user.- Specified by:
usageForUser
in interfaceBlockQuotaSetService
- Parameters:
tenantId
- the tenant identifieruserId
- the user identifier- Returns:
- the quota usage details
-
-