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

Commit 7d26e56

Browse files
chore: use gapic-generator-python 0.62.1 (#168)
- [ ] 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 b009b71 commit 7d26e56

File tree

12 files changed

+194
-54
lines changed

12 files changed

+194
-54
lines changed

google/cloud/recommender_v1/services/recommender/async_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ async def list_insights(
270270
271271
"""
272272
# Create or coerce a protobuf request object.
273-
# Sanity check: If we got a request object, we should *not* have
273+
# Quick check: If we got a request object, we should *not* have
274274
# gotten any keyword arguments that map to the request.
275275
has_flattened_params = any([parent])
276276
if request is not None and has_flattened_params:
@@ -357,7 +357,7 @@ async def get_insight(
357357
358358
"""
359359
# Create or coerce a protobuf request object.
360-
# Sanity check: If we got a request object, we should *not* have
360+
# Quick check: If we got a request object, we should *not* have
361361
# gotten any keyword arguments that map to the request.
362362
has_flattened_params = any([name])
363363
if request is not None and has_flattened_params:
@@ -463,7 +463,7 @@ async def mark_insight_accepted(
463463
464464
"""
465465
# Create or coerce a protobuf request object.
466-
# Sanity check: If we got a request object, we should *not* have
466+
# Quick check: If we got a request object, we should *not* have
467467
# gotten any keyword arguments that map to the request.
468468
has_flattened_params = any([name, state_metadata, etag])
469469
if request is not None and has_flattened_params:
@@ -585,7 +585,7 @@ async def list_recommendations(
585585
586586
"""
587587
# Create or coerce a protobuf request object.
588-
# Sanity check: If we got a request object, we should *not* have
588+
# Quick check: If we got a request object, we should *not* have
589589
# gotten any keyword arguments that map to the request.
590590
has_flattened_params = any([parent, filter])
591591
if request is not None and has_flattened_params:
@@ -675,7 +675,7 @@ async def get_recommendation(
675675
676676
"""
677677
# Create or coerce a protobuf request object.
678-
# Sanity check: If we got a request object, we should *not* have
678+
# Quick check: If we got a request object, we should *not* have
679679
# gotten any keyword arguments that map to the request.
680680
has_flattened_params = any([name])
681681
if request is not None and has_flattened_params:
@@ -789,7 +789,7 @@ async def mark_recommendation_claimed(
789789
790790
"""
791791
# Create or coerce a protobuf request object.
792-
# Sanity check: If we got a request object, we should *not* have
792+
# Quick check: If we got a request object, we should *not* have
793793
# gotten any keyword arguments that map to the request.
794794
has_flattened_params = any([name, state_metadata, etag])
795795
if request is not None and has_flattened_params:
@@ -898,7 +898,7 @@ async def mark_recommendation_succeeded(
898898
899899
"""
900900
# Create or coerce a protobuf request object.
901-
# Sanity check: If we got a request object, we should *not* have
901+
# Quick check: If we got a request object, we should *not* have
902902
# gotten any keyword arguments that map to the request.
903903
has_flattened_params = any([name, state_metadata, etag])
904904
if request is not None and has_flattened_params:
@@ -1007,7 +1007,7 @@ async def mark_recommendation_failed(
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([name, state_metadata, etag])
10131013
if request is not None and has_flattened_params:

google/cloud/recommender_v1/services/recommender/client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ def list_insights(
519519
520520
"""
521521
# Create or coerce a protobuf request object.
522-
# Sanity check: If we got a request object, we should *not* have
522+
# Quick check: If we got a request object, we should *not* have
523523
# gotten any keyword arguments that map to the request.
524524
has_flattened_params = any([parent])
525525
if request is not None and has_flattened_params:
@@ -596,7 +596,7 @@ def get_insight(
596596
597597
"""
598598
# Create or coerce a protobuf request object.
599-
# Sanity check: If we got a request object, we should *not* have
599+
# Quick check: If we got a request object, we should *not* have
600600
# gotten any keyword arguments that map to the request.
601601
has_flattened_params = any([name])
602602
if request is not None and has_flattened_params:
@@ -692,7 +692,7 @@ def mark_insight_accepted(
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([name, state_metadata, etag])
698698
if request is not None and has_flattened_params:
@@ -813,7 +813,7 @@ def list_recommendations(
813813
814814
"""
815815
# Create or coerce a protobuf request object.
816-
# Sanity check: If we got a request object, we should *not* have
816+
# Quick check: If we got a request object, we should *not* have
817817
# gotten any keyword arguments that map to the request.
818818
has_flattened_params = any([parent, filter])
819819
if request is not None and has_flattened_params:
@@ -893,7 +893,7 @@ def get_recommendation(
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:
@@ -997,7 +997,7 @@ def mark_recommendation_claimed(
997997
998998
"""
999999
# Create or coerce a protobuf request object.
1000-
# Sanity check: If we got a request object, we should *not* have
1000+
# Quick check: If we got a request object, we should *not* have
10011001
# gotten any keyword arguments that map to the request.
10021002
has_flattened_params = any([name, state_metadata, etag])
10031003
if request is not None and has_flattened_params:
@@ -1109,7 +1109,7 @@ def mark_recommendation_succeeded(
11091109
11101110
"""
11111111
# Create or coerce a protobuf request object.
1112-
# Sanity check: If we got a request object, we should *not* have
1112+
# Quick check: If we got a request object, we should *not* have
11131113
# gotten any keyword arguments that map to the request.
11141114
has_flattened_params = any([name, state_metadata, etag])
11151115
if request is not None and has_flattened_params:
@@ -1221,7 +1221,7 @@ def mark_recommendation_failed(
12211221
12221222
"""
12231223
# Create or coerce a protobuf request object.
1224-
# Sanity check: If we got a request object, we should *not* have
1224+
# Quick check: If we got a request object, we should *not* have
12251225
# gotten any keyword arguments that map to the request.
12261226
has_flattened_params = any([name, state_metadata, etag])
12271227
if request is not None and has_flattened_params:

google/cloud/recommender_v1/services/recommender/transports/grpc.py

Lines changed: 4 additions & 1 deletion
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,

google/cloud/recommender_v1/services/recommender/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
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,

google/cloud/recommender_v1beta1/services/recommender/async_client.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ async def list_insights(
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([parent])
293293
if request is not None and has_flattened_params:
@@ -374,7 +374,7 @@ async def get_insight(
374374
375375
"""
376376
# Create or coerce a protobuf request object.
377-
# Sanity check: If we got a request object, we should *not* have
377+
# Quick check: If we got a request object, we should *not* have
378378
# gotten any keyword arguments that map to the request.
379379
has_flattened_params = any([name])
380380
if request is not None and has_flattened_params:
@@ -480,7 +480,7 @@ async def mark_insight_accepted(
480480
481481
"""
482482
# Create or coerce a protobuf request object.
483-
# Sanity check: If we got a request object, we should *not* have
483+
# Quick check: If we got a request object, we should *not* have
484484
# gotten any keyword arguments that map to the request.
485485
has_flattened_params = any([name, state_metadata, etag])
486486
if request is not None and has_flattened_params:
@@ -602,7 +602,7 @@ async def list_recommendations(
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, filter])
608608
if request is not None and has_flattened_params:
@@ -692,7 +692,7 @@ async def get_recommendation(
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([name])
698698
if request is not None and has_flattened_params:
@@ -806,7 +806,7 @@ async def mark_recommendation_claimed(
806806
807807
"""
808808
# Create or coerce a protobuf request object.
809-
# Sanity check: If we got a request object, we should *not* have
809+
# Quick check: If we got a request object, we should *not* have
810810
# gotten any keyword arguments that map to the request.
811811
has_flattened_params = any([name, state_metadata, etag])
812812
if request is not None and has_flattened_params:
@@ -915,7 +915,7 @@ async def mark_recommendation_succeeded(
915915
916916
"""
917917
# Create or coerce a protobuf request object.
918-
# Sanity check: If we got a request object, we should *not* have
918+
# Quick check: If we got a request object, we should *not* have
919919
# gotten any keyword arguments that map to the request.
920920
has_flattened_params = any([name, state_metadata, etag])
921921
if request is not None and has_flattened_params:
@@ -1024,7 +1024,7 @@ async def mark_recommendation_failed(
10241024
10251025
"""
10261026
# Create or coerce a protobuf request object.
1027-
# Sanity check: If we got a request object, we should *not* have
1027+
# Quick check: If we got a request object, we should *not* have
10281028
# gotten any keyword arguments that map to the request.
10291029
has_flattened_params = any([name, state_metadata, etag])
10301030
if request is not None and has_flattened_params:
@@ -1106,7 +1106,7 @@ async def get_recommender_config(
11061106
Configuration for a Recommender.
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([name])
11121112
if request is not None and has_flattened_params:
@@ -1182,7 +1182,7 @@ async def update_recommender_config(
11821182
Configuration for a Recommender.
11831183
"""
11841184
# Create or coerce a protobuf request object.
1185-
# Sanity check: If we got a request object, we should *not* have
1185+
# Quick check: If we got a request object, we should *not* have
11861186
# gotten any keyword arguments that map to the request.
11871187
has_flattened_params = any([recommender_config, update_mask])
11881188
if request is not None and has_flattened_params:
@@ -1263,7 +1263,7 @@ async def get_insight_type_config(
12631263
Configuration for an InsightType.
12641264
"""
12651265
# Create or coerce a protobuf request object.
1266-
# Sanity check: If we got a request object, we should *not* have
1266+
# Quick check: If we got a request object, we should *not* have
12671267
# gotten any keyword arguments that map to the request.
12681268
has_flattened_params = any([name])
12691269
if request is not None and has_flattened_params:
@@ -1339,7 +1339,7 @@ async def update_insight_type_config(
13391339
Configuration for an InsightType.
13401340
"""
13411341
# Create or coerce a protobuf request object.
1342-
# Sanity check: If we got a request object, we should *not* have
1342+
# Quick check: If we got a request object, we should *not* have
13431343
# gotten any keyword arguments that map to the request.
13441344
has_flattened_params = any([insight_type_config, update_mask])
13451345
if request is not None and has_flattened_params:

google/cloud/recommender_v1beta1/services/recommender/client.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ def list_insights(
562562
563563
"""
564564
# Create or coerce a protobuf request object.
565-
# Sanity check: If we got a request object, we should *not* have
565+
# Quick check: If we got a request object, we should *not* have
566566
# gotten any keyword arguments that map to the request.
567567
has_flattened_params = any([parent])
568568
if request is not None and has_flattened_params:
@@ -639,7 +639,7 @@ def get_insight(
639639
640640
"""
641641
# Create or coerce a protobuf request object.
642-
# Sanity check: If we got a request object, we should *not* have
642+
# Quick check: If we got a request object, we should *not* have
643643
# gotten any keyword arguments that map to the request.
644644
has_flattened_params = any([name])
645645
if request is not None and has_flattened_params:
@@ -735,7 +735,7 @@ def mark_insight_accepted(
735735
736736
"""
737737
# Create or coerce a protobuf request object.
738-
# Sanity check: If we got a request object, we should *not* have
738+
# Quick check: If we got a request object, we should *not* have
739739
# gotten any keyword arguments that map to the request.
740740
has_flattened_params = any([name, state_metadata, etag])
741741
if request is not None and has_flattened_params:
@@ -856,7 +856,7 @@ def list_recommendations(
856856
857857
"""
858858
# Create or coerce a protobuf request object.
859-
# Sanity check: If we got a request object, we should *not* have
859+
# Quick check: If we got a request object, we should *not* have
860860
# gotten any keyword arguments that map to the request.
861861
has_flattened_params = any([parent, filter])
862862
if request is not None and has_flattened_params:
@@ -936,7 +936,7 @@ def get_recommendation(
936936
937937
"""
938938
# Create or coerce a protobuf request object.
939-
# Sanity check: If we got a request object, we should *not* have
939+
# Quick check: If we got a request object, we should *not* have
940940
# gotten any keyword arguments that map to the request.
941941
has_flattened_params = any([name])
942942
if request is not None and has_flattened_params:
@@ -1040,7 +1040,7 @@ def mark_recommendation_claimed(
10401040
10411041
"""
10421042
# Create or coerce a protobuf request object.
1043-
# Sanity check: If we got a request object, we should *not* have
1043+
# Quick check: If we got a request object, we should *not* have
10441044
# gotten any keyword arguments that map to the request.
10451045
has_flattened_params = any([name, state_metadata, etag])
10461046
if request is not None and has_flattened_params:
@@ -1152,7 +1152,7 @@ def mark_recommendation_succeeded(
11521152
11531153
"""
11541154
# Create or coerce a protobuf request object.
1155-
# Sanity check: If we got a request object, we should *not* have
1155+
# Quick check: If we got a request object, we should *not* have
11561156
# gotten any keyword arguments that map to the request.
11571157
has_flattened_params = any([name, state_metadata, etag])
11581158
if request is not None and has_flattened_params:
@@ -1264,7 +1264,7 @@ def mark_recommendation_failed(
12641264
12651265
"""
12661266
# Create or coerce a protobuf request object.
1267-
# Sanity check: If we got a request object, we should *not* have
1267+
# Quick check: If we got a request object, we should *not* have
12681268
# gotten any keyword arguments that map to the request.
12691269
has_flattened_params = any([name, state_metadata, etag])
12701270
if request is not None and has_flattened_params:
@@ -1347,7 +1347,7 @@ def get_recommender_config(
13471347
Configuration for a Recommender.
13481348
"""
13491349
# Create or coerce a protobuf request object.
1350-
# Sanity check: If we got a request object, we should *not* have
1350+
# Quick check: If we got a request object, we should *not* have
13511351
# gotten any keyword arguments that map to the request.
13521352
has_flattened_params = any([name])
13531353
if request is not None and has_flattened_params:
@@ -1423,7 +1423,7 @@ def update_recommender_config(
14231423
Configuration for a Recommender.
14241424
"""
14251425
# Create or coerce a protobuf request object.
1426-
# Sanity check: If we got a request object, we should *not* have
1426+
# Quick check: If we got a request object, we should *not* have
14271427
# gotten any keyword arguments that map to the request.
14281428
has_flattened_params = any([recommender_config, update_mask])
14291429
if request is not None and has_flattened_params:
@@ -1506,7 +1506,7 @@ def get_insight_type_config(
15061506
Configuration for an InsightType.
15071507
"""
15081508
# Create or coerce a protobuf request object.
1509-
# Sanity check: If we got a request object, we should *not* have
1509+
# Quick check: If we got a request object, we should *not* have
15101510
# gotten any keyword arguments that map to the request.
15111511
has_flattened_params = any([name])
15121512
if request is not None and has_flattened_params:
@@ -1582,7 +1582,7 @@ def update_insight_type_config(
15821582
Configuration for an InsightType.
15831583
"""
15841584
# Create or coerce a protobuf request object.
1585-
# Sanity check: If we got a request object, we should *not* have
1585+
# Quick check: If we got a request object, we should *not* have
15861586
# gotten any keyword arguments that map to the request.
15871587
has_flattened_params = any([insight_type_config, update_mask])
15881588
if request is not None and has_flattened_params:

google/cloud/recommender_v1beta1/services/recommender/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,11 @@ def __init__(
172172
if not self._grpc_channel:
173173
self._grpc_channel = type(self).create_channel(
174174
self._host,
175+
# use the credentials which are saved
175176
credentials=self._credentials,
176-
credentials_file=credentials_file,
177+
# Set ``credentials_file`` to ``None`` here as
178+
# the credentials that we saved earlier should be used.
179+
credentials_file=None,
177180
scopes=self._scopes,
178181
ssl_credentials=self._ssl_channel_credentials,
179182
quota_project_id=quota_project_id,

0 commit comments

Comments
 (0)