forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: full support for google credentials in gcloud-aio clients (apac…
…he#36849) * feat: full support for google credentials in gcloud-aio clients The class CredentialsToken implements the ability to generate access tokens to be used in gcloud-aio clients from Google credentials objects provided by instances of Google Cloud hooks. With this change we provide all credentials based capabilities of Google Cloud hooks (for exmaple impersonation) to gcloud-aio clients. * test: add tests for CredentialsToken * Update tests/providers/google/common/hooks/test_base_google.py Co-authored-by: Wei Lee <[email protected]> * refactor: make CredentialsToken private This class is only intended to be used within the Google provider and might need to change in the future. Making it private in order to avoid a potential breaking change in the future. * Revert removal of service_file_as_context The method `service_file_as_context` not being used anymore in the airflow, but it is public and removing would imply a breaking changes for users for the Google provider. Therefore we keep it. --------- Co-authored-by: Wei Lee <[email protected]>
- Loading branch information
Showing
5 changed files
with
179 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters