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

Commit c58bcce

Browse files
chore: use gapic-generator-python 0.62.1 (#273)
- [ ] 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 412b9fc commit c58bcce

File tree

34 files changed

+703
-127
lines changed

34 files changed

+703
-127
lines changed

‎google/cloud/monitoring_v3/services/alert_policy_service/async_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ async def list_alert_policies(
274274
275275
"""
276276
# Create or coerce a protobuf request object.
277-
# Sanity check: If we got a request object, we should *not* have
277+
# Quick check: If we got a request object, we should *not* have
278278
# gotten any keyword arguments that map to the request.
279279
has_flattened_params = any([name])
280280
if request is not None and has_flattened_params:
@@ -367,7 +367,7 @@ async def get_alert_policy(
367367
368368
"""
369369
# Create or coerce a protobuf request object.
370-
# Sanity check: If we got a request object, we should *not* have
370+
# Quick check: If we got a request object, we should *not* have
371371
# gotten any keyword arguments that map to the request.
372372
has_flattened_params = any([name])
373373
if request is not None and has_flattened_params:
@@ -475,7 +475,7 @@ async def create_alert_policy(
475475
476476
"""
477477
# Create or coerce a protobuf request object.
478-
# Sanity check: If we got a request object, we should *not* have
478+
# Quick check: If we got a request object, we should *not* have
479479
# gotten any keyword arguments that map to the request.
480480
has_flattened_params = any([name, alert_policy])
481481
if request is not None and has_flattened_params:
@@ -548,7 +548,7 @@ async def delete_alert_policy(
548548
sent along with the request as metadata.
549549
"""
550550
# Create or coerce a protobuf request object.
551-
# Sanity check: If we got a request object, we should *not* have
551+
# Quick check: If we got a request object, we should *not* have
552552
# gotten any keyword arguments that map to the request.
553553
has_flattened_params = any([name])
554554
if request is not None and has_flattened_params:
@@ -669,7 +669,7 @@ async def update_alert_policy(
669669
670670
"""
671671
# Create or coerce a protobuf request object.
672-
# Sanity check: If we got a request object, we should *not* have
672+
# Quick check: If we got a request object, we should *not* have
673673
# gotten any keyword arguments that map to the request.
674674
has_flattened_params = any([update_mask, alert_policy])
675675
if request is not None and has_flattened_params:

‎google/cloud/monitoring_v3/services/alert_policy_service/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def list_alert_policies(
481481
482482
"""
483483
# Create or coerce a protobuf request object.
484-
# Sanity check: If we got a request object, we should *not* have
484+
# Quick check: If we got a request object, we should *not* have
485485
# gotten any keyword arguments that map to the request.
486486
has_flattened_params = any([name])
487487
if request is not None and has_flattened_params:
@@ -565,7 +565,7 @@ def get_alert_policy(
565565
566566
"""
567567
# Create or coerce a protobuf request object.
568-
# Sanity check: If we got a request object, we should *not* have
568+
# Quick check: If we got a request object, we should *not* have
569569
# gotten any keyword arguments that map to the request.
570570
has_flattened_params = any([name])
571571
if request is not None and has_flattened_params:
@@ -664,7 +664,7 @@ def create_alert_policy(
664664
665665
"""
666666
# Create or coerce a protobuf request object.
667-
# Sanity check: If we got a request object, we should *not* have
667+
# Quick check: If we got a request object, we should *not* have
668668
# gotten any keyword arguments that map to the request.
669669
has_flattened_params = any([name, alert_policy])
670670
if request is not None and has_flattened_params:
@@ -737,7 +737,7 @@ def delete_alert_policy(
737737
sent along with the request as metadata.
738738
"""
739739
# Create or coerce a protobuf request object.
740-
# Sanity check: If we got a request object, we should *not* have
740+
# Quick check: If we got a request object, we should *not* have
741741
# gotten any keyword arguments that map to the request.
742742
has_flattened_params = any([name])
743743
if request is not None and has_flattened_params:
@@ -849,7 +849,7 @@ def update_alert_policy(
849849
850850
"""
851851
# Create or coerce a protobuf request object.
852-
# Sanity check: If we got a request object, we should *not* have
852+
# Quick check: If we got a request object, we should *not* have
853853
# gotten any keyword arguments that map to the request.
854854
has_flattened_params = any([update_mask, alert_policy])
855855
if request is not None and has_flattened_params:

‎google/cloud/monitoring_v3/services/alert_policy_service/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,11 @@ def __init__(
168168
if not self._grpc_channel:
169169
self._grpc_channel = type(self).create_channel(
170170
self._host,
171+
# use the credentials which are saved
171172
credentials=self._credentials,
172-
credentials_file=credentials_file,
173+
# Set ``credentials_file`` to ``None`` here as
174+
# the credentials that we saved earlier should be used.
175+
credentials_file=None,
173176
scopes=self._scopes,
174177
ssl_credentials=self._ssl_channel_credentials,
175178
quota_project_id=quota_project_id,

‎google/cloud/monitoring_v3/services/alert_policy_service/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,11 @@ def __init__(
213213
if not self._grpc_channel:
214214
self._grpc_channel = type(self).create_channel(
215215
self._host,
216+
# use the credentials which are saved
216217
credentials=self._credentials,
217-
credentials_file=credentials_file,
218+
# Set ``credentials_file`` to ``None`` here as
219+
# the credentials that we saved earlier should be used.
220+
credentials_file=None,
218221
scopes=self._scopes,
219222
ssl_credentials=self._ssl_channel_credentials,
220223
quota_project_id=quota_project_id,

‎google/cloud/monitoring_v3/services/group_service/async_client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ async def list_groups(
254254
255255
"""
256256
# Create or coerce a protobuf request object.
257-
# Sanity check: If we got a request object, we should *not* have
257+
# Quick check: If we got a request object, we should *not* have
258258
# gotten any keyword arguments that map to the request.
259259
has_flattened_params = any([name])
260260
if request is not None and has_flattened_params:
@@ -373,7 +373,7 @@ async def get_group(
373373
374374
"""
375375
# Create or coerce a protobuf request object.
376-
# Sanity check: If we got a request object, we should *not* have
376+
# Quick check: If we got a request object, we should *not* have
377377
# gotten any keyword arguments that map to the request.
378378
has_flattened_params = any([name])
379379
if request is not None and has_flattened_params:
@@ -496,7 +496,7 @@ async def create_group(
496496
497497
"""
498498
# Create or coerce a protobuf request object.
499-
# Sanity check: If we got a request object, we should *not* have
499+
# Quick check: If we got a request object, we should *not* have
500500
# gotten any keyword arguments that map to the request.
501501
has_flattened_params = any([name, group])
502502
if request is not None and has_flattened_params:
@@ -601,7 +601,7 @@ async def update_group(
601601
602602
"""
603603
# Create or coerce a protobuf request object.
604-
# Sanity check: If we got a request object, we should *not* have
604+
# Quick check: If we got a request object, we should *not* have
605605
# gotten any keyword arguments that map to the request.
606606
has_flattened_params = any([group])
607607
if request is not None and has_flattened_params:
@@ -681,7 +681,7 @@ async def delete_group(
681681
sent along with the request as metadata.
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:
@@ -766,7 +766,7 @@ async def list_group_members(
766766
767767
"""
768768
# Create or coerce a protobuf request object.
769-
# Sanity check: If we got a request object, we should *not* have
769+
# Quick check: If we got a request object, we should *not* have
770770
# gotten any keyword arguments that map to the request.
771771
has_flattened_params = any([name])
772772
if request is not None and has_flattened_params:

‎google/cloud/monitoring_v3/services/group_service/client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def list_groups(
448448
449449
"""
450450
# Create or coerce a protobuf request object.
451-
# Sanity check: If we got a request object, we should *not* have
451+
# Quick check: If we got a request object, we should *not* have
452452
# gotten any keyword arguments that map to the request.
453453
has_flattened_params = any([name])
454454
if request is not None and has_flattened_params:
@@ -558,7 +558,7 @@ def get_group(
558558
559559
"""
560560
# Create or coerce a protobuf request object.
561-
# Sanity check: If we got a request object, we should *not* have
561+
# Quick check: If we got a request object, we should *not* have
562562
# gotten any keyword arguments that map to the request.
563563
has_flattened_params = any([name])
564564
if request is not None and has_flattened_params:
@@ -672,7 +672,7 @@ def create_group(
672672
673673
"""
674674
# Create or coerce a protobuf request object.
675-
# Sanity check: If we got a request object, we should *not* have
675+
# Quick check: If we got a request object, we should *not* have
676676
# gotten any keyword arguments that map to the request.
677677
has_flattened_params = any([name, group])
678678
if request is not None and has_flattened_params:
@@ -777,7 +777,7 @@ def update_group(
777777
778778
"""
779779
# Create or coerce a protobuf request object.
780-
# Sanity check: If we got a request object, we should *not* have
780+
# Quick check: If we got a request object, we should *not* have
781781
# gotten any keyword arguments that map to the request.
782782
has_flattened_params = any([group])
783783
if request is not None and has_flattened_params:
@@ -848,7 +848,7 @@ def delete_group(
848848
sent along with the request as metadata.
849849
"""
850850
# Create or coerce a protobuf request object.
851-
# Sanity check: If we got a request object, we should *not* have
851+
# Quick check: If we got a request object, we should *not* have
852852
# gotten any keyword arguments that map to the request.
853853
has_flattened_params = any([name])
854854
if request is not None and has_flattened_params:
@@ -924,7 +924,7 @@ def list_group_members(
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([name])
930930
if request is not None and has_flattened_params:

‎google/cloud/monitoring_v3/services/group_service/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,

‎google/cloud/monitoring_v3/services/group_service/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,11 @@ def __init__(
217217
if not self._grpc_channel:
218218
self._grpc_channel = type(self).create_channel(
219219
self._host,
220+
# use the credentials which are saved
220221
credentials=self._credentials,
221-
credentials_file=credentials_file,
222+
# Set ``credentials_file`` to ``None`` here as
223+
# the credentials that we saved earlier should be used.
224+
credentials_file=None,
222225
scopes=self._scopes,
223226
ssl_credentials=self._ssl_channel_credentials,
224227
quota_project_id=quota_project_id,

‎google/cloud/monitoring_v3/services/metric_service/async_client.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ async def list_monitored_resource_descriptors(
263263
264264
"""
265265
# Create or coerce a protobuf request object.
266-
# Sanity check: If we got a request object, we should *not* have
266+
# Quick check: If we got a request object, we should *not* have
267267
# gotten any keyword arguments that map to the request.
268268
has_flattened_params = any([name])
269269
if request is not None and has_flattened_params:
@@ -368,7 +368,7 @@ async def get_monitored_resource_descriptor(
368368
369369
"""
370370
# Create or coerce a protobuf request object.
371-
# Sanity check: If we got a request object, we should *not* have
371+
# Quick check: If we got a request object, we should *not* have
372372
# gotten any keyword arguments that map to the request.
373373
has_flattened_params = any([name])
374374
if request is not None and has_flattened_params:
@@ -455,7 +455,7 @@ async def list_metric_descriptors(
455455
456456
"""
457457
# Create or coerce a protobuf request object.
458-
# Sanity check: If we got a request object, we should *not* have
458+
# Quick check: If we got a request object, we should *not* have
459459
# gotten any keyword arguments that map to the request.
460460
has_flattened_params = any([name])
461461
if request is not None and has_flattened_params:
@@ -551,7 +551,7 @@ async def get_metric_descriptor(
551551
552552
"""
553553
# Create or coerce a protobuf request object.
554-
# Sanity check: If we got a request object, we should *not* have
554+
# Quick check: If we got a request object, we should *not* have
555555
# gotten any keyword arguments that map to the request.
556556
has_flattened_params = any([name])
557557
if request is not None and has_flattened_params:
@@ -649,7 +649,7 @@ async def create_metric_descriptor(
649649
650650
"""
651651
# Create or coerce a protobuf request object.
652-
# Sanity check: If we got a request object, we should *not* have
652+
# Quick check: If we got a request object, we should *not* have
653653
# gotten any keyword arguments that map to the request.
654654
has_flattened_params = any([name, metric_descriptor])
655655
if request is not None and has_flattened_params:
@@ -725,7 +725,7 @@ async def delete_metric_descriptor(
725725
sent along with the request as metadata.
726726
"""
727727
# Create or coerce a protobuf request object.
728-
# Sanity check: If we got a request object, we should *not* have
728+
# Quick check: If we got a request object, we should *not* have
729729
# gotten any keyword arguments that map to the request.
730730
has_flattened_params = any([name])
731731
if request is not None and has_flattened_params:
@@ -850,7 +850,7 @@ async def list_time_series(
850850
851851
"""
852852
# Create or coerce a protobuf request object.
853-
# Sanity check: If we got a request object, we should *not* have
853+
# Quick check: If we got a request object, we should *not* have
854854
# gotten any keyword arguments that map to the request.
855855
has_flattened_params = any([name, filter, interval, view])
856856
if request is not None and has_flattened_params:
@@ -960,7 +960,7 @@ async def create_time_series(
960960
sent along with the request as metadata.
961961
"""
962962
# Create or coerce a protobuf request object.
963-
# Sanity check: If we got a request object, we should *not* have
963+
# Quick check: If we got a request object, we should *not* have
964964
# gotten any keyword arguments that map to the request.
965965
has_flattened_params = any([name, time_series])
966966
if request is not None and has_flattened_params:
@@ -1054,7 +1054,7 @@ async def create_service_time_series(
10541054
sent along with the request as metadata.
10551055
"""
10561056
# Create or coerce a protobuf request object.
1057-
# Sanity check: If we got a request object, we should *not* have
1057+
# Quick check: If we got a request object, we should *not* have
10581058
# gotten any keyword arguments that map to the request.
10591059
has_flattened_params = any([name, time_series])
10601060
if request is not None and has_flattened_params:

0 commit comments

Comments
 (0)