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, invokeActionWithResponsedelete, deleteWithResponse, get, getProvider, getServiceVersion, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, request, toList, uripublic QuotaSet get(String tenantId)
get in interface QuotaSetServicetenantId - the tenant idpublic QuotaSet get(String tenantId, String userId)
get in interface QuotaSetServicetenantId - the identifier for the tenantuserId - the identifier of the userpublic QuotaSet updateForClass(String classId, QuotaSetUpdate qs)
updateForClass in interface QuotaSetServiceclassId - the class identifierqs - the quota set - see Builders.quotaSet()public QuotaSet updateForTenant(String tenantId, QuotaSetUpdate qs)
updateForTenant in interface QuotaSetServicetenantId - the tenant identifierqs - the quota set - see Builders.quotaSet()public Limits limits()
limits in interface QuotaSetServicepublic List<? extends SimpleTenantUsage> listTenantUsages()
listTenantUsages in interface QuotaSetServicepublic SimpleTenantUsage getTenantUsage(String tenantId)
getTenantUsage in interface QuotaSetServicetenantId - the tenant identifierpublic List<? extends SimpleTenantUsage> listTenantUsages(String startTime, String endTime)
listTenantUsages in interface QuotaSetServicestartTime - eg:2015-05-05T23:59:59public SimpleTenantUsage getTenantUsage(String tenantId, String startTime, String endTime)
getTenantUsage in interface QuotaSetServicetenantId - the tenant identifierstartTime - eg:2015-05-05T23:59:59Copyright © 2017. All rights reserved.