class_docstr: Json API client implementation.
  
  This client is used to interact with a Json API server and perform various actions
  such as triggering DAG runs,deleting DAGs, interacting with pools, and getting lineage information.
class_docstr_tok: ["Json","API","client","implementation",".","This","client","is","used","to","interact","with","a","Json","API","server","and","perform","various","actions","such","as","triggering","DAG","runs",",","deleting","DAGs",",","interacting","with","pools",",","and","getting","lineage","information","."]
docstr: Create a new pool.
  
  :param name: The name of the pool to create.
  :param slots: The number of slots in the pool.
  :param description: A description of the pool.
  :param include_deferred: include deferred tasks in pool calculations
  
  :return: A tuple containing the name of the pool, the number of slots in the pool,
      a description of the pool and the include_deferred flag.
docstr_tok: ["Create","a","new","pool",".",":","param","name",":","The","name","of","the","pool","to","create",".",":","param","slots",":","The","number","of","slots","in","the","pool",".",":","param","description",":","A","description","of","the","pool",".",":","param","include_deferred",":","include","deferred","tasks","in","pool","calculations",":","return",":","A","tuple","containing","the","name","of","the","pool",",","the","number","of","slots","in","the","pool",",","a","description","of","the","pool","and","the","include_deferred","flag","."]
code: def create_pool(
      self,
      name: str,
      slots: int,
      description: str,
      include_deferred: bool,
  ):
      """Create a new pool.
  
      :param name: The name of the pool to create.
      :param slots: The number of slots in the pool.
      :param description: A description of the pool.
      :param include_deferred: include deferred tasks in pool calculations
  
      :return: A tuple containing the name of the pool, the number of slots in the pool,
          a description of the pool and the include_deferred flag.
      """
      endpoint = "/api/experimental/pools"
      data = {
          "name": name,
          "slots": slots,
          "description": description,
          "include_deferred": include_deferred,
      }
      response = self._request(
          urljoin(self._api_base_url, endpoint),
          method="POST",
          json=data,
      )
      return (
          response["pool"],
          response["slots"],
          response["description"],
          response["include_deferred"],
      )
  
file_path: airflow/airflow/api/client/json_client.py
imports: from __future__ import annotations
  from urllib.parse import urljoin
  from airflow.api.client import api_client
label_desc: Use image node_id 6 for calling the Client obj's underlying member method code with example usage: obj.create_pool(name, slots, description, include_deferred) and returns: response,  response,  response,  response