diff --git a/api/swagger.yml b/api/swagger.yml
index bda8a0d83b8..9ebc23a52eb 100644
--- a/api/swagger.yml
+++ b/api/swagger.yml
@@ -4556,43 +4556,6 @@ paths:
$ref: "#/components/schemas/GarbageCollectionConfig"
401:
$ref: "#/components/responses/Unauthorized"
- /templates/{template_location}:
- get:
- tags:
- - templates
- operationId: expandTemplate
- description: fetch and expand template
- parameters:
- - in: path
- name: template_location
- required: true
- schema:
- type: string
- description: URL of the template; must be relative (to a URL configured on the server).
- example: spark.submit.conf.tt
- - in: query
- name: params
- schema:
- type: object
- additionalProperties:
- type: string
- example:
- lakefs_url: https://lakefs.example.com
- style: form
- explode: true
- responses:
- 200:
- description: expanded template
- content:
- "*/*":
- schema:
- format: binary
- 401:
- $ref: "#/components/responses/Unauthorized"
- 404:
- $ref: "#/components/responses/NotFound"
- default:
- $ref: "#/components/responses/ServerError"
/statistics:
post:
diff --git a/clients/java/README.md b/clients/java/README.md
index 9b9f76b05c0..e16dc594fc8 100644
--- a/clients/java/README.md
+++ b/clients/java/README.md
@@ -240,7 +240,6 @@ Class | Method | HTTP request | Description
*TagsApi* | [**deleteTag**](docs/TagsApi.md#deleteTag) | **DELETE** /repositories/{repository}/tags/{tag} | delete tag
*TagsApi* | [**getTag**](docs/TagsApi.md#getTag) | **GET** /repositories/{repository}/tags/{tag} | get tag
*TagsApi* | [**listTags**](docs/TagsApi.md#listTags) | **GET** /repositories/{repository}/tags | list tags
-*TemplatesApi* | [**expandTemplate**](docs/TemplatesApi.md#expandTemplate) | **GET** /templates/{template_location} |
## Documentation for Models
diff --git a/clients/java/api/openapi.yaml b/clients/java/api/openapi.yaml
index ad6bd5ebed9..e4085851a66 100644
--- a/clients/java/api/openapi.yaml
+++ b/clients/java/api/openapi.yaml
@@ -5495,60 +5495,6 @@ paths:
tags:
- config
x-accepts: application/json
- /templates/{template_location}:
- get:
- description: fetch and expand template
- operationId: expandTemplate
- parameters:
- - description: URL of the template; must be relative (to a URL configured on
- the server).
- example: spark.submit.conf.tt
- explode: false
- in: path
- name: template_location
- required: true
- schema:
- type: string
- style: simple
- - explode: true
- in: query
- name: params
- required: false
- schema:
- additionalProperties:
- type: string
- example:
- lakefs_url: https://lakefs.example.com
- type: object
- style: form
- responses:
- "200":
- content:
- '*/*':
- schema:
- format: binary
- description: expanded template
- "401":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- description: Unauthorized
- "404":
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- description: Resource Not Found
- default:
- content:
- application/json:
- schema:
- $ref: '#/components/schemas/Error'
- description: Internal Server Error
- tags:
- - templates
- x-accepts: application/json
/statistics:
post:
operationId: postStatsEvents
diff --git a/clients/java/docs/TemplatesApi.md b/clients/java/docs/TemplatesApi.md
deleted file mode 100644
index cee49474a4a..00000000000
--- a/clients/java/docs/TemplatesApi.md
+++ /dev/null
@@ -1,104 +0,0 @@
-# TemplatesApi
-
-All URIs are relative to *http://localhost/api/v1*
-
-Method | HTTP request | Description
-------------- | ------------- | -------------
-[**expandTemplate**](TemplatesApi.md#expandTemplate) | **GET** /templates/{template_location} |
-
-
-
-# **expandTemplate**
-> Object expandTemplate(templateLocation, params)
-
-
-
-fetch and expand template
-
-### Example
-```java
-// Import classes:
-import io.lakefs.clients.api.ApiClient;
-import io.lakefs.clients.api.ApiException;
-import io.lakefs.clients.api.Configuration;
-import io.lakefs.clients.api.auth.*;
-import io.lakefs.clients.api.models.*;
-import io.lakefs.clients.api.TemplatesApi;
-
-public class Example {
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
- defaultClient.setBasePath("http://localhost/api/v1");
-
- // Configure HTTP basic authorization: basic_auth
- HttpBasicAuth basic_auth = (HttpBasicAuth) defaultClient.getAuthentication("basic_auth");
- basic_auth.setUsername("YOUR USERNAME");
- basic_auth.setPassword("YOUR PASSWORD");
-
- // Configure API key authorization: cookie_auth
- ApiKeyAuth cookie_auth = (ApiKeyAuth) defaultClient.getAuthentication("cookie_auth");
- cookie_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //cookie_auth.setApiKeyPrefix("Token");
-
- // Configure HTTP bearer authorization: jwt_token
- HttpBearerAuth jwt_token = (HttpBearerAuth) defaultClient.getAuthentication("jwt_token");
- jwt_token.setBearerToken("BEARER TOKEN");
-
- // Configure API key authorization: oidc_auth
- ApiKeyAuth oidc_auth = (ApiKeyAuth) defaultClient.getAuthentication("oidc_auth");
- oidc_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //oidc_auth.setApiKeyPrefix("Token");
-
- // Configure API key authorization: saml_auth
- ApiKeyAuth saml_auth = (ApiKeyAuth) defaultClient.getAuthentication("saml_auth");
- saml_auth.setApiKey("YOUR API KEY");
- // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
- //saml_auth.setApiKeyPrefix("Token");
-
- TemplatesApi apiInstance = new TemplatesApi(defaultClient);
- String templateLocation = "spark.submit.conf.tt"; // String | URL of the template; must be relative (to a URL configured on the server).
- Map params = new HashMap(); // Map |
- try {
- Object result = apiInstance.expandTemplate(templateLocation, params);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling TemplatesApi#expandTemplate");
- System.err.println("Status code: " + e.getCode());
- System.err.println("Reason: " + e.getResponseBody());
- System.err.println("Response headers: " + e.getResponseHeaders());
- e.printStackTrace();
- }
- }
-}
-```
-
-### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **templateLocation** | **String**| URL of the template; must be relative (to a URL configured on the server). |
- **params** | [**Map<String, String>**](String.md)| | [optional]
-
-### Return type
-
-**Object**
-
-### Authorization
-
-[basic_auth](../README.md#basic_auth), [cookie_auth](../README.md#cookie_auth), [jwt_token](../README.md#jwt_token), [oidc_auth](../README.md#oidc_auth), [saml_auth](../README.md#saml_auth)
-
-### HTTP request headers
-
- - **Content-Type**: Not defined
- - **Accept**: */*, application/json
-
-### HTTP response details
-| Status code | Description | Response headers |
-|-------------|-------------|------------------|
-**200** | expanded template | - |
-**401** | Unauthorized | - |
-**404** | Resource Not Found | - |
-**0** | Internal Server Error | - |
-
diff --git a/clients/java/src/main/java/io/lakefs/clients/api/TemplatesApi.java b/clients/java/src/main/java/io/lakefs/clients/api/TemplatesApi.java
deleted file mode 100644
index c4a22d2c00a..00000000000
--- a/clients/java/src/main/java/io/lakefs/clients/api/TemplatesApi.java
+++ /dev/null
@@ -1,189 +0,0 @@
-/*
- * lakeFS API
- * lakeFS HTTP API
- *
- * The version of the OpenAPI document: 0.1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-
-package io.lakefs.clients.api;
-
-import io.lakefs.clients.api.ApiCallback;
-import io.lakefs.clients.api.ApiClient;
-import io.lakefs.clients.api.ApiException;
-import io.lakefs.clients.api.ApiResponse;
-import io.lakefs.clients.api.Configuration;
-import io.lakefs.clients.api.Pair;
-import io.lakefs.clients.api.ProgressRequestBody;
-import io.lakefs.clients.api.ProgressResponseBody;
-
-import com.google.gson.reflect.TypeToken;
-
-import java.io.IOException;
-
-
-import io.lakefs.clients.api.model.Error;
-
-import java.lang.reflect.Type;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-public class TemplatesApi {
- private ApiClient localVarApiClient;
-
- public TemplatesApi() {
- this(Configuration.getDefaultApiClient());
- }
-
- public TemplatesApi(ApiClient apiClient) {
- this.localVarApiClient = apiClient;
- }
-
- public ApiClient getApiClient() {
- return localVarApiClient;
- }
-
- public void setApiClient(ApiClient apiClient) {
- this.localVarApiClient = apiClient;
- }
-
- /**
- * Build call for expandTemplate
- * @param templateLocation URL of the template; must be relative (to a URL configured on the server). (required)
- * @param params (optional)
- * @param _callback Callback for upload/download progress
- * @return Call to execute
- * @throws ApiException If fail to serialize the request body object
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | expanded template | - |
- 401 | Unauthorized | - |
- 404 | Resource Not Found | - |
- 0 | Internal Server Error | - |
-
- */
- public okhttp3.Call expandTemplateCall(String templateLocation, Map params, final ApiCallback _callback) throws ApiException {
- Object localVarPostBody = null;
-
- // create path and map variables
- String localVarPath = "/templates/{template_location}"
- .replaceAll("\\{" + "template_location" + "\\}", localVarApiClient.escapeString(templateLocation.toString()));
-
- List localVarQueryParams = new ArrayList();
- List localVarCollectionQueryParams = new ArrayList();
- Map localVarHeaderParams = new HashMap();
- Map localVarCookieParams = new HashMap();
- Map localVarFormParams = new HashMap();
-
- if (params != null) {
- localVarQueryParams.addAll(localVarApiClient.parameterToPair("params", params));
- }
-
- final String[] localVarAccepts = {
- "*/*", "application/json"
- };
- final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) {
- localVarHeaderParams.put("Accept", localVarAccept);
- }
-
- final String[] localVarContentTypes = {
-
- };
- final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
-
- String[] localVarAuthNames = new String[] { "basic_auth", "cookie_auth", "jwt_token", "oidc_auth", "saml_auth" };
- return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call expandTemplateValidateBeforeCall(String templateLocation, Map params, final ApiCallback _callback) throws ApiException {
-
- // verify the required parameter 'templateLocation' is set
- if (templateLocation == null) {
- throw new ApiException("Missing the required parameter 'templateLocation' when calling expandTemplate(Async)");
- }
-
-
- okhttp3.Call localVarCall = expandTemplateCall(templateLocation, params, _callback);
- return localVarCall;
-
- }
-
- /**
- *
- * fetch and expand template
- * @param templateLocation URL of the template; must be relative (to a URL configured on the server). (required)
- * @param params (optional)
- * @return Object
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- * @http.response.details
-
- Status Code | Description | Response Headers |
- 200 | expanded template | - |
- 401 | Unauthorized | - |
- 404 | Resource Not Found | - |
- 0 | Internal Server Error | - |
-
- */
- public Object expandTemplate(String templateLocation, Map params) throws ApiException {
- ApiResponse