Skip to content

Commit cd5d2f9

Browse files
authored
fix: also add the async client to __all__ (#869)
Follow up to #859 Closes #815 Also delete a stray } in feature_fragments which was resulting in almost empty files getting generated in clients. https://github.com/googleapis/googleapis-gen/blob/master/google/appengine/v1/google-cloud-appengine-v1-py/examples/feature_fragments
1 parent d5d93d4 commit cd5d2f9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

packages/gapic-generator/gapic/templates/%namespace/%name_%version/%sub/__init__.py.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ __all__ = (
4343
{% for service in api.services.values()
4444
if service.meta.address.subpackage == api.subpackage_view -%}
4545
'{{ service.client_name }}',
46+
{% if 'grpc' in opts.transport %}
47+
'{{ service.async_client_name }}',
48+
{% endif %}
4649
{% endfor -%}
4750
{% for proto in api.protos.values()
4851
if proto.meta.address.subpackage == api.subpackage_view -%}

packages/gapic-generator/gapic/templates/examples/feature_fragments.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ with open({{ attr.input_parameter }}, "rb") as f:
145145
{% macro render_client_setup(module_name, client_name) %}
146146
# Create a client
147147
client = {{ module_name }}.{{ client_name }}()
148-
{% endmacro %}}
148+
{% endmacro %}
149149

150150
{% macro render_request_setup(full_request, module_name, request_type) %}
151151
# Initialize request argument(s)

0 commit comments

Comments
 (0)