Search in sources :

Example 6 with VNXUnityTreeQuota

use of com.emc.storageos.vnxe.models.VNXUnityTreeQuota in project coprhd-controller by CoprHD.

the class FileSystemQuotaRequests method updateFileSystemQuotaConfig.

/**
 * update file system quota config
 *
 * @param quotaId
 *            Id of the quota whose quota config is to updated
 * @param param
 *            FileSystemQuotaConfigParam
 * @return VNXeCommandResult
 * @throws VNXeException
 */
public VNXeCommandJob updateFileSystemQuotaConfig(String quotaId, FileSystemQuotaConfigParam param) throws VNXeException {
    VNXUnityTreeQuota quotaObj = null;
    if (quotaId != null) {
        quotaObj = getFileSystemQuota(quotaId);
    }
    FileSystemQuotaConfigRequests req = new FileSystemQuotaConfigRequests(_client);
    _logger.info("updating quota config for quota ID: " + quotaId);
    return req.updateFileSystemQuotaConfig(quotaObj.getQuotaConfigId(), param);
}
Also used : VNXUnityTreeQuota(com.emc.storageos.vnxe.models.VNXUnityTreeQuota)

Aggregations

VNXUnityTreeQuota (com.emc.storageos.vnxe.models.VNXUnityTreeQuota)6 MultivaluedMapImpl (com.sun.jersey.core.util.MultivaluedMapImpl)3 IOException (java.io.IOException)2 AlternateIdConstraint (com.emc.storageos.db.client.constraint.AlternateIdConstraint)1 ContainmentConstraint (com.emc.storageos.db.client.constraint.ContainmentConstraint)1 FileShare (com.emc.storageos.db.client.model.FileShare)1 StorageSystem (com.emc.storageos.db.client.model.StorageSystem)1 UnManagedFileQuotaDirectory (com.emc.storageos.db.client.model.UnManagedDiscoveredObjects.UnManagedFileQuotaDirectory)1 DatabaseException (com.emc.storageos.db.exceptions.DatabaseException)1 VNXeApiClient (com.emc.storageos.vnxe.VNXeApiClient)1 VNXUnityQuotaConfig (com.emc.storageos.vnxe.models.VNXUnityQuotaConfig)1 VNXeFileSystem (com.emc.storageos.vnxe.models.VNXeFileSystem)1