blob: 9a0928a806a4bcdfb6fb4bfa03484c9a418d0245 [file] [log] [blame]
:mod:`airflow.contrib.hooks.grpc_hook`
======================================
.. py:module:: airflow.contrib.hooks.grpc_hook
Module Contents
---------------
.. py:class:: GrpcHook(grpc_conn_id, interceptors=None, custom_connection_func=None)
Bases: :class:`airflow.hooks.base_hook.BaseHook`
General interaction with gRPC servers.
.. method:: get_conn(self)
.. method:: run(self, stub_class, call_func, streaming=False, data={})
.. method:: _get_field(self, field_name, default=None)
Fetches a field from extras, and returns it. This is some Airflow
magic. The grpc hook type adds custom UI elements
to the hook page, which allow admins to specify scopes, credential pem files, etc.
They get formatted as shown below.