lib/limits.js
function unset(appName, limitType, procType, callback) {
    if (!appName) {
      return callback(ArgumentError('appName'));
    }

    if (!limitType) {
      return callback(ArgumentError('limitType'));
    }

    if (!procType) {
      return callback(ArgumentError('procType'));
    }

    var keyValues = {};

    if (limitType === 'memory') {
      keyValues.memory = {};
      keyValues.memory[procType] = null;
    }

    if (limitType === 'cpu') {
      keyValues.cpu = {};
      keyValues.cpu[procType] = null;
    }

    commons.post(format('/%s/apps/%s/config/', deis.version, appName), keyValues,
        function onUnsetResponse(err, result) {
          console.log(result);
          callback(err, result ? extractLimits(result) : null);
        });
  }
function unset(appName, limitType, procType, callback) {
    if (!appName) {
      return callback(ArgumentError('appName'));
    }

    if (!limitType) {
      return callback(ArgumentError('limitType'));
    }

    if (!procType) {
      return callback(ArgumentError('procType'));
    }

    var keyValues = {};

    if (limitType === 'memory') {
      keyValues.memory = {};
      keyValues.memory[procType] = null;
    }

    if (limitType === 'cpu') {
      keyValues.cpu = {};
      keyValues.cpu[procType] = null;
    }

    commons.post(format('/%s/apps/%s/config/', deis.version, appName), keyValues,
        function onUnsetResponse(err, result) {
          console.log(result);
          callback(err, result ? extractLimits(result) : null);
        });
  }
function unset ( appName , limitType , procType , callback ) { if ( ! appName ) { return callback ( ArgumentError ( 'appName' ) ) ; } if ( ! limitType ) { return callback ( ArgumentError ( 'limitType' ) ) ; } if ( ! procType ) { return callback ( ArgumentError ( 'procType' ) ) ; } var keyValues = { } ; if ( limitType === 'memory' ) { keyValues . memory = { } ; keyValues . memory [ procType ] = null ; } if ( limitType === 'cpu' ) { keyValues . cpu = { } ; keyValues . cpu [ procType ] = null ; } commons . post ( format ( '/%s/apps/%s/config/' , deis . version , appName ) , keyValues , function onUnsetResponse ( err , result ) { console . log ( result ) ; callback ( err , result ? extractLimits ( result ) : null ) ; } ) ; }
unset resource limits for an app
unset resource limits for an app