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 _paginate(
      self, endpoint: str, payload: dict[str, Any] | None = None
  ) -> list[Response]:
      response = self.run(endpoint=endpoint, data=payload)
      resp_json = response.json()
      limit = resp_json["extra"]["filters"]["limit"]
      num_total_results = resp_json["extra"]["pagination"][
          "total_count"
      ]
      num_current_results = resp_json["extra"]["pagination"]["count"]
      results = [response]
      if num_current_results != num_total_results:
          _paginate_payload = payload.copy() if payload else {}
          _paginate_payload["offset"] = limit
  
          while num_current_results < num_total_results:
              response = self.run(
                  endpoint=endpoint, data=_paginate_payload
              )
              resp_json = response.json()
              results.append(response)
              num_current_results += resp_json["extra"]["pagination"][
                  "count"
              ]
              _paginate_payload["offset"] += limit
      return results
  
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 7 for calling the DbtCloudHook obj's underlying member method code with example usage: obj._paginate(endpoint, payload) and returns: results