Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit aa669b2

Browse files
committed
update goldens
1 parent 4210451 commit aa669b2

File tree

88 files changed

+658
-648
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+658
-648
lines changed

WORKSPACE

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,13 @@ switched_rules_by_language(
123123
gapic = True,
124124
grpc = True,
125125
)
126+
127+
128+
# BEGIN workaround
129+
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
130+
131+
python_register_toolchains(
132+
name = "python311",
133+
python_version = "3.11",
134+
)
135+
# END workaround

tests/integration/goldens/asset/google/cloud/asset_v1/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020

2121
__version__ = package_version.__version__
2222

23-
if sys.version_info >= (3, 8): # pragma: NO COVER
23+
if sys.version_info >= (3, 8): # pragma: NO COVER # fmt: skip
2424
from importlib import metadata
25-
else: # pragma: NO COVER
25+
else: # pragma: NO COVER # fmt: skip
2626
# TODO(https://github.com/googleapis/python-api-core/issues/835): Remove
2727
# this code path once we drop support for Python 3.7
2828
import importlib_metadata as metadata
@@ -109,10 +109,10 @@
109109
from .types.assets import TimeWindow
110110
from .types.assets import VersionedResource
111111

112-
if hasattr(api_core, "check_python_version") and hasattr(api_core, "check_dependency_versions"): # pragma: NO COVER
112+
if hasattr(api_core, "check_python_version") and hasattr(api_core, "check_dependency_versions"): # pragma: NO COVER # fmt: skip
113113
api_core.check_python_version("google.cloud.asset_v1") # type: ignore
114114
api_core.check_dependency_versions("google.cloud.asset_v1") # type: ignore
115-
else: # pragma: NO COVER
115+
else: # pragma: NO COVER # fmt: skip
116116
# An older version of api_core is installed which does not define the
117117
# functions above. We do equivalent checks manually.
118118
try:

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/async_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def from_service_account_info(cls, info: dict, *args, **kwargs):
106106
Returns:
107107
AssetServiceAsyncClient: The constructed client.
108108
"""
109-
return AssetServiceClient.from_service_account_info.__func__(AssetServiceAsyncClient, info, *args, **kwargs) # type: ignore
109+
return AssetServiceClient.from_service_account_info.__func__(AssetServiceAsyncClient, info, *args, **kwargs) # type: ignore # fmt: skip
110110

111111
@classmethod
112112
def from_service_account_file(cls, filename: str, *args, **kwargs):
@@ -122,7 +122,7 @@ def from_service_account_file(cls, filename: str, *args, **kwargs):
122122
Returns:
123123
AssetServiceAsyncClient: The constructed client.
124124
"""
125-
return AssetServiceClient.from_service_account_file.__func__(AssetServiceAsyncClient, filename, *args, **kwargs) # type: ignore
125+
return AssetServiceClient.from_service_account_file.__func__(AssetServiceAsyncClient, filename, *args, **kwargs) # type: ignore # fmt: skip
126126

127127
from_service_account_json = from_service_account_file
128128

@@ -158,7 +158,7 @@ def get_mtls_endpoint_and_cert_source(cls, client_options: Optional[ClientOption
158158
Raises:
159159
google.auth.exceptions.MutualTLSChannelError: If any errors happen.
160160
"""
161-
return AssetServiceClient.get_mtls_endpoint_and_cert_source(client_options) # type: ignore
161+
return AssetServiceClient.get_mtls_endpoint_and_cert_source(client_options) # type: ignore # fmt: skip
162162

163163
@property
164164
def transport(self) -> AssetServiceTransport:
@@ -256,7 +256,7 @@ def __init__(self, *,
256256

257257
)
258258

259-
if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor(std_logging.DEBUG): # pragma: NO COVER
259+
if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor(std_logging.DEBUG): # pragma: NO COVER # fmt: skip
260260
_LOGGER.debug(
261261
"Created client `google.cloud.asset_v1.AssetServiceAsyncClient`.",
262262
extra = {
@@ -3212,7 +3212,7 @@ async def __aexit__(self, exc_type, exc, tb):
32123212

32133213
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(gapic_version=package_version.__version__)
32143214

3215-
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
3215+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER # fmt: skip
32163216
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
32173217

32183218

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def _get_default_mtls_endpoint(api_endpoint):
132132

133133
# Note: DEFAULT_ENDPOINT is deprecated. Use _DEFAULT_ENDPOINT_TEMPLATE instead.
134134
DEFAULT_ENDPOINT = "cloudasset.googleapis.com"
135-
DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint.__func__( # type: ignore
135+
DEFAULT_MTLS_ENDPOINT = _get_default_mtls_endpoint.__func__( # type: ignore # fmt: skip
136136
DEFAULT_ENDPOINT
137137
)
138138

@@ -153,7 +153,7 @@ def _use_client_cert_effective():
153153
GOOGLE_API_USE_CLIENT_CERTIFICATE is set to an unexpected value.)
154154
"""
155155
# check if google-auth version supports should_use_client_cert for automatic mTLS enablement
156-
if hasattr(mtls, "should_use_client_cert"): # pragma: NO COVER
156+
if hasattr(mtls, "should_use_client_cert"): # pragma: NO COVER # fmt: skip
157157
return mtls.should_use_client_cert()
158158
else: # pragma: NO COVER
159159
# if unsupported, fallback to reading from env var
@@ -624,7 +624,7 @@ def __init__(self, *,
624624
# Initialize the universe domain validation.
625625
self._is_universe_domain_valid = False
626626

627-
if CLIENT_LOGGING_SUPPORTED: # pragma: NO COVER
627+
if CLIENT_LOGGING_SUPPORTED: # pragma: NO COVER # fmt: skip
628628
# Setup logging.
629629
client_logging.initialize_logging()
630630

@@ -681,7 +681,7 @@ def __init__(self, *,
681681
)
682682

683683
if "async" not in str(self._transport):
684-
if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor(std_logging.DEBUG): # pragma: NO COVER
684+
if CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor(std_logging.DEBUG): # pragma: NO COVER # fmt: skip
685685
_LOGGER.debug(
686686
"Created client `google.cloud.asset_v1.AssetServiceClient`.",
687687
extra = {
@@ -3640,7 +3640,7 @@ def get_operation(
36403640

36413641
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(gapic_version=package_version.__version__)
36423642

3643-
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
3643+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER # fmt: skip
36443644
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
36453645

36463646
__all__ = (

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(gapic_version=package_version.__version__)
3636

37-
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
37+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER # fmt: skip
3838
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
3939

4040

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/grpc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
class _LoggingClientInterceptor(grpc.UnaryUnaryClientInterceptor): # pragma: NO COVER
4949
def intercept_unary_unary(self, continuation, client_call_details, request):
5050
logging_enabled = CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor(std_logging.DEBUG)
51-
if logging_enabled: # pragma: NO COVER
51+
if logging_enabled: # pragma: NO COVER # fmt: skip
5252
request_metadata = client_call_details.metadata
5353
if isinstance(request, proto.Message):
5454
request_payload = type(request).to_json(request)
@@ -76,7 +76,7 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
7676
},
7777
)
7878
response = continuation(client_call_details, request)
79-
if logging_enabled: # pragma: NO COVER
79+
if logging_enabled: # pragma: NO COVER # fmt: skip
8080
response_metadata = response.trailing_metadata()
8181
# Convert gRPC metadata `<class 'grpc.aio._metadata.Metadata'>` to list of tuples
8282
metadata = dict([(k, str(v)) for k, v in response_metadata]) if response_metadata else None

tests/integration/goldens/asset/google/cloud/asset_v1/services/asset_service/transports/grpc_asyncio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
class _LoggingClientAIOInterceptor(grpc.aio.UnaryUnaryClientInterceptor): # pragma: NO COVER
5353
async def intercept_unary_unary(self, continuation, client_call_details, request):
5454
logging_enabled = CLIENT_LOGGING_SUPPORTED and _LOGGER.isEnabledFor(std_logging.DEBUG)
55-
if logging_enabled: # pragma: NO COVER
55+
if logging_enabled: # pragma: NO COVER # fmt: skip
5656
request_metadata = client_call_details.metadata
5757
if isinstance(request, proto.Message):
5858
request_payload = type(request).to_json(request)
@@ -80,7 +80,7 @@ async def intercept_unary_unary(self, continuation, client_call_details, request
8080
},
8181
)
8282
response = await continuation(client_call_details, request)
83-
if logging_enabled: # pragma: NO COVER
83+
if logging_enabled: # pragma: NO COVER # fmt: skip
8484
response_metadata = await response.trailing_metadata()
8585
# Convert gRPC metadata `<class 'grpc.aio._metadata.Metadata'>` to list of tuples
8686
metadata = dict([(k, str(v)) for k, v in response_metadata]) if response_metadata else None
@@ -1213,7 +1213,7 @@ def _prep_wrapped_messages(self, client_info):
12131213
}
12141214

12151215
def _wrap_method(self, func, *args, **kwargs):
1216-
if self._wrap_with_kind: # pragma: NO COVER
1216+
if self._wrap_with_kind: # pragma: NO COVER # fmt: skip
12171217
kwargs["kind"] = self.kind
12181218
return gapic_v1.method_async.wrap_method(func, *args, **kwargs)
12191219

0 commit comments

Comments
 (0)