Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit d6bff70

Browse files
chore: use gapic-generator-python 0.62.1 (#500)
- [ ] 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: googleapis/googleapis-gen@4fb761b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGZiNzYxYmJkODUwNmFjMTU2ZjQ5YmFjNWYxODMwNmFhOGViM2FhOCJ9
1 parent ee3a6c4 commit d6bff70

File tree

18 files changed

+385
-134
lines changed

18 files changed

+385
-134
lines changed

google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/async_client.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ async def create_instance(
304304
305305
"""
306306
# Create or coerce a protobuf request object.
307-
# Sanity check: If we got a request object, we should *not* have
307+
# Quick check: If we got a request object, we should *not* have
308308
# gotten any keyword arguments that map to the request.
309309
has_flattened_params = any([parent, instance_id, instance, clusters])
310310
if request is not None and has_flattened_params:
@@ -394,7 +394,7 @@ async def get_instance(
394394
395395
"""
396396
# Create or coerce a protobuf request object.
397-
# Sanity check: If we got a request object, we should *not* have
397+
# Quick check: If we got a request object, we should *not* have
398398
# gotten any keyword arguments that map to the request.
399399
has_flattened_params = any([name])
400400
if request is not None and has_flattened_params:
@@ -476,7 +476,7 @@ async def list_instances(
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])
482482
if request is not None and has_flattened_params:
@@ -644,7 +644,7 @@ async def partial_update_instance(
644644
645645
"""
646646
# Create or coerce a protobuf request object.
647-
# Sanity check: If we got a request object, we should *not* have
647+
# Quick check: If we got a request object, we should *not* have
648648
# gotten any keyword arguments that map to the request.
649649
has_flattened_params = any([instance, update_mask])
650650
if request is not None and has_flattened_params:
@@ -732,7 +732,7 @@ async def delete_instance(
732732
sent along with the request as metadata.
733733
"""
734734
# Create or coerce a protobuf request object.
735-
# Sanity check: If we got a request object, we should *not* have
735+
# Quick check: If we got a request object, we should *not* have
736736
# gotten any keyword arguments that map to the request.
737737
has_flattened_params = any([name])
738738
if request is not None and has_flattened_params:
@@ -831,7 +831,7 @@ async def create_cluster(
831831
832832
"""
833833
# Create or coerce a protobuf request object.
834-
# Sanity check: If we got a request object, we should *not* have
834+
# Quick check: If we got a request object, we should *not* have
835835
# gotten any keyword arguments that map to the request.
836836
has_flattened_params = any([parent, cluster_id, cluster])
837837
if request is not None and has_flattened_params:
@@ -917,7 +917,7 @@ async def get_cluster(
917917
918918
"""
919919
# Create or coerce a protobuf request object.
920-
# Sanity check: If we got a request object, we should *not* have
920+
# Quick check: If we got a request object, we should *not* have
921921
# gotten any keyword arguments that map to the request.
922922
has_flattened_params = any([name])
923923
if request is not None and has_flattened_params:
@@ -1001,7 +1001,7 @@ async def list_clusters(
10011001
10021002
"""
10031003
# Create or coerce a protobuf request object.
1004-
# Sanity check: If we got a request object, we should *not* have
1004+
# Quick check: If we got a request object, we should *not* have
10051005
# gotten any keyword arguments that map to the request.
10061006
has_flattened_params = any([parent])
10071007
if request is not None and has_flattened_params:
@@ -1186,7 +1186,7 @@ async def partial_update_cluster(
11861186
11871187
"""
11881188
# Create or coerce a protobuf request object.
1189-
# Sanity check: If we got a request object, we should *not* have
1189+
# Quick check: If we got a request object, we should *not* have
11901190
# gotten any keyword arguments that map to the request.
11911191
has_flattened_params = any([cluster, update_mask])
11921192
if request is not None and has_flattened_params:
@@ -1274,7 +1274,7 @@ async def delete_cluster(
12741274
sent along with the request as metadata.
12751275
"""
12761276
# Create or coerce a protobuf request object.
1277-
# Sanity check: If we got a request object, we should *not* have
1277+
# Quick check: If we got a request object, we should *not* have
12781278
# gotten any keyword arguments that map to the request.
12791279
has_flattened_params = any([name])
12801280
if request is not None and has_flattened_params:
@@ -1364,7 +1364,7 @@ async def create_app_profile(
13641364
13651365
"""
13661366
# Create or coerce a protobuf request object.
1367-
# Sanity check: If we got a request object, we should *not* have
1367+
# Quick check: If we got a request object, we should *not* have
13681368
# gotten any keyword arguments that map to the request.
13691369
has_flattened_params = any([parent, app_profile_id, app_profile])
13701370
if request is not None and has_flattened_params:
@@ -1441,7 +1441,7 @@ async def get_app_profile(
14411441
14421442
"""
14431443
# Create or coerce a protobuf request object.
1444-
# Sanity check: If we got a request object, we should *not* have
1444+
# Quick check: If we got a request object, we should *not* have
14451445
# gotten any keyword arguments that map to the request.
14461446
has_flattened_params = any([name])
14471447
if request is not None and has_flattened_params:
@@ -1529,7 +1529,7 @@ async def list_app_profiles(
15291529
15301530
"""
15311531
# Create or coerce a protobuf request object.
1532-
# Sanity check: If we got a request object, we should *not* have
1532+
# Quick check: If we got a request object, we should *not* have
15331533
# gotten any keyword arguments that map to the request.
15341534
has_flattened_params = any([parent])
15351535
if request is not None and has_flattened_params:
@@ -1627,7 +1627,7 @@ async def update_app_profile(
16271627
16281628
"""
16291629
# Create or coerce a protobuf request object.
1630-
# Sanity check: If we got a request object, we should *not* have
1630+
# Quick check: If we got a request object, we should *not* have
16311631
# gotten any keyword arguments that map to the request.
16321632
has_flattened_params = any([app_profile, update_mask])
16331633
if request is not None and has_flattened_params:
@@ -1715,7 +1715,7 @@ async def delete_app_profile(
17151715
sent along with the request as metadata.
17161716
"""
17171717
# Create or coerce a protobuf request object.
1718-
# Sanity check: If we got a request object, we should *not* have
1718+
# Quick check: If we got a request object, we should *not* have
17191719
# gotten any keyword arguments that map to the request.
17201720
has_flattened_params = any([name])
17211721
if request is not None and has_flattened_params:
@@ -1842,7 +1842,7 @@ async def get_iam_policy(
18421842
18431843
"""
18441844
# Create or coerce a protobuf request object.
1845-
# Sanity check: If we got a request object, we should *not* have
1845+
# Quick check: If we got a request object, we should *not* have
18461846
# gotten any keyword arguments that map to the request.
18471847
has_flattened_params = any([resource])
18481848
if request is not None and has_flattened_params:
@@ -1979,7 +1979,7 @@ async def set_iam_policy(
19791979
19801980
"""
19811981
# Create or coerce a protobuf request object.
1982-
# Sanity check: If we got a request object, we should *not* have
1982+
# Quick check: If we got a request object, we should *not* have
19831983
# gotten any keyword arguments that map to the request.
19841984
has_flattened_params = any([resource])
19851985
if request is not None and has_flattened_params:
@@ -2061,7 +2061,7 @@ async def test_iam_permissions(
20612061
Response message for TestIamPermissions method.
20622062
"""
20632063
# Create or coerce a protobuf request object.
2064-
# Sanity check: If we got a request object, we should *not* have
2064+
# Quick check: If we got a request object, we should *not* have
20652065
# gotten any keyword arguments that map to the request.
20662066
has_flattened_params = any([resource, permissions])
20672067
if request is not None and has_flattened_params:

google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/client.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ def create_instance(
540540
541541
"""
542542
# Create or coerce a protobuf request object.
543-
# Sanity check: If we got a request object, we should *not* have
543+
# Quick check: If we got a request object, we should *not* have
544544
# gotten any keyword arguments that map to the request.
545545
has_flattened_params = any([parent, instance_id, instance, clusters])
546546
if request is not None and has_flattened_params:
@@ -629,7 +629,7 @@ def get_instance(
629629
630630
"""
631631
# Create or coerce a protobuf request object.
632-
# Sanity check: If we got a request object, we should *not* have
632+
# Quick check: If we got a request object, we should *not* have
633633
# gotten any keyword arguments that map to the request.
634634
has_flattened_params = any([name])
635635
if request is not None and has_flattened_params:
@@ -701,7 +701,7 @@ def list_instances(
701701
702702
"""
703703
# Create or coerce a protobuf request object.
704-
# Sanity check: If we got a request object, we should *not* have
704+
# Quick check: If we got a request object, we should *not* have
705705
# gotten any keyword arguments that map to the request.
706706
has_flattened_params = any([parent])
707707
if request is not None and has_flattened_params:
@@ -850,7 +850,7 @@ def partial_update_instance(
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([instance, update_mask])
856856
if request is not None and has_flattened_params:
@@ -930,7 +930,7 @@ def delete_instance(
930930
sent along with the request as metadata.
931931
"""
932932
# Create or coerce a protobuf request object.
933-
# Sanity check: If we got a request object, we should *not* have
933+
# Quick check: If we got a request object, we should *not* have
934934
# gotten any keyword arguments that map to the request.
935935
has_flattened_params = any([name])
936936
if request is not None and has_flattened_params:
@@ -1029,7 +1029,7 @@ def create_cluster(
10291029
10301030
"""
10311031
# Create or coerce a protobuf request object.
1032-
# Sanity check: If we got a request object, we should *not* have
1032+
# Quick check: If we got a request object, we should *not* have
10331033
# gotten any keyword arguments that map to the request.
10341034
has_flattened_params = any([parent, cluster_id, cluster])
10351035
if request is not None and has_flattened_params:
@@ -1115,7 +1115,7 @@ def get_cluster(
11151115
11161116
"""
11171117
# Create or coerce a protobuf request object.
1118-
# Sanity check: If we got a request object, we should *not* have
1118+
# Quick check: If we got a request object, we should *not* have
11191119
# gotten any keyword arguments that map to the request.
11201120
has_flattened_params = any([name])
11211121
if request is not None and has_flattened_params:
@@ -1189,7 +1189,7 @@ def list_clusters(
11891189
11901190
"""
11911191
# Create or coerce a protobuf request object.
1192-
# Sanity check: If we got a request object, we should *not* have
1192+
# Quick check: If we got a request object, we should *not* have
11931193
# gotten any keyword arguments that map to the request.
11941194
has_flattened_params = any([parent])
11951195
if request is not None and has_flattened_params:
@@ -1355,7 +1355,7 @@ def partial_update_cluster(
13551355
13561356
"""
13571357
# Create or coerce a protobuf request object.
1358-
# Sanity check: If we got a request object, we should *not* have
1358+
# Quick check: If we got a request object, we should *not* have
13591359
# gotten any keyword arguments that map to the request.
13601360
has_flattened_params = any([cluster, update_mask])
13611361
if request is not None and has_flattened_params:
@@ -1433,7 +1433,7 @@ def delete_cluster(
14331433
sent along with the request as metadata.
14341434
"""
14351435
# Create or coerce a protobuf request object.
1436-
# Sanity check: If we got a request object, we should *not* have
1436+
# Quick check: If we got a request object, we should *not* have
14371437
# gotten any keyword arguments that map to the request.
14381438
has_flattened_params = any([name])
14391439
if request is not None and has_flattened_params:
@@ -1523,7 +1523,7 @@ def create_app_profile(
15231523
15241524
"""
15251525
# Create or coerce a protobuf request object.
1526-
# Sanity check: If we got a request object, we should *not* have
1526+
# Quick check: If we got a request object, we should *not* have
15271527
# gotten any keyword arguments that map to the request.
15281528
has_flattened_params = any([parent, app_profile_id, app_profile])
15291529
if request is not None and has_flattened_params:
@@ -1600,7 +1600,7 @@ def get_app_profile(
16001600
16011601
"""
16021602
# Create or coerce a protobuf request object.
1603-
# Sanity check: If we got a request object, we should *not* have
1603+
# Quick check: If we got a request object, we should *not* have
16041604
# gotten any keyword arguments that map to the request.
16051605
has_flattened_params = any([name])
16061606
if request is not None and has_flattened_params:
@@ -1678,7 +1678,7 @@ def list_app_profiles(
16781678
16791679
"""
16801680
# Create or coerce a protobuf request object.
1681-
# Sanity check: If we got a request object, we should *not* have
1681+
# Quick check: If we got a request object, we should *not* have
16821682
# gotten any keyword arguments that map to the request.
16831683
has_flattened_params = any([parent])
16841684
if request is not None and has_flattened_params:
@@ -1766,7 +1766,7 @@ def update_app_profile(
17661766
17671767
"""
17681768
# Create or coerce a protobuf request object.
1769-
# Sanity check: If we got a request object, we should *not* have
1769+
# Quick check: If we got a request object, we should *not* have
17701770
# gotten any keyword arguments that map to the request.
17711771
has_flattened_params = any([app_profile, update_mask])
17721772
if request is not None and has_flattened_params:
@@ -1844,7 +1844,7 @@ def delete_app_profile(
18441844
sent along with the request as metadata.
18451845
"""
18461846
# Create or coerce a protobuf request object.
1847-
# Sanity check: If we got a request object, we should *not* have
1847+
# Quick check: If we got a request object, we should *not* have
18481848
# gotten any keyword arguments that map to the request.
18491849
has_flattened_params = any([name])
18501850
if request is not None and has_flattened_params:
@@ -1971,7 +1971,7 @@ def get_iam_policy(
19711971
19721972
"""
19731973
# Create or coerce a protobuf request object.
1974-
# Sanity check: If we got a request object, we should *not* have
1974+
# Quick check: If we got a request object, we should *not* have
19751975
# gotten any keyword arguments that map to the request.
19761976
has_flattened_params = any([resource])
19771977
if request is not None and has_flattened_params:
@@ -2097,7 +2097,7 @@ def set_iam_policy(
20972097
20982098
"""
20992099
# Create or coerce a protobuf request object.
2100-
# Sanity check: If we got a request object, we should *not* have
2100+
# Quick check: If we got a request object, we should *not* have
21012101
# gotten any keyword arguments that map to the request.
21022102
has_flattened_params = any([resource])
21032103
if request is not None and has_flattened_params:
@@ -2178,7 +2178,7 @@ def test_iam_permissions(
21782178
Response message for TestIamPermissions method.
21792179
"""
21802180
# Create or coerce a protobuf request object.
2181-
# Sanity check: If we got a request object, we should *not* have
2181+
# Quick check: If we got a request object, we should *not* have
21822182
# gotten any keyword arguments that map to the request.
21832183
has_flattened_params = any([resource, permissions])
21842184
if request is not None and has_flattened_params:

google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc.py

Lines changed: 5 additions & 2 deletions
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,
@@ -242,7 +245,7 @@ def operations_client(self) -> operations_v1.OperationsClient:
242245
This property caches on the instance; repeated calls return the same
243246
client.
244247
"""
245-
# Sanity check: Only create a new client if we do not already have one.
248+
# Quick check: Only create a new client if we do not already have one.
246249
if self._operations_client is None:
247250
self._operations_client = operations_v1.OperationsClient(self.grpc_channel)
248251

google/cloud/bigtable_admin_v2/services/bigtable_instance_admin/transports/grpc_asyncio.py

Lines changed: 5 additions & 2 deletions
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,
@@ -244,7 +247,7 @@ def operations_client(self) -> operations_v1.OperationsAsyncClient:
244247
This property caches on the instance; repeated calls return the same
245248
client.
246249
"""
247-
# Sanity check: Only create a new client if we do not already have one.
250+
# Quick check: Only create a new client if we do not already have one.
248251
if self._operations_client is None:
249252
self._operations_client = operations_v1.OperationsAsyncClient(
250253
self.grpc_channel

0 commit comments

Comments
 (0)