turbaszek commented on a change in pull request #14276:
URL: https://github.com/apache/airflow/pull/14276#discussion_r578332740



##########
File path: airflow/providers/google/cloud/transfers/gdrive_to_gcs.py
##########
@@ -93,7 +94,11 @@ def __init__(
     ) -> None:
         super().__init__(**kwargs)
         self.bucket_name = destination_bucket or bucket_name
+        if destination_bucket:
+            warning.warn("`destination_bucket ` is deprecated please use 
`bucket_name`", DeprecationWarning)

Review comment:
       ```suggestion
               warnings.warn("`destination_bucket ` is deprecated please use 
`bucket_name`", DeprecationWarning)
   ```

##########
File path: airflow/providers/google/cloud/transfers/gdrive_to_gcs.py
##########
@@ -93,7 +94,11 @@ def __init__(
     ) -> None:
         super().__init__(**kwargs)
         self.bucket_name = destination_bucket or bucket_name
+        if destination_bucket:
+            warning.warn("`destination_bucket ` is deprecated please use 
`bucket_name`", DeprecationWarning)
         self.object_name = destination_object or object_name
+        if destination_object:
+            warning.warn("`destination_object ` is deprecated please use 
`object_name`", DeprecationWarning)

Review comment:
       ```suggestion
               warnings.warn("`destination_object ` is deprecated please use 
`object_name`", DeprecationWarning)
   ```




----------------------------------------------------------------
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]


Reply via email to