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

Commit 746c116

Browse files
chore: use gapic-generator-python 0.62.1 (#241)
- [ ] 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 9e22e6d commit 746c116

File tree

41 files changed

+752
-136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+752
-136
lines changed

google/cloud/gaming_v1/services/game_server_clusters_service/async_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ async def list_game_server_clusters(
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:
@@ -346,7 +346,7 @@ async def get_game_server_cluster(
346346
A game server cluster resource.
347347
"""
348348
# Create or coerce a protobuf request object.
349-
# Sanity check: If we got a request object, we should *not* have
349+
# Quick check: If we got a request object, we should *not* have
350350
# gotten any keyword arguments that map to the request.
351351
has_flattened_params = any([name])
352352
if request is not None and has_flattened_params:
@@ -449,7 +449,7 @@ async def create_game_server_cluster(
449449
450450
"""
451451
# Create or coerce a protobuf request object.
452-
# Sanity check: If we got a request object, we should *not* have
452+
# Quick check: If we got a request object, we should *not* have
453453
# gotten any keyword arguments that map to the request.
454454
has_flattened_params = any(
455455
[parent, game_server_cluster, game_server_cluster_id]
@@ -611,7 +611,7 @@ async def delete_game_server_cluster(
611611
612612
"""
613613
# Create or coerce a protobuf request object.
614-
# Sanity check: If we got a request object, we should *not* have
614+
# Quick check: If we got a request object, we should *not* have
615615
# gotten any keyword arguments that map to the request.
616616
has_flattened_params = any([name])
617617
if request is not None and has_flattened_params:
@@ -765,7 +765,7 @@ async def update_game_server_cluster(
765765
766766
"""
767767
# Create or coerce a protobuf request object.
768-
# Sanity check: If we got a request object, we should *not* have
768+
# Quick check: If we got a request object, we should *not* have
769769
# gotten any keyword arguments that map to the request.
770770
has_flattened_params = any([game_server_cluster, update_mask])
771771
if request is not None and has_flattened_params:

google/cloud/gaming_v1/services/game_server_clusters_service/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def list_game_server_clusters(
451451
452452
"""
453453
# Create or coerce a protobuf request object.
454-
# Sanity check: If we got a request object, we should *not* have
454+
# Quick check: If we got a request object, we should *not* have
455455
# gotten any keyword arguments that map to the request.
456456
has_flattened_params = any([parent])
457457
if request is not None and has_flattened_params:
@@ -529,7 +529,7 @@ def get_game_server_cluster(
529529
A game server cluster resource.
530530
"""
531531
# Create or coerce a protobuf request object.
532-
# Sanity check: If we got a request object, we should *not* have
532+
# Quick check: If we got a request object, we should *not* have
533533
# gotten any keyword arguments that map to the request.
534534
has_flattened_params = any([name])
535535
if request is not None and has_flattened_params:
@@ -623,7 +623,7 @@ def create_game_server_cluster(
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(
629629
[parent, game_server_cluster, game_server_cluster_id]
@@ -785,7 +785,7 @@ def delete_game_server_cluster(
785785
786786
"""
787787
# Create or coerce a protobuf request object.
788-
# Sanity check: If we got a request object, we should *not* have
788+
# Quick check: If we got a request object, we should *not* have
789789
# gotten any keyword arguments that map to the request.
790790
has_flattened_params = any([name])
791791
if request is not None and has_flattened_params:
@@ -939,7 +939,7 @@ def update_game_server_cluster(
939939
940940
"""
941941
# Create or coerce a protobuf request object.
942-
# Sanity check: If we got a request object, we should *not* have
942+
# Quick check: If we got a request object, we should *not* have
943943
# gotten any keyword arguments that map to the request.
944944
has_flattened_params = any([game_server_cluster, update_mask])
945945
if request is not None and has_flattened_params:

google/cloud/gaming_v1/services/game_server_clusters_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/gaming_v1/services/game_server_clusters_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

google/cloud/gaming_v1/services/game_server_configs_service/async_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ async def list_game_server_configs(
258258
259259
"""
260260
# Create or coerce a protobuf request object.
261-
# Sanity check: If we got a request object, we should *not* have
261+
# Quick check: If we got a request object, we should *not* have
262262
# gotten any keyword arguments that map to the request.
263263
has_flattened_params = any([parent])
264264
if request is not None and has_flattened_params:
@@ -343,7 +343,7 @@ async def get_game_server_config(
343343
A game server config resource.
344344
"""
345345
# Create or coerce a protobuf request object.
346-
# Sanity check: If we got a request object, we should *not* have
346+
# Quick check: If we got a request object, we should *not* have
347347
# gotten any keyword arguments that map to the request.
348348
has_flattened_params = any([name])
349349
if request is not None and has_flattened_params:
@@ -439,7 +439,7 @@ async def create_game_server_config(
439439
440440
"""
441441
# Create or coerce a protobuf request object.
442-
# Sanity check: If we got a request object, we should *not* have
442+
# Quick check: If we got a request object, we should *not* have
443443
# gotten any keyword arguments that map to the request.
444444
has_flattened_params = any([parent, game_server_config])
445445
if request is not None and has_flattened_params:
@@ -536,7 +536,7 @@ async def delete_game_server_config(
536536
537537
"""
538538
# Create or coerce a protobuf request object.
539-
# Sanity check: If we got a request object, we should *not* have
539+
# Quick check: If we got a request object, we should *not* have
540540
# gotten any keyword arguments that map to the request.
541541
has_flattened_params = any([name])
542542
if request is not None and has_flattened_params:

google/cloud/gaming_v1/services/game_server_configs_service/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ def list_game_server_configs(
450450
451451
"""
452452
# Create or coerce a protobuf request object.
453-
# Sanity check: If we got a request object, we should *not* have
453+
# Quick check: If we got a request object, we should *not* have
454454
# gotten any keyword arguments that map to the request.
455455
has_flattened_params = any([parent])
456456
if request is not None and has_flattened_params:
@@ -526,7 +526,7 @@ def get_game_server_config(
526526
A game server config resource.
527527
"""
528528
# Create or coerce a protobuf request object.
529-
# Sanity check: If we got a request object, we should *not* have
529+
# Quick check: If we got a request object, we should *not* have
530530
# gotten any keyword arguments that map to the request.
531531
has_flattened_params = any([name])
532532
if request is not None and has_flattened_params:
@@ -613,7 +613,7 @@ def create_game_server_config(
613613
614614
"""
615615
# Create or coerce a protobuf request object.
616-
# Sanity check: If we got a request object, we should *not* have
616+
# Quick check: If we got a request object, we should *not* have
617617
# gotten any keyword arguments that map to the request.
618618
has_flattened_params = any([parent, game_server_config])
619619
if request is not None and has_flattened_params:
@@ -712,7 +712,7 @@ def delete_game_server_config(
712712
713713
"""
714714
# Create or coerce a protobuf request object.
715-
# Sanity check: If we got a request object, we should *not* have
715+
# Quick check: If we got a request object, we should *not* have
716716
# gotten any keyword arguments that map to the request.
717717
has_flattened_params = any([name])
718718
if request is not None and has_flattened_params:

google/cloud/gaming_v1/services/game_server_configs_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/gaming_v1/services/game_server_configs_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

google/cloud/gaming_v1/services/game_server_deployments_service/async_client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ async def list_game_server_deployments(
268268
269269
"""
270270
# Create or coerce a protobuf request object.
271-
# Sanity check: If we got a request object, we should *not* have
271+
# Quick check: If we got a request object, we should *not* have
272272
# gotten any keyword arguments that map to the request.
273273
has_flattened_params = any([parent])
274274
if request is not None and has_flattened_params:
@@ -355,7 +355,7 @@ async def get_game_server_deployment(
355355
A game server deployment resource.
356356
"""
357357
# Create or coerce a protobuf request object.
358-
# Sanity check: If we got a request object, we should *not* have
358+
# Quick check: If we got a request object, we should *not* have
359359
# gotten any keyword arguments that map to the request.
360360
has_flattened_params = any([name])
361361
if request is not None and has_flattened_params:
@@ -449,7 +449,7 @@ async def create_game_server_deployment(
449449
450450
"""
451451
# Create or coerce a protobuf request object.
452-
# Sanity check: If we got a request object, we should *not* have
452+
# Quick check: If we got a request object, we should *not* have
453453
# gotten any keyword arguments that map to the request.
454454
has_flattened_params = any([parent, game_server_deployment])
455455
if request is not None and has_flattened_params:
@@ -546,7 +546,7 @@ async def delete_game_server_deployment(
546546
547547
"""
548548
# Create or coerce a protobuf request object.
549-
# Sanity check: If we got a request object, we should *not* have
549+
# Quick check: If we got a request object, we should *not* have
550550
# gotten any keyword arguments that map to the request.
551551
has_flattened_params = any([name])
552552
if request is not None and has_flattened_params:
@@ -641,7 +641,7 @@ async def update_game_server_deployment(
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([game_server_deployment, update_mask])
647647
if request is not None and has_flattened_params:
@@ -728,7 +728,7 @@ async def get_game_server_deployment_rollout(
728728
729729
"""
730730
# Create or coerce a protobuf request object.
731-
# Sanity check: If we got a request object, we should *not* have
731+
# Quick check: If we got a request object, we should *not* have
732732
# gotten any keyword arguments that map to the request.
733733
has_flattened_params = any([name])
734734
if request is not None and has_flattened_params:
@@ -830,7 +830,7 @@ async def update_game_server_deployment_rollout(
830830
831831
"""
832832
# Create or coerce a protobuf request object.
833-
# Sanity check: If we got a request object, we should *not* have
833+
# Quick check: If we got a request object, we should *not* have
834834
# gotten any keyword arguments that map to the request.
835835
has_flattened_params = any([rollout, update_mask])
836836
if request is not None and has_flattened_params:

google/cloud/gaming_v1/services/game_server_deployments_service/client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def list_game_server_deployments(
474474
475475
"""
476476
# Create or coerce a protobuf request object.
477-
# Sanity check: If we got a request object, we should *not* have
477+
# Quick check: If we got a request object, we should *not* have
478478
# gotten any keyword arguments that map to the request.
479479
has_flattened_params = any([parent])
480480
if request is not None and has_flattened_params:
@@ -556,7 +556,7 @@ def get_game_server_deployment(
556556
A game server deployment resource.
557557
"""
558558
# Create or coerce a protobuf request object.
559-
# Sanity check: If we got a request object, we should *not* have
559+
# Quick check: If we got a request object, we should *not* have
560560
# gotten any keyword arguments that map to the request.
561561
has_flattened_params = any([name])
562562
if request is not None and has_flattened_params:
@@ -645,7 +645,7 @@ def create_game_server_deployment(
645645
646646
"""
647647
# Create or coerce a protobuf request object.
648-
# Sanity check: If we got a request object, we should *not* have
648+
# Quick check: If we got a request object, we should *not* have
649649
# gotten any keyword arguments that map to the request.
650650
has_flattened_params = any([parent, game_server_deployment])
651651
if request is not None and has_flattened_params:
@@ -746,7 +746,7 @@ def delete_game_server_deployment(
746746
747747
"""
748748
# Create or coerce a protobuf request object.
749-
# Sanity check: If we got a request object, we should *not* have
749+
# Quick check: If we got a request object, we should *not* have
750750
# gotten any keyword arguments that map to the request.
751751
has_flattened_params = any([name])
752752
if request is not None and has_flattened_params:
@@ -845,7 +845,7 @@ def update_game_server_deployment(
845845
846846
"""
847847
# Create or coerce a protobuf request object.
848-
# Sanity check: If we got a request object, we should *not* have
848+
# Quick check: If we got a request object, we should *not* have
849849
# gotten any keyword arguments that map to the request.
850850
has_flattened_params = any([game_server_deployment, update_mask])
851851
if request is not None and has_flattened_params:
@@ -936,7 +936,7 @@ def get_game_server_deployment_rollout(
936936
937937
"""
938938
# Create or coerce a protobuf request object.
939-
# Sanity check: If we got a request object, we should *not* have
939+
# Quick check: If we got a request object, we should *not* have
940940
# gotten any keyword arguments that map to the request.
941941
has_flattened_params = any([name])
942942
if request is not None and has_flattened_params:
@@ -1035,7 +1035,7 @@ def update_game_server_deployment_rollout(
10351035
10361036
"""
10371037
# Create or coerce a protobuf request object.
1038-
# Sanity check: If we got a request object, we should *not* have
1038+
# Quick check: If we got a request object, we should *not* have
10391039
# gotten any keyword arguments that map to the request.
10401040
has_flattened_params = any([rollout, update_mask])
10411041
if request is not None and has_flattened_params:

0 commit comments

Comments
 (0)