potiuk commented on a change in pull request #7728: [AIRFLOW-5610] Add ability 
to specify multiple objects to copy in GCSToGCSOperator
URL: https://github.com/apache/airflow/pull/7728#discussion_r393906618
 
 

 ##########
 File path: airflow/providers/google/cloud/operators/gcs_to_gcs.py
 ##########
 @@ -40,32 +40,27 @@ class GCSToGCSOperator(BaseOperator):
     :param source_bucket: The source Google Cloud Storage bucket where the
          object is. (templated)
     :type source_bucket: str
-    :param source_object: The source name of the object to copy in the Google 
cloud
+    :param source_object: A list of prefix of the objects to copy in the 
Google cloud
         storage bucket. (templated)
-        You can use only one wildcard for objects (filenames) within your
-        bucket. The wildcard can appear inside the object name or at the
-        end of the object name. Appending a wildcard to the bucket name is
-        unsupported.
-    :type source_object: str
+    :type source_object: List[str]
 
 Review comment:
   should be List [str] or str
   
   But maybe it would be better to keep both source_object and source_objects 
parameters (source_object = str, source_objects=List[str]) and check that only 
one is set? 
   
   I think that would be still backwards compatible, but more "accurate" with 
naming.
   
   But I leave it up to you - I am ok with both approaches (as long as we have 
correct type). 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to