Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.62.1 (#143)
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 fe72377 commit 1973b5d
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ async def get_occurrence(
"""
# 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 @@ -261,7 +261,7 @@ async def list_occurrences(
"""
# 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, filter])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -345,7 +345,7 @@ async def delete_occurrence(
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([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -431,7 +431,7 @@ async def create_occurrence(
"""
# 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, occurrence])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -513,7 +513,7 @@ async def batch_create_occurrences(
"""
# 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, occurrences])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -597,7 +597,7 @@ async def update_occurrence(
"""
# 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, occurrence, update_mask])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -674,7 +674,7 @@ async def get_occurrence_note(
"""
# 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 @@ -754,7 +754,7 @@ async def get_note(
"""
# 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 @@ -842,7 +842,7 @@ async def list_notes(
"""
# 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, filter])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -924,7 +924,7 @@ async def delete_note(
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([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1016,7 +1016,7 @@ async def create_note(
"""
# 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, note_id, note])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1097,7 +1097,7 @@ async def batch_create_notes(
Response for creating notes in batch.
"""
# 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, notes])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1182,7 +1182,7 @@ async def update_note(
"""
# 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, note, update_mask])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1269,7 +1269,7 @@ async def list_note_occurrences(
"""
# 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, filter])
if request is not None and has_flattened_params:
Expand Down
28 changes: 14 additions & 14 deletions packages/grafeas/grafeas/grafeas_v1/services/grafeas/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def get_occurrence(
"""
# 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 @@ -388,7 +388,7 @@ def list_occurrences(
"""
# 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, filter])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -462,7 +462,7 @@ def delete_occurrence(
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([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -538,7 +538,7 @@ def create_occurrence(
"""
# 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, occurrence])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -620,7 +620,7 @@ def batch_create_occurrences(
"""
# 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, occurrences])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -704,7 +704,7 @@ def update_occurrence(
"""
# 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, occurrence, update_mask])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -781,7 +781,7 @@ def get_occurrence_note(
"""
# 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 @@ -851,7 +851,7 @@ def get_note(
"""
# 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 @@ -929,7 +929,7 @@ def list_notes(
"""
# 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, filter])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1001,7 +1001,7 @@ def delete_note(
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([name])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1083,7 +1083,7 @@ def create_note(
"""
# 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, note_id, note])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1164,7 +1164,7 @@ def batch_create_notes(
Response for creating notes in batch.
"""
# 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, notes])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1248,7 +1248,7 @@ def update_note(
"""
# 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, note, update_mask])
if request is not None and has_flattened_params:
Expand Down Expand Up @@ -1335,7 +1335,7 @@ def list_note_occurrences(
"""
# 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, filter])
if request is not None and has_flattened_params:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,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
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,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
5 changes: 2 additions & 3 deletions packages/grafeas/grafeas/grafeas_v1/types/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,8 @@ class Signature(proto.Message):

class Envelope(proto.Message):
r"""MUST match
https://github.com/secure-systems-
lab/dsse/blob/master/envelope.proto. An authenticated message of
arbitrary type.
https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto.
An authenticated message of arbitrary type.
Attributes:
payload (bytes):
Expand Down
15 changes: 8 additions & 7 deletions packages/grafeas/grafeas/grafeas_v1/types/cvss.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

class CVSSv3(proto.Message):
r"""Common Vulnerability Scoring System version 3.
For details, see https://www.first.org/cvss/specification-
document
For details, see
https://www.first.org/cvss/specification-document
Attributes:
base_score (float):
Expand Down Expand Up @@ -108,11 +108,12 @@ class Impact(proto.Enum):

class CVSS(proto.Message):
r"""Common Vulnerability Scoring System.
For details, see https://www.first.org/cvss/specification-
document This is a message we will try to use for storing
multiple versions of CVSS. The intention is that as new versions
of CVSS scores get added, we will be able to modify this message
rather than adding new protos for each new version of the score.
For details, see
https://www.first.org/cvss/specification-document This is a
message we will try to use for storing multiple versions of
CVSS. The intention is that as new versions of CVSS scores get
added, we will be able to modify this message rather than adding
new protos for each new version of the score.
Attributes:
base_score (float):
Expand Down
4 changes: 2 additions & 2 deletions packages/grafeas/grafeas/grafeas_v1/types/dsse_attestation.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ class DSSEHint(proto.Message):
Attributes:
human_readable_name (str):
Required. The human readable name of this
attestation authority, for example "cloudbuild-
prod".
attestation authority, for example
"cloudbuild-prod".
"""

human_readable_name = proto.Field(proto.STRING, number=1,)
Expand Down
3 changes: 1 addition & 2 deletions packages/grafeas/grafeas/grafeas_v1/types/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ class WindowsUpdate(proto.Message):
r"""Windows Update represents the metadata about the update for
the Windows operating system. The fields in this message come
from the Windows Update API documented at
https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-
wuapi-iupdate.
https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate.
Attributes:
identity (grafeas.grafeas_v1.types.WindowsUpdate.Identity):
Expand Down

0 comments on commit 1973b5d

Please sign in to comment.