lib/pkgcloud/rackspace/loadbalancer/client/nodes.js
function(loadBalancer, node, callback) {
    var self = this,
        loadBalancerId =
          loadBalancer instanceof lb.LoadBalancer ? loadBalancer.id : loadBalancer;

    if (!(node instanceof lb.Node) && (typeof node !== 'object')) {
      throw new Error('node is a required argument and must be an object');
    }

    self._request({
      path: urlJoin(_urlPrefix, loadBalancerId, 'nodes', node.id),
      method: 'PUT',
      body: {
        node: _.pick(node, ['condition', 'type', 'weight'])
      }
    }, function (err) {
      callback(err);
    });
  }
function(loadBalancer, node, callback) {
    var self = this,
        loadBalancerId =
          loadBalancer instanceof lb.LoadBalancer ? loadBalancer.id : loadBalancer;

    if (!(node instanceof lb.Node) && (typeof node !== 'object')) {
      throw new Error('node is a required argument and must be an object');
    }

    self._request({
      path: urlJoin(_urlPrefix, loadBalancerId, 'nodes', node.id),
      method: 'PUT',
      body: {
        node: _.pick(node, ['condition', 'type', 'weight'])
      }
    }, function (err) {
      callback(err);
    });
  }
function ( loadBalancer , node , callback ) { var self = this , loadBalancerId = loadBalancer instanceof lb . LoadBalancer ? loadBalancer . id : loadBalancer ; if ( ! ( node instanceof lb . Node ) && ( typeof node !== 'object' ) ) { throw new Error ( 'node is a required argument and must be an object' ) ; } self . _request ( { path : urlJoin ( _urlPrefix , loadBalancerId , 'nodes' , node . id ) , method : 'PUT' , body : { node : _ . pick ( node , [ 'condition' , 'type' , 'weight' ] ) } } , function ( err ) { callback ( err ) ; } ) ; }
client.updateNode

@description update a node condition, type, or weight

@param {Object}          loadBalancer      the loadBalancer or loadBalancerId
@param {Object}          node              the node to update
@param {function}        callback
client . updateNode