mik-laj edited a comment on issue #8432: Provide GCP credentials in Bash/Python 
operators
URL: https://github.com/apache/airflow/pull/8432#issuecomment-615910786
 
 
   I will present something generic for moments, which will not require the 
transfer of a complex object. It's as easy to use as it is now, but it will be 
more generic. It will be something similar to the code below.
   ```
                       exit_stack.enter_context(  # pylint: disable=no-member
                           BaseHook.get_connection(conn).get_hook(
                               gcp_conn_id=self.gcp_conn_id, 
delegate_to=self.gcp_gcp_delegate_to
                           ).provide_authorization()
                       )
   ```
   New services will continue to be added by composition rather than 
inheritance.
   
   Thank you very much for the comments. This shows that this feature can be 
useful.

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