(upstream_domain_name, user, billing_account=None)
return []
This supports both the old feature flagged version of linked projects and the GAed version
    The GAed version is only available to enterprise customers and only usable by admins, but the feature flagged
    version is available to anyone who can obtain access (the wild west)
    :param upstream_domain_name: potential upstream domain candidate
    :param user: user object
    :param billing_account: optional parameter to limit available domains to within an enterprise account
    :return: list of domain names available to link as downstream projects
This supports both the old feature flagged version of linked projects and the GAed version
    The GAed version is only available to enterprise customers and only usable by admins, but the feature flagged
    version is available to anyone who can obtain access (the wild west)
    :param upstream_domain_name: potential upstream domain candidate
    :param user: user object
    :param billing_account: optional parameter to limit available domains to within an enterprise account
    :return: list of domain names available to link as downstream projects
This supports both the old feature flagged version of linked projects and the GAed version The GAed version is only available to enterprise customers and only usable by admins but the feature flagged version is available to anyone who can obtain access ( the wild west ) : param upstream_domain_name : potential upstream domain candidate : param user : user object : param billing_account : optional parameter to limit available domains to within an enterprise account : return : list of domain names available to link as downstream projects
def get_available_domains_to_link(upstream_domain_name, user, billing_account=None):
    """
    This supports both the old feature flagged version of linked projects and the GAed version
    The GAed version is only available to enterprise customers and only usable by admins, but the feature flagged
    version is available to anyone who can obtain access (the wild west)
    :param upstream_domain_name: potential upstream domain candidate
    :param user: user object
    :param billing_account: optional parameter to limit available domains to within an enterprise account
    :return: list of domain names available to link as downstream projects
    """
    if domain_has_privilege(upstream_domain_name, RELEASE_MANAGEMENT):
        return get_available_domains_to_link_for_account(upstream_domain_name, user, billing_account)
    elif toggles.LINKED_DOMAINS.enabled(upstream_domain_name):
        return get_available_domains_to_link_for_user(upstream_domain_name, user)

    return []
def get_available_domains_to_link ( upstream_domain_name , user , billing_account = None ) : if domain_has_privilege ( upstream_domain_name , RELEASE_MANAGEMENT ) : return get_available_domains_to_link_for_account ( upstream_domain_name , user , billing_account ) elif toggles . LINKED_DOMAINS . enabled ( upstream_domain_name ) : return get_available_domains_to_link_for_user ( upstream_domain_name , user ) return [ ]