blob: 611b87d5edb1e229be1db1e627eb2fd6c386b1b4 [file] [log] [blame]
:py:mod:`airflow.providers.tableau.operators.tableau`
=====================================================
.. py:module:: airflow.providers.tableau.operators.tableau
Module Contents
---------------
Classes
~~~~~~~
.. autoapisummary::
airflow.providers.tableau.operators.tableau.TableauOperator
Attributes
~~~~~~~~~~
.. autoapisummary::
airflow.providers.tableau.operators.tableau.RESOURCES_METHODS
.. py:data:: RESOURCES_METHODS
.. py:class:: TableauOperator(*, resource, method, find, match_with = 'id', site_id = None, blocking_refresh = True, check_interval = 20, tableau_conn_id = 'tableau_default', **kwargs)
Bases: :py:obj:`airflow.models.BaseOperator`
Execute a Tableau API Resource
https://tableau.github.io/server-client-python/docs/api-ref
.. seealso::
For more information on how to use this operator, take a look at the guide:
:ref:`howto/operator:TableauOperator`
:param resource: The name of the resource to use.
:param method: The name of the resource's method to execute.
:param find: The reference of resource that will receive the action.
:param match_with: The resource field name to be matched with find parameter.
:param site_id: The id of the site where the workbook belongs to.
:param blocking_refresh: By default will be blocking means it will wait until it has finished.
:param check_interval: time in seconds that the job should wait in
between each instance state checks until operation is completed
:param tableau_conn_id: The :ref:`Tableau Connection id <howto/connection:tableau>`
containing the credentials to authenticate to the Tableau Server.
.. py:method:: execute(self, context)
Executes the Tableau API resource and pushes the job id or downloaded file URI to xcom.
:param context: The task context during execution.
:return: the id of the job that executes the extract refresh or downloaded file URI.
:rtype: str