{% if give_header %}
"""This file is autogenerated according to HCA api spec. Don't modify."""
{% for class_info in classes %}
from ..autogenerated.{{ class_info.snake_command_name }} import {{ class_info.class_name }}
{% endfor %}
{% endif %}
{% for class_info in classes %}


def {{ class_info.snake_command_name }}({% for fname, def in class_info.function_def_arglist %}{{ fname }}{% if def is none %}=None{% elif def is not string %}={{ def }}{% elif def != "required" %}='{{ def }}'{% endif %}, {% endfor %}**kwargs):
    """
    {{ class_info.endpoint_info.description | trim() | replace("\n", "\n    ") | replace("\n    \n", "\n\n")}}

    {% for pa in class_info.endpoint_info.positional %}
    :param {{ pa.argument }}: {{ pa.description | replace("\n", "\n        ") }}
    {% endfor %}
    {% for optional_arg in class_info.sorted_options %}
    :param {{ optional_arg }}: {{ class_info.endpoint_info.options[optional_arg].description | trim() | replace("\n", "\n        ")}}
    {% endfor %}
    """
    return {{ class_info.class_name }}.run(locals())
{% endfor %}
