class_docstr: Hook for Google Dataplex.
  
  :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 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 (templated).
docstr: Wait for Dataplex data scan job.
  
  :param job_id: Required. The job_id to wait for.
  :param data_scan_id: Required. Data Quality scan identifier.
  :param region: Required. The ID of the Google Cloud region that the lake belongs to.
  :param project_id: Optional. Google Cloud project ID.
  :param wait_time: Number of seconds between checks.
  :param result_timeout: Value in seconds for which operator will wait for the Data Quality scan result.
      Throws exception if there is no result found after specified amount of seconds.
docstr_tok: ["Wait","for","Dataplex","data","scan","job",".",":","param","job_id",":","Required",".","The","job_id","to","wait","for",".",":","param","data_scan_id",":","Required",".","Data","Quality","scan","identifier",".",":","param","region",":","Required",".","The","ID","of","the","Google","Cloud","region","that","the","lake","belongs","to",".",":","param","project_id",":","Optional",".","Google","Cloud","project","ID",".",":","param","wait_time",":","Number","of","seconds","between","checks",".",":","param","result_timeout",":","Value","in","seconds","for","which","operator","will","wait","for","the","Data","Quality","scan","result",".","Throws","exception","if","there","is","no","result","found","after","specified","amount","of","seconds","."]
code: def wait_for_data_scan_job(
      self,
      data_scan_id: str,
      job_id: str | None = None,
      project_id: str | None = None,
      region: str | None = None,
      wait_time: int = 10,
      result_timeout: float | None = None,
  ) -> Any:
      """
      Wait for Dataplex data scan job.
  
      :param job_id: Required. The job_id to wait for.
      :param data_scan_id: Required. Data Quality scan identifier.
      :param region: Required. The ID of the Google Cloud region that the lake belongs to.
      :param project_id: Optional. Google Cloud project ID.
      :param wait_time: Number of seconds between checks.
      :param result_timeout: Value in seconds for which operator will wait for the Data Quality scan result.
          Throws exception if there is no result found after specified amount of seconds.
      """
      start = time.monotonic()
      state = None
      while state not in (
          DataScanJob.State.CANCELLED,
          DataScanJob.State.FAILED,
          DataScanJob.State.SUCCEEDED,
      ):
          if (
              result_timeout
              and start + result_timeout < time.monotonic()
          ):
              raise AirflowDataQualityScanResultTimeoutException(
                  f"Timeout: Data Quality scan {job_id} is not ready after {result_timeout}s"
              )
          time.sleep(wait_time)
          try:
              job = self.get_data_scan_job(
                  job_id=job_id,
                  data_scan_id=data_scan_id,
                  project_id=project_id,
                  region=region,
              )
              state = job.state
          except Exception as err:
              self.log.info(
                  "Retrying. Dataplex API returned error when waiting for job: %s",
                  err,
              )
      return job
  
imports: from __future__ import annotations
  import time
  from typing import TYPE_CHECKING, Any, Sequence
  from google.api_core.client_options import ClientOptions
  from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
  from google.cloud.dataplex_v1 import DataplexServiceClient, DataScanServiceAsyncClient, DataScanServiceClient
  from google.cloud.dataplex_v1.types import Asset, DataScan, DataScanJob, Lake, Task, Zone
  from google.protobuf.field_mask_pb2 import FieldMask
  from airflow.exceptions import AirflowException
  from airflow.providers.google.common.consts import CLIENT_INFO
  from airflow.providers.google.common.hooks.base_google import GoogleBaseAsyncHook, GoogleBaseHook
label_desc: Use image node_id 19 for calling the DataplexHook obj's underlying member method code with example usage: obj.wait_for_data_scan_job(data_scan_id, job_id, project_id, region, wait_time, result_timeout) and returns: job