| :mod:`airflow.providers.asana.operators.asana_tasks` |
| ==================================================== |
| |
| .. py:module:: airflow.providers.asana.operators.asana_tasks |
| |
| |
| Module Contents |
| --------------- |
| |
| .. py:class:: AsanaCreateTaskOperator(*, conn_id: str, name: str, task_parameters: Optional[dict] = None, **kwargs) |
| |
| Bases: :class:`airflow.models.BaseOperator` |
| |
| This operator can be used to create Asana tasks. For more information on |
| Asana optional task parameters, see https://developers.asana.com/docs/create-a-task |
| |
| .. seealso:: |
| For more information on how to use this operator, take a look at the guide: |
| :ref:`howto/operator:AsanaCreateTaskOperator` |
| |
| :param conn_id: The Asana connection to use. |
| :type conn_id: str |
| :param name: Name of the Asana task. |
| :type name: str |
| :param task_parameters: Any of the optional task creation parameters. |
| See https://developers.asana.com/docs/create-a-task for a complete list. |
| You must specify at least one of 'workspace', 'parent', or 'projects' |
| either here or in the connection. |
| :type task_parameters: dict |
| |
| |
| .. method:: execute(self, context: Dict) |
| |
| |
| |
| |
| .. py:class:: AsanaUpdateTaskOperator(*, conn_id: str, asana_task_gid: str, task_parameters: dict, **kwargs) |
| |
| Bases: :class:`airflow.models.BaseOperator` |
| |
| This operator can be used to update Asana tasks. |
| For more information on Asana optional task parameters, see |
| https://developers.asana.com/docs/update-a-task |
| |
| .. seealso:: |
| For more information on how to use this operator, take a look at the guide: |
| :ref:`howto/operator:AsanaUpdateTaskOperator` |
| |
| :param conn_id: The Asana connection to use. |
| :type conn_id: str |
| :param asana_task_gid: Asana task ID to update |
| :type asana_task_gid: str |
| :param task_parameters: Any task parameters that should be updated. |
| See https://developers.asana.com/docs/update-a-task for a complete list. |
| :type task_update_parameters: dict |
| |
| |
| .. method:: execute(self, context: Dict) |
| |
| |
| |
| |
| .. py:class:: AsanaDeleteTaskOperator(*, conn_id: str, asana_task_gid: str, **kwargs) |
| |
| Bases: :class:`airflow.models.BaseOperator` |
| |
| This operator can be used to delete Asana tasks. |
| |
| .. seealso:: |
| For more information on how to use this operator, take a look at the guide: |
| :ref:`howto/operator:AsanaDeleteTaskOperator` |
| |
| :param conn_id: The Asana connection to use. |
| :type conn_id: str |
| :param asana_task_gid: Asana Task ID to delete. |
| :type asana_task_gid: str |
| |
| |
| .. method:: execute(self, context: Dict) |
| |
| |
| |
| |
| .. py:class:: AsanaFindTaskOperator(*, conn_id: str, search_parameters: Optional[dict] = None, **kwargs) |
| |
| Bases: :class:`airflow.models.BaseOperator` |
| |
| This operator can be used to retrieve Asana tasks that match various filters. |
| See https://developers.asana.com/docs/update-a-task for a list of possible filters. |
| |
| .. seealso:: |
| For more information on how to use this operator, take a look at the guide: |
| :ref:`howto/operator:AsanaFindTaskOperator` |
| |
| :param conn_id: The Asana connection to use. |
| :type conn_id: str |
| :param search_parameters: The parameters used to find relevant tasks. You must |
| specify at least one of `project`, `section`, `tag`, `user_task_list`, or both |
| `assignee` and `workspace` either here or in the connection. |
| :type search_parameters: dict |
| |
| |
| .. method:: execute(self, context: Dict) |
| |
| |
| |
| |