mik-laj commented on a change in pull request #8808:
URL: https://github.com/apache/airflow/pull/8808#discussion_r427146223



##########
File path: airflow/providers/google/cloud/operators/cloud_build.py
##########
@@ -175,21 +180,34 @@ class CloudBuildCreateOperator(BaseOperator):
     """
 
     template_fields = ("body", "gcp_conn_id", "api_version")  # type: 
Iterable[str]
+    template_ext = ['.yml', '.yaml', '.json']
 
     @apply_defaults
     def __init__(self,
-                 body: dict,
+                 body: Union[dict, str],

Review comment:
       Can you also update the docstring?  There should be information that the 
request body or file path can be passed as a parameter.




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