moiseenkov commented on code in PR #34880:
URL: https://github.com/apache/airflow/pull/34880#discussion_r1356897655


##########
airflow/providers/google/cloud/hooks/dataprep.py:
##########
@@ -137,6 +137,20 @@ def run_job_group(self, body_request: dict) -> dict[str, 
Any]:
         self._raise_for_status(response)
         return response.json()
 
+    @retry(stop=stop_after_attempt(5), wait=wait_exponential(multiplier=1, 
max=10))
+    def create_flow(self, *, body_request: dict) -> dict:
+        """
+        Creates flow.
+
+        :param body_request: Body of the POST request to be sent.
+            For more details check 
https://clouddataprep.com/documentation/api#operation/createFlow
+        """
+        endpoint = "/v4/flows"

Review Comment:
   I'm pretty confident that this is the needed API because it has already been 
used in the hook. I only added few more methods.



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