class_docstr: Checks for the status of a Workflow Invocation in Google Cloud Dataform.
  
  :param project_id: Required, the Google Cloud project ID in which to start a job.
      If set to None or missing, the default project_id from the Google Cloud connection is used.
  :param region: Required, The location of the Dataform workflow invocation (for example europe-west1).
  :param repository_id: Required. The ID of the Dataform repository that the task belongs to.
  :param workflow_invocation_id: Required, ID of the workflow invocation to be checked.
  :param expected_statuses: The expected state of the operation.
      See:
      https://cloud.google.com/python/docs/reference/dataform/latest/google.cloud.dataform_v1beta1.types.WorkflowInvocation.State
  :param failure_statuses: State that will terminate the sensor with an exception
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud.
  :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).
code: def __init__(
      self,
      *,
      project_id: str,
      region: str,
      repository_id: str,
      workflow_invocation_id: str,
      expected_statuses: set[int] | int,
      failure_statuses: Iterable[int] | None = None,
      gcp_conn_id: str = "google_cloud_default",
      impersonation_chain: str | Sequence[str] | None = None,
      **kwargs,
  ) -> None:
      super().__init__(**kwargs)
      self.repository_id = repository_id
      self.workflow_invocation_id = workflow_invocation_id
      self.expected_statuses = (
          {expected_statuses}
          if isinstance(expected_statuses, int)
          else expected_statuses
      )
      self.failure_statuses = failure_statuses
      self.project_id = project_id
      self.region = region
      self.gcp_conn_id = gcp_conn_id
      self.impersonation_chain = impersonation_chain
      self.hook: DataformHook | None = None
  
file_path: airflow/airflow/providers/google/cloud/sensors/dataform.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Iterable, Sequence
  from airflow.exceptions import AirflowException, AirflowSkipException
  from airflow.providers.google.cloud.hooks.dataform import DataformHook
  from airflow.sensors.base import BaseSensorOperator
label_desc: Use image node_id 1 to create a new DataformWorkflowInvocationStateSensor object from inherited base classes: BaseSensorOperator with example: obj = DataformWorkflowInvocationStateSensor()