(url, named_url_graph, resource, tower_host, auth, ret)
DFS the named URL graph structure to generate identifier for a resource object.

    Args:
        url: A string used to access a particular resource object to generate identifier
            component from.
        named_url_graph: The graph structure used to DFS against.
        resource: Key name of the current graph node.
        tower_host: String representing the host name of AWX backend.
        auth: Tuple of username + password to authenticate connection to AWX.
        ret: list of strings storing components that would later be joined into
            the final named URL identifier.

    Return:
        None. Note the actual outcome is stored in argument ret due to the recursive
        nature of this function.

    Raises:
DFS the named URL graph structure to generate identifier for a resource object.
DFS the named URL graph structure to generate identifier for a resource object .
def _get_named_url_identifier(url, named_url_graph, resource, tower_host, auth, ret):
    """DFS the named URL graph structure to generate identifier for a resource object.

    Args:
        url: A string used to access a particular resource object to generate identifier
            component from.
        named_url_graph: The graph structure used to DFS against.
        resource: Key name of the current graph node.
        tower_host: String representing the host name of AWX backend.
        auth: Tuple of username + password to authenticate connection to AWX.
        ret: list of strings storing components that would later be joined into
            the final named URL identifier.

    Return:
        None. Note the actual outcome is stored in argument ret due to the recursive
        nature of this function.

    Raises:
    """
    r = requests.get(url, auth=auth, verify=False).json()
    ret.append(_generate_identifier_component(r, named_url_graph[resource]['fields']))
    for next_ in named_url_graph[resource]['adj_list']:
        next_fk, next_res = tuple(next_)
        if next_fk in r['related']:
            _get_named_url_identifier(tower_host.strip('/') + r['related'][next_fk], named_url_graph, next_res, tower_host, auth, ret)
        else:
            ret.append('')
def _get_named_url_identifier ( url , named_url_graph , resource , tower_host , auth , ret ) : r = requests . get ( url , auth = auth , verify = False ) . json ( ) ret . append ( _generate_identifier_component ( r , named_url_graph [ resource ] [ 'fields' ] ) ) for next_ in named_url_graph [ resource ] [ 'adj_list' ] : next_fk , next_res = tuple ( next_ ) if next_fk in r [ 'related' ] : _get_named_url_identifier ( tower_host . strip ( '/' ) + r [ 'related' ] [ next_fk ] , named_url_graph , next_res , tower_host , auth , ret ) else : ret . append ( '' )