lib/pkgcloud/rackspace/loadbalancer/client/loadbalancers.js
function (loadBalancer, callback) {

    if (!(loadBalancer instanceof lb.LoadBalancer)) {
      throw new Error('Missing required argument: loadBalancer');
    }

    var self = this,
      updateOptions = {
        path: urlJoin(_urlPrefix, loadBalancer.id),
        method: 'PUT',
        body:  {}
      };

    updateOptions.body.loadBalancer = _.pick(loadBalancer, ['name', 'protocol',
      'port', 'timeout', 'algorithm', 'httpsRedirect', 'halfClosed']);

    self._request(updateOptions, function (err) {
      callback(err);
    });
  }
function (loadBalancer, callback) {

    if (!(loadBalancer instanceof lb.LoadBalancer)) {
      throw new Error('Missing required argument: loadBalancer');
    }

    var self = this,
      updateOptions = {
        path: urlJoin(_urlPrefix, loadBalancer.id),
        method: 'PUT',
        body:  {}
      };

    updateOptions.body.loadBalancer = _.pick(loadBalancer, ['name', 'protocol',
      'port', 'timeout', 'algorithm', 'httpsRedirect', 'halfClosed']);

    self._request(updateOptions, function (err) {
      callback(err);
    });
  }
function ( loadBalancer , callback ) { if ( ! ( loadBalancer instanceof lb . LoadBalancer ) ) { throw new Error ( 'Missing required argument: loadBalancer' ) ; } var self = this , updateOptions = { path : urlJoin ( _urlPrefix , loadBalancer . id ) , method : 'PUT' , body : { } } ; updateOptions . body . loadBalancer = _ . pick ( loadBalancer , [ 'name' , 'protocol' , 'port' , 'timeout' , 'algorithm' , 'httpsRedirect' , 'halfClosed' ] ) ; self . _request ( updateOptions , function ( err ) { callback ( err ) ; } ) ; }
client.updateLoadBalancer

@description updates specific parameters of the load balancer

Specific properties updated: name, protocol, port, timeout,
algorithm, httpsRedirect and halfClosed

@param {Object}        loadBalancer
@param {function}      callback
client . updateLoadBalancer