Skip to content

Commit 63f3712

Browse files
authored
Update gcs.py Create and List comment Examples (#35028)
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
1 parent a206012 commit 63f3712

File tree

1 file changed

+2
-2
lines changed
  • airflow/providers/google/cloud/operators

1 file changed

+2
-2
lines changed

airflow/providers/google/cloud/operators/gcs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class GCSCreateBucketOperator(GoogleCloudBaseOperator):
9090
9191
.. code-block:: python
9292
93-
CreateBucket = GoogleCloudStorageCreateBucketOperator(
93+
CreateBucket = GCSCreateBucketOperator(
9494
task_id="CreateNewBucket",
9595
bucket_name="test-bucket",
9696
storage_class="MULTI_REGIONAL",
@@ -187,7 +187,7 @@ class GCSListObjectsOperator(GoogleCloudBaseOperator):
187187
The following Operator would list all the Avro files from ``sales/sales-2017``
188188
folder in ``data`` bucket. ::
189189
190-
GCS_Files = GoogleCloudStorageListOperator(
190+
GCS_Files = GCSListOperator(
191191
task_id='GCS_Files',
192192
bucket='data',
193193
prefix='sales/sales-2017/',

0 commit comments

Comments
 (0)