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

Commit 993ac1a

Browse files
chore: use gapic-generator-python 0.62.1 (#185)
- [ ] 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 e35df2e commit 993ac1a

File tree

10 files changed

+200
-42
lines changed

10 files changed

+200
-42
lines changed

google/cloud/scheduler_v1/services/cloud_scheduler/async_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ async def list_jobs(
252252
253253
"""
254254
# Create or coerce a protobuf request object.
255-
# Sanity check: If we got a request object, we should *not* have
255+
# Quick check: If we got a request object, we should *not* have
256256
# gotten any keyword arguments that map to the request.
257257
has_flattened_params = any([parent])
258258
if request is not None and has_flattened_params:
@@ -340,7 +340,7 @@ async def get_job(
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:
@@ -436,7 +436,7 @@ async def create_job(
436436
437437
"""
438438
# Create or coerce a protobuf request object.
439-
# Sanity check: If we got a request object, we should *not* have
439+
# Quick check: If we got a request object, we should *not* have
440440
# gotten any keyword arguments that map to the request.
441441
has_flattened_params = any([parent, job])
442442
if request is not None and has_flattened_params:
@@ -534,7 +534,7 @@ async def update_job(
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([job, update_mask])
540540
if request is not None and has_flattened_params:
@@ -602,7 +602,7 @@ async def delete_job(
602602
sent along with the request as metadata.
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([name])
608608
if request is not None and has_flattened_params:
@@ -694,7 +694,7 @@ async def pause_job(
694694
695695
"""
696696
# Create or coerce a protobuf request object.
697-
# Sanity check: If we got a request object, we should *not* have
697+
# Quick check: If we got a request object, we should *not* have
698698
# gotten any keyword arguments that map to the request.
699699
has_flattened_params = any([name])
700700
if request is not None and has_flattened_params:
@@ -776,7 +776,7 @@ async def resume_job(
776776
777777
"""
778778
# Create or coerce a protobuf request object.
779-
# Sanity check: If we got a request object, we should *not* have
779+
# Quick check: If we got a request object, we should *not* have
780780
# gotten any keyword arguments that map to the request.
781781
has_flattened_params = any([name])
782782
if request is not None and has_flattened_params:
@@ -851,7 +851,7 @@ async def run_job(
851851
852852
"""
853853
# Create or coerce a protobuf request object.
854-
# Sanity check: If we got a request object, we should *not* have
854+
# Quick check: If we got a request object, we should *not* have
855855
# gotten any keyword arguments that map to the request.
856856
has_flattened_params = any([name])
857857
if request is not None and has_flattened_params:

google/cloud/scheduler_v1/services/cloud_scheduler/client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def list_jobs(
458458
459459
"""
460460
# Create or coerce a protobuf request object.
461-
# Sanity check: If we got a request object, we should *not* have
461+
# Quick check: If we got a request object, we should *not* have
462462
# gotten any keyword arguments that map to the request.
463463
has_flattened_params = any([parent])
464464
if request is not None and has_flattened_params:
@@ -536,7 +536,7 @@ def get_job(
536536
537537
"""
538538
# Create or coerce a protobuf request object.
539-
# Sanity check: If we got a request object, we should *not* have
539+
# Quick check: If we got a request object, we should *not* have
540540
# gotten any keyword arguments that map to the request.
541541
has_flattened_params = any([name])
542542
if request is not None and has_flattened_params:
@@ -622,7 +622,7 @@ def create_job(
622622
623623
"""
624624
# Create or coerce a protobuf request object.
625-
# Sanity check: If we got a request object, we should *not* have
625+
# Quick check: If we got a request object, we should *not* have
626626
# gotten any keyword arguments that map to the request.
627627
has_flattened_params = any([parent, job])
628628
if request is not None and has_flattened_params:
@@ -720,7 +720,7 @@ def update_job(
720720
721721
"""
722722
# Create or coerce a protobuf request object.
723-
# Sanity check: If we got a request object, we should *not* have
723+
# Quick check: If we got a request object, we should *not* have
724724
# gotten any keyword arguments that map to the request.
725725
has_flattened_params = any([job, update_mask])
726726
if request is not None and has_flattened_params:
@@ -788,7 +788,7 @@ def delete_job(
788788
sent along with the request as metadata.
789789
"""
790790
# Create or coerce a protobuf request object.
791-
# Sanity check: If we got a request object, we should *not* have
791+
# Quick check: If we got a request object, we should *not* have
792792
# gotten any keyword arguments that map to the request.
793793
has_flattened_params = any([name])
794794
if request is not None and has_flattened_params:
@@ -870,7 +870,7 @@ def pause_job(
870870
871871
"""
872872
# Create or coerce a protobuf request object.
873-
# Sanity check: If we got a request object, we should *not* have
873+
# Quick check: If we got a request object, we should *not* have
874874
# gotten any keyword arguments that map to the request.
875875
has_flattened_params = any([name])
876876
if request is not None and has_flattened_params:
@@ -952,7 +952,7 @@ def resume_job(
952952
953953
"""
954954
# Create or coerce a protobuf request object.
955-
# Sanity check: If we got a request object, we should *not* have
955+
# Quick check: If we got a request object, we should *not* have
956956
# gotten any keyword arguments that map to the request.
957957
has_flattened_params = any([name])
958958
if request is not None and has_flattened_params:
@@ -1027,7 +1027,7 @@ def run_job(
10271027
10281028
"""
10291029
# Create or coerce a protobuf request object.
1030-
# Sanity check: If we got a request object, we should *not* have
1030+
# Quick check: If we got a request object, we should *not* have
10311031
# gotten any keyword arguments that map to the request.
10321032
has_flattened_params = any([name])
10331033
if request is not None and has_flattened_params:

google/cloud/scheduler_v1/services/cloud_scheduler/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,11 @@ def __init__(
162162
if not self._grpc_channel:
163163
self._grpc_channel = type(self).create_channel(
164164
self._host,
165+
# use the credentials which are saved
165166
credentials=self._credentials,
166-
credentials_file=credentials_file,
167+
# Set ``credentials_file`` to ``None`` here as
168+
# the credentials that we saved earlier should be used.
169+
credentials_file=None,
167170
scopes=self._scopes,
168171
ssl_credentials=self._ssl_channel_credentials,
169172
quota_project_id=quota_project_id,

google/cloud/scheduler_v1/services/cloud_scheduler/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,11 @@ def __init__(
207207
if not self._grpc_channel:
208208
self._grpc_channel = type(self).create_channel(
209209
self._host,
210+
# use the credentials which are saved
210211
credentials=self._credentials,
211-
credentials_file=credentials_file,
212+
# Set ``credentials_file`` to ``None`` here as
213+
# the credentials that we saved earlier should be used.
214+
credentials_file=None,
212215
scopes=self._scopes,
213216
ssl_credentials=self._ssl_channel_credentials,
214217
quota_project_id=quota_project_id,

google/cloud/scheduler_v1beta1/services/cloud_scheduler/async_client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ async def list_jobs(
252252
253253
"""
254254
# Create or coerce a protobuf request object.
255-
# Sanity check: If we got a request object, we should *not* have
255+
# Quick check: If we got a request object, we should *not* have
256256
# gotten any keyword arguments that map to the request.
257257
has_flattened_params = any([parent])
258258
if request is not None and has_flattened_params:
@@ -340,7 +340,7 @@ async def get_job(
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:
@@ -437,7 +437,7 @@ async def create_job(
437437
438438
"""
439439
# Create or coerce a protobuf request object.
440-
# Sanity check: If we got a request object, we should *not* have
440+
# Quick check: If we got a request object, we should *not* have
441441
# gotten any keyword arguments that map to the request.
442442
has_flattened_params = any([parent, job])
443443
if request is not None and has_flattened_params:
@@ -535,7 +535,7 @@ async def update_job(
535535
536536
"""
537537
# Create or coerce a protobuf request object.
538-
# Sanity check: If we got a request object, we should *not* have
538+
# Quick check: If we got a request object, we should *not* have
539539
# gotten any keyword arguments that map to the request.
540540
has_flattened_params = any([job, update_mask])
541541
if request is not None and has_flattened_params:
@@ -603,7 +603,7 @@ async def delete_job(
603603
sent along with the request as metadata.
604604
"""
605605
# Create or coerce a protobuf request object.
606-
# Sanity check: If we got a request object, we should *not* have
606+
# Quick check: If we got a request object, we should *not* have
607607
# gotten any keyword arguments that map to the request.
608608
has_flattened_params = any([name])
609609
if request is not None and has_flattened_params:
@@ -695,7 +695,7 @@ async def pause_job(
695695
696696
"""
697697
# Create or coerce a protobuf request object.
698-
# Sanity check: If we got a request object, we should *not* have
698+
# Quick check: If we got a request object, we should *not* have
699699
# gotten any keyword arguments that map to the request.
700700
has_flattened_params = any([name])
701701
if request is not None and has_flattened_params:
@@ -787,7 +787,7 @@ async def resume_job(
787787
788788
"""
789789
# Create or coerce a protobuf request object.
790-
# Sanity check: If we got a request object, we should *not* have
790+
# Quick check: If we got a request object, we should *not* have
791791
# gotten any keyword arguments that map to the request.
792792
has_flattened_params = any([name])
793793
if request is not None and has_flattened_params:
@@ -872,7 +872,7 @@ async def run_job(
872872
873873
"""
874874
# Create or coerce a protobuf request object.
875-
# Sanity check: If we got a request object, we should *not* have
875+
# Quick check: If we got a request object, we should *not* have
876876
# gotten any keyword arguments that map to the request.
877877
has_flattened_params = any([name])
878878
if request is not None and has_flattened_params:

google/cloud/scheduler_v1beta1/services/cloud_scheduler/client.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ def list_jobs(
458458
459459
"""
460460
# Create or coerce a protobuf request object.
461-
# Sanity check: If we got a request object, we should *not* have
461+
# Quick check: If we got a request object, we should *not* have
462462
# gotten any keyword arguments that map to the request.
463463
has_flattened_params = any([parent])
464464
if request is not None and has_flattened_params:
@@ -536,7 +536,7 @@ def get_job(
536536
537537
"""
538538
# Create or coerce a protobuf request object.
539-
# Sanity check: If we got a request object, we should *not* have
539+
# Quick check: If we got a request object, we should *not* have
540540
# gotten any keyword arguments that map to the request.
541541
has_flattened_params = any([name])
542542
if request is not None and has_flattened_params:
@@ -623,7 +623,7 @@ def create_job(
623623
624624
"""
625625
# Create or coerce a protobuf request object.
626-
# Sanity check: If we got a request object, we should *not* have
626+
# Quick check: If we got a request object, we should *not* have
627627
# gotten any keyword arguments that map to the request.
628628
has_flattened_params = any([parent, job])
629629
if request is not None and has_flattened_params:
@@ -721,7 +721,7 @@ def update_job(
721721
722722
"""
723723
# Create or coerce a protobuf request object.
724-
# Sanity check: If we got a request object, we should *not* have
724+
# Quick check: If we got a request object, we should *not* have
725725
# gotten any keyword arguments that map to the request.
726726
has_flattened_params = any([job, update_mask])
727727
if request is not None and has_flattened_params:
@@ -789,7 +789,7 @@ def delete_job(
789789
sent along with the request as metadata.
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])
795795
if request is not None and has_flattened_params:
@@ -871,7 +871,7 @@ def pause_job(
871871
872872
"""
873873
# Create or coerce a protobuf request object.
874-
# Sanity check: If we got a request object, we should *not* have
874+
# Quick check: If we got a request object, we should *not* have
875875
# gotten any keyword arguments that map to the request.
876876
has_flattened_params = any([name])
877877
if request is not None and has_flattened_params:
@@ -953,7 +953,7 @@ def resume_job(
953953
954954
"""
955955
# Create or coerce a protobuf request object.
956-
# Sanity check: If we got a request object, we should *not* have
956+
# Quick check: If we got a request object, we should *not* have
957957
# gotten any keyword arguments that map to the request.
958958
has_flattened_params = any([name])
959959
if request is not None and has_flattened_params:
@@ -1028,7 +1028,7 @@ def run_job(
10281028
10291029
"""
10301030
# Create or coerce a protobuf request object.
1031-
# Sanity check: If we got a request object, we should *not* have
1031+
# Quick check: If we got a request object, we should *not* have
10321032
# gotten any keyword arguments that map to the request.
10331033
has_flattened_params = any([name])
10341034
if request is not None and has_flattened_params:

google/cloud/scheduler_v1beta1/services/cloud_scheduler/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,11 @@ def __init__(
162162
if not self._grpc_channel:
163163
self._grpc_channel = type(self).create_channel(
164164
self._host,
165+
# use the credentials which are saved
165166
credentials=self._credentials,
166-
credentials_file=credentials_file,
167+
# Set ``credentials_file`` to ``None`` here as
168+
# the credentials that we saved earlier should be used.
169+
credentials_file=None,
167170
scopes=self._scopes,
168171
ssl_credentials=self._ssl_channel_credentials,
169172
quota_project_id=quota_project_id,

google/cloud/scheduler_v1beta1/services/cloud_scheduler/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,11 @@ def __init__(
207207
if not self._grpc_channel:
208208
self._grpc_channel = type(self).create_channel(
209209
self._host,
210+
# use the credentials which are saved
210211
credentials=self._credentials,
211-
credentials_file=credentials_file,
212+
# Set ``credentials_file`` to ``None`` here as
213+
# the credentials that we saved earlier should be used.
214+
credentials_file=None,
212215
scopes=self._scopes,
213216
ssl_credentials=self._ssl_channel_credentials,
214217
quota_project_id=quota_project_id,

0 commit comments

Comments
 (0)