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 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.-
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:
getDefaultsin interfaceBlockQuotaSetService- Parameters:
tenantId- the tenant identifier- Returns:
- the default quotas
-
get
public BlockQuotaSet get(String tenantId)
Gets quotas for a tenant- Specified by:
getin 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:
updateForTenantin 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:
deletein 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:
usageForTenantin interfaceBlockQuotaSetService- Parameters:
tenantId- the tenant identifier- Returns:
- the quota usage details
-
usageForUser
public BlockQuotaSetUsage usageForUser(String tenantId, String userId)
Description copied from interface:BlockQuotaSetServiceGets details for quotas for a specified tenant and user.- Specified by:
usageForUserin interfaceBlockQuotaSetService- Parameters:
tenantId- the tenant identifieruserId- the user identifier- Returns:
- the quota usage details
-
-