def to_full_resource_name(full_parent_name, resource_type_name):
    """Creates a full resource name by parent full name and type name.

    Args:
        full_parent_name (str): the full_resource_name of the parent
        resource_type_name (str): the full_resource_name of the child

    Returns:
        str: full_resource_name of the child
    """
    # Strip out the fake composite root parent from the full resource name.
    if full_parent_name == 'composite_root/root/':
        return '{}/'.format(resource_type_name)

    # For resource names that contain embedded /s, set the full type name
    # to just the first and last part.
    type_name_parts = resource_type_name.split('/')
    if len(type_name_parts) > 2:
        resource_type_name = '{}/{}'.format(type_name_parts[0],
                                            type_name_parts[-1])

    return '{}{}/'.format(full_parent_name, resource_type_name)