File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed
datastore_admin_v1/services/datastore_admin/transports
datastore_v1/services/datastore/transports Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 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
22libraries :
33 - id : google-cloud-datastore
44 version : 2.23.0
Original file line number Diff line number Diff 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" ):
Original file line number Diff line number Diff 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" ):
You can’t perform that action at this time.
0 commit comments