class_docstr: List all objects from the bucket filtered by given string prefix and delimiter in name or match_glob.
  
  This operator returns a python list with the name of objects which can be used by
  XCom in the downstream task.
  
  :param bucket: The Google Cloud Storage bucket to find the objects. (templated)
  :param prefix: String or list of strings, which filter objects whose name begins with
         it/them. (templated)
  :param delimiter: (Deprecated) The delimiter by which you want to filter the objects. (templated)
      For example, to list the CSV files from in a directory in GCS you would use
      delimiter='.csv'.
  :param gcp_conn_id: (Optional) The connection ID used to connect 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).
  :param match_glob: (Optional) filters objects based on the glob pattern given by the string
      (e.g, ``'**/*/.json'``)
  
  **Example**:
      The following Operator would list all the Avro files from ``sales/sales-2017``
      folder in ``data`` bucket. ::
  
          GCS_Files = GCSListOperator(
              task_id="GCS_Files",
              bucket="data",
              prefix="sales/sales-2017/",
              match_glob="**/*/.avro",
              gcp_conn_id=google_cloud_conn_id,
          )
class_docstr_tok: ["List","all","objects","from","the","bucket","filtered","by","given","string","prefix","and","delimiter","in","name","or","match_glob",".","This","operator","returns","a","python","list","with","the","name","of","objects","which","can","be","used","by","XCom","in","the","downstream","task",".",":","param","bucket",":","The","Google","Cloud","Storage","bucket","to","find","the","objects",".","(","templated",")",":","param","prefix",":","String","or","list","of","strings",",","which","filter","objects","whose","name","begins","with","it\/them",".","(","templated",")",":","param","delimiter",":","(","Deprecated",")","The","delimiter","by","which","you","want","to","filter","the","objects",".","(","templated",")","For","example",",","to","list","the","CSV","files","from","in","a","directory","in","GCS","you","would","use","delimiter='.csv","'",".",":","param","gcp_conn_id",":","(","Optional",")","The","connection","ID","used","to","connect","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",")",".",":","param","match_glob",":","(","Optional",")","filters","objects","based","on","the","glob","pattern","given","by","the","string","(","e.g",",","``","'","*","*","\/","*","\/.json","'","``",")","*","*","Example","*","*",":","The","following","Operator","would","list","all","the","Avro","files","from","``","sales\/sales-2017","``","folder","in","``","data","``","bucket",".",":",":","GCS_Files","=","GCSListOperator","(","task_id=","''","GCS_Files","''",",","bucket=","''","data","''",",","prefix=","''","sales\/sales-2017\/","''",",","match_glob=","''","*","*","\/","*","\/.avro","''",",","gcp_conn_id=google_cloud_conn_id",",",")"]
code: def execute(self, context: Context) -> list:
      hook = GCSHook(
          gcp_conn_id=self.gcp_conn_id,
          impersonation_chain=self.impersonation_chain,
      )
  
      if self.match_glob:
          self.log.info(
              "Getting list of the files. Bucket: %s; MatchGlob: %s; Prefix(es): %s",
              self.bucket,
              self.match_glob,
              self.prefix,
          )
      else:
          self.log.info(
              "Getting list of the files. Bucket: %s; Delimiter: %s; Prefix(es): %s",
              self.bucket,
              self.delimiter,
              self.prefix,
          )
  
      StorageLink.persist(
          context=context,
          task_instance=self,
          uri=self.bucket,
          project_id=hook.project_id,
      )
      return hook.list(
          bucket_name=self.bucket,
          prefix=self.prefix,
          delimiter=self.delimiter,
          match_glob=self.match_glob,
      )
  
imports: from __future__ import annotations
  import datetime
  import subprocess
  import sys
  import warnings
  from pathlib import Path
  from tempfile import NamedTemporaryFile, TemporaryDirectory
  from typing import TYPE_CHECKING, Sequence
  import pendulum
  from google.api_core.exceptions import Conflict
  from google.cloud.exceptions import GoogleCloudError
  from airflow.exceptions import AirflowException, AirflowProviderDeprecationWarning
  from airflow.providers.google.cloud.hooks.gcs import GCSHook
  from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
  from airflow.providers.google.common.links.storage import FileDetailsLink, StorageLink
  from airflow.utils import timezone
label_desc: Use image node_id 2 for calling the GCSListObjectsOperator obj's underlying member method code with example usage: obj.execute(context) and returns: hook