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

Commit c16dc5d

Browse files
committed
rename argument
1 parent 7c9cfaf commit c16dc5d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gapic/templates/%namespace/%name_%version/%sub/services/%service/_shared_macros.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ def _get_http_options():
197197
method_name (str): The method name.
198198
service: The service.
199199
is_async (bool): Used to determine the code path i.e. whether for sync or async call.
200-
is_proto_plus_type (bool): Used to determine whether the request message is a proto-plus type. #}
201-
{% macro rest_call_method_common(body_spec, method_name, service, is_async=False, is_proto_plus_type=False) %}
200+
is_request_message_proto_plus_type (bool): Used to determine whether the request message is a proto-plus type. #}
201+
{% macro rest_call_method_common(body_spec, method_name, service, is_async=False, is_request_message_proto_plus_type=False) %}
202202
{% set service_name = service.name %}
203203
{% set await_prefix = "await " if is_async else "" %}
204204
{% set async_class_prefix = "Async" if is_async else "" %}
@@ -219,7 +219,7 @@ def _get_http_options():
219219
request_url = "{host}{uri}".format(host=self._host, uri=transcoded_request['uri'])
220220
method = transcoded_request['method']
221221
try:
222-
request_payload = {% if is_proto_plus_type %}type(request).to_json(request){% else %}json_format.MessageToJson(request){% endif %}
222+
request_payload = {% if is_request_message_proto_plus_type %}type(request).to_json(request){% else %}json_format.MessageToJson(request){% endif %}
223223

224224
except:
225225
{# TODO(https://github.com/googleapis/gapic-generator-python/issues/2282): Remove try/except and correctly parse request payload. #}

0 commit comments

Comments
 (0)