'Swaps a volume attached to an instance for another volume'

def update_attached_volume(self, server_id, attachment_id, **kwargs):

    post_body = json.dumps({'volumeAttachment': kwargs})
    (resp, body) = self.put(('servers/%s/os-volume_attachments/%s' % (server_id, attachment_id)), post_body)
    self.validate_response(schema.update_attached_volume, resp, body)
    return rest_client.ResponseBody(resp, body)
