Package org.openstack4j.api.storage
Interface BlockQuotaSetService
-
- All Superinterfaces:
RestService
- All Known Implementing Classes:
BlockQuotaSetServiceImpl
public interface BlockQuotaSetService extends RestService
Quota-Set Extension API for Block Storage- Author:
- Jeremy Unruh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ActionResponsedelete(String tenantId)Deletes quotas for a tenant so the quotas revert to default valuesBlockQuotaSetget(String tenantId)Gets quotas for a tenantBlockQuotaSetgetDefaults(String tenantId)Gets default quotas for a tenantBlockQuotaSetupdateForTenant(String tenantId, BlockQuotaSet quota)Updates quotas for a tenantBlockQuotaSetUsageusageForTenant(String tenantId)Gets details for quotas for a specified tenantBlockQuotaSetUsageusageForUser(String tenantId, String userId)Gets details for quotas for a specified tenant and user.
-
-
-
Method Detail
-
getDefaults
BlockQuotaSet getDefaults(String tenantId)
Gets default quotas for a tenant- Parameters:
tenantId- the tenant identifier- Returns:
- the default quotas
-
get
BlockQuotaSet get(String tenantId)
Gets quotas for a tenant- Parameters:
tenantId- the tenant identifier- Returns:
- the quotas for a tenant
-
updateForTenant
BlockQuotaSet updateForTenant(String tenantId, BlockQuotaSet quota)
Updates quotas for a tenant- Parameters:
tenantId- the tenant identifierquota- the quota-set to update- Returns:
- the updated quotas
-
delete
ActionResponse delete(String tenantId)
Deletes quotas for a tenant so the quotas revert to default values- Parameters:
tenantId- the tenant identifier- Returns:
- the action response
-
usageForTenant
BlockQuotaSetUsage usageForTenant(String tenantId)
Gets details for quotas for a specified tenant- Parameters:
tenantId- the tenant identifier- Returns:
- the quota usage details
-
usageForUser
BlockQuotaSetUsage usageForUser(String tenantId, String userId)
Gets details for quotas for a specified tenant and user.- Parameters:
tenantId- the tenant identifieruserId- the user identifier- Returns:
- the quota usage details
-
-