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

Commit dd8ce9f

Browse files
chore: use gapic-generator-python 0.62.1 (#102)
- [ ] 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 72f55a7 commit dd8ce9f

File tree

6 files changed

+141
-64
lines changed

6 files changed

+141
-64
lines changed

google/cloud/apigateway_v1/services/api_gateway_service/async_client.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ async def list_gateways(
261261
262262
"""
263263
# Create or coerce a protobuf request object.
264-
# Sanity check: If we got a request object, we should *not* have
264+
# Quick check: If we got a request object, we should *not* have
265265
# gotten any keyword arguments that map to the request.
266266
has_flattened_params = any([parent])
267267
if request is not None and has_flattened_params:
@@ -334,15 +334,15 @@ async def get_gateway(
334334
Returns:
335335
google.cloud.apigateway_v1.types.Gateway:
336336
A Gateway is an API-aware HTTP proxy.
337-
It performs API-Method and/or API-
338-
Consumer specific actions based on an
339-
API Config such as authentication,
337+
It performs API-Method and/or
338+
API-Consumer specific actions based on
339+
an API Config such as authentication,
340340
policy enforcement, and backend
341341
selection.
342342
343343
"""
344344
# Create or coerce a protobuf request object.
345-
# Sanity check: If we got a request object, we should *not* have
345+
# Quick check: If we got a request object, we should *not* have
346346
# gotten any keyword arguments that map to the request.
347347
has_flattened_params = any([name])
348348
if request is not None and has_flattened_params:
@@ -433,7 +433,7 @@ async def create_gateway(
433433
434434
"""
435435
# Create or coerce a protobuf request object.
436-
# Sanity check: If we got a request object, we should *not* have
436+
# Quick check: If we got a request object, we should *not* have
437437
# gotten any keyword arguments that map to the request.
438438
has_flattened_params = any([parent, gateway, gateway_id])
439439
if request is not None and has_flattened_params:
@@ -539,7 +539,7 @@ async def update_gateway(
539539
540540
"""
541541
# Create or coerce a protobuf request object.
542-
# Sanity check: If we got a request object, we should *not* have
542+
# Quick check: If we got a request object, we should *not* have
543543
# gotten any keyword arguments that map to the request.
544544
has_flattened_params = any([gateway, update_mask])
545545
if request is not None and has_flattened_params:
@@ -644,7 +644,7 @@ async def delete_gateway(
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([name])
650650
if request is not None and has_flattened_params:
@@ -735,7 +735,7 @@ async def list_apis(
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([parent])
741741
if request is not None and has_flattened_params:
@@ -812,7 +812,7 @@ async def get_api(
812812
813813
"""
814814
# Create or coerce a protobuf request object.
815-
# Sanity check: If we got a request object, we should *not* have
815+
# Quick check: If we got a request object, we should *not* have
816816
# gotten any keyword arguments that map to the request.
817817
has_flattened_params = any([name])
818818
if request is not None and has_flattened_params:
@@ -901,7 +901,7 @@ async def create_api(
901901
902902
"""
903903
# Create or coerce a protobuf request object.
904-
# Sanity check: If we got a request object, we should *not* have
904+
# Quick check: If we got a request object, we should *not* have
905905
# gotten any keyword arguments that map to the request.
906906
has_flattened_params = any([parent, api, api_id])
907907
if request is not None and has_flattened_params:
@@ -1006,7 +1006,7 @@ async def update_api(
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([api, update_mask])
10121012
if request is not None and has_flattened_params:
@@ -1109,7 +1109,7 @@ async def delete_api(
11091109
11101110
"""
11111111
# Create or coerce a protobuf request object.
1112-
# Sanity check: If we got a request object, we should *not* have
1112+
# Quick check: If we got a request object, we should *not* have
11131113
# gotten any keyword arguments that map to the request.
11141114
has_flattened_params = any([name])
11151115
if request is not None and has_flattened_params:
@@ -1200,7 +1200,7 @@ async def list_api_configs(
12001200
12011201
"""
12021202
# Create or coerce a protobuf request object.
1203-
# Sanity check: If we got a request object, we should *not* have
1203+
# Quick check: If we got a request object, we should *not* have
12041204
# gotten any keyword arguments that map to the request.
12051205
has_flattened_params = any([parent])
12061206
if request is not None and has_flattened_params:
@@ -1278,7 +1278,7 @@ async def get_api_config(
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([name])
12841284
if request is not None and has_flattened_params:
@@ -1367,7 +1367,7 @@ async def create_api_config(
13671367
13681368
"""
13691369
# Create or coerce a protobuf request object.
1370-
# Sanity check: If we got a request object, we should *not* have
1370+
# Quick check: If we got a request object, we should *not* have
13711371
# gotten any keyword arguments that map to the request.
13721372
has_flattened_params = any([parent, api_config, api_config_id])
13731373
if request is not None and has_flattened_params:
@@ -1471,7 +1471,7 @@ async def update_api_config(
14711471
14721472
"""
14731473
# Create or coerce a protobuf request object.
1474-
# Sanity check: If we got a request object, we should *not* have
1474+
# Quick check: If we got a request object, we should *not* have
14751475
# gotten any keyword arguments that map to the request.
14761476
has_flattened_params = any([api_config, update_mask])
14771477
if request is not None and has_flattened_params:
@@ -1576,7 +1576,7 @@ async def delete_api_config(
15761576
15771577
"""
15781578
# Create or coerce a protobuf request object.
1579-
# Sanity check: If we got a request object, we should *not* have
1579+
# Quick check: If we got a request object, we should *not* have
15801580
# gotten any keyword arguments that map to the request.
15811581
has_flattened_params = any([name])
15821582
if request is not None and has_flattened_params:

google/cloud/apigateway_v1/services/api_gateway_service/client.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ def list_gateways(
517517
518518
"""
519519
# Create or coerce a protobuf request object.
520-
# Sanity check: If we got a request object, we should *not* have
520+
# Quick check: If we got a request object, we should *not* have
521521
# gotten any keyword arguments that map to the request.
522522
has_flattened_params = any([parent])
523523
if request is not None and has_flattened_params:
@@ -590,15 +590,15 @@ def get_gateway(
590590
Returns:
591591
google.cloud.apigateway_v1.types.Gateway:
592592
A Gateway is an API-aware HTTP proxy.
593-
It performs API-Method and/or API-
594-
Consumer specific actions based on an
595-
API Config such as authentication,
593+
It performs API-Method and/or
594+
API-Consumer specific actions based on
595+
an API Config such as authentication,
596596
policy enforcement, and backend
597597
selection.
598598
599599
"""
600600
# Create or coerce a protobuf request object.
601-
# Sanity check: If we got a request object, we should *not* have
601+
# Quick check: If we got a request object, we should *not* have
602602
# gotten any keyword arguments that map to the request.
603603
has_flattened_params = any([name])
604604
if request is not None and has_flattened_params:
@@ -689,7 +689,7 @@ def create_gateway(
689689
690690
"""
691691
# Create or coerce a protobuf request object.
692-
# Sanity check: If we got a request object, we should *not* have
692+
# Quick check: If we got a request object, we should *not* have
693693
# gotten any keyword arguments that map to the request.
694694
has_flattened_params = any([parent, gateway, gateway_id])
695695
if request is not None and has_flattened_params:
@@ -786,7 +786,7 @@ def update_gateway(
786786
787787
"""
788788
# Create or coerce a protobuf request object.
789-
# Sanity check: If we got a request object, we should *not* have
789+
# Quick check: If we got a request object, we should *not* have
790790
# gotten any keyword arguments that map to the request.
791791
has_flattened_params = any([gateway, update_mask])
792792
if request is not None and has_flattened_params:
@@ -882,7 +882,7 @@ def delete_gateway(
882882
883883
"""
884884
# Create or coerce a protobuf request object.
885-
# Sanity check: If we got a request object, we should *not* have
885+
# Quick check: If we got a request object, we should *not* have
886886
# gotten any keyword arguments that map to the request.
887887
has_flattened_params = any([name])
888888
if request is not None and has_flattened_params:
@@ -964,7 +964,7 @@ def list_apis(
964964
965965
"""
966966
# Create or coerce a protobuf request object.
967-
# Sanity check: If we got a request object, we should *not* have
967+
# Quick check: If we got a request object, we should *not* have
968968
# gotten any keyword arguments that map to the request.
969969
has_flattened_params = any([parent])
970970
if request is not None and has_flattened_params:
@@ -1041,7 +1041,7 @@ def get_api(
10411041
10421042
"""
10431043
# Create or coerce a protobuf request object.
1044-
# Sanity check: If we got a request object, we should *not* have
1044+
# Quick check: If we got a request object, we should *not* have
10451045
# gotten any keyword arguments that map to the request.
10461046
has_flattened_params = any([name])
10471047
if request is not None and has_flattened_params:
@@ -1130,7 +1130,7 @@ def create_api(
11301130
11311131
"""
11321132
# Create or coerce a protobuf request object.
1133-
# Sanity check: If we got a request object, we should *not* have
1133+
# Quick check: If we got a request object, we should *not* have
11341134
# gotten any keyword arguments that map to the request.
11351135
has_flattened_params = any([parent, api, api_id])
11361136
if request is not None and has_flattened_params:
@@ -1226,7 +1226,7 @@ def update_api(
12261226
12271227
"""
12281228
# Create or coerce a protobuf request object.
1229-
# Sanity check: If we got a request object, we should *not* have
1229+
# Quick check: If we got a request object, we should *not* have
12301230
# gotten any keyword arguments that map to the request.
12311231
has_flattened_params = any([api, update_mask])
12321232
if request is not None and has_flattened_params:
@@ -1320,7 +1320,7 @@ def delete_api(
13201320
13211321
"""
13221322
# Create or coerce a protobuf request object.
1323-
# Sanity check: If we got a request object, we should *not* have
1323+
# Quick check: If we got a request object, we should *not* have
13241324
# gotten any keyword arguments that map to the request.
13251325
has_flattened_params = any([name])
13261326
if request is not None and has_flattened_params:
@@ -1402,7 +1402,7 @@ def list_api_configs(
14021402
14031403
"""
14041404
# Create or coerce a protobuf request object.
1405-
# Sanity check: If we got a request object, we should *not* have
1405+
# Quick check: If we got a request object, we should *not* have
14061406
# gotten any keyword arguments that map to the request.
14071407
has_flattened_params = any([parent])
14081408
if request is not None and has_flattened_params:
@@ -1480,7 +1480,7 @@ def get_api_config(
14801480
14811481
"""
14821482
# Create or coerce a protobuf request object.
1483-
# Sanity check: If we got a request object, we should *not* have
1483+
# Quick check: If we got a request object, we should *not* have
14841484
# gotten any keyword arguments that map to the request.
14851485
has_flattened_params = any([name])
14861486
if request is not None and has_flattened_params:
@@ -1569,7 +1569,7 @@ def create_api_config(
15691569
15701570
"""
15711571
# Create or coerce a protobuf request object.
1572-
# Sanity check: If we got a request object, we should *not* have
1572+
# Quick check: If we got a request object, we should *not* have
15731573
# gotten any keyword arguments that map to the request.
15741574
has_flattened_params = any([parent, api_config, api_config_id])
15751575
if request is not None and has_flattened_params:
@@ -1664,7 +1664,7 @@ def update_api_config(
16641664
16651665
"""
16661666
# Create or coerce a protobuf request object.
1667-
# Sanity check: If we got a request object, we should *not* have
1667+
# Quick check: If we got a request object, we should *not* have
16681668
# gotten any keyword arguments that map to the request.
16691669
has_flattened_params = any([api_config, update_mask])
16701670
if request is not None and has_flattened_params:
@@ -1760,7 +1760,7 @@ def delete_api_config(
17601760
17611761
"""
17621762
# Create or coerce a protobuf request object.
1763-
# Sanity check: If we got a request object, we should *not* have
1763+
# Quick check: If we got a request object, we should *not* have
17641764
# gotten any keyword arguments that map to the request.
17651765
has_flattened_params = any([name])
17661766
if request is not None and has_flattened_params:

google/cloud/apigateway_v1/services/api_gateway_service/transports/grpc.py

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

google/cloud/apigateway_v1/services/api_gateway_service/transports/grpc_asyncio.py

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

0 commit comments

Comments
 (0)