- class airflow.providers.tableau.operators.tableau.TableauOperator(*, resource, method, find, match_with='id', site_id=None, blocking_refresh=True, check_interval=20, tableau_conn_id='tableau_default', **kwargs)¶
Execute a Tableau API Resource https://tableau.github.io/server-client-python/docs/api-ref
For more information on how to use this operator, take a look at the guide: TableauOperator
resource (str) -- The name of the resource to use.
method (str) -- The name of the resource's method to execute.
find (str) -- The reference of resource that will receive the action.
match_with (str) -- The resource field name to be matched with find parameter.
site_id (Optional[str]) -- The id of the site where the workbook belongs to.
blocking_refresh (bool) -- By default will be blocking means it will wait until it has finished.
check_interval (float) -- time in seconds that the job should wait in between each instance state checks until operation is completed
- 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