Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.56.2 (#126)
Browse files Browse the repository at this point in the history
* chore: update Java and Python dependencies

PiperOrigin-RevId: 408420890

Source-Link: googleapis/googleapis@2921f9f

Source-Link: googleapis/googleapis-gen@6598ca8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Nov 9, 2021
1 parent f453f7c commit 54a841f
Show file tree
Hide file tree
Showing 8 changed files with 209 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@
from typing import Dict, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions # type: ignore
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
from google.api_core.client_options import ClientOptions
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

OptionalRetry = Union[retries.Retry, object]
try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.protobuf import field_mask_pb2 # type: ignore
from google.protobuf import timestamp_pb2 # type: ignore
Expand Down
14 changes: 8 additions & 6 deletions packages/grafeas/grafeas/grafeas_v1/services/grafeas/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,25 @@
# limitations under the License.
#
from collections import OrderedDict
from distutils import util
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib # type: ignore
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
from google.api_core import client_options as client_options_lib
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport import mtls # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
from google.auth.exceptions import MutualTLSChannelError # type: ignore
from google.oauth2 import service_account # type: ignore

OptionalRetry = Union[retries.Retry, object]
try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore

from google.protobuf import field_mask_pb2 # type: ignore
from google.protobuf import timestamp_pb2 # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
import pkg_resources

import google.auth # type: ignore
import google.api_core # type: ignore
from google.api_core import exceptions as core_exceptions # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import retry as retries # type: ignore
import google.api_core
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import warnings
from typing import Callable, Dict, Optional, Sequence, Tuple, Union

from google.api_core import grpc_helpers # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import grpc_helpers
from google.api_core import gapic_v1
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import warnings
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union

from google.api_core import gapic_v1 # type: ignore
from google.api_core import grpc_helpers_async # type: ignore
from google.api_core import gapic_v1
from google.api_core import grpc_helpers_async
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore

Expand Down
20 changes: 20 additions & 0 deletions packages/grafeas/grafeas/grafeas_v1/types/grafeas.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,39 +98,49 @@ class Occurrence(proto.Message):
last updated.
vulnerability (grafeas.grafeas_v1.types.VulnerabilityOccurrence):
Describes a security vulnerability.
This field is a member of `oneof`_ ``details``.
build (grafeas.grafeas_v1.types.BuildOccurrence):
Describes a verifiable build.
This field is a member of `oneof`_ ``details``.
image (grafeas.grafeas_v1.types.ImageOccurrence):
Describes how this resource derives from the
basis in the associated note.
This field is a member of `oneof`_ ``details``.
package (grafeas.grafeas_v1.types.PackageOccurrence):
Describes the installation of a package on
the linked resource.
This field is a member of `oneof`_ ``details``.
deployment (grafeas.grafeas_v1.types.DeploymentOccurrence):
Describes the deployment of an artifact on a
runtime.
This field is a member of `oneof`_ ``details``.
discovery (grafeas.grafeas_v1.types.DiscoveryOccurrence):
Describes when a resource was discovered.
This field is a member of `oneof`_ ``details``.
attestation (grafeas.grafeas_v1.types.AttestationOccurrence):
Describes an attestation of an artifact.
This field is a member of `oneof`_ ``details``.
upgrade (grafeas.grafeas_v1.types.UpgradeOccurrence):
Describes an available package upgrade on the
linked resource.
This field is a member of `oneof`_ ``details``.
compliance (grafeas.grafeas_v1.types.ComplianceOccurrence):
Describes a compliance violation on a linked
resource.
This field is a member of `oneof`_ ``details``.
dsse_attestation (grafeas.grafeas_v1.types.DSSEAttestationOccurrence):
Describes an attestation of an artifact using
dsse.
This field is a member of `oneof`_ ``details``.
envelope (grafeas.grafeas_v1.types.Envelope):
https://github.com/secure-systems-lab/dsse
Expand Down Expand Up @@ -232,37 +242,47 @@ class Note(proto.Message):
Other notes related to this note.
vulnerability (grafeas.grafeas_v1.types.VulnerabilityNote):
A note describing a package vulnerability.
This field is a member of `oneof`_ ``type``.
build (grafeas.grafeas_v1.types.BuildNote):
A note describing build provenance for a
verifiable build.
This field is a member of `oneof`_ ``type``.
image (grafeas.grafeas_v1.types.ImageNote):
A note describing a base image.
This field is a member of `oneof`_ ``type``.
package (grafeas.grafeas_v1.types.PackageNote):
A note describing a package hosted by various
package managers.
This field is a member of `oneof`_ ``type``.
deployment (grafeas.grafeas_v1.types.DeploymentNote):
A note describing something that can be
deployed.
This field is a member of `oneof`_ ``type``.
discovery (grafeas.grafeas_v1.types.DiscoveryNote):
A note describing the initial analysis of a
resource.
This field is a member of `oneof`_ ``type``.
attestation (grafeas.grafeas_v1.types.AttestationNote):
A note describing an attestation role.
This field is a member of `oneof`_ ``type``.
upgrade (grafeas.grafeas_v1.types.UpgradeNote):
A note describing available package upgrades.
This field is a member of `oneof`_ ``type``.
compliance (grafeas.grafeas_v1.types.ComplianceNote):
A note describing a compliance check.
This field is a member of `oneof`_ ``type``.
dsse_attestation (grafeas.grafeas_v1.types.DSSEAttestationNote):
A note describing a dsse attestation note.
This field is a member of `oneof`_ ``type``.
"""

Expand Down
9 changes: 9 additions & 0 deletions packages/grafeas/grafeas/grafeas_v1/types/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,17 @@ class SourceContext(proto.Message):
cloud_repo (grafeas.grafeas_v1.types.CloudRepoSourceContext):
A SourceContext referring to a revision in a
Google Cloud Source Repo.
This field is a member of `oneof`_ ``context``.
gerrit (grafeas.grafeas_v1.types.GerritSourceContext):
A SourceContext referring to a Gerrit
project.
This field is a member of `oneof`_ ``context``.
git (grafeas.grafeas_v1.types.GitSourceContext):
A SourceContext referring to any third party
Git repo (e.g., GitHub).
This field is a member of `oneof`_ ``context``.
labels (Sequence[grafeas.grafeas_v1.types.SourceContext.LabelsEntry]):
Labels with user defined metadata.
Expand Down Expand Up @@ -305,9 +308,11 @@ class CloudRepoSourceContext(proto.Message):
The ID of the repo.
revision_id (str):
A revision ID.
This field is a member of `oneof`_ ``revision``.
alias_context (grafeas.grafeas_v1.types.AliasContext):
An alias, which may be a branch or tag.
This field is a member of `oneof`_ ``revision``.
"""

Expand Down Expand Up @@ -338,9 +343,11 @@ class GerritSourceContext(proto.Message):
hostURI/project.
revision_id (str):
A revision (commit) ID.
This field is a member of `oneof`_ ``revision``.
alias_context (grafeas.grafeas_v1.types.AliasContext):
An alias, which may be a branch or tag.
This field is a member of `oneof`_ ``revision``.
"""

Expand Down Expand Up @@ -381,10 +388,12 @@ class RepoId(proto.Message):
project_repo_id (grafeas.grafeas_v1.types.ProjectRepoId):
A combination of a project ID and a repo
name.
This field is a member of `oneof`_ ``id``.
uid (str):
A server-assigned, globally unique
identifier.
This field is a member of `oneof`_ ``id``.
"""

Expand Down
Loading

0 comments on commit 54a841f

Please sign in to comment.