Skip to content

Commit

Permalink
chore: use gapic-generator-python 0.56.2 (#204)
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 60b8fff commit a77e860
Show file tree
Hide file tree
Showing 7 changed files with 250 additions and 102 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.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
Expand Down
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.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
Expand Down Expand Up @@ -408,8 +410,15 @@ def __init__(
client_options = client_options_lib.ClientOptions()

# Create SSL credentials for mutual TLS if needed.
use_client_cert = bool(
util.strtobool(os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false"))
if os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") not in (
"true",
"false",
):
raise ValueError(
"Environment variable `GOOGLE_API_USE_CLIENT_CERTIFICATE` must be either `true` or `false`"
)
use_client_cert = (
os.getenv("GOOGLE_API_USE_CLIENT_CERTIFICATE", "false") == "true"
)

client_cert_source_func = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
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
from google.api_core import operations_v1 # 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.api_core import operations_v1
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,9 +16,9 @@
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 operations_v1 # type: ignore
from google.api_core import gapic_v1 # type: ignore
from google.api_core import grpc_helpers
from google.api_core import operations_v1
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,9 +16,9 @@
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 operations_v1 # type: ignore
from google.api_core import gapic_v1
from google.api_core import grpc_helpers_async
from google.api_core import operations_v1
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 @@ -171,15 +171,18 @@ class RepoSource(proto.Message):
The syntax of the regular expressions accepted
is the syntax accepted by RE2 and described at
https://github.com/google/re2/wiki/Syntax
This field is a member of `oneof`_ ``revision``.
tag_name (str):
Regex matching tags to build.
The syntax of the regular expressions accepted
is the syntax accepted by RE2 and described at
https://github.com/google/re2/wiki/Syntax
This field is a member of `oneof`_ ``revision``.
commit_sha (str):
Explicit commit SHA to build.
This field is a member of `oneof`_ ``revision``.
dir_ (str):
Directory, relative to the source root, in which to run the
Expand Down Expand Up @@ -245,15 +248,18 @@ class Source(proto.Message):
storage_source (google.cloud.devtools.cloudbuild_v1.types.StorageSource):
If provided, get the source from this
location in Google Cloud Storage.
This field is a member of `oneof`_ ``source``.
repo_source (google.cloud.devtools.cloudbuild_v1.types.RepoSource):
If provided, get the source from this
location in a Cloud Source Repository.
This field is a member of `oneof`_ ``source``.
storage_source_manifest (google.cloud.devtools.cloudbuild_v1.types.StorageSourceManifest):
If provided, get the source from this manifest in Google
Cloud Storage. This feature is in Preview; see description
`here <https://github.com/GoogleCloudPlatform/cloud-builders/tree/master/gcs-fetcher>`__.
This field is a member of `oneof`_ ``source``.
"""

Expand Down Expand Up @@ -1238,13 +1244,16 @@ class BuildTrigger(proto.Message):
Currently only available for GitHub App
Triggers.
This field is a member of `oneof`_ ``build_template``.
build (google.cloud.devtools.cloudbuild_v1.types.Build):
Contents of the build template.
This field is a member of `oneof`_ ``build_template``.
filename (str):
Path, from the source root, to the build
configuration file (i.e. cloudbuild.yaml).
This field is a member of `oneof`_ ``build_template``.
create_time (google.protobuf.timestamp_pb2.Timestamp):
Output only. Time when the trigger was
Expand Down Expand Up @@ -1341,10 +1350,12 @@ class GitHubEventsConfig(proto.Message):
builders is "cloud-builders".
pull_request (google.cloud.devtools.cloudbuild_v1.types.PullRequestFilter):
filter to match changes in pull requests.
This field is a member of `oneof`_ ``event``.
push (google.cloud.devtools.cloudbuild_v1.types.PushFilter):
filter to match changes in refs like
branches, tags.
This field is a member of `oneof`_ ``event``.
"""

Expand Down Expand Up @@ -1406,6 +1417,7 @@ class WebhookConfig(proto.Message):
secret (str):
Required. Resource name for the secret
required as a URL parameter.
This field is a member of `oneof`_ ``auth_method``.
state (google.cloud.devtools.cloudbuild_v1.types.WebhookConfig.State):
Potential issues with the underlying Pub/Sub
Expand Down Expand Up @@ -1438,6 +1450,7 @@ class PullRequestFilter(proto.Message):
The syntax of the regular expressions accepted
is the syntax accepted by RE2 and described at
https://github.com/google/re2/wiki/Syntax
This field is a member of `oneof`_ ``git_ref``.
comment_control (google.cloud.devtools.cloudbuild_v1.types.PullRequestFilter.CommentControl):
Configure builds to run whether a repository owner or
Expand Down Expand Up @@ -1475,12 +1488,14 @@ class PushFilter(proto.Message):
The syntax of the regular expressions accepted
is the syntax accepted by RE2 and described at
https://github.com/google/re2/wiki/Syntax
This field is a member of `oneof`_ ``git_ref``.
tag (str):
Regexes matching tags to build.
The syntax of the regular expressions accepted
is the syntax accepted by RE2 and described at
https://github.com/google/re2/wiki/Syntax
This field is a member of `oneof`_ ``git_ref``.
invert_regex (bool):
When true, only trigger a build if the revision regex does
Expand Down Expand Up @@ -1849,6 +1864,7 @@ class WorkerPool(proto.Message):
Output only. ``WorkerPool`` state.
private_pool_v1_config (google.cloud.devtools.cloudbuild_v1.types.PrivatePoolV1Config):
Private Pool using a v1 configuration.
This field is a member of `oneof`_ ``config``.
etag (str):
Output only. Checksum computed by the server.
Expand Down
Loading

0 comments on commit a77e860

Please sign in to comment.