'Update a load balancer
:param  load_balancer: The load balancer you wish to update.
:type:  load_balancer: :class:`ProfitBricksLoadBalancer`
:param  name: The name of the load balancer.
:type   name: ``str``
:param  ip: The IPV4 address of the load balancer.
:type   ip: ``str``
:param  dhcp: If true, the load balancer
will reserve an IP address using DHCP.
:type   dhcp: ``bool``
:return:    Instance class ``ProfitBricksLoadBalancer``
:rtype:     :class:`ProfitBricksLoadBalancer`'

def ex_update_load_balancer(self, load_balancer, name=None, ip=None, dhcp=None):

    action = load_balancer.href
    body = {}
    if (name is not None):
        body['name'] = name
    if (ip is not None):
        body['ip'] = ip
    if (dhcp is not None):
        body['dhcp'] = dhcp
    response = self.connection.request(action=action, headers={'Content-Type': 'application/json'}, data=body, method='PATCH', with_full_url=True)
    return self._to_load_balancer(response.object, response.headers)
