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",">","`","."]
code: def _run_and_get_response(
      self,
      method: str = "GET",
      endpoint: str | None = None,
      payload: str | dict[str, Any] | None = None,
      paginate: bool = False,
  ) -> Any:
      self.method = method
  
      if paginate:
          if isinstance(payload, str):
              raise ValueError(
                  "Payload cannot be a string to paginate a response."
              )
  
          if endpoint:
              return self._paginate(endpoint=endpoint, payload=payload)
          else:
              raise ValueError(
                  "An endpoint is needed to paginate a response."
              )
  
      return self.run(endpoint=endpoint, data=payload)
  
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 8 for calling the DbtCloudHook obj's underlying member method code with example usage: obj._run_and_get_response(method, endpoint, payload, paginate) and returns: self, self