o
    ~j6h	                     @   sR   d Z ddlZddlmZ ddlmZ dedefddZd	ejdeddfd
dZdS )z-Helper functions for commonly used utilities.    N)Any)_helpersresponsereturnc                    s,   z
|   I dH }|W S  ty   Y dS w )a  
    Parses an async response, attempting to decode JSON.

    Args:
        response: The response object to parse. This can be any type, but
            it is expected to have a `json()` method if it contains JSON.

    Returns:
        The parsed response. If the response contains valid JSON, the
        decoded JSON object (e.g., a dictionary) is returned.
        If the response does not have a `json()` method or if the JSON
        decoding fails, None is returned.
    N)json	Exception)r   json_response r	   g/var/www/html/chefvision.cloud.itp360.com/venv/lib/python3.10/site-packages/google/auth/aio/_helpers.py_parse_response_async   s   r   loggerc                    s$   t | rd}t | | dS dS )z
    Logs an Async HTTP response at the DEBUG level if logging is enabled.

    Args:
        logger: The logging.Logger instance to use.
        response: The HTTP response object to log.
    N)r   is_logging_enabled_response_log_base)r   r   r   r	   r	   r
   response_log_async/   s
   
r   )	__doc__loggingtypingr   google.authr   r   Loggerr   r	   r	   r	   r
   <module>   s   