(request, certs_url)
return json.loads(json.dumps(data))
Fetches certificates.

    Google-style cerificate endpoints return JSON in the format of
    ``{'key id': 'x509 certificate'}``.

    Args:
        request (google.auth.transport.Request): The object used to make
            HTTP requests. This must be an aiohttp request.
        certs_url (str): The certificate endpoint URL.

    Returns:
        Mapping[str, str]: A mapping of public key ID to x.509 certificate
            data.
Fetches certificates.
Fetches certificates .
async def _fetch_certs(request, certs_url):
    """Fetches certificates.

    Google-style cerificate endpoints return JSON in the format of
    ``{'key id': 'x509 certificate'}``.

    Args:
        request (google.auth.transport.Request): The object used to make
            HTTP requests. This must be an aiohttp request.
        certs_url (str): The certificate endpoint URL.

    Returns:
        Mapping[str, str]: A mapping of public key ID to x.509 certificate
            data.
    """
    response = await request(certs_url, method="GET")

    if response.status != http_client.OK:
        raise exceptions.TransportError(
            "Could not fetch certificates at {}".format(certs_url)
        )

    data = await response.data.read()

    return json.loads(json.dumps(data))
async def _fetch_certs ( request , certs_url ) : response = await request ( certs_url , method = "GET" ) if response . status != http_client . OK : raise exceptions . TransportError ( "Could not fetch certificates at {}" . format ( certs_url ) ) data = await response . data . read ( ) return json . loads ( json . dumps ( data ) )