(self)
return self._ssl_credentials
Get the created SSL channel credentials.

        For devices with endpoint verification support, if the device certificate
        loading has any problems, corresponding exceptions will be raised. For
        a device without endpoint verification support, no exceptions will be
        raised.

        Returns:
            grpc.ChannelCredentials: The created grpc channel credentials.

        Raises:
            google.auth.exceptions.MutualTLSChannelError: If mutual TLS channel
                creation failed for any reason.
Get the created SSL channel credentials.
Get the created SSL channel credentials .
def ssl_credentials(self):
        """Get the created SSL channel credentials.

        For devices with endpoint verification support, if the device certificate
        loading has any problems, corresponding exceptions will be raised. For
        a device without endpoint verification support, no exceptions will be
        raised.

        Returns:
            grpc.ChannelCredentials: The created grpc channel credentials.

        Raises:
            google.auth.exceptions.MutualTLSChannelError: If mutual TLS channel
                creation failed for any reason.
        """
        if self._is_mtls:
            try:
                _, cert, key, _ = _mtls_helper.get_client_ssl_credentials()
                self._ssl_credentials = grpc.ssl_channel_credentials(
                    certificate_chain=cert, private_key=key
                )
            except exceptions.ClientCertError as caught_exc:
                new_exc = exceptions.MutualTLSChannelError(caught_exc)
                six.raise_from(new_exc, caught_exc)
        else:
            self._ssl_credentials = grpc.ssl_channel_credentials()

        return self._ssl_credentials
def ssl_credentials ( self ) : if self . _is_mtls : try : _ , cert , key , _ = _mtls_helper . get_client_ssl_credentials ( ) self . _ssl_credentials = grpc . ssl_channel_credentials ( certificate_chain = cert , private_key = key ) except exceptions . ClientCertError as caught_exc : new_exc = exceptions . MutualTLSChannelError ( caught_exc ) six . raise_from ( new_exc , caught_exc ) else : self . _ssl_credentials = grpc . ssl_channel_credentials ( ) return self . _ssl_credentials