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

Commit 1f500f5

Browse files
chore: use gapic-generator-python 0.62.1 (#113)
- [x] 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 7e85d9c commit 1f500f5

File tree

25 files changed

+443
-60
lines changed

25 files changed

+443
-60
lines changed

google/cloud/binaryauthorization_v1/services/binauthz_management_service_v1/async_client.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ async def get_policy(
272272
273273
"""
274274
# Create or coerce a protobuf request object.
275-
# Sanity check: If we got a request object, we should *not* have
275+
# Quick check: If we got a request object, we should *not* have
276276
# gotten any keyword arguments that map to the request.
277277
has_flattened_params = any([name])
278278
if request is not None and has_flattened_params:
@@ -364,7 +364,7 @@ async def update_policy(
364364
365365
"""
366366
# Create or coerce a protobuf request object.
367-
# Sanity check: If we got a request object, we should *not* have
367+
# Quick check: If we got a request object, we should *not* have
368368
# gotten any keyword arguments that map to the request.
369369
has_flattened_params = any([policy])
370370
if request is not None and has_flattened_params:
@@ -476,7 +476,7 @@ async def create_attestor(
476476
477477
"""
478478
# Create or coerce a protobuf request object.
479-
# Sanity check: If we got a request object, we should *not* have
479+
# Quick check: If we got a request object, we should *not* have
480480
# gotten any keyword arguments that map to the request.
481481
has_flattened_params = any([parent, attestor_id, attestor])
482482
if request is not None and has_flattened_params:
@@ -557,7 +557,7 @@ async def get_attestor(
557557
558558
"""
559559
# Create or coerce a protobuf request object.
560-
# Sanity check: If we got a request object, we should *not* have
560+
# Quick check: If we got a request object, we should *not* have
561561
# gotten any keyword arguments that map to the request.
562562
has_flattened_params = any([name])
563563
if request is not None and has_flattened_params:
@@ -647,7 +647,7 @@ async def update_attestor(
647647
648648
"""
649649
# Create or coerce a protobuf request object.
650-
# Sanity check: If we got a request object, we should *not* have
650+
# Quick check: If we got a request object, we should *not* have
651651
# gotten any keyword arguments that map to the request.
652652
has_flattened_params = any([attestor])
653653
if request is not None and has_flattened_params:
@@ -736,7 +736,7 @@ async def list_attestors(
736736
737737
"""
738738
# Create or coerce a protobuf request object.
739-
# Sanity check: If we got a request object, we should *not* have
739+
# Quick check: If we got a request object, we should *not* have
740740
# gotten any keyword arguments that map to the request.
741741
has_flattened_params = any([parent])
742742
if request is not None and has_flattened_params:
@@ -822,7 +822,7 @@ async def delete_attestor(
822822
sent along with the request as metadata.
823823
"""
824824
# Create or coerce a protobuf request object.
825-
# Sanity check: If we got a request object, we should *not* have
825+
# Quick check: If we got a request object, we should *not* have
826826
# gotten any keyword arguments that map to the request.
827827
has_flattened_params = any([name])
828828
if request is not None and has_flattened_params:

google/cloud/binaryauthorization_v1/services/binauthz_management_service_v1/client.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def get_policy(
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([name])
476476
if request is not None and has_flattened_params:
@@ -552,7 +552,7 @@ def update_policy(
552552
553553
"""
554554
# Create or coerce a protobuf request object.
555-
# Sanity check: If we got a request object, we should *not* have
555+
# Quick check: If we got a request object, we should *not* have
556556
# gotten any keyword arguments that map to the request.
557557
has_flattened_params = any([policy])
558558
if request is not None and has_flattened_params:
@@ -654,7 +654,7 @@ def create_attestor(
654654
655655
"""
656656
# Create or coerce a protobuf request object.
657-
# Sanity check: If we got a request object, we should *not* have
657+
# Quick check: If we got a request object, we should *not* have
658658
# gotten any keyword arguments that map to the request.
659659
has_flattened_params = any([parent, attestor_id, attestor])
660660
if request is not None and has_flattened_params:
@@ -735,7 +735,7 @@ def get_attestor(
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])
741741
if request is not None and has_flattened_params:
@@ -815,7 +815,7 @@ def update_attestor(
815815
816816
"""
817817
# Create or coerce a protobuf request object.
818-
# Sanity check: If we got a request object, we should *not* have
818+
# Quick check: If we got a request object, we should *not* have
819819
# gotten any keyword arguments that map to the request.
820820
has_flattened_params = any([attestor])
821821
if request is not None and has_flattened_params:
@@ -894,7 +894,7 @@ def list_attestors(
894894
895895
"""
896896
# Create or coerce a protobuf request object.
897-
# Sanity check: If we got a request object, we should *not* have
897+
# Quick check: If we got a request object, we should *not* have
898898
# gotten any keyword arguments that map to the request.
899899
has_flattened_params = any([parent])
900900
if request is not None and has_flattened_params:
@@ -970,7 +970,7 @@ def delete_attestor(
970970
sent along with the request as metadata.
971971
"""
972972
# Create or coerce a protobuf request object.
973-
# Sanity check: If we got a request object, we should *not* have
973+
# Quick check: If we got a request object, we should *not* have
974974
# gotten any keyword arguments that map to the request.
975975
has_flattened_params = any([name])
976976
if request is not None and has_flattened_params:

google/cloud/binaryauthorization_v1/services/binauthz_management_service_v1/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/binaryauthorization_v1/services/binauthz_management_service_v1/transports/grpc_asyncio.py

+4-1
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/binaryauthorization_v1/services/system_policy_v1/async_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ async def get_system_policy(
240240
241241
"""
242242
# Create or coerce a protobuf request object.
243-
# Sanity check: If we got a request object, we should *not* have
243+
# Quick check: If we got a request object, we should *not* have
244244
# gotten any keyword arguments that map to the request.
245245
has_flattened_params = any([name])
246246
if request is not None and has_flattened_params:

google/cloud/binaryauthorization_v1/services/system_policy_v1/client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def get_system_policy(
432432
433433
"""
434434
# Create or coerce a protobuf request object.
435-
# Sanity check: If we got a request object, we should *not* have
435+
# Quick check: If we got a request object, we should *not* have
436436
# gotten any keyword arguments that map to the request.
437437
has_flattened_params = any([name])
438438
if request is not None and has_flattened_params:

google/cloud/binaryauthorization_v1/services/system_policy_v1/transports/grpc.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,11 @@ def __init__(
159159
if not self._grpc_channel:
160160
self._grpc_channel = type(self).create_channel(
161161
self._host,
162+
# use the credentials which are saved
162163
credentials=self._credentials,
163-
credentials_file=credentials_file,
164+
# Set ``credentials_file`` to ``None`` here as
165+
# the credentials that we saved earlier should be used.
166+
credentials_file=None,
164167
scopes=self._scopes,
165168
ssl_credentials=self._ssl_channel_credentials,
166169
quota_project_id=quota_project_id,

google/cloud/binaryauthorization_v1/services/system_policy_v1/transports/grpc_asyncio.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -204,8 +204,11 @@ def __init__(
204204
if not self._grpc_channel:
205205
self._grpc_channel = type(self).create_channel(
206206
self._host,
207+
# use the credentials which are saved
207208
credentials=self._credentials,
208-
credentials_file=credentials_file,
209+
# Set ``credentials_file`` to ``None`` here as
210+
# the credentials that we saved earlier should be used.
211+
credentials_file=None,
209212
scopes=self._scopes,
210213
ssl_credentials=self._ssl_channel_credentials,
211214
quota_project_id=quota_project_id,

google/cloud/binaryauthorization_v1/services/validation_helper_v1/transports/grpc.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,11 @@ def __init__(
158158
if not self._grpc_channel:
159159
self._grpc_channel = type(self).create_channel(
160160
self._host,
161+
# use the credentials which are saved
161162
credentials=self._credentials,
162-
credentials_file=credentials_file,
163+
# Set ``credentials_file`` to ``None`` here as
164+
# the credentials that we saved earlier should be used.
165+
credentials_file=None,
163166
scopes=self._scopes,
164167
ssl_credentials=self._ssl_channel_credentials,
165168
quota_project_id=quota_project_id,

google/cloud/binaryauthorization_v1/services/validation_helper_v1/transports/grpc_asyncio.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,11 @@ def __init__(
203203
if not self._grpc_channel:
204204
self._grpc_channel = type(self).create_channel(
205205
self._host,
206+
# use the credentials which are saved
206207
credentials=self._credentials,
207-
credentials_file=credentials_file,
208+
# Set ``credentials_file`` to ``None`` here as
209+
# the credentials that we saved earlier should be used.
210+
credentials_file=None,
208211
scopes=self._scopes,
209212
ssl_credentials=self._ssl_channel_credentials,
210213
quota_project_id=quota_project_id,

google/cloud/binaryauthorization_v1/types/resources.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ class Policy(proto.Message):
8080
e.g. spiffe://example.com/ns/test-ns/sa/default
8181
default_admission_rule (google.cloud.binaryauthorization_v1.types.AdmissionRule):
8282
Required. Default admission rule for a
83-
cluster without a per-cluster, per- kubernetes-
84-
service-account, or per-istio-service-identity
85-
admission rule.
83+
cluster without a per-cluster, per-
84+
kubernetes-service-account, or
85+
per-istio-service-identity admission rule.
8686
update_time (google.protobuf.timestamp_pb2.Timestamp):
8787
Output only. Time when the policy was last
8888
updated.

google/cloud/binaryauthorization_v1beta1/services/binauthz_management_service_v1_beta1/async_client.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ async def get_policy(
282282
283283
"""
284284
# Create or coerce a protobuf request object.
285-
# Sanity check: If we got a request object, we should *not* have
285+
# Quick check: If we got a request object, we should *not* have
286286
# gotten any keyword arguments that map to the request.
287287
has_flattened_params = any([name])
288288
if request is not None and has_flattened_params:
@@ -375,7 +375,7 @@ async def update_policy(
375375
376376
"""
377377
# Create or coerce a protobuf request object.
378-
# Sanity check: If we got a request object, we should *not* have
378+
# Quick check: If we got a request object, we should *not* have
379379
# gotten any keyword arguments that map to the request.
380380
has_flattened_params = any([policy])
381381
if request is not None and has_flattened_params:
@@ -488,7 +488,7 @@ async def create_attestor(
488488
489489
"""
490490
# Create or coerce a protobuf request object.
491-
# Sanity check: If we got a request object, we should *not* have
491+
# Quick check: If we got a request object, we should *not* have
492492
# gotten any keyword arguments that map to the request.
493493
has_flattened_params = any([parent, attestor_id, attestor])
494494
if request is not None and has_flattened_params:
@@ -569,7 +569,7 @@ async def get_attestor(
569569
570570
"""
571571
# Create or coerce a protobuf request object.
572-
# Sanity check: If we got a request object, we should *not* have
572+
# Quick check: If we got a request object, we should *not* have
573573
# gotten any keyword arguments that map to the request.
574574
has_flattened_params = any([name])
575575
if request is not None and has_flattened_params:
@@ -659,7 +659,7 @@ async def update_attestor(
659659
660660
"""
661661
# Create or coerce a protobuf request object.
662-
# Sanity check: If we got a request object, we should *not* have
662+
# Quick check: If we got a request object, we should *not* have
663663
# gotten any keyword arguments that map to the request.
664664
has_flattened_params = any([attestor])
665665
if request is not None and has_flattened_params:
@@ -749,7 +749,7 @@ async def list_attestors(
749749
750750
"""
751751
# Create or coerce a protobuf request object.
752-
# Sanity check: If we got a request object, we should *not* have
752+
# Quick check: If we got a request object, we should *not* have
753753
# gotten any keyword arguments that map to the request.
754754
has_flattened_params = any([parent])
755755
if request is not None and has_flattened_params:
@@ -835,7 +835,7 @@ async def delete_attestor(
835835
sent along with the request as metadata.
836836
"""
837837
# Create or coerce a protobuf request object.
838-
# Sanity check: If we got a request object, we should *not* have
838+
# Quick check: If we got a request object, we should *not* have
839839
# gotten any keyword arguments that map to the request.
840840
has_flattened_params = any([name])
841841
if request is not None and has_flattened_params:

google/cloud/binaryauthorization_v1beta1/services/binauthz_management_service_v1_beta1/client.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def get_policy(
478478
479479
"""
480480
# Create or coerce a protobuf request object.
481-
# Sanity check: If we got a request object, we should *not* have
481+
# Quick check: If we got a request object, we should *not* have
482482
# gotten any keyword arguments that map to the request.
483483
has_flattened_params = any([name])
484484
if request is not None and has_flattened_params:
@@ -561,7 +561,7 @@ def update_policy(
561561
562562
"""
563563
# Create or coerce a protobuf request object.
564-
# Sanity check: If we got a request object, we should *not* have
564+
# Quick check: If we got a request object, we should *not* have
565565
# gotten any keyword arguments that map to the request.
566566
has_flattened_params = any([policy])
567567
if request is not None and has_flattened_params:
@@ -664,7 +664,7 @@ def create_attestor(
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([parent, attestor_id, attestor])
670670
if request is not None and has_flattened_params:
@@ -745,7 +745,7 @@ def get_attestor(
745745
746746
"""
747747
# Create or coerce a protobuf request object.
748-
# Sanity check: If we got a request object, we should *not* have
748+
# Quick check: If we got a request object, we should *not* have
749749
# gotten any keyword arguments that map to the request.
750750
has_flattened_params = any([name])
751751
if request is not None and has_flattened_params:
@@ -825,7 +825,7 @@ def update_attestor(
825825
826826
"""
827827
# Create or coerce a protobuf request object.
828-
# Sanity check: If we got a request object, we should *not* have
828+
# Quick check: If we got a request object, we should *not* have
829829
# gotten any keyword arguments that map to the request.
830830
has_flattened_params = any([attestor])
831831
if request is not None and has_flattened_params:
@@ -905,7 +905,7 @@ def list_attestors(
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([parent])
911911
if request is not None and has_flattened_params:
@@ -981,7 +981,7 @@ def delete_attestor(
981981
sent along with the request as metadata.
982982
"""
983983
# Create or coerce a protobuf request object.
984-
# Sanity check: If we got a request object, we should *not* have
984+
# Quick check: If we got a request object, we should *not* have
985985
# gotten any keyword arguments that map to the request.
986986
has_flattened_params = any([name])
987987
if request is not None and has_flattened_params:

google/cloud/binaryauthorization_v1beta1/services/binauthz_management_service_v1_beta1/transports/grpc.py

+4-1
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/binaryauthorization_v1beta1/services/binauthz_management_service_v1_beta1/transports/grpc_asyncio.py

+4-1
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/binaryauthorization_v1beta1/services/system_policy_v1_beta1/async_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ async def get_system_policy(
242242
243243
"""
244244
# Create or coerce a protobuf request object.
245-
# Sanity check: If we got a request object, we should *not* have
245+
# Quick check: If we got a request object, we should *not* have
246246
# gotten any keyword arguments that map to the request.
247247
has_flattened_params = any([name])
248248
if request is not None and has_flattened_params:

0 commit comments

Comments
 (0)