def generate_ancestry_path(full_name):
    """Generate ancestry path from full_name.

    Args:
        full_name (str): Full name of the resource.

    Returns:
        str: Ancestry path.
    """
    supported_ancestors = ['organization', 'folder', 'project']
    ancestry_path = ''
    full_name_items = full_name.split('/')
    for i in range(0, len(full_name_items) - 1):
        if full_name_items[i] in supported_ancestors:
            ancestry_path += (full_name_items[i] + '/' +
                              full_name_items[i + 1] + '/')
        else:
            continue
    return ancestry_path