From c3c3f79e99973fa4a8a01b89d820c0701c51dcbf Mon Sep 17 00:00:00 2001 From: fritz-astronomer <80706212+fritz-astronomer@users.noreply.github.com> Date: Wed, 31 Jul 2024 16:24:35 -0400 Subject: [PATCH] Add templating to hightouch operator --- airflow_provider_hightouch/operators/hightouch.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/airflow_provider_hightouch/operators/hightouch.py b/airflow_provider_hightouch/operators/hightouch.py index 625dffa..5677fe7 100644 --- a/airflow_provider_hightouch/operators/hightouch.py +++ b/airflow_provider_hightouch/operators/hightouch.py @@ -24,9 +24,10 @@ class HightouchTriggerSyncOperator(BaseOperator): For more information on how to use this operator, take a look at the guide: :ref:`https://hightouch.io/docs/integrations/airflow/` - :param sync_id: ID of the sync to trigger + :param sync_id: ID of the sync to trigger, templated, optional :type sync_id: int - :param sync_slug: Slug of the sync to trigger + :param sync_slug: Slug of the sync to trigger, templated, optional + :type sync_slug: str :param connection_id: Name of the connection to use, defaults to hightouch_default :type connection_id: str :param api_version: Hightouch API version. Only v3 is supported. @@ -43,6 +44,9 @@ class HightouchTriggerSyncOperator(BaseOperator): operator_extra_links = (HightouchLink(),) + template_fields = ("sync_id", "sync_slug") + + @apply_defaults def __init__( self,