'Update the node\'s configuration.
Args:
node_spec (dict): Configuration settings to update. Any values
not provided will be removed. Default: ``None``
Returns:
`True` if the request went through.
Raises:
:py:class:`docker.errors.APIError`
If the server returns an error.
Example:
>>> node_spec = {\'Availability\': \'active\',
\'Name\': \'node-name\',
\'Role\': \'manager\',
\'Labels\': {\'foo\': \'bar\'}
>>> node.update(node_spec)'

def update(self, node_spec):

    return self.client.api.update_node(self.id, self.version, node_spec)
