From 2c28ab3db25c59d0a813b8f7f13fa26006ac3e72 Mon Sep 17 00:00:00 2001 From: ohmayr Date: Tue, 3 Sep 2024 20:32:50 +0000 Subject: [PATCH] update generator file --- gapic/generator/generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gapic/generator/generator.py b/gapic/generator/generator.py index 4895c7cbc2..90cd721b6e 100644 --- a/gapic/generator/generator.py +++ b/gapic/generator/generator.py @@ -296,8 +296,8 @@ def _render_template( or # TODO: Remove the following conditions once support for async rest transport is GA: # See related issue: https://github.com/googleapis/gapic-generator-python/issues/2121. - ('async_client' in template_name and 'grpc' not in opts.transport or - not api_schema.all_library_settings[api_schema.naming.proto_package].python_settings.experimental_features.rest_async_io_enabled) + ('async_client' in template_name and ('grpc' not in opts.transport or + not api_schema.all_library_settings[api_schema.naming.proto_package].python_settings.experimental_features.rest_async_io_enabled)) or ('rest_asyncio' in template_name or not api_schema.all_library_settings[api_schema.naming.proto_package].python_settings.experimental_features.rest_async_io_enabled)