public class QuotaSetServiceImpl extends BaseComputeServices implements QuotaSetService
BaseOpenStackService.Invocation<R>
Constructor and Description |
---|
QuotaSetServiceImpl() |
Modifier and Type | Method and Description |
---|---|
QuotaSet |
get(String tenantId)
Gets the QuotaSet for the given tenant ID
|
QuotaSet |
get(String tenantId,
String userId)
Gets the QuotaSet for the given tenant and user ID
|
SimpleTenantUsage |
getTenantUsage(String tenantId)
Gets the usage information for the specified tenant (os-simple-tenant-usage)
|
SimpleTenantUsage |
getTenantUsage(String tenantId,
String startTime,
String endTime)
Gets the usage information for the specified tenant in a period of time (os-simple-tenant-usage)
|
Limits |
limits()
Accounts may be pre-configured with a set of thresholds (or limits) to manage capacity and prevent system abuse.
|
List<? extends SimpleTenantUsage> |
listTenantUsages()
Gets tenant usage information for all tenants (os-simple-tenant-usage)
|
List<? extends SimpleTenantUsage> |
listTenantUsages(String startTime,
String endTime)
Gets tenant usage information for all tenants in a period of time (os-simple-tenant-usage)
|
QuotaSet |
updateForClass(String classId,
QuotaSetUpdate qs)
Updates quota for a specified class
|
QuotaSet |
updateForTenant(String tenantId,
QuotaSetUpdate qs)
Updates quota for a specified tenant
|
invokeAction, invokeActionWithResponse
delete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uri
public QuotaSet get(String tenantId)
get
in interface QuotaSetService
tenantId
- the tenant idpublic QuotaSet get(String tenantId, String userId)
get
in interface QuotaSetService
tenantId
- the identifier for the tenantuserId
- the identifier of the userpublic QuotaSet updateForClass(String classId, QuotaSetUpdate qs)
updateForClass
in interface QuotaSetService
classId
- the class identifierqs
- the quota set - see Builders.quotaSet()
public QuotaSet updateForTenant(String tenantId, QuotaSetUpdate qs)
updateForTenant
in interface QuotaSetService
tenantId
- the tenant identifierqs
- the quota set - see Builders.quotaSet()
public Limits limits()
limits
in interface QuotaSetService
public List<? extends SimpleTenantUsage> listTenantUsages()
listTenantUsages
in interface QuotaSetService
public SimpleTenantUsage getTenantUsage(String tenantId)
getTenantUsage
in interface QuotaSetService
tenantId
- the tenant identifierpublic List<? extends SimpleTenantUsage> listTenantUsages(String startTime, String endTime)
listTenantUsages
in interface QuotaSetService
startTime
- eg:2015-05-05T23:59:59public SimpleTenantUsage getTenantUsage(String tenantId, String startTime, String endTime)
getTenantUsage
in interface QuotaSetService
tenantId
- the tenant identifierstartTime
- eg:2015-05-05T23:59:59Copyright © 2017. All rights reserved.