olegkachur-e commented on code in PR #45354:
URL: https://github.com/apache/airflow/pull/45354#discussion_r1910451326


##########
providers/src/airflow/providers/google/common/hooks/operation_helpers.py:
##########
@@ -0,0 +1,79 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+"""This module contains a helper class to work with 
`google.api_core.operation.Operation` object."""
+
+from __future__ import annotations
+
+from typing import TYPE_CHECKING
+
+from google.api_core.exceptions import GoogleAPICallError
+from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
+
+from airflow.exceptions import AirflowException
+
+if TYPE_CHECKING:
+    from google.api_core.operation import Operation
+    from google.api_core.retry import Retry
+    from proto import Message
+
+
+class OperationHelper:

Review Comment:
   For the  `Operation` object is a part of google api core, and the aim of 
this change was to avoid implementing the same for each other operator again 
and again.
   
   Unfortunately I have very limited knowledge how other providers handles this 
case, and how much their long lasting objects api differs, so cannot lead such 
a discussion, nevertheless I'm always ready to re-work if higher level utils 
will be available.
   



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to