'Detailed view of a single group.'

def detail(self, request, group):

    group_ref = {'group': {'id': group.id, 'status': group.status, 'availability_zone': group.availability_zone, 'created_at': group.created_at, 'name': group.name, 'description': group.description, 'group_type': group.group_type_id, 'volume_types': [v_type.id for v_type in group.volume_types]}}
    req_version = request.api_version_request
    if req_version.matches('3.14', None):
        group_ref['group']['group_snapshot_id'] = group.group_snapshot_id
        group_ref['group']['source_group_id'] = group.source_group_id
    if req_version.matches('3.25', None):
        if utils.get_bool_param('list_volume', request.params):
            group_ref['group']['volumes'] = [volume.id for volume in group.volumes]
    if req_version.matches('3.38', None):
        group_ref['group']['replication_status'] = group.replication_status
    return group_ref
