class_docstr: Interact with dbt Cloud using the V2 API.
  
  :param dbt_cloud_conn_id: The ID of the :ref:`dbt Cloud connection <howto/connection:dbt-cloud>`.
class_docstr_tok: ["Interact","with","dbt","Cloud","using","the","V2","API",".",":","param","dbt_cloud_conn_id",":","The","ID","of","the",":","ref",":","`","dbt","Cloud","connection","<","howto\/connection",":","dbt-cloud",">","`","."]
docstr: Retrieve metadata for all jobs tied to a specified dbt Cloud account.
  
  If a ``project_id`` is supplied, only jobs pertaining to this project will be retrieved.
  
  :param account_id: Optional. The ID of a dbt Cloud account.
  :param order_by: Optional. Field to order the result by. Use '-' to indicate reverse order.
      For example, to use reverse order by the run ID use ``order_by=-id``.
  :param project_id: The ID of a dbt Cloud project.
  :return: List of request responses.
docstr_tok: ["Retrieve","metadata","for","all","jobs","tied","to","a","specified","dbt","Cloud","account",".","If","a","``","project_id","``","is","supplied",",","only","jobs","pertaining","to","this","project","will","be","retrieved",".",":","param","account_id",":","Optional",".","The","ID","of","a","dbt","Cloud","account",".",":","param","order_by",":","Optional",".","Field","to","order","the","result","by",".","Use","'-","'","to","indicate","reverse","order",".","For","example",",","to","use","reverse","order","by","the","run","ID","use","``","order_by=-id","``",".",":","param","project_id",":","The","ID","of","a","dbt","Cloud","project",".",":","return",":","List","of","request","responses","."]
code: def list_jobs(
      self,
      account_id: int | None = None,
      order_by: str | None = None,
      project_id: int | None = None,
  ) -> list[Response]:
      """
      Retrieve metadata for all jobs tied to a specified dbt Cloud account.
  
      If a ``project_id`` is supplied, only jobs pertaining to this project will be retrieved.
  
      :param account_id: Optional. The ID of a dbt Cloud account.
      :param order_by: Optional. Field to order the result by. Use '-' to indicate reverse order.
          For example, to use reverse order by the run ID use ``order_by=-id``.
      :param project_id: The ID of a dbt Cloud project.
      :return: List of request responses.
      """
      return self._run_and_get_response(
          endpoint=f"{account_id}/jobs/",
          payload={"order_by": order_by, "project_id": project_id},
          paginate=True,
      )
  
imports: from __future__ import annotations
  import asyncio
  import json
  import time
  from enum import Enum
  from functools import cached_property, wraps
  from inspect import signature
  from typing import TYPE_CHECKING, Any, Callable, Sequence, Set, TypeVar, cast
  import aiohttp
  from aiohttp import ClientResponseError
  from asgiref.sync import sync_to_async
  from requests.auth import AuthBase
  from requests.sessions import Session
  from airflow.exceptions import AirflowException
  from airflow.providers.http.hooks.http import HttpHook
  from airflow.typing_compat import TypedDict
label_desc: Use image node_id 13 for calling the DbtCloudHook obj's underlying member method code with example usage: obj.list_jobs(account_id, order_by, project_id) and returns: self