public class BlockQuotaSetServiceImpl extends BaseBlockStorageServices implements BlockQuotaSetService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
BlockQuotaSetServiceImpl() |
Modifier and Type | Method and Description |
---|---|
ActionResponse |
delete(String tenantId)
Deletes quotas for a tenant so the quotas revert to default values
|
BlockQuotaSet |
get(String tenantId)
Gets quotas for a tenant
|
BlockQuotaSet |
getDefaults(String tenantId)
Gets default quotas for a tenant
|
BlockQuotaSet |
updateForTenant(String tenantId,
BlockQuotaSet quota)
Updates quotas for a tenant
|
BlockQuotaSetUsage |
usageForTenant(String tenantId)
Gets details for quotas for a specified tenant
|
BlockQuotaSetUsage |
usageForUser(String tenantId,
String userId)
Gets details for quotas for a specified tenant and user.
|
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public BlockQuotaSet getDefaults(String tenantId)
getDefaults
in interface BlockQuotaSetService
tenantId
- the tenant identifierpublic BlockQuotaSet get(String tenantId)
get
in interface BlockQuotaSetService
tenantId
- the tenant identifierpublic BlockQuotaSet updateForTenant(String tenantId, BlockQuotaSet quota)
updateForTenant
in interface BlockQuotaSetService
tenantId
- the tenant identifierquota
- the quota-set to updatepublic ActionResponse delete(String tenantId)
delete
in interface BlockQuotaSetService
tenantId
- the tenant identifierpublic BlockQuotaSetUsage usageForTenant(String tenantId)
usageForTenant
in interface BlockQuotaSetService
tenantId
- the tenant identifierpublic BlockQuotaSetUsage usageForUser(String tenantId, String userId)
BlockQuotaSetService
usageForUser
in interface BlockQuotaSetService
tenantId
- the tenant identifieruserId
- the user identifierCopyright © 2017. All rights reserved.