diff --git a/output/schema/schema.json b/output/schema/schema.json index ae7a1c7d6b..2bdca795a8 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -90186,6 +90186,7 @@ "kind": "properties", "properties": [ { + "description": "The template to be applied which includes mappings, settings, or aliases configuration.", "name": "template", "required": true, "type": { @@ -90197,70 +90198,40 @@ } }, { - "name": "aliases", - "required": false, - "type": { - "key": { - "kind": "instance_of", - "type": { - "name": "string", - "namespace": "_builtins" - } - }, - "kind": "dictionary_of", - "singleKey": false, - "value": { - "kind": "instance_of", - "type": { - "name": "AliasDefinition", - "namespace": "indices._types" - } - } - } - }, - { - "name": "mappings", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "TypeMapping", - "namespace": "_types.mapping" - } - } - }, - { - "name": "settings", + "description": "Version number used to manage component templates externally.\nThis number isn't automatically generated or incremented by Elasticsearch.", + "name": "version", "required": false, "type": { "kind": "instance_of", "type": { - "name": "IndexSettings", - "namespace": "indices._types" + "name": "VersionNumber", + "namespace": "_types" } } }, { - "name": "version", + "description": "Optional user metadata about the component template.\nMay have any contents. This map is not automatically generated by Elasticsearch.", + "docId": "mapping-meta-field", + "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-meta-field.html", + "name": "_meta", "required": false, "type": { "kind": "instance_of", "type": { - "name": "VersionNumber", + "name": "Metadata", "namespace": "_types" } } }, { - "docId": "mapping-meta-field", - "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/mapping-meta-field.html", - "name": "_meta", + "description": "This setting overrides the value of the `action.auto_create_index` cluster setting.\nIf set to `true` in a template, then indices can be automatically created using that\ntemplate even if auto-creation of indices is disabled via `actions.auto_create_index`.\nIf set to `false` then data streams matching the template must always be explicitly created.", + "name": "allow_auto_create", "required": false, "type": { "kind": "instance_of", "type": { - "name": "Metadata", - "namespace": "_types" + "name": "boolean", + "namespace": "_builtins" } } } @@ -90320,7 +90291,7 @@ } } ], - "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L29-L54" + "specLocation": "cluster/put_component_template/ClusterPutComponentTemplateRequest.ts#L29-L69" }, { "body": { diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 03b0b4a55a..78e05010b7 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -8329,11 +8329,9 @@ export interface ClusterPutComponentTemplateRequest extends RequestBase { master_timeout?: Duration body?: { template: IndicesIndexState - aliases?: Record - mappings?: MappingTypeMapping - settings?: IndicesIndexSettings version?: VersionNumber _meta?: Metadata + allow_auto_create?: boolean } } diff --git a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts index f3cd6d3a9c..3aa37a0383 100644 --- a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts +++ b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts @@ -43,12 +43,27 @@ export interface Request extends RequestBase { master_timeout?: Duration } body: { + /** + * The template to be applied which includes mappings, settings, or aliases configuration. + */ template: IndexState - aliases?: Dictionary - mappings?: TypeMapping - settings?: IndexSettings + /** + * Version number used to manage component templates externally. + * This number isn't automatically generated or incremented by Elasticsearch. + */ version?: VersionNumber - /** @doc_id mapping-meta-field */ + /** + * Optional user metadata about the component template. + * May have any contents. This map is not automatically generated by Elasticsearch. + * @doc_id mapping-meta-field + */ _meta?: Metadata + /** + * This setting overrides the value of the `action.auto_create_index` cluster setting. + * If set to `true` in a template, then indices can be automatically created using that + * template even if auto-creation of indices is disabled via `actions.auto_create_index`. + * If set to `false` then data streams matching the template must always be explicitly created. + */ + allow_auto_create?: boolean } }