'Non detailed view of an attachment.'

@staticmethod
def summary(attachment, flat=False):

    result = {'id': attachment.id, 'status': attachment.attach_status, 'instance': attachment.instance_uuid, 'volume_id': attachment.volume_id}
    if flat:
        return result
    return {'attachment': result}
