Skip to content

Commit bb80bf3

Browse files
chore: use gapic-generator-python 0.62.1 (#94)
- [ ] 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: googleapis/googleapis-gen@4fb761b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGZiNzYxYmJkODUwNmFjMTU2ZjQ5YmFjNWYxODMwNmFhOGViM2FhOCJ9
1 parent e4a24e9 commit bb80bf3

File tree

5 files changed

+122
-37
lines changed

5 files changed

+122
-37
lines changed

packages/google-cloud-service-management/google/cloud/servicemanagement_v1/services/service_manager/async_client.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ async def list_services(
287287
288288
"""
289289
# Create or coerce a protobuf request object.
290-
# Sanity check: If we got a request object, we should *not* have
290+
# Quick check: If we got a request object, we should *not* have
291291
# gotten any keyword arguments that map to the request.
292292
has_flattened_params = any([producer_project_id, consumer_id])
293293
if request is not None and has_flattened_params:
@@ -363,7 +363,7 @@ async def get_service(
363363
364364
"""
365365
# Create or coerce a protobuf request object.
366-
# Sanity check: If we got a request object, we should *not* have
366+
# Quick check: If we got a request object, we should *not* have
367367
# gotten any keyword arguments that map to the request.
368368
has_flattened_params = any([service_name])
369369
if request is not None and has_flattened_params:
@@ -433,7 +433,7 @@ async def create_service(
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([service])
439439
if request is not None and has_flattened_params:
@@ -528,7 +528,7 @@ async def delete_service(
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([service_name])
534534
if request is not None and has_flattened_params:
@@ -612,7 +612,7 @@ async def undelete_service(
612612
613613
"""
614614
# Create or coerce a protobuf request object.
615-
# Sanity check: If we got a request object, we should *not* have
615+
# Quick check: If we got a request object, we should *not* have
616616
# gotten any keyword arguments that map to the request.
617617
has_flattened_params = any([service_name])
618618
if request is not None and has_flattened_params:
@@ -691,7 +691,7 @@ async def list_service_configs(
691691
692692
"""
693693
# Create or coerce a protobuf request object.
694-
# Sanity check: If we got a request object, we should *not* have
694+
# Quick check: If we got a request object, we should *not* have
695695
# gotten any keyword arguments that map to the request.
696696
has_flattened_params = any([service_name])
697697
if request is not None and has_flattened_params:
@@ -801,7 +801,7 @@ async def get_service_config(
801801
802802
"""
803803
# Create or coerce a protobuf request object.
804-
# Sanity check: If we got a request object, we should *not* have
804+
# Quick check: If we got a request object, we should *not* have
805805
# gotten any keyword arguments that map to the request.
806806
has_flattened_params = any([service_name, config_id, view])
807807
if request is not None and has_flattened_params:
@@ -905,7 +905,7 @@ async def create_service_config(
905905
906906
"""
907907
# Create or coerce a protobuf request object.
908-
# Sanity check: If we got a request object, we should *not* have
908+
# Quick check: If we got a request object, we should *not* have
909909
# gotten any keyword arguments that map to the request.
910910
has_flattened_params = any([service_name, service_config])
911911
if request is not None and has_flattened_params:
@@ -1007,7 +1007,7 @@ async def submit_config_source(
10071007
10081008
"""
10091009
# Create or coerce a protobuf request object.
1010-
# Sanity check: If we got a request object, we should *not* have
1010+
# Quick check: If we got a request object, we should *not* have
10111011
# gotten any keyword arguments that map to the request.
10121012
has_flattened_params = any([service_name, config_source, validate_only])
10131013
if request is not None and has_flattened_params:
@@ -1106,7 +1106,7 @@ async def list_service_rollouts(
11061106
11071107
"""
11081108
# Create or coerce a protobuf request object.
1109-
# Sanity check: If we got a request object, we should *not* have
1109+
# Quick check: If we got a request object, we should *not* have
11101110
# gotten any keyword arguments that map to the request.
11111111
has_flattened_params = any([service_name, filter])
11121112
if request is not None and has_flattened_params:
@@ -1194,7 +1194,7 @@ async def get_service_rollout(
11941194
11951195
"""
11961196
# Create or coerce a protobuf request object.
1197-
# Sanity check: If we got a request object, we should *not* have
1197+
# Quick check: If we got a request object, we should *not* have
11981198
# gotten any keyword arguments that map to the request.
11991199
has_flattened_params = any([service_name, rollout_id])
12001200
if request is not None and has_flattened_params:
@@ -1291,7 +1291,7 @@ async def create_service_rollout(
12911291
12921292
"""
12931293
# Create or coerce a protobuf request object.
1294-
# Sanity check: If we got a request object, we should *not* have
1294+
# Quick check: If we got a request object, we should *not* have
12951295
# gotten any keyword arguments that map to the request.
12961296
has_flattened_params = any([service_name, rollout])
12971297
if request is not None and has_flattened_params:
@@ -1393,7 +1393,7 @@ async def generate_config_report(
13931393
13941394
"""
13951395
# Create or coerce a protobuf request object.
1396-
# Sanity check: If we got a request object, we should *not* have
1396+
# Quick check: If we got a request object, we should *not* have
13971397
# gotten any keyword arguments that map to the request.
13981398
has_flattened_params = any([new_config, old_config])
13991399
if request is not None and has_flattened_params:
@@ -1490,7 +1490,7 @@ async def enable_service(
14901490
)
14911491

14921492
# Create or coerce a protobuf request object.
1493-
# Sanity check: If we got a request object, we should *not* have
1493+
# Quick check: If we got a request object, we should *not* have
14941494
# gotten any keyword arguments that map to the request.
14951495
has_flattened_params = any([service_name, consumer_id])
14961496
if request is not None and has_flattened_params:
@@ -1596,7 +1596,7 @@ async def disable_service(
15961596
)
15971597

15981598
# Create or coerce a protobuf request object.
1599-
# Sanity check: If we got a request object, we should *not* have
1599+
# Quick check: If we got a request object, we should *not* have
16001600
# gotten any keyword arguments that map to the request.
16011601
has_flattened_params = any([service_name, consumer_id])
16021602
if request is not None and has_flattened_params:

packages/google-cloud-service-management/google/cloud/servicemanagement_v1/services/service_manager/client.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def list_services(
470470
471471
"""
472472
# Create or coerce a protobuf request object.
473-
# Sanity check: If we got a request object, we should *not* have
473+
# Quick check: If we got a request object, we should *not* have
474474
# gotten any keyword arguments that map to the request.
475475
has_flattened_params = any([producer_project_id, consumer_id])
476476
if request is not None and has_flattened_params:
@@ -546,7 +546,7 @@ def get_service(
546546
547547
"""
548548
# Create or coerce a protobuf request object.
549-
# Sanity check: If we got a request object, we should *not* have
549+
# Quick check: If we got a request object, we should *not* have
550550
# gotten any keyword arguments that map to the request.
551551
has_flattened_params = any([service_name])
552552
if request is not None and has_flattened_params:
@@ -616,7 +616,7 @@ def create_service(
616616
617617
"""
618618
# Create or coerce a protobuf request object.
619-
# Sanity check: If we got a request object, we should *not* have
619+
# Quick check: If we got a request object, we should *not* have
620620
# gotten any keyword arguments that map to the request.
621621
has_flattened_params = any([service])
622622
if request is not None and has_flattened_params:
@@ -711,7 +711,7 @@ def delete_service(
711711
712712
"""
713713
# Create or coerce a protobuf request object.
714-
# Sanity check: If we got a request object, we should *not* have
714+
# Quick check: If we got a request object, we should *not* have
715715
# gotten any keyword arguments that map to the request.
716716
has_flattened_params = any([service_name])
717717
if request is not None and has_flattened_params:
@@ -795,7 +795,7 @@ def undelete_service(
795795
796796
"""
797797
# Create or coerce a protobuf request object.
798-
# Sanity check: If we got a request object, we should *not* have
798+
# Quick check: If we got a request object, we should *not* have
799799
# gotten any keyword arguments that map to the request.
800800
has_flattened_params = any([service_name])
801801
if request is not None and has_flattened_params:
@@ -874,7 +874,7 @@ def list_service_configs(
874874
875875
"""
876876
# Create or coerce a protobuf request object.
877-
# Sanity check: If we got a request object, we should *not* have
877+
# Quick check: If we got a request object, we should *not* have
878878
# gotten any keyword arguments that map to the request.
879879
has_flattened_params = any([service_name])
880880
if request is not None and has_flattened_params:
@@ -984,7 +984,7 @@ def get_service_config(
984984
985985
"""
986986
# Create or coerce a protobuf request object.
987-
# Sanity check: If we got a request object, we should *not* have
987+
# Quick check: If we got a request object, we should *not* have
988988
# gotten any keyword arguments that map to the request.
989989
has_flattened_params = any([service_name, config_id, view])
990990
if request is not None and has_flattened_params:
@@ -1088,7 +1088,7 @@ def create_service_config(
10881088
10891089
"""
10901090
# Create or coerce a protobuf request object.
1091-
# Sanity check: If we got a request object, we should *not* have
1091+
# Quick check: If we got a request object, we should *not* have
10921092
# gotten any keyword arguments that map to the request.
10931093
has_flattened_params = any([service_name, service_config])
10941094
if request is not None and has_flattened_params:
@@ -1190,7 +1190,7 @@ def submit_config_source(
11901190
11911191
"""
11921192
# Create or coerce a protobuf request object.
1193-
# Sanity check: If we got a request object, we should *not* have
1193+
# Quick check: If we got a request object, we should *not* have
11941194
# gotten any keyword arguments that map to the request.
11951195
has_flattened_params = any([service_name, config_source, validate_only])
11961196
if request is not None and has_flattened_params:
@@ -1289,7 +1289,7 @@ def list_service_rollouts(
12891289
12901290
"""
12911291
# Create or coerce a protobuf request object.
1292-
# Sanity check: If we got a request object, we should *not* have
1292+
# Quick check: If we got a request object, we should *not* have
12931293
# gotten any keyword arguments that map to the request.
12941294
has_flattened_params = any([service_name, filter])
12951295
if request is not None and has_flattened_params:
@@ -1377,7 +1377,7 @@ def get_service_rollout(
13771377
13781378
"""
13791379
# Create or coerce a protobuf request object.
1380-
# Sanity check: If we got a request object, we should *not* have
1380+
# Quick check: If we got a request object, we should *not* have
13811381
# gotten any keyword arguments that map to the request.
13821382
has_flattened_params = any([service_name, rollout_id])
13831383
if request is not None and has_flattened_params:
@@ -1474,7 +1474,7 @@ def create_service_rollout(
14741474
14751475
"""
14761476
# Create or coerce a protobuf request object.
1477-
# Sanity check: If we got a request object, we should *not* have
1477+
# Quick check: If we got a request object, we should *not* have
14781478
# gotten any keyword arguments that map to the request.
14791479
has_flattened_params = any([service_name, rollout])
14801480
if request is not None and has_flattened_params:
@@ -1576,7 +1576,7 @@ def generate_config_report(
15761576
15771577
"""
15781578
# Create or coerce a protobuf request object.
1579-
# Sanity check: If we got a request object, we should *not* have
1579+
# Quick check: If we got a request object, we should *not* have
15801580
# gotten any keyword arguments that map to the request.
15811581
has_flattened_params = any([new_config, old_config])
15821582
if request is not None and has_flattened_params:
@@ -1673,7 +1673,7 @@ def enable_service(
16731673
)
16741674

16751675
# Create or coerce a protobuf request object.
1676-
# Sanity check: If we got a request object, we should *not* have
1676+
# Quick check: If we got a request object, we should *not* have
16771677
# gotten any keyword arguments that map to the request.
16781678
has_flattened_params = any([service_name, consumer_id])
16791679
if request is not None and has_flattened_params:
@@ -1778,7 +1778,7 @@ def disable_service(
17781778
)
17791779

17801780
# Create or coerce a protobuf request object.
1781-
# Sanity check: If we got a request object, we should *not* have
1781+
# Quick check: If we got a request object, we should *not* have
17821782
# gotten any keyword arguments that map to the request.
17831783
has_flattened_params = any([service_name, consumer_id])
17841784
if request is not None and has_flattened_params:

packages/google-cloud-service-management/google/cloud/servicemanagement_v1/services/service_manager/transports/grpc.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,11 @@ def __init__(
164164
if not self._grpc_channel:
165165
self._grpc_channel = type(self).create_channel(
166166
self._host,
167+
# use the credentials which are saved
167168
credentials=self._credentials,
168-
credentials_file=credentials_file,
169+
# Set ``credentials_file`` to ``None`` here as
170+
# the credentials that we saved earlier should be used.
171+
credentials_file=None,
169172
scopes=self._scopes,
170173
ssl_credentials=self._ssl_channel_credentials,
171174
quota_project_id=quota_project_id,
@@ -238,7 +241,7 @@ def operations_client(self) -> operations_v1.OperationsClient:
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.OperationsClient(self.grpc_channel)
244247

packages/google-cloud-service-management/google/cloud/servicemanagement_v1/services/service_manager/transports/grpc_asyncio.py

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

0 commit comments

Comments
 (0)