class_docstr: Wrapper around Asana Python client library.
class_docstr_tok: ["Wrapper","around","Asana","Python","client","library","."]
docstr: Merge create_task parameters with default params from the connection.
  
  :param task_name: Name of the task
  :param task_params: Other task parameters which should override defaults from the connection
  :return: A dict of merged parameters to use in the new task
docstr_tok: ["Merge","create_task","parameters","with","default","params","from","the","connection",".",":","param","task_name",":","Name","of","the","task",":","param","task_params",":","Other","task","parameters","which","should","override","defaults","from","the","connection",":","return",":","A","dict","of","merged","parameters","to","use","in","the","new","task"]
code: def _merge_create_task_parameters(
      self, task_name: str, task_params: dict | None
  ) -> dict:
      """
      Merge create_task parameters with default params from the connection.
  
      :param task_name: Name of the task
      :param task_params: Other task parameters which should override defaults from the connection
      :return: A dict of merged parameters to use in the new task
      """
      merged_params: dict[str, Any] = {"name": task_name}
      if self.project:
          merged_params["projects"] = [self.project]
      # Only use default workspace if user did not provide a project id
      elif self.workspace and not (
          task_params and ("projects" in task_params)
      ):
          merged_params["workspace"] = self.workspace
      if task_params:
          merged_params.update(task_params)
      return merged_params
  
imports: from __future__ import annotations
  from functools import cached_property
  from typing import Any
  from asana import Client
  from asana.error import NotFoundError
  from airflow.hooks.base import BaseHook
label_desc: Use image node_id 8 for calling the AsanaHook obj's underlying member method code with example usage: obj._merge_create_task_parameters(task_name, task_params) and returns: merged_params