Skip to content

Commit

Permalink
Update gcs.py Create and List comment Examples (#35028)
Browse files Browse the repository at this point in the history
Since the class is GCSListObjectsOperator, the task call should be respectively as follows:

GCS_Files = GoogleCloudStorageListOperator
Similarly, for GCSCreateBucketOperator, the task call should be as follows:

CreateBucket = GCSCreateBucketOperator
  • Loading branch information
rivolity committed Oct 18, 2023
1 parent a206012 commit 63f3712
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/providers/google/cloud/operators/gcs.py
Expand Up @@ -90,7 +90,7 @@ class GCSCreateBucketOperator(GoogleCloudBaseOperator):
.. code-block:: python
CreateBucket = GoogleCloudStorageCreateBucketOperator(
CreateBucket = GCSCreateBucketOperator(
task_id="CreateNewBucket",
bucket_name="test-bucket",
storage_class="MULTI_REGIONAL",
Expand Down Expand Up @@ -187,7 +187,7 @@ class GCSListObjectsOperator(GoogleCloudBaseOperator):
The following Operator would list all the Avro files from ``sales/sales-2017``
folder in ``data`` bucket. ::
GCS_Files = GoogleCloudStorageListOperator(
GCS_Files = GCSListOperator(
task_id='GCS_Files',
bucket='data',
prefix='sales/sales-2017/',
Expand Down

0 comments on commit 63f3712

Please sign in to comment.