This repository was archived by the owner on Oct 31, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 26 files changed +694
-58
lines changed
google/cloud/appengine_admin_v1
authorized_certificates/transports
authorized_domains/transports
domain_mappings/transports
tests/unit/gapic/appengine_admin_v1 Expand file tree Collapse file tree 26 files changed +694
-58
lines changed Original file line number Diff line number Diff line change @@ -162,8 +162,11 @@ def __init__(
162162 if not self ._grpc_channel :
163163 self ._grpc_channel = type (self ).create_channel (
164164 self ._host ,
165+ # use the credentials which are saved
165166 credentials = self ._credentials ,
166- credentials_file = credentials_file ,
167+ # Set ``credentials_file`` to ``None`` here as
168+ # the credentials that we saved earlier should be used.
169+ credentials_file = None ,
167170 scopes = self ._scopes ,
168171 ssl_credentials = self ._ssl_channel_credentials ,
169172 quota_project_id = quota_project_id ,
@@ -236,7 +239,7 @@ def operations_client(self) -> operations_v1.OperationsClient:
236239 This property caches on the instance; repeated calls return the same
237240 client.
238241 """
239- # Sanity check: Only create a new client if we do not already have one.
242+ # Quick check: Only create a new client if we do not already have one.
240243 if self ._operations_client is None :
241244 self ._operations_client = operations_v1 .OperationsClient (self .grpc_channel )
242245
Original file line number Diff line number Diff line change @@ -207,8 +207,11 @@ def __init__(
207207 if not self ._grpc_channel :
208208 self ._grpc_channel = type (self ).create_channel (
209209 self ._host ,
210+ # use the credentials which are saved
210211 credentials = self ._credentials ,
211- credentials_file = credentials_file ,
212+ # Set ``credentials_file`` to ``None`` here as
213+ # the credentials that we saved earlier should be used.
214+ credentials_file = None ,
212215 scopes = self ._scopes ,
213216 ssl_credentials = self ._ssl_channel_credentials ,
214217 quota_project_id = quota_project_id ,
@@ -238,7 +241,7 @@ def operations_client(self) -> operations_v1.OperationsAsyncClient:
238241 This property caches on the instance; repeated calls return the same
239242 client.
240243 """
241- # Sanity check: Only create a new client if we do not already have one.
244+ # Quick check: Only create a new client if we do not already have one.
242245 if self ._operations_client is None :
243246 self ._operations_client = operations_v1 .OperationsAsyncClient (
244247 self .grpc_channel
Original file line number Diff line number Diff line change @@ -162,8 +162,11 @@ def __init__(
162162 if not self ._grpc_channel :
163163 self ._grpc_channel = type (self ).create_channel (
164164 self ._host ,
165+ # use the credentials which are saved
165166 credentials = self ._credentials ,
166- credentials_file = credentials_file ,
167+ # Set ``credentials_file`` to ``None`` here as
168+ # the credentials that we saved earlier should be used.
169+ credentials_file = None ,
167170 scopes = self ._scopes ,
168171 ssl_credentials = self ._ssl_channel_credentials ,
169172 quota_project_id = quota_project_id ,
Original file line number Diff line number Diff line change @@ -207,8 +207,11 @@ def __init__(
207207 if not self ._grpc_channel :
208208 self ._grpc_channel = type (self ).create_channel (
209209 self ._host ,
210+ # use the credentials which are saved
210211 credentials = self ._credentials ,
211- credentials_file = credentials_file ,
212+ # Set ``credentials_file`` to ``None`` here as
213+ # the credentials that we saved earlier should be used.
214+ credentials_file = None ,
212215 scopes = self ._scopes ,
213216 ssl_credentials = self ._ssl_channel_credentials ,
214217 quota_project_id = quota_project_id ,
Original file line number Diff line number Diff line change @@ -160,8 +160,11 @@ def __init__(
160160 if not self ._grpc_channel :
161161 self ._grpc_channel = type (self ).create_channel (
162162 self ._host ,
163+ # use the credentials which are saved
163164 credentials = self ._credentials ,
164- credentials_file = credentials_file ,
165+ # Set ``credentials_file`` to ``None`` here as
166+ # the credentials that we saved earlier should be used.
167+ credentials_file = None ,
165168 scopes = self ._scopes ,
166169 ssl_credentials = self ._ssl_channel_credentials ,
167170 quota_project_id = quota_project_id ,
Original file line number Diff line number Diff line change @@ -205,8 +205,11 @@ def __init__(
205205 if not self ._grpc_channel :
206206 self ._grpc_channel = type (self ).create_channel (
207207 self ._host ,
208+ # use the credentials which are saved
208209 credentials = self ._credentials ,
209- credentials_file = credentials_file ,
210+ # Set ``credentials_file`` to ``None`` here as
211+ # the credentials that we saved earlier should be used.
212+ credentials_file = None ,
210213 scopes = self ._scopes ,
211214 ssl_credentials = self ._ssl_channel_credentials ,
212215 quota_project_id = quota_project_id ,
Original file line number Diff line number Diff line change @@ -162,8 +162,11 @@ def __init__(
162162 if not self ._grpc_channel :
163163 self ._grpc_channel = type (self ).create_channel (
164164 self ._host ,
165+ # use the credentials which are saved
165166 credentials = self ._credentials ,
166- credentials_file = credentials_file ,
167+ # Set ``credentials_file`` to ``None`` here as
168+ # the credentials that we saved earlier should be used.
169+ credentials_file = None ,
167170 scopes = self ._scopes ,
168171 ssl_credentials = self ._ssl_channel_credentials ,
169172 quota_project_id = quota_project_id ,
@@ -236,7 +239,7 @@ def operations_client(self) -> operations_v1.OperationsClient:
236239 This property caches on the instance; repeated calls return the same
237240 client.
238241 """
239- # Sanity check: Only create a new client if we do not already have one.
242+ # Quick check: Only create a new client if we do not already have one.
240243 if self ._operations_client is None :
241244 self ._operations_client = operations_v1 .OperationsClient (self .grpc_channel )
242245
Original file line number Diff line number Diff line change @@ -207,8 +207,11 @@ def __init__(
207207 if not self ._grpc_channel :
208208 self ._grpc_channel = type (self ).create_channel (
209209 self ._host ,
210+ # use the credentials which are saved
210211 credentials = self ._credentials ,
211- credentials_file = credentials_file ,
212+ # Set ``credentials_file`` to ``None`` here as
213+ # the credentials that we saved earlier should be used.
214+ credentials_file = None ,
212215 scopes = self ._scopes ,
213216 ssl_credentials = self ._ssl_channel_credentials ,
214217 quota_project_id = quota_project_id ,
@@ -238,7 +241,7 @@ def operations_client(self) -> operations_v1.OperationsAsyncClient:
238241 This property caches on the instance; repeated calls return the same
239242 client.
240243 """
241- # Sanity check: Only create a new client if we do not already have one.
244+ # Quick check: Only create a new client if we do not already have one.
242245 if self ._operations_client is None :
243246 self ._operations_client = operations_v1 .OperationsAsyncClient (
244247 self .grpc_channel
Original file line number Diff line number Diff line change @@ -170,8 +170,11 @@ def __init__(
170170 if not self ._grpc_channel :
171171 self ._grpc_channel = type (self ).create_channel (
172172 self ._host ,
173+ # use the credentials which are saved
173174 credentials = self ._credentials ,
174- credentials_file = credentials_file ,
175+ # Set ``credentials_file`` to ``None`` here as
176+ # the credentials that we saved earlier should be used.
177+ credentials_file = None ,
175178 scopes = self ._scopes ,
176179 ssl_credentials = self ._ssl_channel_credentials ,
177180 quota_project_id = quota_project_id ,
Original file line number Diff line number Diff line change @@ -215,8 +215,11 @@ def __init__(
215215 if not self ._grpc_channel :
216216 self ._grpc_channel = type (self ).create_channel (
217217 self ._host ,
218+ # use the credentials which are saved
218219 credentials = self ._credentials ,
219- credentials_file = credentials_file ,
220+ # Set ``credentials_file`` to ``None`` here as
221+ # the credentials that we saved earlier should be used.
222+ credentials_file = None ,
220223 scopes = self ._scopes ,
221224 ssl_credentials = self ._ssl_channel_credentials ,
222225 quota_project_id = quota_project_id ,
You can’t perform that action at this time.
0 commit comments