'Update the name for a server.
:param server: The :class:`Server` (or its ID) to update.
:param name: Update the server\'s name.'

@api_versions.wraps('2.0', '2.18')
def update(self, server, name=None):

    if (name is None):
        return
    body = {'server': {'name': name}}
    return self._update(('/servers/%s' % base.getid(server)), body, 'server')
