'Update a host.
For a full list of available parameters, please refer to the official
API reference:
https://developer.openstack.org/api-ref/compute/#update-host-status'

def update_host(self, hostname, **kwargs):

    request_body = {'status': None, 'maintenance_mode': None}
    request_body.update(**kwargs)
    request_body = json.dumps(request_body)
    (resp, body) = self.put(('os-hosts/%s' % hostname), request_body)
    body = json.loads(body)
    self.validate_response(schema.update_host, resp, body)
    return rest_client.ResponseBody(resp, body)
