Files
opensearch-pyd/utils/templates/func_params
T

15 lines
519 B
Plaintext
Raw Normal View History

{% for p, info in api.all_parts.items() %}
2023-11-06 13:08:19 -05:00
{% if info.required %}{{ p }}: {{ info.type }}, {% endif %}
{% endfor %}
2019-12-22 15:35:00 +01:00
{% if api.body %}
2023-11-06 13:08:19 -05:00
body{% if not api.body.required %}: Any=None{% else %}: Any{% endif %},
{% endif %}
{% for p, info in api.all_parts.items() %}
2023-11-06 13:08:19 -05:00
{% if not info.required and not info.type == 'Any' %}{{ p }}: Optional[{{ info.type }}]=None, {% endif %}
{% if not info.required and info.type == 'Any' %}{{ p }}: {{ info.type }}=None, {% endif %}
{% endfor %}
2023-11-06 13:08:19 -05:00
params: Any=None,
headers: Any=None,