Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.62.1 (#94)
Browse files Browse the repository at this point in the history
- [ ] 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
  • Loading branch information
gcf-owl-bot[bot] authored Feb 3, 2022
1 parent e4a24e9 commit bb80bf3
Show file tree
Hide file tree
Showing 5 changed files with 122 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ async def list_services(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([producer_project_id, consumer_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -363,7 +363,7 @@ async def get_service(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -433,7 +433,7 @@ async def create_service(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -528,7 +528,7 @@ async def delete_service(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -612,7 +612,7 @@ async def undelete_service(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -691,7 +691,7 @@ async def list_service_configs(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -801,7 +801,7 @@ async def get_service_config(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, config_id, view])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -905,7 +905,7 @@ async def create_service_config(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, service_config])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1007,7 +1007,7 @@ async def submit_config_source(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, config_source, validate_only])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1106,7 +1106,7 @@ async def list_service_rollouts(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, filter])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1194,7 +1194,7 @@ async def get_service_rollout(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, rollout_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1291,7 +1291,7 @@ async def create_service_rollout(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, rollout])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1393,7 +1393,7 @@ async def generate_config_report(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([new_config, old_config])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1490,7 +1490,7 @@ async def enable_service(
)

# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, consumer_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1596,7 +1596,7 @@ async def disable_service(
)

# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, consumer_id])
if request is not None and has_flattened_params:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def list_services(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([producer_project_id, consumer_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -546,7 +546,7 @@ def get_service(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -616,7 +616,7 @@ def create_service(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -711,7 +711,7 @@ def delete_service(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -795,7 +795,7 @@ def undelete_service(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -874,7 +874,7 @@ def list_service_configs(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -984,7 +984,7 @@ def get_service_config(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, config_id, view])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1088,7 +1088,7 @@ def create_service_config(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, service_config])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1190,7 +1190,7 @@ def submit_config_source(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, config_source, validate_only])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1289,7 +1289,7 @@ def list_service_rollouts(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, filter])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1377,7 +1377,7 @@ def get_service_rollout(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, rollout_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1474,7 +1474,7 @@ def create_service_rollout(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, rollout])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1576,7 +1576,7 @@ def generate_config_report(
"""
# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([new_config, old_config])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1673,7 +1673,7 @@ def enable_service(
)

# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, consumer_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1778,7 +1778,7 @@ def disable_service(
)

# Create or coerce a protobuf request object.
# Sanity check: If we got a request object, we should *not* have
# Quick check: If we got a request object, we should *not* have
# gotten any keyword arguments that map to the request.
has_flattened_params = any([service_name, consumer_id])
if request is not None and has_flattened_params:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,11 @@ def __init__(
if not self._grpc_channel:
self._grpc_channel = type(self).create_channel(
self._host,
# use the credentials which are saved
credentials=self._credentials,
credentials_file=credentials_file,
# Set ``credentials_file`` to ``None`` here as
# the credentials that we saved earlier should be used.
credentials_file=None,
scopes=self._scopes,
ssl_credentials=self._ssl_channel_credentials,
quota_project_id=quota_project_id,
Expand Down Expand Up @@ -238,7 +241,7 @@ def operations_client(self) -> operations_v1.OperationsClient:
This property caches on the instance; repeated calls return the same
client.
"""
# Sanity check: Only create a new client if we do not already have one.
# Quick check: Only create a new client if we do not already have one.
if self._operations_client is None:
self._operations_client = operations_v1.OperationsClient(self.grpc_channel)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,11 @@ def __init__(
if not self._grpc_channel:
self._grpc_channel = type(self).create_channel(
self._host,
# use the credentials which are saved
credentials=self._credentials,
credentials_file=credentials_file,
# Set ``credentials_file`` to ``None`` here as
# the credentials that we saved earlier should be used.
credentials_file=None,
scopes=self._scopes,
ssl_credentials=self._ssl_channel_credentials,
quota_project_id=quota_project_id,
Expand Down Expand Up @@ -240,7 +243,7 @@ def operations_client(self) -> operations_v1.OperationsAsyncClient:
This property caches on the instance; repeated calls return the same
client.
"""
# Sanity check: Only create a new client if we do not already have one.
# Quick check: Only create a new client if we do not already have one.
if self._operations_client is None:
self._operations_client = operations_v1.OperationsAsyncClient(
self.grpc_channel
Expand Down
Loading

0 comments on commit bb80bf3

Please sign in to comment.