(credentials)
return google.oauth2.service_account.Credentials.from_service_account_info(info)
Converts to :class:`google.oauth2.service_account.Credentials`.

    Args:
        credentials (Union[
            oauth2client.service_account.ServiceAccountCredentials,
            oauth2client.service_account._JWTAccessCredentials]): The
            credentials to convert.

    Returns:
        google.oauth2.service_account.Credentials: The converted credentials.
Converts to :class:`google.oauth2.service_account.Credentials`.
Converts to : class : google . oauth2 . service_account . Credentials .
def _convert_service_account_credentials(credentials):
    """Converts to :class:`google.oauth2.service_account.Credentials`.

    Args:
        credentials (Union[
            oauth2client.service_account.ServiceAccountCredentials,
            oauth2client.service_account._JWTAccessCredentials]): The
            credentials to convert.

    Returns:
        google.oauth2.service_account.Credentials: The converted credentials.
    """
    info = credentials.serialization_data.copy()
    info["token_uri"] = credentials.token_uri
    return google.oauth2.service_account.Credentials.from_service_account_info(info)
def _convert_service_account_credentials ( credentials ) : info = credentials . serialization_data . copy ( ) info [ "token_uri" ] = credentials . token_uri return google . oauth2 . service_account . Credentials . from_service_account_info ( info )