Skip to content

Commit e4c445a

Browse files
chore: Update gapic-generator-python to 1.25.0 (#985)
* chore: Update gapic-generator-python to 1.24.0 PiperOrigin-RevId: 747419463 Source-Link: googleapis/googleapis@340579b Source-Link: googleapis/googleapis-gen@e8997ec Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTg5OTdlYzUxMzZlY2I2ZWQ5YTk2OWE0YzJmMTNiM2FiNmExN2MxMiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update gapic-generator-python to 1.24.1 PiperOrigin-RevId: 748739072 Source-Link: googleapis/googleapis@b947e52 Source-Link: googleapis/googleapis-gen@8c5821a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGM1ODIxYWE2NWE5MjFkNTliM2Y3NjUzZDZmMzdjOWM2NzQxMGMyZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update gapic-generator-python to 1.25.0 PiperOrigin-RevId: 755914147 Source-Link: googleapis/googleapis@97a83d7 Source-Link: googleapis/googleapis-gen@a9977ef Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTk5NzdlZmVkYzgzNmNjZWNlMWYwMWQ1MjliMDMxNWUxZWZlNTJhZCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * remove docs/multiprocessing.rst * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * remove docs/multiprocessing.rst --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 14364a5 commit e4c445a

File tree

14 files changed

+45
-16
lines changed

14 files changed

+45
-16
lines changed

.flake8

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2024 Google LLC
2+
# Copyright 2025 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
65
# you may not use this file except in compliance with the License.
76
# You may obtain a copy of the License at
87
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
8+
# http://www.apache.org/licenses/LICENSE-2.0
109
#
1110
# Unless required by applicable law or agreed to in writing, software
1211
# distributed under the License is distributed on an "AS IS" BASIS,
1312
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
16-
17-
# Generated by synthtool. DO NOT EDIT!
15+
#
1816
[flake8]
17+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
18+
# Resolve flake8 lint issues
1919
ignore = E203, E231, E266, E501, W503
2020
exclude =
21-
# Exclude environment test code.
22-
tests/environment/**
23-
24-
# Exclude generated code.
25-
**/proto/**
21+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
22+
# Ensure that generated code passes flake8 lint
2623
**/gapic/**
2724
**/services/**
2825
**/types/**
26+
# Exclude Protobuf gencode
2927
*_pb2.py
3028

3129
# Standard linting exemptions.

google/cloud/logging_v2/services/config_service_v2/async_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
from google.api_core import retry_async as retries
3838
from google.auth import credentials as ga_credentials # type: ignore
3939
from google.oauth2 import service_account # type: ignore
40+
import google.protobuf
4041

4142

4243
try:
@@ -4223,5 +4224,8 @@ async def __aexit__(self, exc_type, exc, tb):
42234224
gapic_version=package_version.__version__
42244225
)
42254226

4227+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
4228+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
4229+
42264230

42274231
__all__ = ("ConfigServiceV2AsyncClient",)

google/cloud/logging_v2/services/config_service_v2/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
from google.auth.transport.grpc import SslCredentials # type: ignore
4646
from google.auth.exceptions import MutualTLSChannelError # type: ignore
4747
from google.oauth2 import service_account # type: ignore
48+
import google.protobuf
4849

4950
try:
5051
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
@@ -4678,5 +4679,7 @@ def cancel_operation(
46784679
gapic_version=package_version.__version__
46794680
)
46804681

4682+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
4683+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
46814684

46824685
__all__ = ("ConfigServiceV2Client",)

google/cloud/logging_v2/services/config_service_v2/transports/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from google.api_core import operations_v1
2727
from google.auth import credentials as ga_credentials # type: ignore
2828
from google.oauth2 import service_account # type: ignore
29+
import google.protobuf
2930

3031
from google.cloud.logging_v2.types import logging_config
3132
from google.longrunning import operations_pb2 # type: ignore
@@ -35,6 +36,9 @@
3536
gapic_version=package_version.__version__
3637
)
3738

39+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
40+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
41+
3842

3943
class ConfigServiceV2Transport(abc.ABC):
4044
"""Abstract transport class for ConfigServiceV2."""

google/cloud/logging_v2/services/config_service_v2/transports/grpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
7373
f"Sending request for {client_call_details.method}",
7474
extra={
7575
"serviceName": "google.logging.v2.ConfigServiceV2",
76-
"rpcName": client_call_details.method,
76+
"rpcName": str(client_call_details.method),
7777
"request": grpc_request,
7878
"metadata": grpc_request["metadata"],
7979
},
8080
)
81-
8281
response = continuation(client_call_details, request)
8382
if logging_enabled: # pragma: NO COVER
8483
response_metadata = response.trailing_metadata()

google/cloud/logging_v2/services/logging_service_v2/async_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
from google.api_core import retry_async as retries
4141
from google.auth import credentials as ga_credentials # type: ignore
4242
from google.oauth2 import service_account # type: ignore
43+
import google.protobuf
4344

4445

4546
try:
@@ -1263,5 +1264,8 @@ async def __aexit__(self, exc_type, exc, tb):
12631264
gapic_version=package_version.__version__
12641265
)
12651266

1267+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
1268+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
1269+
12661270

12671271
__all__ = ("LoggingServiceV2AsyncClient",)

google/cloud/logging_v2/services/logging_service_v2/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
from google.auth.transport.grpc import SslCredentials # type: ignore
4848
from google.auth.exceptions import MutualTLSChannelError # type: ignore
4949
from google.oauth2 import service_account # type: ignore
50+
import google.protobuf
5051

5152
try:
5253
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
@@ -1678,5 +1679,7 @@ def cancel_operation(
16781679
gapic_version=package_version.__version__
16791680
)
16801681

1682+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
1683+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
16811684

16821685
__all__ = ("LoggingServiceV2Client",)

google/cloud/logging_v2/services/logging_service_v2/transports/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from google.api_core import retry as retries
2626
from google.auth import credentials as ga_credentials # type: ignore
2727
from google.oauth2 import service_account # type: ignore
28+
import google.protobuf
2829

2930
from google.cloud.logging_v2.types import logging
3031
from google.longrunning import operations_pb2 # type: ignore
@@ -34,6 +35,9 @@
3435
gapic_version=package_version.__version__
3536
)
3637

38+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
39+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
40+
3741

3842
class LoggingServiceV2Transport(abc.ABC):
3943
"""Abstract transport class for LoggingServiceV2."""

google/cloud/logging_v2/services/logging_service_v2/transports/grpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
7272
f"Sending request for {client_call_details.method}",
7373
extra={
7474
"serviceName": "google.logging.v2.LoggingServiceV2",
75-
"rpcName": client_call_details.method,
75+
"rpcName": str(client_call_details.method),
7676
"request": grpc_request,
7777
"metadata": grpc_request["metadata"],
7878
},
7979
)
80-
8180
response = continuation(client_call_details, request)
8281
if logging_enabled: # pragma: NO COVER
8382
response_metadata = response.trailing_metadata()

google/cloud/logging_v2/services/metrics_service_v2/async_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
from google.api_core import retry_async as retries
3838
from google.auth import credentials as ga_credentials # type: ignore
3939
from google.oauth2 import service_account # type: ignore
40+
import google.protobuf
4041

4142

4243
try:
@@ -1110,5 +1111,8 @@ async def __aexit__(self, exc_type, exc, tb):
11101111
gapic_version=package_version.__version__
11111112
)
11121113

1114+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
1115+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
1116+
11131117

11141118
__all__ = ("MetricsServiceV2AsyncClient",)

0 commit comments

Comments
 (0)