diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 485e140a16..cc8f425fcf 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -7782,74 +7782,6 @@ "x-state": "Added in 7.16.0" } }, - "/_template/{name}": { - "put": { - "tags": [ - "indices" - ], - "summary": "Create or update an index template", - "description": "Index templates define settings, mappings, and aliases that can be applied automatically to new indices.", - "operationId": "indices-put-template", - "parameters": [ - { - "$ref": "#/components/parameters/indices.put_template#name" - }, - { - "$ref": "#/components/parameters/indices.put_template#create" - }, - { - "$ref": "#/components/parameters/indices.put_template#master_timeout" - }, - { - "$ref": "#/components/parameters/indices.put_template#order" - }, - { - "$ref": "#/components/parameters/indices.put_template#cause" - } - ], - "requestBody": { - "$ref": "#/components/requestBodies/indices.put_template" - }, - "responses": { - "200": { - "$ref": "#/components/responses/indices.put_template#200" - } - } - }, - "post": { - "tags": [ - "indices" - ], - "summary": "Create or update an index template", - "description": "Index templates define settings, mappings, and aliases that can be applied automatically to new indices.", - "operationId": "indices-put-template-1", - "parameters": [ - { - "$ref": "#/components/parameters/indices.put_template#name" - }, - { - "$ref": "#/components/parameters/indices.put_template#create" - }, - { - "$ref": "#/components/parameters/indices.put_template#master_timeout" - }, - { - "$ref": "#/components/parameters/indices.put_template#order" - }, - { - "$ref": "#/components/parameters/indices.put_template#cause" - } - ], - "requestBody": { - "$ref": "#/components/requestBodies/indices.put_template" - }, - "responses": { - "200": { - "$ref": "#/components/responses/indices.put_template#200" - } - } - } - }, "/_refresh": { "get": { "tags": [ @@ -55195,16 +55127,6 @@ } } }, - "indices.put_template#200": { - "description": "", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/_types:AcknowledgedResponseBase" - } - } - } - }, "indices.refresh#200": { "description": "", "content": { @@ -58872,56 +58794,6 @@ }, "style": "form" }, - "indices.put_template#name": { - "in": "path", - "name": "name", - "description": "The name of the template", - "required": true, - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Name" - }, - "style": "simple" - }, - "indices.put_template#create": { - "in": "query", - "name": "create", - "description": "If true, this request cannot replace or update existing index templates.", - "deprecated": false, - "schema": { - "type": "boolean" - }, - "style": "form" - }, - "indices.put_template#master_timeout": { - "in": "query", - "name": "master_timeout", - "description": "Period to wait for a connection to the master node. If no response is\nreceived before the timeout expires, the request fails and returns an error.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, - "indices.put_template#order": { - "in": "query", - "name": "order", - "description": "Order in which Elasticsearch applies this template if index\nmatches multiple templates.\n\nTemplates with lower 'order' values are merged first. Templates with higher\n'order' values are merged later, overriding templates with lower values.", - "deprecated": false, - "schema": { - "type": "number" - }, - "style": "form" - }, - "indices.put_template#cause": { - "in": "query", - "name": "cause", - "deprecated": false, - "schema": { - "type": "string" - }, - "style": "form" - }, "indices.refresh#index": { "in": "path", "name": "index", @@ -62242,52 +62114,6 @@ }, "required": true }, - "indices.put_template": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "aliases": { - "description": "Aliases for the index.", - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/indices._types:Alias" - } - }, - "index_patterns": { - "description": "Array of wildcard expressions used to match the names\nof indices during creation.", - "oneOf": [ - { - "type": "string" - }, - { - "type": "array", - "items": { - "type": "string" - } - } - ] - }, - "mappings": { - "$ref": "#/components/schemas/_types.mapping:TypeMapping" - }, - "order": { - "description": "Order in which Elasticsearch applies this template if index\nmatches multiple templates.\n\nTemplates with lower 'order' values are merged first. Templates with higher\n'order' values are merged later, overriding templates with lower values.", - "type": "number" - }, - "settings": { - "$ref": "#/components/schemas/indices._types:IndexSettings" - }, - "version": { - "$ref": "#/components/schemas/_types:VersionNumber" - } - } - } - } - }, - "required": true - }, "indices.rollover": { "content": { "application/json": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index 33f35418d4..a10fa37981 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -3844,44 +3844,6 @@ } ] }, - { - "availability": { - "serverless": { - "stability": "stable", - "visibility": "public" - }, - "stack": { - "stability": "stable" - } - }, - "description": "Create or update an index template.\nIndex templates define settings, mappings, and aliases that can be applied automatically to new indices.", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates-v1.html", - "name": "indices.put_template", - "request": { - "name": "Request", - "namespace": "indices.put_template" - }, - "requestBodyRequired": true, - "requestMediaType": [ - "application/json" - ], - "response": { - "name": "Response", - "namespace": "indices.put_template" - }, - "responseMediaType": [ - "application/json" - ], - "urls": [ - { - "methods": [ - "PUT", - "POST" - ], - "path": "/_template/{name}" - } - ] - }, { "availability": { "serverless": { @@ -23093,210 +23055,6 @@ }, "specLocation": "indices/put_settings/IndicesPutSettingsResponse.ts#L22-L24" }, - { - "attachedBehaviors": [ - "CommonQueryParameters" - ], - "body": { - "kind": "properties", - "properties": [ - { - "description": "Aliases for the index.", - "name": "aliases", - "required": false, - "type": { - "key": { - "kind": "instance_of", - "type": { - "name": "IndexName", - "namespace": "_types" - } - }, - "kind": "dictionary_of", - "singleKey": false, - "value": { - "kind": "instance_of", - "type": { - "name": "Alias", - "namespace": "indices._types" - } - } - } - }, - { - "description": "Array of wildcard expressions used to match the names\nof indices during creation.", - "name": "index_patterns", - "required": false, - "type": { - "items": [ - { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - }, - { - "kind": "array_of", - "value": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - } - ], - "kind": "union_of" - } - }, - { - "description": "Mapping for fields in the index.", - "name": "mappings", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "TypeMapping", - "namespace": "_types.mapping" - } - } - }, - { - "description": "Order in which Elasticsearch applies this template if index\nmatches multiple templates.\n\nTemplates with lower 'order' values are merged first. Templates with higher\n'order' values are merged later, overriding templates with lower values.", - "name": "order", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - } - }, - { - "description": "Configuration options for the index.", - "name": "settings", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "IndexSettings", - "namespace": "indices._types" - } - } - }, - { - "description": "Version number used to manage index templates externally. This number\nis not automatically generated by Elasticsearch.", - "name": "version", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "VersionNumber", - "namespace": "_types" - } - } - } - ] - }, - "description": "Create or update an index template.\nIndex templates define settings, mappings, and aliases that can be applied automatically to new indices.", - "inherits": { - "type": { - "name": "RequestBase", - "namespace": "_types" - } - }, - "kind": "request", - "name": { - "name": "Request", - "namespace": "indices.put_template" - }, - "path": [ - { - "description": "The name of the template", - "name": "name", - "required": true, - "type": { - "kind": "instance_of", - "type": { - "name": "Name", - "namespace": "_types" - } - } - } - ], - "query": [ - { - "description": "If true, this request cannot replace or update existing index templates.", - "name": "create", - "required": false, - "serverDefault": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - }, - { - "description": "Period to wait for a connection to the master node. If no response is\nreceived before the timeout expires, the request fails and returns an error.", - "name": "master_timeout", - "required": false, - "serverDefault": "30s", - "type": { - "kind": "instance_of", - "type": { - "name": "Duration", - "namespace": "_types" - } - } - }, - { - "description": "Order in which Elasticsearch applies this template if index\nmatches multiple templates.\n\nTemplates with lower 'order' values are merged first. Templates with higher\n'order' values are merged later, overriding templates with lower values.", - "name": "order", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "integer", - "namespace": "_types" - } - } - }, - { - "name": "cause", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - } - } - ], - "specLocation": "indices/put_template/IndicesPutTemplateRequest.ts#L29-L95" - }, - { - "body": { - "kind": "value", - "value": { - "kind": "instance_of", - "type": { - "name": "AcknowledgedResponseBase", - "namespace": "_types" - } - } - }, - "kind": "response", - "name": { - "name": "Response", - "namespace": "indices.put_template" - }, - "specLocation": "indices/put_template/IndicesPutTemplateResponse.ts#L22-L24" - }, { "attachedBehaviors": [ "CommonQueryParameters" diff --git a/output/schema/schema.json b/output/schema/schema.json index 82b51c99ed..c8a36da09a 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -7592,10 +7592,6 @@ }, { "availability": { - "serverless": { - "stability": "stable", - "visibility": "public" - }, "stack": { "stability": "stable" } @@ -133554,7 +133550,7 @@ } } ], - "specLocation": "indices/put_template/IndicesPutTemplateRequest.ts#L29-L95" + "specLocation": "indices/put_template/IndicesPutTemplateRequest.ts#L29-L94" }, { "kind": "response", diff --git a/specification/indices/put_template/IndicesPutTemplateRequest.ts b/specification/indices/put_template/IndicesPutTemplateRequest.ts index e91c195497..895fee8b1c 100644 --- a/specification/indices/put_template/IndicesPutTemplateRequest.ts +++ b/specification/indices/put_template/IndicesPutTemplateRequest.ts @@ -31,7 +31,6 @@ import { Duration } from '@_types/Time' * Index templates define settings, mappings, and aliases that can be applied automatically to new indices. * @rest_spec_name indices.put_template * @availability stack stability=stable - * @availability serverless stability=stable visibility=public */ export interface Request extends RequestBase { path_parts: {