Class QuotaSetServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.compute.internal.BaseComputeServices
-
- org.openstack4j.openstack.compute.internal.QuotaSetServiceImpl
-
- All Implemented Interfaces:
QuotaSetService,RestService
public class QuotaSetServiceImpl extends BaseComputeServices implements QuotaSetService
OpenStack Quota-Set API Implementation- 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 QuotaSetServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuotaSetget(String tenantId)Gets the QuotaSet for the given tenant IDQuotaSetget(String tenantId, String userId)Gets the QuotaSet for the given tenant and user IDComputeQuotaDetailgetDetail(String tenantId)Gets the QuotaSetDetail for the given tenant IDSimpleTenantUsagegetTenantUsage(String tenantId)Gets the usage information for the specified tenant (os-simple-tenant-usage)SimpleTenantUsagegetTenantUsage(String tenantId, String startTime, String endTime)Gets the usage information for the specified tenant in a period of time (os-simple-tenant-usage)Limitslimits()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)QuotaSetupdateForClass(String classId, QuotaSetUpdate qs)Updates quota for a specified classQuotaSetupdateForTenant(String tenantId, QuotaSetUpdate qs)Updates quota for a specified tenant-
Methods inherited from class org.openstack4j.openstack.compute.internal.BaseComputeServices
invokeAction, invokeActionWithResponse
-
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
-
get
public QuotaSet get(String tenantId)
Gets the QuotaSet for the given tenant ID- Specified by:
getin interfaceQuotaSetService- Parameters:
tenantId- the tenant id- Returns:
- the quota set
-
getDetail
public ComputeQuotaDetail getDetail(String tenantId)
Gets the QuotaSetDetail for the given tenant ID- Specified by:
getDetailin interfaceQuotaSetService- Parameters:
tenantId- the tenant id- Returns:
- the quota set detail
-
get
public QuotaSet get(String tenantId, String userId)
Gets the QuotaSet for the given tenant and user ID- Specified by:
getin interfaceQuotaSetService- Parameters:
tenantId- the identifier for the tenantuserId- the identifier of the user- Returns:
- the quota set
-
updateForClass
public QuotaSet updateForClass(String classId, QuotaSetUpdate qs)
Updates quota for a specified class- Specified by:
updateForClassin interfaceQuotaSetService- Parameters:
classId- the class identifierqs- the quota set - seeBuilders.quotaSet()- Returns:
- the newly reflected QuotaSet
-
updateForTenant
public QuotaSet updateForTenant(String tenantId, QuotaSetUpdate qs)
Updates quota for a specified tenant- Specified by:
updateForTenantin interfaceQuotaSetService- Parameters:
tenantId- the tenant identifierqs- the quota set - seeBuilders.quotaSet()- Returns:
- the newly reflected QuotaSet
-
limits
public Limits limits()
Accounts may be pre-configured with a set of thresholds (or limits) to manage capacity and prevent system abuse. This call will return the current Rate and Absolute Limits.- Specified by:
limitsin interfaceQuotaSetService- Returns:
- the system limits
-
listTenantUsages
public List<? extends SimpleTenantUsage> listTenantUsages()
Gets tenant usage information for all tenants (os-simple-tenant-usage)- Specified by:
listTenantUsagesin interfaceQuotaSetService- Returns:
- list of usage information for all tenants
-
getTenantUsage
public SimpleTenantUsage getTenantUsage(String tenantId)
Gets the usage information for the specified tenant (os-simple-tenant-usage)- Specified by:
getTenantUsagein interfaceQuotaSetService- Parameters:
tenantId- the tenant identifier- Returns:
- Tenant Usage or null if not found
-
listTenantUsages
public List<? extends SimpleTenantUsage> listTenantUsages(String startTime, String endTime)
Gets tenant usage information for all tenants in a period of time (os-simple-tenant-usage)- Specified by:
listTenantUsagesin interfaceQuotaSetService- Parameters:
startTime- eg:2015-05-05T23:59:59- Returns:
- list of usage information for all tenants
-
getTenantUsage
public 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)- Specified by:
getTenantUsagein interfaceQuotaSetService- Parameters:
tenantId- the tenant identifierstartTime- eg:2015-05-05T23:59:59- Returns:
- Tenant Usage or null if not found
-
-