Class QuotaSetServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.internal.MicroVersionedOpenStackService
-
- org.openstack4j.openstack.manila.internal.BaseShareServices
-
- org.openstack4j.openstack.manila.internal.QuotaSetServiceImpl
-
- All Implemented Interfaces:
QuotaSetService,RestService
public class QuotaSetServiceImpl extends BaseShareServices implements QuotaSetService
-
-
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 ActionResponsedelete(String tenantId)Deletes quotas for a tenant.ActionResponsedelete(String tenantId, String userId)Deletes quotas for a user in a tenant.QuotaSetget(String tenantId)Shows quotas for a tenant.QuotaSetget(String tenantId, String userId)Shows quotas for a user in a tenant.QuotaSetgetDefault(String tenantId)Shows default quotas for a tenant.QuotaSetupdate(String tenantId, String userId, QuotaSetUpdateOptions options)Updates quotas for a user in a tenant.QuotaSetupdate(String tenantId, QuotaSetUpdateOptions options)Updates quotas for a tenant.-
Methods inherited from class org.openstack4j.openstack.manila.internal.BaseShareServices
getApiVersionHeader
-
Methods inherited from class org.openstack4j.openstack.internal.MicroVersionedOpenStackService
delete, deleteWithResponse, get, head, patch, post, put, request
-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, patchWithResponse, postWithResponse, putWithResponse, toList, uri
-
-
-
-
Method Detail
-
get
public QuotaSet get(String tenantId)
Description copied from interface:QuotaSetServiceShows quotas for a tenant.- Specified by:
getin interfaceQuotaSetService- Parameters:
tenantId- the UUID for the tenant for which you want to show quotas- Returns:
- the quota set
-
get
public QuotaSet get(String tenantId, String userId)
Description copied from interface:QuotaSetServiceShows quotas for a user in a tenant.- Specified by:
getin interfaceQuotaSetService- Parameters:
tenantId- the UUID for the tenant for which you want to show quotasuserId- the UUID of the user- Returns:
- the quota set
-
update
public QuotaSet update(String tenantId, QuotaSetUpdateOptions options)
Description copied from interface:QuotaSetServiceUpdates quotas for a tenant.- Specified by:
updatein interfaceQuotaSetService- Parameters:
tenantId- the UUID for the tenant for which you want to update quotasoptions- the options to update- Returns:
- the updated quota set
-
update
public QuotaSet update(String tenantId, String userId, QuotaSetUpdateOptions options)
Description copied from interface:QuotaSetServiceUpdates quotas for a user in a tenant.- Specified by:
updatein interfaceQuotaSetService- Parameters:
tenantId- the UUID for the tenant for which you want to update quotasuserId- the UUID of the useroptions- the options to update- Returns:
- the updated quota set
-
delete
public ActionResponse delete(String tenantId)
Description copied from interface:QuotaSetServiceDeletes quotas for a tenant. The quota reverts to the default quota.- Specified by:
deletein interfaceQuotaSetService- Parameters:
tenantId- the UUID for the tenant for which you want to delete quotas- Returns:
- the action response
-
delete
public ActionResponse delete(String tenantId, String userId)
Description copied from interface:QuotaSetServiceDeletes quotas for a user in a tenant. The quota reverts to the default quota.- Specified by:
deletein interfaceQuotaSetService- Parameters:
tenantId- the UUID for the tenant for which you want to delete quotasuserId- the UUID of the user- Returns:
- the action response
-
getDefault
public QuotaSet getDefault(String tenantId)
Description copied from interface:QuotaSetServiceShows default quotas for a tenant.- Specified by:
getDefaultin interfaceQuotaSetService- Parameters:
tenantId- the UUID for the tenant for which you want to show default quotas- Returns:
- the default quota set
-
-