def node_group_templates_create(data): # renaming hadoop_version -> plugin_version # this can be removed once APIv1 is deprecated data['hadoop_version'] = data['plugin_version'] del data['plugin_version'] result = api.create_node_group_template(data).to_wrapped_dict() u._replace_hadoop_version_plugin_version(result['node_group_template']) return u.render(result)
def node_group_templates_create(data): # renaming hadoop_version -> plugin_version # this can be removed once APIv1 is deprecated data['hadoop_version'] = data['plugin_version'] del data['plugin_version'] result = api.create_node_group_template(data).to_wrapped_dict() u._replace_hadoop_version_plugin_version(result['node_group_template']) u._replace_tenant_id_project_id(result['node_group_template']) return u.render(result)
def node_group_templates_create(data): return u.render(api.create_node_group_template(data).to_wrapped_dict())