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

Commit 6774bd3

Browse files
chore: use gapic-generator-python 0.62.1 (#134)
- [ ] Regenerate this pull request now. See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md 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 8cdb73a commit 6774bd3

File tree

10 files changed

+200
-42
lines changed

10 files changed

+200
-42
lines changed

google/cloud/video/transcoder_v1/services/transcoder_service/async_client.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ async def create_job(
257257
Transcoding job resource.
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, job])
263263
if request is not None and has_flattened_params:
@@ -333,7 +333,7 @@ async def list_jobs(
333333
334334
"""
335335
# Create or coerce a protobuf request object.
336-
# Sanity check: If we got a request object, we should *not* have
336+
# Quick check: If we got a request object, we should *not* have
337337
# gotten any keyword arguments that map to the request.
338338
has_flattened_params = any([parent])
339339
if request is not None and has_flattened_params:
@@ -408,7 +408,7 @@ async def get_job(
408408
Transcoding job resource.
409409
"""
410410
# Create or coerce a protobuf request object.
411-
# Sanity check: If we got a request object, we should *not* have
411+
# Quick check: If we got a request object, we should *not* have
412412
# gotten any keyword arguments that map to the request.
413413
has_flattened_params = any([name])
414414
if request is not None and has_flattened_params:
@@ -473,7 +473,7 @@ async def delete_job(
473473
sent along with the request as metadata.
474474
"""
475475
# Create or coerce a protobuf request object.
476-
# Sanity check: If we got a request object, we should *not* have
476+
# Quick check: If we got a request object, we should *not* have
477477
# gotten any keyword arguments that map to the request.
478478
has_flattened_params = any([name])
479479
if request is not None and has_flattened_params:
@@ -563,7 +563,7 @@ async def create_job_template(
563563
Transcoding job template resource.
564564
"""
565565
# Create or coerce a protobuf request object.
566-
# Sanity check: If we got a request object, we should *not* have
566+
# Quick check: If we got a request object, we should *not* have
567567
# gotten any keyword arguments that map to the request.
568568
has_flattened_params = any([parent, job_template, job_template_id])
569569
if request is not None and has_flattened_params:
@@ -641,7 +641,7 @@ async def list_job_templates(
641641
642642
"""
643643
# Create or coerce a protobuf request object.
644-
# Sanity check: If we got a request object, we should *not* have
644+
# Quick check: If we got a request object, we should *not* have
645645
# gotten any keyword arguments that map to the request.
646646
has_flattened_params = any([parent])
647647
if request is not None and has_flattened_params:
@@ -717,7 +717,7 @@ async def get_job_template(
717717
Transcoding job template resource.
718718
"""
719719
# Create or coerce a protobuf request object.
720-
# Sanity check: If we got a request object, we should *not* have
720+
# Quick check: If we got a request object, we should *not* have
721721
# gotten any keyword arguments that map to the request.
722722
has_flattened_params = any([name])
723723
if request is not None and has_flattened_params:
@@ -782,7 +782,7 @@ async def delete_job_template(
782782
sent along with the request as metadata.
783783
"""
784784
# Create or coerce a protobuf request object.
785-
# Sanity check: If we got a request object, we should *not* have
785+
# Quick check: If we got a request object, we should *not* have
786786
# gotten any keyword arguments that map to the request.
787787
has_flattened_params = any([name])
788788
if request is not None and has_flattened_params:

google/cloud/video/transcoder_v1/services/transcoder_service/client.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def create_job(
468468
Transcoding job resource.
469469
"""
470470
# Create or coerce a protobuf request object.
471-
# Sanity check: If we got a request object, we should *not* have
471+
# Quick check: If we got a request object, we should *not* have
472472
# gotten any keyword arguments that map to the request.
473473
has_flattened_params = any([parent, job])
474474
if request is not None and has_flattened_params:
@@ -544,7 +544,7 @@ def list_jobs(
544544
545545
"""
546546
# Create or coerce a protobuf request object.
547-
# Sanity check: If we got a request object, we should *not* have
547+
# Quick check: If we got a request object, we should *not* have
548548
# gotten any keyword arguments that map to the request.
549549
has_flattened_params = any([parent])
550550
if request is not None and has_flattened_params:
@@ -619,7 +619,7 @@ def get_job(
619619
Transcoding job resource.
620620
"""
621621
# Create or coerce a protobuf request object.
622-
# Sanity check: If we got a request object, we should *not* have
622+
# Quick check: If we got a request object, we should *not* have
623623
# gotten any keyword arguments that map to the request.
624624
has_flattened_params = any([name])
625625
if request is not None and has_flattened_params:
@@ -684,7 +684,7 @@ def delete_job(
684684
sent along with the request as metadata.
685685
"""
686686
# Create or coerce a protobuf request object.
687-
# Sanity check: If we got a request object, we should *not* have
687+
# Quick check: If we got a request object, we should *not* have
688688
# gotten any keyword arguments that map to the request.
689689
has_flattened_params = any([name])
690690
if request is not None and has_flattened_params:
@@ -774,7 +774,7 @@ def create_job_template(
774774
Transcoding job template resource.
775775
"""
776776
# Create or coerce a protobuf request object.
777-
# Sanity check: If we got a request object, we should *not* have
777+
# Quick check: If we got a request object, we should *not* have
778778
# gotten any keyword arguments that map to the request.
779779
has_flattened_params = any([parent, job_template, job_template_id])
780780
if request is not None and has_flattened_params:
@@ -852,7 +852,7 @@ def list_job_templates(
852852
853853
"""
854854
# Create or coerce a protobuf request object.
855-
# Sanity check: If we got a request object, we should *not* have
855+
# Quick check: If we got a request object, we should *not* have
856856
# gotten any keyword arguments that map to the request.
857857
has_flattened_params = any([parent])
858858
if request is not None and has_flattened_params:
@@ -928,7 +928,7 @@ def get_job_template(
928928
Transcoding job template resource.
929929
"""
930930
# Create or coerce a protobuf request object.
931-
# Sanity check: If we got a request object, we should *not* have
931+
# Quick check: If we got a request object, we should *not* have
932932
# gotten any keyword arguments that map to the request.
933933
has_flattened_params = any([name])
934934
if request is not None and has_flattened_params:
@@ -993,7 +993,7 @@ def delete_job_template(
993993
sent along with the request as metadata.
994994
"""
995995
# Create or coerce a protobuf request object.
996-
# Sanity check: If we got a request object, we should *not* have
996+
# Quick check: If we got a request object, we should *not* have
997997
# gotten any keyword arguments that map to the request.
998998
has_flattened_params = any([name])
999999
if request is not None and has_flattened_params:

google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,11 @@ def __init__(
166166
if not self._grpc_channel:
167167
self._grpc_channel = type(self).create_channel(
168168
self._host,
169+
# use the credentials which are saved
169170
credentials=self._credentials,
170-
credentials_file=credentials_file,
171+
# Set ``credentials_file`` to ``None`` here as
172+
# the credentials that we saved earlier should be used.
173+
credentials_file=None,
171174
scopes=self._scopes,
172175
ssl_credentials=self._ssl_channel_credentials,
173176
quota_project_id=quota_project_id,

google/cloud/video/transcoder_v1/services/transcoder_service/transports/grpc_asyncio.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,11 @@ def __init__(
211211
if not self._grpc_channel:
212212
self._grpc_channel = type(self).create_channel(
213213
self._host,
214+
# use the credentials which are saved
214215
credentials=self._credentials,
215-
credentials_file=credentials_file,
216+
# Set ``credentials_file`` to ``None`` here as
217+
# the credentials that we saved earlier should be used.
218+
credentials_file=None,
216219
scopes=self._scopes,
217220
ssl_credentials=self._ssl_channel_credentials,
218221
quota_project_id=quota_project_id,

google/cloud/video/transcoder_v1beta1/services/transcoder_service/async_client.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ async def create_job(
256256
Transcoding job resource.
257257
"""
258258
# Create or coerce a protobuf request object.
259-
# Sanity check: If we got a request object, we should *not* have
259+
# Quick check: If we got a request object, we should *not* have
260260
# gotten any keyword arguments that map to the request.
261261
has_flattened_params = any([parent, job])
262262
if request is not None and has_flattened_params:
@@ -332,7 +332,7 @@ async def list_jobs(
332332
333333
"""
334334
# Create or coerce a protobuf request object.
335-
# Sanity check: If we got a request object, we should *not* have
335+
# Quick check: If we got a request object, we should *not* have
336336
# gotten any keyword arguments that map to the request.
337337
has_flattened_params = any([parent])
338338
if request is not None and has_flattened_params:
@@ -407,7 +407,7 @@ async def get_job(
407407
Transcoding job resource.
408408
"""
409409
# Create or coerce a protobuf request object.
410-
# Sanity check: If we got a request object, we should *not* have
410+
# Quick check: If we got a request object, we should *not* have
411411
# gotten any keyword arguments that map to the request.
412412
has_flattened_params = any([name])
413413
if request is not None and has_flattened_params:
@@ -472,7 +472,7 @@ async def delete_job(
472472
sent along with the request as metadata.
473473
"""
474474
# Create or coerce a protobuf request object.
475-
# Sanity check: If we got a request object, we should *not* have
475+
# Quick check: If we got a request object, we should *not* have
476476
# gotten any keyword arguments that map to the request.
477477
has_flattened_params = any([name])
478478
if request is not None and has_flattened_params:
@@ -562,7 +562,7 @@ async def create_job_template(
562562
Transcoding job template resource.
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, job_template, job_template_id])
568568
if request is not None and has_flattened_params:
@@ -640,7 +640,7 @@ async def list_job_templates(
640640
641641
"""
642642
# Create or coerce a protobuf request object.
643-
# Sanity check: If we got a request object, we should *not* have
643+
# Quick check: If we got a request object, we should *not* have
644644
# gotten any keyword arguments that map to the request.
645645
has_flattened_params = any([parent])
646646
if request is not None and has_flattened_params:
@@ -716,7 +716,7 @@ async def get_job_template(
716716
Transcoding job template resource.
717717
"""
718718
# Create or coerce a protobuf request object.
719-
# Sanity check: If we got a request object, we should *not* have
719+
# Quick check: If we got a request object, we should *not* have
720720
# gotten any keyword arguments that map to the request.
721721
has_flattened_params = any([name])
722722
if request is not None and has_flattened_params:
@@ -781,7 +781,7 @@ async def delete_job_template(
781781
sent along with the request as metadata.
782782
"""
783783
# Create or coerce a protobuf request object.
784-
# Sanity check: If we got a request object, we should *not* have
784+
# Quick check: If we got a request object, we should *not* have
785785
# gotten any keyword arguments that map to the request.
786786
has_flattened_params = any([name])
787787
if request is not None and has_flattened_params:

google/cloud/video/transcoder_v1beta1/services/transcoder_service/client.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ def create_job(
467467
Transcoding job resource.
468468
"""
469469
# Create or coerce a protobuf request object.
470-
# Sanity check: If we got a request object, we should *not* have
470+
# Quick check: If we got a request object, we should *not* have
471471
# gotten any keyword arguments that map to the request.
472472
has_flattened_params = any([parent, job])
473473
if request is not None and has_flattened_params:
@@ -543,7 +543,7 @@ def list_jobs(
543543
544544
"""
545545
# Create or coerce a protobuf request object.
546-
# Sanity check: If we got a request object, we should *not* have
546+
# Quick check: If we got a request object, we should *not* have
547547
# gotten any keyword arguments that map to the request.
548548
has_flattened_params = any([parent])
549549
if request is not None and has_flattened_params:
@@ -618,7 +618,7 @@ def get_job(
618618
Transcoding job resource.
619619
"""
620620
# Create or coerce a protobuf request object.
621-
# Sanity check: If we got a request object, we should *not* have
621+
# Quick check: If we got a request object, we should *not* have
622622
# gotten any keyword arguments that map to the request.
623623
has_flattened_params = any([name])
624624
if request is not None and has_flattened_params:
@@ -683,7 +683,7 @@ def delete_job(
683683
sent along with the request as metadata.
684684
"""
685685
# Create or coerce a protobuf request object.
686-
# Sanity check: If we got a request object, we should *not* have
686+
# Quick check: If we got a request object, we should *not* have
687687
# gotten any keyword arguments that map to the request.
688688
has_flattened_params = any([name])
689689
if request is not None and has_flattened_params:
@@ -773,7 +773,7 @@ def create_job_template(
773773
Transcoding job template resource.
774774
"""
775775
# Create or coerce a protobuf request object.
776-
# Sanity check: If we got a request object, we should *not* have
776+
# Quick check: If we got a request object, we should *not* have
777777
# gotten any keyword arguments that map to the request.
778778
has_flattened_params = any([parent, job_template, job_template_id])
779779
if request is not None and has_flattened_params:
@@ -851,7 +851,7 @@ def list_job_templates(
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([parent])
857857
if request is not None and has_flattened_params:
@@ -927,7 +927,7 @@ def get_job_template(
927927
Transcoding job template resource.
928928
"""
929929
# Create or coerce a protobuf request object.
930-
# Sanity check: If we got a request object, we should *not* have
930+
# Quick check: If we got a request object, we should *not* have
931931
# gotten any keyword arguments that map to the request.
932932
has_flattened_params = any([name])
933933
if request is not None and has_flattened_params:
@@ -992,7 +992,7 @@ def delete_job_template(
992992
sent along with the request as metadata.
993993
"""
994994
# Create or coerce a protobuf request object.
995-
# Sanity check: If we got a request object, we should *not* have
995+
# Quick check: If we got a request object, we should *not* have
996996
# gotten any keyword arguments that map to the request.
997997
has_flattened_params = any([name])
998998
if request is not None and has_flattened_params:

google/cloud/video/transcoder_v1beta1/services/transcoder_service/transports/grpc.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,11 @@ def __init__(
166166
if not self._grpc_channel:
167167
self._grpc_channel = type(self).create_channel(
168168
self._host,
169+
# use the credentials which are saved
169170
credentials=self._credentials,
170-
credentials_file=credentials_file,
171+
# Set ``credentials_file`` to ``None`` here as
172+
# the credentials that we saved earlier should be used.
173+
credentials_file=None,
171174
scopes=self._scopes,
172175
ssl_credentials=self._ssl_channel_credentials,
173176
quota_project_id=quota_project_id,

google/cloud/video/transcoder_v1beta1/services/transcoder_service/transports/grpc_asyncio.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,11 @@ def __init__(
211211
if not self._grpc_channel:
212212
self._grpc_channel = type(self).create_channel(
213213
self._host,
214+
# use the credentials which are saved
214215
credentials=self._credentials,
215-
credentials_file=credentials_file,
216+
# Set ``credentials_file`` to ``None`` here as
217+
# the credentials that we saved earlier should be used.
218+
credentials_file=None,
216219
scopes=self._scopes,
217220
ssl_credentials=self._ssl_channel_credentials,
218221
quota_project_id=quota_project_id,

0 commit comments

Comments
 (0)