class_docstr: List Cloud Batch tasks for a given job.
  
  :param project_id: Required. The ID of the Google Cloud project that the service belongs to.
  :param region: Required. The ID of the Google Cloud region that the service belongs to.
  :param job_name: Required. The name of the job for which to list tasks.
  :param gcp_conn_id: The connection ID used to connect to Google Cloud.
  :param filter: The filter based on which to list the jobs. If left empty, all the jobs are listed.
  :param group_name: The name of the group that owns the task. By default it's `group0`.
  :param limit: The number of tasks to list.
      If left empty, all the tasks matching the filter will be returned.
  :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: ["List","Cloud","Batch","tasks","for","a","given","job",".",":","param","project_id",":","Required",".","The","ID","of","the","Google","Cloud","project","that","the","service","belongs","to",".",":","param","region",":","Required",".","The","ID","of","the","Google","Cloud","region","that","the","service","belongs","to",".",":","param","job_name",":","Required",".","The","name","of","the","job","for","which","to","list","tasks",".",":","param","gcp_conn_id",":","The","connection","ID","used","to","connect","to","Google","Cloud",".",":","param","filter",":","The","filter","based","on","which","to","list","the","jobs",".","If","left","empty",",","all","the","jobs","are","listed",".",":","param","group_name",":","The","name","of","the","group","that","owns","the","task",".","By","default","it","'s","`","group0","`",".",":","param","limit",":","The","number","of","tasks","to","list",".","If","left","empty",",","all","the","tasks","matching","the","filter","will","be","returned",".",":","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,
      job_name: str,
      gcp_conn_id: str = "google_cloud_default",
      impersonation_chain: str | Sequence[str] | None = None,
      group_name: str = "group0",
      filter: str | None = None,
      limit: int | None = None,
      **kwargs,
  ) -> None:
      super().__init__(**kwargs)
      self.project_id = project_id
      self.region = region
      self.job_name = job_name
      self.gcp_conn_id = gcp_conn_id
      self.impersonation_chain = impersonation_chain
      self.group_name = group_name
      self.filter = filter
      self.limit = limit
      if limit is not None and limit < 0:
          raise AirflowException(
              "The limit for the list jobs request should be greater or equal to zero"
          )
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Sequence
  from google.cloud.batch_v1 import Job, Task
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException
  from airflow.providers.google.cloud.hooks.cloud_batch import CloudBatchHook
  from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
  from airflow.providers.google.cloud.triggers.cloud_batch import CloudBatchJobFinishedTrigger
label_desc: Use image node_id 1 to create a new CloudBatchListTasksOperator object from inherited base classes: GoogleCloudBaseOperator with example: obj = CloudBatchListTasksOperator(project_id, region, job_name, gcp_conn_id, impersonation_chain, group_name, filter, limit)