class_docstr: Starts Dataflow SQL query.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:DataflowStartSqlJobOperator`
  
  .. warning::
      This operator requires ``gcloud`` command (Google Cloud SDK) must be installed on the Airflow worker
      <https://cloud.google.com/sdk/docs/install>`__
  
  :param job_name: The unique name to assign to the Cloud Dataflow job.
  :param query: The SQL query to execute.
  :param options: Job parameters to be executed. It can be a dictionary with the following keys.
  
      For more information, look at:
      `https://cloud.google.com/sdk/gcloud/reference/beta/dataflow/sql/query
      <gcloud beta dataflow sql query>`__
      command reference
  
  :param location: The location of the Dataflow job (for example europe-west1)
  :param project_id: The ID of the GCP project that owns the job.
      If set to ``None`` or missing, the default project_id from the GCP connection is used.
  :param gcp_conn_id: The connection ID to use connecting to Google Cloud
      Platform.
  :param drain_pipeline: Optional, set to True if want to stop streaming job by draining it
      instead of canceling during killing task instance. See:
      https://cloud.google.com/dataflow/docs/guides/stopping-a-pipeline
  :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).
class_docstr_tok: ["Starts","Dataflow","SQL","query",".","..","seealso",":",":","For","more","information","on","how","to","use","this","operator",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/operator",":","DataflowStartSqlJobOperator","`","..","warning",":",":","This","operator","requires","``","gcloud","``","command","(","Google","Cloud","SDK",")","must","be","installed","on","the","Airflow","worker","<","https",":","\/\/cloud.google.com\/sdk\/docs\/install",">","`","__",":","param","job_name",":","The","unique","name","to","assign","to","the","Cloud","Dataflow","job",".",":","param","query",":","The","SQL","query","to","execute",".",":","param","options",":","Job","parameters","to","be","executed",".","It","can","be","a","dictionary","with","the","following","keys",".","For","more","information",",","look","at",":","`","https",":","\/\/cloud.google.com\/sdk\/gcloud\/reference\/beta\/dataflow\/sql\/query","<","gcloud","beta","dataflow","sql","query",">","`","__","command","reference",":","param","location",":","The","location","of","the","Dataflow","job","(","for","example","europe-west1",")",":","param","project_id",":","The","ID","of","the","GCP","project","that","owns","the","job",".","If","set","to","``","None","``","or","missing",",","the","default","project_id","from","the","GCP","connection","is","used",".",":","param","gcp_conn_id",":","The","connection","ID","to","use","connecting","to","Google","Cloud","Platform",".",":","param","drain_pipeline",":","Optional",",","set","to","True","if","want","to","stop","streaming","job","by","draining","it","instead","of","canceling","during","killing","task","instance",".","See",":","https",":","\/\/cloud.google.com\/dataflow\/docs\/guides\/stopping-a-pipeline",":","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 on_kill(self) -> None:
      self.log.info("On kill.")
      if self.job:
          self.hook.cancel_job(
              job_id=self.job.get("id"),
              project_id=self.job.get("projectId"),
              location=self.job.get("location"),
          )
  
imports: from __future__ import annotations
  import copy
  import re
  import uuid
  import warnings
  from contextlib import ExitStack
  from enum import Enum
  from functools import cached_property
  from typing import TYPE_CHECKING, Any, Sequence
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
  from airflow.providers.apache.beam.hooks.beam import BeamHook, BeamRunnerType
  from airflow.providers.google.cloud.hooks.dataflow import DEFAULT_DATAFLOW_LOCATION, DataflowHook, process_line_and_extract_dataflow_job_id_callback
  from airflow.providers.google.cloud.hooks.gcs import GCSHook
  from airflow.providers.google.cloud.links.dataflow import DataflowJobLink
  from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
  from airflow.providers.google.cloud.triggers.dataflow import TemplateJobStartTrigger
  from airflow.version import version
label_desc: Use image node_id 3 for calling the DataflowStartSqlJobOperator obj's underlying member method code with example usage: obj.on_kill() without return types