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

Commit 29240e3

Browse files
chore: use gapic-generator-python 0.62.1 (#122)
- [ ] 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 4f83215 commit 29240e3

File tree

10 files changed

+198
-58
lines changed

10 files changed

+198
-58
lines changed

google/cloud/networkconnectivity_v1/services/hub_service/async_client.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ async def list_hubs(
259259
260260
"""
261261
# Create or coerce a protobuf request object.
262-
# Sanity check: If we got a request object, we should *not* have
262+
# Quick check: If we got a request object, we should *not* have
263263
# gotten any keyword arguments that map to the request.
264264
has_flattened_params = any([parent])
265265
if request is not None and has_flattened_params:
@@ -341,7 +341,7 @@ async def get_hub(
341341
342342
"""
343343
# Create or coerce a protobuf request object.
344-
# Sanity check: If we got a request object, we should *not* have
344+
# Quick check: If we got a request object, we should *not* have
345345
# gotten any keyword arguments that map to the request.
346346
has_flattened_params = any([name])
347347
if request is not None and has_flattened_params:
@@ -431,7 +431,7 @@ async def create_hub(
431431
432432
"""
433433
# Create or coerce a protobuf request object.
434-
# Sanity check: If we got a request object, we should *not* have
434+
# Quick check: If we got a request object, we should *not* have
435435
# gotten any keyword arguments that map to the request.
436436
has_flattened_params = any([parent, hub, hub_id])
437437
if request is not None and has_flattened_params:
@@ -532,7 +532,7 @@ async def update_hub(
532532
533533
"""
534534
# Create or coerce a protobuf request object.
535-
# Sanity check: If we got a request object, we should *not* have
535+
# Quick check: If we got a request object, we should *not* have
536536
# gotten any keyword arguments that map to the request.
537537
has_flattened_params = any([hub, update_mask])
538538
if request is not None and has_flattened_params:
@@ -626,7 +626,7 @@ async def delete_hub(
626626
627627
"""
628628
# Create or coerce a protobuf request object.
629-
# Sanity check: If we got a request object, we should *not* have
629+
# Quick check: If we got a request object, we should *not* have
630630
# gotten any keyword arguments that map to the request.
631631
has_flattened_params = any([name])
632632
if request is not None and has_flattened_params:
@@ -707,7 +707,7 @@ async def list_spokes(
707707
708708
"""
709709
# Create or coerce a protobuf request object.
710-
# Sanity check: If we got a request object, we should *not* have
710+
# Quick check: If we got a request object, we should *not* have
711711
# gotten any keyword arguments that map to the request.
712712
has_flattened_params = any([parent])
713713
if request is not None and has_flattened_params:
@@ -792,7 +792,7 @@ async def get_spoke(
792792
793793
"""
794794
# Create or coerce a protobuf request object.
795-
# Sanity check: If we got a request object, we should *not* have
795+
# Quick check: If we got a request object, we should *not* have
796796
# gotten any keyword arguments that map to the request.
797797
has_flattened_params = any([name])
798798
if request is not None and has_flattened_params:
@@ -888,7 +888,7 @@ async def create_spoke(
888888
889889
"""
890890
# Create or coerce a protobuf request object.
891-
# Sanity check: If we got a request object, we should *not* have
891+
# Quick check: If we got a request object, we should *not* have
892892
# gotten any keyword arguments that map to the request.
893893
has_flattened_params = any([parent, spoke, spoke_id])
894894
if request is not None and has_flattened_params:
@@ -994,7 +994,7 @@ async def update_spoke(
994994
995995
"""
996996
# Create or coerce a protobuf request object.
997-
# Sanity check: If we got a request object, we should *not* have
997+
# Quick check: If we got a request object, we should *not* have
998998
# gotten any keyword arguments that map to the request.
999999
has_flattened_params = any([spoke, update_mask])
10001000
if request is not None and has_flattened_params:
@@ -1090,7 +1090,7 @@ async def delete_spoke(
10901090
10911091
"""
10921092
# Create or coerce a protobuf request object.
1093-
# Sanity check: If we got a request object, we should *not* have
1093+
# Quick check: If we got a request object, we should *not* have
10941094
# gotten any keyword arguments that map to the request.
10951095
has_flattened_params = any([name])
10961096
if request is not None and has_flattened_params:

google/cloud/networkconnectivity_v1/services/hub_service/client.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def list_hubs(
526526
527527
"""
528528
# Create or coerce a protobuf request object.
529-
# Sanity check: If we got a request object, we should *not* have
529+
# Quick check: If we got a request object, we should *not* have
530530
# gotten any keyword arguments that map to the request.
531531
has_flattened_params = any([parent])
532532
if request is not None and has_flattened_params:
@@ -608,7 +608,7 @@ def get_hub(
608608
609609
"""
610610
# Create or coerce a protobuf request object.
611-
# Sanity check: If we got a request object, we should *not* have
611+
# Quick check: If we got a request object, we should *not* have
612612
# gotten any keyword arguments that map to the request.
613613
has_flattened_params = any([name])
614614
if request is not None and has_flattened_params:
@@ -698,7 +698,7 @@ def create_hub(
698698
699699
"""
700700
# Create or coerce a protobuf request object.
701-
# Sanity check: If we got a request object, we should *not* have
701+
# Quick check: If we got a request object, we should *not* have
702702
# gotten any keyword arguments that map to the request.
703703
has_flattened_params = any([parent, hub, hub_id])
704704
if request is not None and has_flattened_params:
@@ -799,7 +799,7 @@ def update_hub(
799799
800800
"""
801801
# Create or coerce a protobuf request object.
802-
# Sanity check: If we got a request object, we should *not* have
802+
# Quick check: If we got a request object, we should *not* have
803803
# gotten any keyword arguments that map to the request.
804804
has_flattened_params = any([hub, update_mask])
805805
if request is not None and has_flattened_params:
@@ -893,7 +893,7 @@ def delete_hub(
893893
894894
"""
895895
# Create or coerce a protobuf request object.
896-
# Sanity check: If we got a request object, we should *not* have
896+
# Quick check: If we got a request object, we should *not* have
897897
# gotten any keyword arguments that map to the request.
898898
has_flattened_params = any([name])
899899
if request is not None and has_flattened_params:
@@ -974,7 +974,7 @@ def list_spokes(
974974
975975
"""
976976
# Create or coerce a protobuf request object.
977-
# Sanity check: If we got a request object, we should *not* have
977+
# Quick check: If we got a request object, we should *not* have
978978
# gotten any keyword arguments that map to the request.
979979
has_flattened_params = any([parent])
980980
if request is not None and has_flattened_params:
@@ -1059,7 +1059,7 @@ def get_spoke(
10591059
10601060
"""
10611061
# Create or coerce a protobuf request object.
1062-
# Sanity check: If we got a request object, we should *not* have
1062+
# Quick check: If we got a request object, we should *not* have
10631063
# gotten any keyword arguments that map to the request.
10641064
has_flattened_params = any([name])
10651065
if request is not None and has_flattened_params:
@@ -1155,7 +1155,7 @@ def create_spoke(
11551155
11561156
"""
11571157
# Create or coerce a protobuf request object.
1158-
# Sanity check: If we got a request object, we should *not* have
1158+
# Quick check: If we got a request object, we should *not* have
11591159
# gotten any keyword arguments that map to the request.
11601160
has_flattened_params = any([parent, spoke, spoke_id])
11611161
if request is not None and has_flattened_params:
@@ -1261,7 +1261,7 @@ def update_spoke(
12611261
12621262
"""
12631263
# Create or coerce a protobuf request object.
1264-
# Sanity check: If we got a request object, we should *not* have
1264+
# Quick check: If we got a request object, we should *not* have
12651265
# gotten any keyword arguments that map to the request.
12661266
has_flattened_params = any([spoke, update_mask])
12671267
if request is not None and has_flattened_params:
@@ -1357,7 +1357,7 @@ def delete_spoke(
13571357
13581358
"""
13591359
# Create or coerce a protobuf request object.
1360-
# Sanity check: If we got a request object, we should *not* have
1360+
# Quick check: If we got a request object, we should *not* have
13611361
# gotten any keyword arguments that map to the request.
13621362
has_flattened_params = any([name])
13631363
if request is not None and has_flattened_params:

google/cloud/networkconnectivity_v1/services/hub_service/transports/grpc.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,11 @@ def __init__(
165165
if not self._grpc_channel:
166166
self._grpc_channel = type(self).create_channel(
167167
self._host,
168+
# use the credentials which are saved
168169
credentials=self._credentials,
169-
credentials_file=credentials_file,
170+
# Set ``credentials_file`` to ``None`` here as
171+
# the credentials that we saved earlier should be used.
172+
credentials_file=None,
170173
scopes=self._scopes,
171174
ssl_credentials=self._ssl_channel_credentials,
172175
quota_project_id=quota_project_id,
@@ -239,7 +242,7 @@ def operations_client(self) -> operations_v1.OperationsClient:
239242
This property caches on the instance; repeated calls return the same
240243
client.
241244
"""
242-
# Sanity check: Only create a new client if we do not already have one.
245+
# Quick check: Only create a new client if we do not already have one.
243246
if self._operations_client is None:
244247
self._operations_client = operations_v1.OperationsClient(self.grpc_channel)
245248

google/cloud/networkconnectivity_v1/services/hub_service/transports/grpc_asyncio.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,11 @@ def __init__(
210210
if not self._grpc_channel:
211211
self._grpc_channel = type(self).create_channel(
212212
self._host,
213+
# use the credentials which are saved
213214
credentials=self._credentials,
214-
credentials_file=credentials_file,
215+
# Set ``credentials_file`` to ``None`` here as
216+
# the credentials that we saved earlier should be used.
217+
credentials_file=None,
215218
scopes=self._scopes,
216219
ssl_credentials=self._ssl_channel_credentials,
217220
quota_project_id=quota_project_id,
@@ -241,7 +244,7 @@ def operations_client(self) -> operations_v1.OperationsAsyncClient:
241244
This property caches on the instance; repeated calls return the same
242245
client.
243246
"""
244-
# Sanity check: Only create a new client if we do not already have one.
247+
# Quick check: Only create a new client if we do not already have one.
245248
if self._operations_client is None:
246249
self._operations_client = operations_v1.OperationsAsyncClient(
247250
self.grpc_channel

google/cloud/networkconnectivity_v1alpha1/services/hub_service/async_client.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ async def list_hubs(
257257
258258
"""
259259
# Create or coerce a protobuf request object.
260-
# Sanity check: If we got a request object, we should *not* have
260+
# Quick check: If we got a request object, we should *not* have
261261
# gotten any keyword arguments that map to the request.
262262
has_flattened_params = any([parent])
263263
if request is not None and has_flattened_params:
@@ -330,8 +330,8 @@ async def get_hub(
330330
331331
Returns:
332332
google.cloud.networkconnectivity_v1alpha1.types.Hub:
333-
Network Connectivity Center is a hub-
334-
nd-spoke abstraction for network
333+
Network Connectivity Center is a
334+
hub-and-spoke abstraction for network
335335
connectivity management in Google Cloud.
336336
It reduces operational complexity
337337
through a simple, centralized
@@ -340,7 +340,7 @@ async def get_hub(
340340
341341
"""
342342
# Create or coerce a protobuf request object.
343-
# Sanity check: If we got a request object, we should *not* have
343+
# Quick check: If we got a request object, we should *not* have
344344
# gotten any keyword arguments that map to the request.
345345
has_flattened_params = any([name])
346346
if request is not None and has_flattened_params:
@@ -433,7 +433,7 @@ async def create_hub(
433433
434434
"""
435435
# Create or coerce a protobuf request object.
436-
# Sanity check: If we got a request object, we should *not* have
436+
# Quick check: If we got a request object, we should *not* have
437437
# gotten any keyword arguments that map to the request.
438438
has_flattened_params = any([parent, hub, hub_id])
439439
if request is not None and has_flattened_params:
@@ -534,7 +534,7 @@ async def update_hub(
534534
535535
"""
536536
# Create or coerce a protobuf request object.
537-
# Sanity check: If we got a request object, we should *not* have
537+
# Quick check: If we got a request object, we should *not* have
538538
# gotten any keyword arguments that map to the request.
539539
has_flattened_params = any([hub, update_mask])
540540
if request is not None and has_flattened_params:
@@ -628,7 +628,7 @@ async def delete_hub(
628628
629629
"""
630630
# Create or coerce a protobuf request object.
631-
# Sanity check: If we got a request object, we should *not* have
631+
# Quick check: If we got a request object, we should *not* have
632632
# gotten any keyword arguments that map to the request.
633633
has_flattened_params = any([name])
634634
if request is not None and has_flattened_params:
@@ -708,7 +708,7 @@ async def list_spokes(
708708
709709
"""
710710
# Create or coerce a protobuf request object.
711-
# Sanity check: If we got a request object, we should *not* have
711+
# Quick check: If we got a request object, we should *not* have
712712
# gotten any keyword arguments that map to the request.
713713
has_flattened_params = any([parent])
714714
if request is not None and has_flattened_params:
@@ -786,7 +786,7 @@ async def get_spoke(
786786
787787
"""
788788
# Create or coerce a protobuf request object.
789-
# Sanity check: If we got a request object, we should *not* have
789+
# Quick check: If we got a request object, we should *not* have
790790
# gotten any keyword arguments that map to the request.
791791
has_flattened_params = any([name])
792792
if request is not None and has_flattened_params:
@@ -877,7 +877,7 @@ async def create_spoke(
877877
878878
"""
879879
# Create or coerce a protobuf request object.
880-
# Sanity check: If we got a request object, we should *not* have
880+
# Quick check: If we got a request object, we should *not* have
881881
# gotten any keyword arguments that map to the request.
882882
has_flattened_params = any([parent, spoke, spoke_id])
883883
if request is not None and has_flattened_params:
@@ -977,7 +977,7 @@ async def update_spoke(
977977
978978
"""
979979
# Create or coerce a protobuf request object.
980-
# Sanity check: If we got a request object, we should *not* have
980+
# Quick check: If we got a request object, we should *not* have
981981
# gotten any keyword arguments that map to the request.
982982
has_flattened_params = any([spoke, update_mask])
983983
if request is not None and has_flattened_params:
@@ -1073,7 +1073,7 @@ async def delete_spoke(
10731073
10741074
"""
10751075
# Create or coerce a protobuf request object.
1076-
# Sanity check: If we got a request object, we should *not* have
1076+
# Quick check: If we got a request object, we should *not* have
10771077
# gotten any keyword arguments that map to the request.
10781078
has_flattened_params = any([name])
10791079
if request is not None and has_flattened_params:

0 commit comments

Comments
 (0)