function updatePoolCB(request, appData, callback) {
    logutils.logger.debug('updatePoolCB');
    if (!(poolId = request.param('uuid').toString())) {
        error = new appErrors.RESTServerError('Pooluuid is missing');
        commonUtils.handleJSONResponse(error, response, null);
        return;
    }
    var poolPutData = request.body;
    var poolPutURL = '/loadbalancer-pool/';
    if (!('loadbalancer-pool' in poolPutData)
            || (!('uuid' in poolPutData['loadbalancer-pool']))) {
        error = new appErrors.RESTServerError(
                'pool object or its uuid missing ');
        callback(error, poolPutData);
        return;
    }
    var poolUUID = poolPutData['loadbalancer-pool']['uuid'];
    if (poolId != poolUUID) {
        error = new appErrors.RESTServerError(
                'pool Id and pool Object uuid mismatch ');
        callback(error, poolPutData);
        return;
    }
    poolPutURL += poolUUID;
    poolPutData = removePoolBackRefs(poolPutData);
    poolPutData = removePoolRefs(poolPutData);
    jsonDiff.getConfigDiffAndMakeCall(poolPutURL, appData, poolPutData,
            function(locError, data) {
                error = appendMessage(locError, locError);
                callback(error, data);
            });
}
/**
 * @updatePoolCB private function 1. Callback for pool update operations 2. Send
 *               a call to Update the Pool diff
 */
@updatePoolCB private function 1. Callback for pool update operations 2. Send
a call to Update the Pool diff
@updatePoolCB private function 1 . Callback for pool update operations 2 . Send a call to Update the Pool diff
function updatePoolCB(request, appData, callback) {
    logutils.logger.debug('updatePoolCB');
    if (!(poolId = request.param('uuid').toString())) {
        error = new appErrors.RESTServerError('Pooluuid is missing');
        commonUtils.handleJSONResponse(error, response, null);
        return;
    }
    var poolPutData = request.body;
    var poolPutURL = '/loadbalancer-pool/';
    if (!('loadbalancer-pool' in poolPutData)
            || (!('uuid' in poolPutData['loadbalancer-pool']))) {
        error = new appErrors.RESTServerError(
                'pool object or its uuid missing ');
        callback(error, poolPutData);
        return;
    }
    var poolUUID = poolPutData['loadbalancer-pool']['uuid'];
    if (poolId != poolUUID) {
        error = new appErrors.RESTServerError(
                'pool Id and pool Object uuid mismatch ');
        callback(error, poolPutData);
        return;
    }
    poolPutURL += poolUUID;
    poolPutData = removePoolBackRefs(poolPutData);
    poolPutData = removePoolRefs(poolPutData);
    jsonDiff.getConfigDiffAndMakeCall(poolPutURL, appData, poolPutData,
            function(locError, data) {
                error = appendMessage(locError, locError);
                callback(error, data);
            });
}
function updatePoolCB ( request , appData , callback ) { logutils . logger . debug ( 'updatePoolCB' ) ; if ( ! ( poolId = request . param ( 'uuid' ) . toString ( ) ) ) { error = new appErrors . RESTServerError ( 'Pooluuid is missing' ) ; commonUtils . handleJSONResponse ( error , response , null ) ; return ; } var poolPutData = request . body ; var poolPutURL = '/loadbalancer-pool/' ; if ( ! ( 'loadbalancer-pool' in poolPutData ) || ( ! ( 'uuid' in poolPutData [ 'loadbalancer-pool' ] ) ) ) { error = new appErrors . RESTServerError ( 'pool object or its uuid missing ' ) ; callback ( error , poolPutData ) ; return ; } var poolUUID = poolPutData [ 'loadbalancer-pool' ] [ 'uuid' ] ; if ( poolId != poolUUID ) { error = new appErrors . RESTServerError ( 'pool Id and pool Object uuid mismatch ' ) ; callback ( error , poolPutData ) ; return ; } poolPutURL += poolUUID ; poolPutData = removePoolBackRefs ( poolPutData ) ; poolPutData = removePoolRefs ( poolPutData ) ; jsonDiff . getConfigDiffAndMakeCall ( poolPutURL , appData , poolPutData , function ( locError , data ) { error = appendMessage ( locError , locError ) ; callback ( error , data ) ; } ) ; }
@updatePoolCB private function 1.
@updatePoolCB private function 1 .