Skip to content

Commit e2f4d13

Browse files
authored
chore: librarian update image pull request: 20260113T171106Z (#663)
feat: update image to us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:51d42b9060365aa10d21e64a370b82bf1e07ed7f1e46062dcb3ad10632b0acc8 This PR was created by running `librarian update-image -push`
1 parent 29459a4 commit e2f4d13

File tree

3 files changed

+15
-9
lines changed
  • .librarian
  • google/cloud
    • datastore_admin_v1/services/datastore_admin/transports
    • datastore_v1/services/datastore/transports

3 files changed

+15
-9
lines changed

.librarian/state.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
22
libraries:
33
- id: google-cloud-datastore
44
version: 2.23.0

google/cloud/datastore_admin_v1/services/datastore_admin/transports/base.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ def __init__(
8989
be used for service account credentials.
9090
"""
9191

92-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
93-
9492
# Save the scopes.
9593
self._scopes = scopes
9694
if not hasattr(self, "_ignore_credentials"):
@@ -105,11 +103,16 @@ def __init__(
105103

106104
if credentials_file is not None:
107105
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,
109110
)
110111
elif credentials is None and not self._ignore_credentials:
111112
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,
113116
)
114117
# Don't apply audience if the credentials file passed from user.
115118
if hasattr(credentials, "with_gdch_audience"):

google/cloud/datastore_v1/services/datastore/transports/base.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ def __init__(
8787
be used for service account credentials.
8888
"""
8989

90-
scopes_kwargs = {"scopes": scopes, "default_scopes": self.AUTH_SCOPES}
91-
9290
# Save the scopes.
9391
self._scopes = scopes
9492
if not hasattr(self, "_ignore_credentials"):
@@ -103,11 +101,16 @@ def __init__(
103101

104102
if credentials_file is not None:
105103
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,
107108
)
108109
elif credentials is None and not self._ignore_credentials:
109110
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,
111114
)
112115
# Don't apply audience if the credentials file passed from user.
113116
if hasattr(credentials, "with_gdch_audience"):

0 commit comments

Comments
 (0)