(cls, filename, **kwargs)
return cls._from_signer_and_info(signer, info, **kwargs)
Creates an OnDemandCredentials instance from a service account .json
        file in Google format.

        Args:
            filename (str): The path to the service account .json file.
            kwargs: Additional arguments to pass to the constructor.

        Returns:
            google.auth.jwt.OnDemandCredentials: The constructed credentials.
Creates an OnDemandCredentials instance from a service account .json
        file in Google format.
Creates an OnDemandCredentials instance from a service account . json file in Google format .
def from_service_account_file(cls, filename, **kwargs):
        """Creates an OnDemandCredentials instance from a service account .json
        file in Google format.

        Args:
            filename (str): The path to the service account .json file.
            kwargs: Additional arguments to pass to the constructor.

        Returns:
            google.auth.jwt.OnDemandCredentials: The constructed credentials.
        """
        info, signer = _service_account_info.from_filename(
            filename, require=["client_email"]
        )
        return cls._from_signer_and_info(signer, info, **kwargs)
def from_service_account_file ( cls , filename , * * kwargs ) : info , signer = _service_account_info . from_filename ( filename , require = [ "client_email" ] ) return cls . _from_signer_and_info ( signer , info , * * kwargs )