Interface NetQuotaService

    • Method Detail

      • get

        List<? extends NetQuota> get()
        Lists quotas for tenants who have non-default quota values, and lists, updates, and resets quotas for a tenan
        Returns:
        the list of quotas
      • get

        NetQuota get​(String tenantId)
        Fetches the network quotas for the specified tenant
        Parameters:
        tenantId - the tenant identifier
        Returns:
        the tenants quota
      • update

        NetQuota update​(NetQuota netQuota)
        Updates the network quotas for the current tenant
        Parameters:
        netQuota - the net quota to update
        Returns:
        the updated network quota
        See Also:
        NetQuotaBuilder
      • updateForTenant

        NetQuota updateForTenant​(String tenantId,
                                 NetQuota netQuota)
        Updates the network quotas for the specified tenant
        Parameters:
        tenantId - the tenant identifier
        netQuota - the net quota to update
        Returns:
        the updated network quota
        See Also:
        NetQuotaBuilder
      • reset

        ActionResponse reset()
        Resets the current network quota for the current tenant back to defaults
        Returns:
        the action response
      • reset

        ActionResponse reset​(String tenantId)
        Resets the current network quota for the current tenant back to defaults
        Parameters:
        netQuota - the net quota to update
        Returns:
        the action response