Interface QuotaSetService

  • All Superinterfaces:
    RestService
    All Known Implementing Classes:
    QuotaSetServiceImpl

    public interface QuotaSetService
    extends RestService
    Quota Set Service for Manila Shared Filesystems.
    Author:
    Daniel Gonzalez Nothnagel
    • Method Detail

      • get

        QuotaSet get​(String tenantId)
        Shows quotas for a tenant.
        Parameters:
        tenantId - the UUID for the tenant for which you want to show quotas
        Returns:
        the quota set
      • get

        QuotaSet get​(String tenantId,
                     String userId)
        Shows quotas for a user in a tenant.
        Parameters:
        tenantId - the UUID for the tenant for which you want to show quotas
        userId - the UUID of the user
        Returns:
        the quota set
      • update

        QuotaSet update​(String tenantId,
                        QuotaSetUpdateOptions options)
        Updates quotas for a tenant.
        Parameters:
        tenantId - the UUID for the tenant for which you want to update quotas
        options - the options to update
        Returns:
        the updated quota set
      • update

        QuotaSet update​(String tenantId,
                        String userId,
                        QuotaSetUpdateOptions options)
        Updates quotas for a user in a tenant.
        Parameters:
        tenantId - the UUID for the tenant for which you want to update quotas
        userId - the UUID of the user
        options - the options to update
        Returns:
        the updated quota set
      • delete

        ActionResponse delete​(String tenantId)
        Deletes quotas for a tenant. The quota reverts to the default quota.
        Parameters:
        tenantId - the UUID for the tenant for which you want to delete quotas
        Returns:
        the action response
      • delete

        ActionResponse delete​(String tenantId,
                              String userId)
        Deletes quotas for a user in a tenant. The quota reverts to the default quota.
        Parameters:
        tenantId - the UUID for the tenant for which you want to delete quotas
        userId - the UUID of the user
        Returns:
        the action response
      • getDefault

        QuotaSet getDefault​(String tenantId)
        Shows default quotas for a tenant.
        Parameters:
        tenantId - the UUID for the tenant for which you want to show default quotas
        Returns:
        the default quota set