public interface QuotaSetService extends RestService
| 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)
|
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)
|
QuotaSet |
updateForClass(String classId,
QuotaSetUpdate qs)
Updates quota for a specified class
|
QuotaSet |
updateForTenant(String tenantId,
QuotaSetUpdate qs)
Updates quota for a specified tenant
|
QuotaSet get(String tenantId)
tenantId - the tenant idQuotaSet get(String tenantId, String userId)
tenantId - the identifier for the tenantuserId - the identifier of the userQuotaSet updateForClass(String classId, QuotaSetUpdate qs)
classId - the class identifierqs - the quota set - see Builders.quotaSet()QuotaSet updateForTenant(String tenantId, QuotaSetUpdate qs)
tenantId - the tenant identifierqs - the quota set - see Builders.quotaSet()Limits limits()
List<? extends SimpleTenantUsage> listTenantUsages()
SimpleTenantUsage getTenantUsage(String tenantId)
tenantId - the tenant identifier