From 6e7f10ae6bcf9f2d4e70597975b0bc410b1f019b Mon Sep 17 00:00:00 2001 From: Tanner Jones Date: Mon, 16 Oct 2023 09:04:29 -0800 Subject: [PATCH] Updated deprecated message on api.indices.exists_template.go and added back in IndicesExistsTemplate that was delete by mistake Signed-off-by: Tanner Jones --- opensearchapi/api.indices.exists_template.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/opensearchapi/api.indices.exists_template.go b/opensearchapi/api.indices.exists_template.go index 0d1a90d50..322ff7a71 100644 --- a/opensearchapi/api.indices.exists_template.go +++ b/opensearchapi/api.indices.exists_template.go @@ -48,7 +48,9 @@ func newIndicesExistsTemplateFunc(t Transport) IndicesExistsTemplate { // ----- API Definition ------------------------------------------------------- // IndicesExistsTemplate returns information about whether a particular index template exists. -// +// Deprecated: uses legacy API (/_template), correct API is /_index_template, use IndicesExistsIndexTemplate instead +type IndicesExistsTemplate func(name []string, o ...func(*IndicesExistsTemplateRequest)) (*Response, error) + // Deprecated: uses legacy API (/_template), correct API is /_index_template, use IndicesExistsIndexTemplateRequest instead // IndicesExistsTemplateRequest configures the Indices Exists Template API request. type IndicesExistsTemplateRequest struct {