Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add templating to hightouch operator #20

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions airflow_provider_hightouch/operators/hightouch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -43,6 +44,9 @@ class HightouchTriggerSyncOperator(BaseOperator):

operator_extra_links = (HightouchLink(),)

template_fields = ("sync_id", "sync_slug")


@apply_defaults
def __init__(
self,
Expand Down