Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.62.1 (#226)
Browse files Browse the repository at this point in the history
- [x] 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 d8aa4b7 commit b1c5455
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ async def create_build(
"""
# 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([project_id, build])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -398,7 +398,7 @@ async def get_build(
"""
# 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([project_id, id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -484,7 +484,7 @@ async def list_builds(
"""
# 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([project_id, filter])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -591,7 +591,7 @@ async def cancel_build(
"""
# 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([project_id, id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -717,7 +717,7 @@ async def retry_build(
"""
# 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([project_id, id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -827,7 +827,7 @@ async def approve_build(
"""
# 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([name, approval_result])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -917,7 +917,7 @@ async def create_build_trigger(
"""
# 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([project_id, trigger])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -995,7 +995,7 @@ async def get_build_trigger(
"""
# 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([project_id, trigger_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1076,7 +1076,7 @@ async def list_build_triggers(
"""
# 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([project_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1158,7 +1158,7 @@ async def delete_build_trigger(
sent along with the request as metadata.
"""
# 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([project_id, trigger_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1249,7 +1249,7 @@ async def update_build_trigger(
"""
# 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([project_id, trigger_id, trigger])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1353,7 +1353,7 @@ async def run_build_trigger(
"""
# 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([project_id, trigger_id, source])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1511,7 +1511,7 @@ async def create_worker_pool(
"""
# 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([parent, worker_pool, worker_pool_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1608,7 +1608,7 @@ async def get_worker_pool(
"""
# 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([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1702,7 +1702,7 @@ async def delete_worker_pool(
"""
# 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([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1808,7 +1808,7 @@ async def update_worker_pool(
"""
# 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([worker_pool, update_mask])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1893,7 +1893,7 @@ async def list_worker_pools(
"""
# 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([parent])
if request is not None and has_flattened_params:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ def create_build(
"""
# 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([project_id, build])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -694,7 +694,7 @@ def get_build(
"""
# 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([project_id, id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -770,7 +770,7 @@ def list_builds(
"""
# 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([project_id, filter])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -867,7 +867,7 @@ def cancel_build(
"""
# 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([project_id, id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -993,7 +993,7 @@ def retry_build(
"""
# 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([project_id, id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1103,7 +1103,7 @@ def approve_build(
"""
# 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([name, approval_result])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1193,7 +1193,7 @@ def create_build_trigger(
"""
# 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([project_id, trigger])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1271,7 +1271,7 @@ def get_build_trigger(
"""
# 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([project_id, trigger_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1342,7 +1342,7 @@ def list_build_triggers(
"""
# 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([project_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1414,7 +1414,7 @@ def delete_build_trigger(
sent along with the request as metadata.
"""
# 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([project_id, trigger_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1495,7 +1495,7 @@ def update_build_trigger(
"""
# 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([project_id, trigger_id, trigger])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1599,7 +1599,7 @@ def run_build_trigger(
"""
# 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([project_id, trigger_id, source])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1758,7 +1758,7 @@ def create_worker_pool(
"""
# 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([parent, worker_pool, worker_pool_id])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1855,7 +1855,7 @@ def get_worker_pool(
"""
# 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([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1939,7 +1939,7 @@ def delete_worker_pool(
"""
# 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([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -2045,7 +2045,7 @@ def update_worker_pool(
"""
# 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([worker_pool, update_mask])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -2130,7 +2130,7 @@ def list_worker_pools(
"""
# 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([parent])
if request is not None and has_flattened_params:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,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 @@ -243,7 +246,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 @@ -214,8 +214,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 @@ -245,7 +248,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
Original file line number Diff line number Diff line change
Expand Up @@ -1341,13 +1341,13 @@ class GitHubEventsConfig(proto.Message):
owner (str):
Owner of the repository. For example: The
owner for
https://github.com/googlecloudplatform/cloud-
builders is "googlecloudplatform".
https://github.com/googlecloudplatform/cloud-builders
is "googlecloudplatform".
name (str):
Name of the repository. For example: The name
for
https://github.com/googlecloudplatform/cloud-
builders is "cloud-builders".
https://github.com/googlecloudplatform/cloud-builders
is "cloud-builders".
pull_request (google.cloud.devtools.cloudbuild_v1.types.PullRequestFilter):
filter to match changes in pull requests.
Expand Down
Loading

0 comments on commit b1c5455

Please sign in to comment.