TobKed commented on a change in pull request #6096: [AIRFLOW-5477] Rewrite 
Google PubSub Hook to Google Cloud Python
URL: https://github.com/apache/airflow/pull/6096#discussion_r326613470
 
 

 ##########
 File path: airflow/gcp/operators/pubsub.py
 ##########
 @@ -326,34 +505,68 @@ class PubSubSubscriptionDeleteOperator(BaseOperator):
         For this to work, the service account making the request
         must have domain-wide delegation enabled.
     :type delegate_to: str
+    :param retry: (Optional) A retry object used to retry requests.
+        If None is specified, requests will not be retried.
+    :type retry: google.api_core.retry.Retry
+    :param timeout: (Optional) The amount of time, in seconds, to wait for the 
request
+        to complete. Note that if retry is specified, the timeout applies to 
each
+        individual attempt.
+    :type timeout: float
+    :param metadata: (Optional) Additional metadata that is provided to the 
method.
+    :type metadata: Sequence[Tuple[str, str]]]
+    :param project: (Deprecated) the GCP project ID where the topic will be 
created
+    :type project: str
     """
-    template_fields = ['project', 'subscription']
+    template_fields = ['project_id', 'subscription']
 
 Review comment:
   I had to revert these changes (only `"project"` shall remain) because of the 
errors due to errors:
   `  File "/workspace/airflow/models/baseoperator.py", line 662, in 
_do_render_template_fields
       content = getattr(parent, attr_name)
   AttributeError: 'PubSubPublishOperator' object has no attribute 'project'`

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