| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9df9173 commit b4b3508
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:b8058df4c45e9a6e07f6b4d65b458d0d059241dd34c814f151c8bf6b89211209 | ||
| 1 | + image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:51d42b9060365aa10d21e64a370b82bf1e07ed7f1e46062dcb3ad10632b0acc8 | ||
| 2 | 2 | libraries: | |
| 3 | 3 | - id: google-cloud-datastore | |
| 4 | 4 | version: 2.23.0 | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -89,8 +89,6 @@ def __init__( | |||
| 89 | 89 | be used for service account credentials. | |
| 90 | 90 | """ | |
| 91 | 91 | ||
| 92 | - scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES} | ||
| 93 | - | ||
| 94 | 92 | # Save the scopes. | |
| 95 | 93 | self._scopes = scopes | |
| 96 | 94 | if not hasattr(self, "_ignore_credentials"): | |
@@ -105,11 +103,16 @@ def __init__( | |||
| 105 | 103 | ||
| 106 | 104 | if credentials_file is not None: | |
| 107 | 105 | credentials, _ = google.auth.load_credentials_from_file( | |
| 108 | - credentials_file, **scopes_kwargs, quota_project_id=quota_project_id | ||
| 106 | + credentials_file, | ||
| 107 | + scopes=scopes, | ||
| 108 | + quota_project_id=quota_project_id, | ||
| 109 | + default_scopes=self.AUTH_SCOPES, | ||
| 109 | 110 | ) | |
| 110 | 111 | elif credentials is None and not self._ignore_credentials: | |
| 111 | 112 | credentials, _ = google.auth.default( | |
| 112 | - **scopes_kwargs, quota_project_id=quota_project_id | ||
| 113 | + scopes=scopes, | ||
| 114 | + quota_project_id=quota_project_id, | ||
| 115 | + default_scopes=self.AUTH_SCOPES, | ||
| 113 | 116 | ) | |
| 114 | 117 | # Don't apply audience if the credentials file passed from user. | |
| 115 | 118 | if hasattr(credentials, "with_gdch_audience"): | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -87,8 +87,6 @@ def __init__( | |||
| 87 | 87 | be used for service account credentials. | |
| 88 | 88 | """ | |
| 89 | 89 | ||
| 90 | - scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES} | ||
| 91 | - | ||
| 92 | 90 | # Save the scopes. | |
| 93 | 91 | self._scopes = scopes | |
| 94 | 92 | if not hasattr(self, "_ignore_credentials"): | |
@@ -103,11 +101,16 @@ def __init__( | |||
| 103 | 101 | ||
| 104 | 102 | if credentials_file is not None: | |
| 105 | 103 | credentials, _ = google.auth.load_credentials_from_file( | |
| 106 | - credentials_file, **scopes_kwargs, quota_project_id=quota_project_id | ||
| 104 | + credentials_file, | ||
| 105 | + scopes=scopes, | ||
| 106 | + quota_project_id=quota_project_id, | ||
| 107 | + default_scopes=self.AUTH_SCOPES, | ||
| 107 | 108 | ) | |
| 108 | 109 | elif credentials is None and not self._ignore_credentials: | |
| 109 | 110 | credentials, _ = google.auth.default( | |
| 110 | - **scopes_kwargs, quota_project_id=quota_project_id | ||
| 111 | + scopes=scopes, | ||
| 112 | + quota_project_id=quota_project_id, | ||
| 113 | + default_scopes=self.AUTH_SCOPES, | ||
| 111 | 114 | ) | |
| 112 | 115 | # Don't apply audience if the credentials file passed from user. | |
| 113 | 116 | if hasattr(credentials, "with_gdch_audience"): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments