Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 55c52b5

Browse files
chore: use gapic-generator-python 0.62.1 (#151)
- [ ] Regenerate this pull request now. fix: resolve DuplicateCredentialArgs error when using credentials_file committer: parthea PiperOrigin-RevId: 425964861 Source-Link: googleapis/googleapis@84b1a5a Source-Link: https://github.com/googleapis/googleapis-gen/commit/4fb761bbd8506ac156f49bac5f18306aa8eb3aa8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGZiNzYxYmJkODUwNmFjMTU2ZjQ5YmFjNWYxODMwNmFhOGViM2FhOCJ9
1 parent a562a5d commit 55c52b5

File tree

16 files changed

+386
-78
lines changed

16 files changed

+386
-78
lines changed

google/cloud/servicedirectory_v1/services/lookup_service/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,11 @@ def __init__(
158158
if not self._grpc_channel:
159159
self._grpc_channel = type(self).create_channel(
160160
self._host,
161+
# use the credentials which are saved
161162
credentials=self._credentials,
162-
credentials_file=credentials_file,
163+
# Set ``credentials_file`` to ``None`` here as
164+
# the credentials that we saved earlier should be used.
165+
credentials_file=None,
163166
scopes=self._scopes,
164167
ssl_credentials=self._ssl_channel_credentials,
165168
quota_project_id=quota_project_id,

google/cloud/servicedirectory_v1/services/lookup_service/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,11 @@ def __init__(
203203
if not self._grpc_channel:
204204
self._grpc_channel = type(self).create_channel(
205205
self._host,
206+
# use the credentials which are saved
206207
credentials=self._credentials,
207-
credentials_file=credentials_file,
208+
# Set ``credentials_file`` to ``None`` here as
209+
# the credentials that we saved earlier should be used.
210+
credentials_file=None,
208211
scopes=self._scopes,
209212
ssl_credentials=self._ssl_channel_credentials,
210213
quota_project_id=quota_project_id,

google/cloud/servicedirectory_v1/services/registration_service/async_client.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ async def create_namespace(
291291
292292
"""
293293
# Create or coerce a protobuf request object.
294-
# Sanity check: If we got a request object, we should *not* have
294+
# Quick check: If we got a request object, we should *not* have
295295
# gotten any keyword arguments that map to the request.
296296
has_flattened_params = any([parent, namespace, namespace_id])
297297
if request is not None and has_flattened_params:
@@ -370,7 +370,7 @@ async def list_namespaces(
370370
371371
"""
372372
# Create or coerce a protobuf request object.
373-
# Sanity check: If we got a request object, we should *not* have
373+
# Quick check: If we got a request object, we should *not* have
374374
# gotten any keyword arguments that map to the request.
375375
has_flattened_params = any([parent])
376376
if request is not None and has_flattened_params:
@@ -449,7 +449,7 @@ async def get_namespace(
449449
450450
"""
451451
# Create or coerce a protobuf request object.
452-
# Sanity check: If we got a request object, we should *not* have
452+
# Quick check: If we got a request object, we should *not* have
453453
# gotten any keyword arguments that map to the request.
454454
has_flattened_params = any([name])
455455
if request is not None and has_flattened_params:
@@ -528,7 +528,7 @@ async def update_namespace(
528528
529529
"""
530530
# Create or coerce a protobuf request object.
531-
# Sanity check: If we got a request object, we should *not* have
531+
# Quick check: If we got a request object, we should *not* have
532532
# gotten any keyword arguments that map to the request.
533533
has_flattened_params = any([namespace, update_mask])
534534
if request is not None and has_flattened_params:
@@ -598,7 +598,7 @@ async def delete_namespace(
598598
sent along with the request as metadata.
599599
"""
600600
# Create or coerce a protobuf request object.
601-
# Sanity check: If we got a request object, we should *not* have
601+
# Quick check: If we got a request object, we should *not* have
602602
# gotten any keyword arguments that map to the request.
603603
has_flattened_params = any([name])
604604
if request is not None and has_flattened_params:
@@ -692,7 +692,7 @@ async def create_service(
692692
693693
"""
694694
# Create or coerce a protobuf request object.
695-
# Sanity check: If we got a request object, we should *not* have
695+
# Quick check: If we got a request object, we should *not* have
696696
# gotten any keyword arguments that map to the request.
697697
has_flattened_params = any([parent, service, service_id])
698698
if request is not None and has_flattened_params:
@@ -771,7 +771,7 @@ async def list_services(
771771
772772
"""
773773
# Create or coerce a protobuf request object.
774-
# Sanity check: If we got a request object, we should *not* have
774+
# Quick check: If we got a request object, we should *not* have
775775
# gotten any keyword arguments that map to the request.
776776
has_flattened_params = any([parent])
777777
if request is not None and has_flattened_params:
@@ -853,7 +853,7 @@ async def get_service(
853853
854854
"""
855855
# Create or coerce a protobuf request object.
856-
# Sanity check: If we got a request object, we should *not* have
856+
# Quick check: If we got a request object, we should *not* have
857857
# gotten any keyword arguments that map to the request.
858858
has_flattened_params = any([name])
859859
if request is not None and has_flattened_params:
@@ -932,7 +932,7 @@ async def update_service(
932932
933933
"""
934934
# Create or coerce a protobuf request object.
935-
# Sanity check: If we got a request object, we should *not* have
935+
# Quick check: If we got a request object, we should *not* have
936936
# gotten any keyword arguments that map to the request.
937937
has_flattened_params = any([service, update_mask])
938938
if request is not None and has_flattened_params:
@@ -1002,7 +1002,7 @@ async def delete_service(
10021002
sent along with the request as metadata.
10031003
"""
10041004
# Create or coerce a protobuf request object.
1005-
# Sanity check: If we got a request object, we should *not* have
1005+
# Quick check: If we got a request object, we should *not* have
10061006
# gotten any keyword arguments that map to the request.
10071007
has_flattened_params = any([name])
10081008
if request is not None and has_flattened_params:
@@ -1095,7 +1095,7 @@ async def create_endpoint(
10951095
10961096
"""
10971097
# Create or coerce a protobuf request object.
1098-
# Sanity check: If we got a request object, we should *not* have
1098+
# Quick check: If we got a request object, we should *not* have
10991099
# gotten any keyword arguments that map to the request.
11001100
has_flattened_params = any([parent, endpoint, endpoint_id])
11011101
if request is not None and has_flattened_params:
@@ -1174,7 +1174,7 @@ async def list_endpoints(
11741174
11751175
"""
11761176
# Create or coerce a protobuf request object.
1177-
# Sanity check: If we got a request object, we should *not* have
1177+
# Quick check: If we got a request object, we should *not* have
11781178
# gotten any keyword arguments that map to the request.
11791179
has_flattened_params = any([parent])
11801180
if request is not None and has_flattened_params:
@@ -1254,7 +1254,7 @@ async def get_endpoint(
12541254
12551255
"""
12561256
# Create or coerce a protobuf request object.
1257-
# Sanity check: If we got a request object, we should *not* have
1257+
# Quick check: If we got a request object, we should *not* have
12581258
# gotten any keyword arguments that map to the request.
12591259
has_flattened_params = any([name])
12601260
if request is not None and has_flattened_params:
@@ -1332,7 +1332,7 @@ async def update_endpoint(
13321332
13331333
"""
13341334
# Create or coerce a protobuf request object.
1335-
# Sanity check: If we got a request object, we should *not* have
1335+
# Quick check: If we got a request object, we should *not* have
13361336
# gotten any keyword arguments that map to the request.
13371337
has_flattened_params = any([endpoint, update_mask])
13381338
if request is not None and has_flattened_params:
@@ -1401,7 +1401,7 @@ async def delete_endpoint(
14011401
sent along with the request as metadata.
14021402
"""
14031403
# Create or coerce a protobuf request object.
1404-
# Sanity check: If we got a request object, we should *not* have
1404+
# Quick check: If we got a request object, we should *not* have
14051405
# gotten any keyword arguments that map to the request.
14061406
has_flattened_params = any([name])
14071407
if request is not None and has_flattened_params:

google/cloud/servicedirectory_v1/services/registration_service/client.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ def create_namespace(
523523
524524
"""
525525
# Create or coerce a protobuf request object.
526-
# Sanity check: If we got a request object, we should *not* have
526+
# Quick check: If we got a request object, we should *not* have
527527
# gotten any keyword arguments that map to the request.
528528
has_flattened_params = any([parent, namespace, namespace_id])
529529
if request is not None and has_flattened_params:
@@ -602,7 +602,7 @@ def list_namespaces(
602602
603603
"""
604604
# Create or coerce a protobuf request object.
605-
# Sanity check: If we got a request object, we should *not* have
605+
# Quick check: If we got a request object, we should *not* have
606606
# gotten any keyword arguments that map to the request.
607607
has_flattened_params = any([parent])
608608
if request is not None and has_flattened_params:
@@ -681,7 +681,7 @@ def get_namespace(
681681
682682
"""
683683
# Create or coerce a protobuf request object.
684-
# Sanity check: If we got a request object, we should *not* have
684+
# Quick check: If we got a request object, we should *not* have
685685
# gotten any keyword arguments that map to the request.
686686
has_flattened_params = any([name])
687687
if request is not None and has_flattened_params:
@@ -760,7 +760,7 @@ def update_namespace(
760760
761761
"""
762762
# Create or coerce a protobuf request object.
763-
# Sanity check: If we got a request object, we should *not* have
763+
# Quick check: If we got a request object, we should *not* have
764764
# gotten any keyword arguments that map to the request.
765765
has_flattened_params = any([namespace, update_mask])
766766
if request is not None and has_flattened_params:
@@ -830,7 +830,7 @@ def delete_namespace(
830830
sent along with the request as metadata.
831831
"""
832832
# Create or coerce a protobuf request object.
833-
# Sanity check: If we got a request object, we should *not* have
833+
# Quick check: If we got a request object, we should *not* have
834834
# gotten any keyword arguments that map to the request.
835835
has_flattened_params = any([name])
836836
if request is not None and has_flattened_params:
@@ -924,7 +924,7 @@ def create_service(
924924
925925
"""
926926
# Create or coerce a protobuf request object.
927-
# Sanity check: If we got a request object, we should *not* have
927+
# Quick check: If we got a request object, we should *not* have
928928
# gotten any keyword arguments that map to the request.
929929
has_flattened_params = any([parent, service, service_id])
930930
if request is not None and has_flattened_params:
@@ -1003,7 +1003,7 @@ def list_services(
10031003
10041004
"""
10051005
# Create or coerce a protobuf request object.
1006-
# Sanity check: If we got a request object, we should *not* have
1006+
# Quick check: If we got a request object, we should *not* have
10071007
# gotten any keyword arguments that map to the request.
10081008
has_flattened_params = any([parent])
10091009
if request is not None and has_flattened_params:
@@ -1085,7 +1085,7 @@ def get_service(
10851085
10861086
"""
10871087
# Create or coerce a protobuf request object.
1088-
# Sanity check: If we got a request object, we should *not* have
1088+
# Quick check: If we got a request object, we should *not* have
10891089
# gotten any keyword arguments that map to the request.
10901090
has_flattened_params = any([name])
10911091
if request is not None and has_flattened_params:
@@ -1164,7 +1164,7 @@ def update_service(
11641164
11651165
"""
11661166
# Create or coerce a protobuf request object.
1167-
# Sanity check: If we got a request object, we should *not* have
1167+
# Quick check: If we got a request object, we should *not* have
11681168
# gotten any keyword arguments that map to the request.
11691169
has_flattened_params = any([service, update_mask])
11701170
if request is not None and has_flattened_params:
@@ -1234,7 +1234,7 @@ def delete_service(
12341234
sent along with the request as metadata.
12351235
"""
12361236
# Create or coerce a protobuf request object.
1237-
# Sanity check: If we got a request object, we should *not* have
1237+
# Quick check: If we got a request object, we should *not* have
12381238
# gotten any keyword arguments that map to the request.
12391239
has_flattened_params = any([name])
12401240
if request is not None and has_flattened_params:
@@ -1327,7 +1327,7 @@ def create_endpoint(
13271327
13281328
"""
13291329
# Create or coerce a protobuf request object.
1330-
# Sanity check: If we got a request object, we should *not* have
1330+
# Quick check: If we got a request object, we should *not* have
13311331
# gotten any keyword arguments that map to the request.
13321332
has_flattened_params = any([parent, endpoint, endpoint_id])
13331333
if request is not None and has_flattened_params:
@@ -1406,7 +1406,7 @@ def list_endpoints(
14061406
14071407
"""
14081408
# Create or coerce a protobuf request object.
1409-
# Sanity check: If we got a request object, we should *not* have
1409+
# Quick check: If we got a request object, we should *not* have
14101410
# gotten any keyword arguments that map to the request.
14111411
has_flattened_params = any([parent])
14121412
if request is not None and has_flattened_params:
@@ -1486,7 +1486,7 @@ def get_endpoint(
14861486
14871487
"""
14881488
# Create or coerce a protobuf request object.
1489-
# Sanity check: If we got a request object, we should *not* have
1489+
# Quick check: If we got a request object, we should *not* have
14901490
# gotten any keyword arguments that map to the request.
14911491
has_flattened_params = any([name])
14921492
if request is not None and has_flattened_params:
@@ -1564,7 +1564,7 @@ def update_endpoint(
15641564
15651565
"""
15661566
# Create or coerce a protobuf request object.
1567-
# Sanity check: If we got a request object, we should *not* have
1567+
# Quick check: If we got a request object, we should *not* have
15681568
# gotten any keyword arguments that map to the request.
15691569
has_flattened_params = any([endpoint, update_mask])
15701570
if request is not None and has_flattened_params:
@@ -1633,7 +1633,7 @@ def delete_endpoint(
16331633
sent along with the request as metadata.
16341634
"""
16351635
# Create or coerce a protobuf request object.
1636-
# Sanity check: If we got a request object, we should *not* have
1636+
# Quick check: If we got a request object, we should *not* have
16371637
# gotten any keyword arguments that map to the request.
16381638
has_flattened_params = any([name])
16391639
if request is not None and has_flattened_params:

google/cloud/servicedirectory_v1/services/registration_service/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,11 @@ def __init__(
181181
if not self._grpc_channel:
182182
self._grpc_channel = type(self).create_channel(
183183
self._host,
184+
# use the credentials which are saved
184185
credentials=self._credentials,
185-
credentials_file=credentials_file,
186+
# Set ``credentials_file`` to ``None`` here as
187+
# the credentials that we saved earlier should be used.
188+
credentials_file=None,
186189
scopes=self._scopes,
187190
ssl_credentials=self._ssl_channel_credentials,
188191
quota_project_id=quota_project_id,

google/cloud/servicedirectory_v1/services/registration_service/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,11 @@ def __init__(
226226
if not self._grpc_channel:
227227
self._grpc_channel = type(self).create_channel(
228228
self._host,
229+
# use the credentials which are saved
229230
credentials=self._credentials,
230-
credentials_file=credentials_file,
231+
# Set ``credentials_file`` to ``None`` here as
232+
# the credentials that we saved earlier should be used.
233+
credentials_file=None,
231234
scopes=self._scopes,
232235
ssl_credentials=self._ssl_channel_credentials,
233236
quota_project_id=quota_project_id,

google/cloud/servicedirectory_v1beta1/services/lookup_service/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,11 @@ def __init__(
158158
if not self._grpc_channel:
159159
self._grpc_channel = type(self).create_channel(
160160
self._host,
161+
# use the credentials which are saved
161162
credentials=self._credentials,
162-
credentials_file=credentials_file,
163+
# Set ``credentials_file`` to ``None`` here as
164+
# the credentials that we saved earlier should be used.
165+
credentials_file=None,
163166
scopes=self._scopes,
164167
ssl_credentials=self._ssl_channel_credentials,
165168
quota_project_id=quota_project_id,

google/cloud/servicedirectory_v1beta1/services/lookup_service/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,11 @@ def __init__(
203203
if not self._grpc_channel:
204204
self._grpc_channel = type(self).create_channel(
205205
self._host,
206+
# use the credentials which are saved
206207
credentials=self._credentials,
207-
credentials_file=credentials_file,
208+
# Set ``credentials_file`` to ``None`` here as
209+
# the credentials that we saved earlier should be used.
210+
credentials_file=None,
208211
scopes=self._scopes,
209212
ssl_credentials=self._ssl_channel_credentials,
210213
quota_project_id=quota_project_id,

0 commit comments

Comments
 (0)