class_docstr: A hook to use the Google API Discovery Service.
  
  :param api_service_name: The name of the api service that is needed to get the data
      for example 'youtube'.
  :param api_version: The version of the api that will be requested for example 'v3'.
  :param gcp_conn_id: The connection ID to use when fetching connection info.
  :param delegate_to: The account to impersonate using domain-wide delegation of authority,
      if any. For this to work, the service account making the request must have
      domain-wide delegation enabled.
  :param impersonation_chain: Optional service account to impersonate using short-term
      credentials, or chained list of accounts required to get the access_token
      of the last account in the list, which will be impersonated in the request.
      If set as a string, the account must grant the originating account
      the Service Account Token Creator IAM role.
      If set as a sequence, the identities from the list must grant
      Service Account Token Creator IAM role to the directly preceding identity, with first
      account from the list granting this role to the originating account.
class_docstr_tok: ["A","hook","to","use","the","Google","API","Discovery","Service",".",":","param","api_service_name",":","The","name","of","the","api","service","that","is","needed","to","get","the","data","for","example","'youtube","'",".",":","param","api_version",":","The","version","of","the","api","that","will","be","requested","for","example","'v3","'",".",":","param","gcp_conn_id",":","The","connection","ID","to","use","when","fetching","connection","info",".",":","param","delegate_to",":","The","account","to","impersonate","using","domain-wide","delegation","of","authority",",","if","any",".","For","this","to","work",",","the","service","account","making","the","request","must","have","domain-wide","delegation","enabled",".",":","param","impersonation_chain",":","Optional","service","account","to","impersonate","using","short-term","credentials",",","or","chained","list","of","accounts","required","to","get","the","access_token","of","the","last","account","in","the","list",",","which","will","be","impersonated","in","the","request",".","If","set","as","a","string",",","the","account","must","grant","the","originating","account","the","Service","Account","Token","Creator","IAM","role",".","If","set","as","a","sequence",",","the","identities","from","the","list","must","grant","Service","Account","Token","Creator","IAM","role","to","the","directly","preceding","identity",",","with","first","account","from","the","list","granting","this","role","to","the","originating","account","."]
code: def _call_api_request(
      self,
      google_api_conn_client,
      endpoint,
      data,
      paginate,
      num_retries,
  ):
      api_endpoint_parts = endpoint.split(".")
  
      google_api_endpoint_instance = self._build_api_request(
          google_api_conn_client,
          api_sub_functions=api_endpoint_parts[1:],
          api_endpoint_params=data,
      )
  
      if paginate:
          return self._paginate_api(
              google_api_endpoint_instance,
              google_api_conn_client,
              api_endpoint_parts,
              num_retries,
          )
  
      return google_api_endpoint_instance.execute(
          num_retries=num_retries
      )
  
file_path: airflow/airflow/providers/google/common/hooks/discovery_api.py
imports: from __future__ import annotations
  from typing import Sequence
  from googleapiclient.discovery import Resource, build
  from airflow.providers.google.common.hooks.base_google import GoogleBaseHook
label_desc: Use image node_id 4 for calling the GoogleDiscoveryApiHook obj's underlying member method code with example usage: obj._call_api_request(google_api_conn_client, endpoint, data, paginate, num_retries) and returns: google_api_endpoint_instance, self