Skip to content

Commit 36f9891

Browse files
chore: use gapic-generator-python 0.62.1 (#218)
* chore: use gapic-generator-python 0.62.1 fix: restore 100% coverage for generated clients feat: adds REST server-streaming support fix: add special method parameters to set of reserved module names feat: expose extended operations annotations within generator fix: resolve DuplicateCredentialArgs error when using credentials_file committer: parthea PiperOrigin-RevId: 425964861 Source-Link: googleapis/googleapis@84b1a5a Source-Link: googleapis/googleapis-gen@4fb761b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGZiNzYxYmJkODUwNmFjMTU2ZjQ5YmFjNWYxODMwNmFhOGViM2FhOCJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 0913ea7 commit 36f9891

5 files changed

Lines changed: 127 additions & 45 deletions

File tree

packages/google-cloud-bigquery-reservation/google/cloud/bigquery_reservation_v1/services/reservation_service/async_client.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ async def create_reservation(
292292
293293
"""
294294
# Create or coerce a protobuf request object.
295-
# Sanity check: If we got a request object, we should *not* have
295+
# Quick check: If we got a request object, we should *not* have
296296
# gotten any keyword arguments that map to the request.
297297
has_flattened_params = any([parent, reservation, reservation_id])
298298
if request is not None and has_flattened_params:
@@ -371,7 +371,7 @@ async def list_reservations(
371371
372372
"""
373373
# Create or coerce a protobuf request object.
374-
# Sanity check: If we got a request object, we should *not* have
374+
# Quick check: If we got a request object, we should *not* have
375375
# gotten any keyword arguments that map to the request.
376376
has_flattened_params = any([parent])
377377
if request is not None and has_flattened_params:
@@ -459,7 +459,7 @@ async def get_reservation(
459459
460460
"""
461461
# Create or coerce a protobuf request object.
462-
# Sanity check: If we got a request object, we should *not* have
462+
# Quick check: If we got a request object, we should *not* have
463463
# gotten any keyword arguments that map to the request.
464464
has_flattened_params = any([name])
465465
if request is not None and has_flattened_params:
@@ -537,7 +537,7 @@ async def delete_reservation(
537537
sent along with the request as metadata.
538538
"""
539539
# Create or coerce a protobuf request object.
540-
# Sanity check: If we got a request object, we should *not* have
540+
# Quick check: If we got a request object, we should *not* have
541541
# gotten any keyword arguments that map to the request.
542542
has_flattened_params = any([name])
543543
if request is not None and has_flattened_params:
@@ -623,7 +623,7 @@ async def update_reservation(
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([reservation, update_mask])
629629
if request is not None and has_flattened_params:
@@ -718,7 +718,7 @@ async def create_capacity_commitment(
718718
719719
"""
720720
# Create or coerce a protobuf request object.
721-
# Sanity check: If we got a request object, we should *not* have
721+
# Quick check: If we got a request object, we should *not* have
722722
# gotten any keyword arguments that map to the request.
723723
has_flattened_params = any([parent, capacity_commitment])
724724
if request is not None and has_flattened_params:
@@ -795,7 +795,7 @@ async def list_capacity_commitments(
795795
796796
"""
797797
# Create or coerce a protobuf request object.
798-
# Sanity check: If we got a request object, we should *not* have
798+
# Quick check: If we got a request object, we should *not* have
799799
# gotten any keyword arguments that map to the request.
800800
has_flattened_params = any([parent])
801801
if request is not None and has_flattened_params:
@@ -895,7 +895,7 @@ async def get_capacity_commitment(
895895
896896
"""
897897
# Create or coerce a protobuf request object.
898-
# Sanity check: If we got a request object, we should *not* have
898+
# Quick check: If we got a request object, we should *not* have
899899
# gotten any keyword arguments that map to the request.
900900
has_flattened_params = any([name])
901901
if request is not None and has_flattened_params:
@@ -973,7 +973,7 @@ async def delete_capacity_commitment(
973973
sent along with the request as metadata.
974974
"""
975975
# Create or coerce a protobuf request object.
976-
# Sanity check: If we got a request object, we should *not* have
976+
# Quick check: If we got a request object, we should *not* have
977977
# gotten any keyword arguments that map to the request.
978978
has_flattened_params = any([name])
979979
if request is not None and has_flattened_params:
@@ -1080,7 +1080,7 @@ async def update_capacity_commitment(
10801080
10811081
"""
10821082
# Create or coerce a protobuf request object.
1083-
# Sanity check: If we got a request object, we should *not* have
1083+
# Quick check: If we got a request object, we should *not* have
10841084
# gotten any keyword arguments that map to the request.
10851085
has_flattened_params = any([capacity_commitment, update_mask])
10861086
if request is not None and has_flattened_params:
@@ -1171,7 +1171,7 @@ async def split_capacity_commitment(
11711171
11721172
"""
11731173
# Create or coerce a protobuf request object.
1174-
# Sanity check: If we got a request object, we should *not* have
1174+
# Quick check: If we got a request object, we should *not* have
11751175
# gotten any keyword arguments that map to the request.
11761176
has_flattened_params = any([name, slot_count])
11771177
if request is not None and has_flattened_params:
@@ -1278,7 +1278,7 @@ async def merge_capacity_commitments(
12781278
12791279
"""
12801280
# Create or coerce a protobuf request object.
1281-
# Sanity check: If we got a request object, we should *not* have
1281+
# Quick check: If we got a request object, we should *not* have
12821282
# gotten any keyword arguments that map to the request.
12831283
has_flattened_params = any([parent, capacity_commitment_ids])
12841284
if request is not None and has_flattened_params:
@@ -1398,7 +1398,7 @@ async def create_assignment(
13981398
13991399
"""
14001400
# Create or coerce a protobuf request object.
1401-
# Sanity check: If we got a request object, we should *not* have
1401+
# Quick check: If we got a request object, we should *not* have
14021402
# gotten any keyword arguments that map to the request.
14031403
has_flattened_params = any([parent, assignment])
14041404
if request is not None and has_flattened_params:
@@ -1500,7 +1500,7 @@ async def list_assignments(
15001500
15011501
"""
15021502
# Create or coerce a protobuf request object.
1503-
# Sanity check: If we got a request object, we should *not* have
1503+
# Quick check: If we got a request object, we should *not* have
15041504
# gotten any keyword arguments that map to the request.
15051505
has_flattened_params = any([parent])
15061506
if request is not None and has_flattened_params:
@@ -1598,7 +1598,7 @@ async def delete_assignment(
15981598
sent along with the request as metadata.
15991599
"""
16001600
# Create or coerce a protobuf request object.
1601-
# Sanity check: If we got a request object, we should *not* have
1601+
# Quick check: If we got a request object, we should *not* have
16021602
# gotten any keyword arguments that map to the request.
16031603
has_flattened_params = any([name])
16041604
if request is not None and has_flattened_params:
@@ -1726,7 +1726,7 @@ async def search_assignments(
17261726
)
17271727

17281728
# Create or coerce a protobuf request object.
1729-
# Sanity check: If we got a request object, we should *not* have
1729+
# Quick check: If we got a request object, we should *not* have
17301730
# gotten any keyword arguments that map to the request.
17311731
has_flattened_params = any([parent, query])
17321732
if request is not None and has_flattened_params:
@@ -1856,7 +1856,7 @@ async def search_all_assignments(
18561856
18571857
"""
18581858
# Create or coerce a protobuf request object.
1859-
# Sanity check: If we got a request object, we should *not* have
1859+
# Quick check: If we got a request object, we should *not* have
18601860
# gotten any keyword arguments that map to the request.
18611861
has_flattened_params = any([parent, query])
18621862
if request is not None and has_flattened_params:
@@ -1954,7 +1954,7 @@ async def move_assignment(
19541954
19551955
"""
19561956
# Create or coerce a protobuf request object.
1957-
# Sanity check: If we got a request object, we should *not* have
1957+
# Quick check: If we got a request object, we should *not* have
19581958
# gotten any keyword arguments that map to the request.
19591959
has_flattened_params = any([name, destination_id])
19601960
if request is not None and has_flattened_params:
@@ -2026,7 +2026,7 @@ async def get_bi_reservation(
20262026
Represents a BI Reservation.
20272027
"""
20282028
# Create or coerce a protobuf request object.
2029-
# Sanity check: If we got a request object, we should *not* have
2029+
# Quick check: If we got a request object, we should *not* have
20302030
# gotten any keyword arguments that map to the request.
20312031
has_flattened_params = any([name])
20322032
if request is not None and has_flattened_params:
@@ -2118,7 +2118,7 @@ async def update_bi_reservation(
21182118
Represents a BI Reservation.
21192119
"""
21202120
# Create or coerce a protobuf request object.
2121-
# Sanity check: If we got a request object, we should *not* have
2121+
# Quick check: If we got a request object, we should *not* have
21222122
# gotten any keyword arguments that map to the request.
21232123
has_flattened_params = any([bi_reservation, update_mask])
21242124
if request is not None and has_flattened_params:

packages/google-cloud-bigquery-reservation/google/cloud/bigquery_reservation_v1/services/reservation_service/client.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ def create_reservation(
531531
532532
"""
533533
# Create or coerce a protobuf request object.
534-
# Sanity check: If we got a request object, we should *not* have
534+
# Quick check: If we got a request object, we should *not* have
535535
# gotten any keyword arguments that map to the request.
536536
has_flattened_params = any([parent, reservation, reservation_id])
537537
if request is not None and has_flattened_params:
@@ -610,7 +610,7 @@ def list_reservations(
610610
611611
"""
612612
# Create or coerce a protobuf request object.
613-
# Sanity check: If we got a request object, we should *not* have
613+
# Quick check: If we got a request object, we should *not* have
614614
# gotten any keyword arguments that map to the request.
615615
has_flattened_params = any([parent])
616616
if request is not None and has_flattened_params:
@@ -688,7 +688,7 @@ def get_reservation(
688688
689689
"""
690690
# Create or coerce a protobuf request object.
691-
# Sanity check: If we got a request object, we should *not* have
691+
# Quick check: If we got a request object, we should *not* have
692692
# gotten any keyword arguments that map to the request.
693693
has_flattened_params = any([name])
694694
if request is not None and has_flattened_params:
@@ -756,7 +756,7 @@ def delete_reservation(
756756
sent along with the request as metadata.
757757
"""
758758
# Create or coerce a protobuf request object.
759-
# Sanity check: If we got a request object, we should *not* have
759+
# Quick check: If we got a request object, we should *not* have
760760
# gotten any keyword arguments that map to the request.
761761
has_flattened_params = any([name])
762762
if request is not None and has_flattened_params:
@@ -832,7 +832,7 @@ def update_reservation(
832832
833833
"""
834834
# Create or coerce a protobuf request object.
835-
# Sanity check: If we got a request object, we should *not* have
835+
# Quick check: If we got a request object, we should *not* have
836836
# gotten any keyword arguments that map to the request.
837837
has_flattened_params = any([reservation, update_mask])
838838
if request is not None and has_flattened_params:
@@ -927,7 +927,7 @@ def create_capacity_commitment(
927927
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([parent, capacity_commitment])
933933
if request is not None and has_flattened_params:
@@ -1006,7 +1006,7 @@ def list_capacity_commitments(
10061006
10071007
"""
10081008
# Create or coerce a protobuf request object.
1009-
# Sanity check: If we got a request object, we should *not* have
1009+
# Quick check: If we got a request object, we should *not* have
10101010
# gotten any keyword arguments that map to the request.
10111011
has_flattened_params = any([parent])
10121012
if request is not None and has_flattened_params:
@@ -1098,7 +1098,7 @@ def get_capacity_commitment(
10981098
10991099
"""
11001100
# Create or coerce a protobuf request object.
1101-
# Sanity check: If we got a request object, we should *not* have
1101+
# Quick check: If we got a request object, we should *not* have
11021102
# gotten any keyword arguments that map to the request.
11031103
has_flattened_params = any([name])
11041104
if request is not None and has_flattened_params:
@@ -1166,7 +1166,7 @@ def delete_capacity_commitment(
11661166
sent along with the request as metadata.
11671167
"""
11681168
# Create or coerce a protobuf request object.
1169-
# Sanity check: If we got a request object, we should *not* have
1169+
# Quick check: If we got a request object, we should *not* have
11701170
# gotten any keyword arguments that map to the request.
11711171
has_flattened_params = any([name])
11721172
if request is not None and has_flattened_params:
@@ -1265,7 +1265,7 @@ def update_capacity_commitment(
12651265
12661266
"""
12671267
# Create or coerce a protobuf request object.
1268-
# Sanity check: If we got a request object, we should *not* have
1268+
# Quick check: If we got a request object, we should *not* have
12691269
# gotten any keyword arguments that map to the request.
12701270
has_flattened_params = any([capacity_commitment, update_mask])
12711271
if request is not None and has_flattened_params:
@@ -1358,7 +1358,7 @@ def split_capacity_commitment(
13581358
13591359
"""
13601360
# Create or coerce a protobuf request object.
1361-
# Sanity check: If we got a request object, we should *not* have
1361+
# Quick check: If we got a request object, we should *not* have
13621362
# gotten any keyword arguments that map to the request.
13631363
has_flattened_params = any([name, slot_count])
13641364
if request is not None and has_flattened_params:
@@ -1467,7 +1467,7 @@ def merge_capacity_commitments(
14671467
14681468
"""
14691469
# Create or coerce a protobuf request object.
1470-
# Sanity check: If we got a request object, we should *not* have
1470+
# Quick check: If we got a request object, we should *not* have
14711471
# gotten any keyword arguments that map to the request.
14721472
has_flattened_params = any([parent, capacity_commitment_ids])
14731473
if request is not None and has_flattened_params:
@@ -1589,7 +1589,7 @@ def create_assignment(
15891589
15901590
"""
15911591
# Create or coerce a protobuf request object.
1592-
# Sanity check: If we got a request object, we should *not* have
1592+
# Quick check: If we got a request object, we should *not* have
15931593
# gotten any keyword arguments that map to the request.
15941594
has_flattened_params = any([parent, assignment])
15951595
if request is not None and has_flattened_params:
@@ -1691,7 +1691,7 @@ def list_assignments(
16911691
16921692
"""
16931693
# Create or coerce a protobuf request object.
1694-
# Sanity check: If we got a request object, we should *not* have
1694+
# Quick check: If we got a request object, we should *not* have
16951695
# gotten any keyword arguments that map to the request.
16961696
has_flattened_params = any([parent])
16971697
if request is not None and has_flattened_params:
@@ -1779,7 +1779,7 @@ def delete_assignment(
17791779
sent along with the request as metadata.
17801780
"""
17811781
# Create or coerce a protobuf request object.
1782-
# Sanity check: If we got a request object, we should *not* have
1782+
# Quick check: If we got a request object, we should *not* have
17831783
# gotten any keyword arguments that map to the request.
17841784
has_flattened_params = any([name])
17851785
if request is not None and has_flattened_params:
@@ -1897,7 +1897,7 @@ def search_assignments(
18971897
)
18981898

18991899
# Create or coerce a protobuf request object.
1900-
# Sanity check: If we got a request object, we should *not* have
1900+
# Quick check: If we got a request object, we should *not* have
19011901
# gotten any keyword arguments that map to the request.
19021902
has_flattened_params = any([parent, query])
19031903
if request is not None and has_flattened_params:
@@ -2017,7 +2017,7 @@ def search_all_assignments(
20172017
20182018
"""
20192019
# Create or coerce a protobuf request object.
2020-
# Sanity check: If we got a request object, we should *not* have
2020+
# Quick check: If we got a request object, we should *not* have
20212021
# gotten any keyword arguments that map to the request.
20222022
has_flattened_params = any([parent, query])
20232023
if request is not None and has_flattened_params:
@@ -2115,7 +2115,7 @@ def move_assignment(
21152115
21162116
"""
21172117
# Create or coerce a protobuf request object.
2118-
# Sanity check: If we got a request object, we should *not* have
2118+
# Quick check: If we got a request object, we should *not* have
21192119
# gotten any keyword arguments that map to the request.
21202120
has_flattened_params = any([name, destination_id])
21212121
if request is not None and has_flattened_params:
@@ -2187,7 +2187,7 @@ def get_bi_reservation(
21872187
Represents a BI Reservation.
21882188
"""
21892189
# Create or coerce a protobuf request object.
2190-
# Sanity check: If we got a request object, we should *not* have
2190+
# Quick check: If we got a request object, we should *not* have
21912191
# gotten any keyword arguments that map to the request.
21922192
has_flattened_params = any([name])
21932193
if request is not None and has_flattened_params:
@@ -2269,7 +2269,7 @@ def update_bi_reservation(
22692269
Represents a BI Reservation.
22702270
"""
22712271
# Create or coerce a protobuf request object.
2272-
# Sanity check: If we got a request object, we should *not* have
2272+
# Quick check: If we got a request object, we should *not* have
22732273
# gotten any keyword arguments that map to the request.
22742274
has_flattened_params = any([bi_reservation, update_mask])
22752275
if request is not None and has_flattened_params:

packages/google-cloud-bigquery-reservation/google/cloud/bigquery_reservation_v1/services/reservation_service/transports/grpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,11 @@ def __init__(
176176
if not self._grpc_channel:
177177
self._grpc_channel = type(self).create_channel(
178178
self._host,
179+
# use the credentials which are saved
179180
credentials=self._credentials,
180-
credentials_file=credentials_file,
181+
# Set ``credentials_file`` to ``None`` here as
182+
# the credentials that we saved earlier should be used.
183+
credentials_file=None,
181184
scopes=self._scopes,
182185
ssl_credentials=self._ssl_channel_credentials,
183186
quota_project_id=quota_project_id,

packages/google-cloud-bigquery-reservation/google/cloud/bigquery_reservation_v1/services/reservation_service/transports/grpc_asyncio.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,11 @@ def __init__(
221221
if not self._grpc_channel:
222222
self._grpc_channel = type(self).create_channel(
223223
self._host,
224+
# use the credentials which are saved
224225
credentials=self._credentials,
225-
credentials_file=credentials_file,
226+
# Set ``credentials_file`` to ``None`` here as
227+
# the credentials that we saved earlier should be used.
228+
credentials_file=None,
226229
scopes=self._scopes,
227230
ssl_credentials=self._ssl_channel_credentials,
228231
quota_project_id=quota_project_id,

0 commit comments

Comments
 (0)