diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index e65ea270ce..1797a60862 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -86043,13 +86043,9 @@ }, "data_stream_options": { "x-state": "Generally available; Added in 8.19.0", - "oneOf": [ - { - "$ref": "#/components/schemas/indices._types.DataStreamOptionsTemplate" - }, + "allOf": [ { - "nullable": true, - "type": "string" + "$ref": "#/components/schemas/indices._types.DataStreamOptions" } ] } @@ -89346,67 +89342,48 @@ "last_value" ] }, - "indices._types.DataStreamOptionsTemplate": { - "description": "Data stream options template contains the same information as DataStreamOptions but allows them to be set explicitly to null.", + "indices._types.DataStreamOptions": { + "description": "Data stream options contain the configuration of data stream level features for a given data stream, for example,\nthe failure store configuration.", "type": "object", "properties": { "failure_store": { - "oneOf": [ - { - "$ref": "#/components/schemas/indices._types.DataStreamFailureStoreTemplate" - }, + "description": "If defined, it specifies configuration for the failure store of this data stream.", + "allOf": [ { - "nullable": true, - "type": "string" + "$ref": "#/components/schemas/indices._types.DataStreamFailureStore" } ] } } }, - "indices._types.DataStreamFailureStoreTemplate": { - "description": "Template equivalent of DataStreamFailureStore that allows nullable values.", + "indices._types.DataStreamFailureStore": { + "description": "Data stream failure store contains the configuration of the failure store for a given data stream.", "type": "object", "properties": { "enabled": { "description": "If defined, it turns the failure store on/off (`true`/`false`) for this data stream. A data stream failure store\nthat's disabled (enabled: `false`) will redirect no new failed indices to the failure store; however, it will\nnot remove any existing data from the failure store.", - "default": "true", - "oneOf": [ - { - "type": "boolean" - }, - { - "nullable": true, - "type": "string" - } - ] + "default": true, + "type": "boolean" }, "lifecycle": { "description": "If defined, it specifies the lifecycle configuration for the failure store of this data stream.", - "oneOf": [ - { - "$ref": "#/components/schemas/indices._types.FailureStoreLifecycleTemplate" - }, + "allOf": [ { - "nullable": true, - "type": "string" + "$ref": "#/components/schemas/indices._types.FailureStoreLifecycle" } ] } } }, - "indices._types.FailureStoreLifecycleTemplate": { - "description": "Template equivalent of FailureStoreLifecycle that allows nullable values.", + "indices._types.FailureStoreLifecycle": { + "description": "The failure store lifecycle configures the data stream lifecycle configuration for failure indices.", "type": "object", "properties": { "data_retention": { "description": "If defined, every document added to this data stream will be stored at least for this time frame.\nAny time after this duration the document could be deleted.\nWhen empty, every document in this data stream will be stored indefinitely.", - "oneOf": [ + "allOf": [ { "$ref": "#/components/schemas/_types.Duration" - }, - { - "nullable": true, - "type": "string" } ] }, @@ -90130,16 +90107,18 @@ "time_in_queue_millis" ] }, - "indices._types.IndexState": { + "indices.put_index_template.IndexTemplateMapping": { "type": "object", "properties": { "aliases": { + "description": "Aliases to add.\nIf the index template includes a `data_stream` object, these are data stream aliases.\nOtherwise, these are index aliases.\nData stream aliases ignore the `index_routing`, `routing`, and `search_routing` options.", "type": "object", "additionalProperties": { "$ref": "#/components/schemas/indices._types.Alias" } }, "mappings": { + "description": "Mapping for fields in the index.\nIf specified, this mapping can include field names, field data types, and mapping parameters.", "allOf": [ { "$ref": "#/components/schemas/_types.mapping.TypeMapping" @@ -90147,33 +90126,30 @@ ] }, "settings": { + "description": "Configuration options for the index.", "allOf": [ { "$ref": "#/components/schemas/indices._types.IndexSettings" } ] }, - "defaults": { - "description": "Default settings, included when the request's `include_default` is `true`.", + "lifecycle": { + "x-state": "Generally available; Added in 8.11.0", "allOf": [ { - "$ref": "#/components/schemas/indices._types.IndexSettings" + "$ref": "#/components/schemas/indices._types.DataStreamLifecycle" } ] }, - "data_stream": { - "allOf": [ + "data_stream_options": { + "x-state": "Generally available; Added in 8.19.0", + "oneOf": [ { - "$ref": "#/components/schemas/_types.DataStreamName" - } - ] - }, - "lifecycle": { - "description": "Data stream lifecycle applicable if this is a data stream.", - "x-state": "Generally available; Added in 8.11.0", - "allOf": [ + "$ref": "#/components/schemas/indices._types.DataStreamOptionsTemplate" + }, { - "$ref": "#/components/schemas/indices._types.DataStreamLifecycle" + "nullable": true, + "type": "string" } ] } @@ -90226,8 +90202,76 @@ } } }, - "_types.DataStreamName": { - "type": "string" + "indices._types.DataStreamOptionsTemplate": { + "description": "Data stream options template contains the same information as DataStreamOptions but allows them to be set explicitly to null.", + "type": "object", + "properties": { + "failure_store": { + "oneOf": [ + { + "$ref": "#/components/schemas/indices._types.DataStreamFailureStoreTemplate" + }, + { + "nullable": true, + "type": "string" + } + ] + } + } + }, + "indices._types.DataStreamFailureStoreTemplate": { + "description": "Template equivalent of DataStreamFailureStore that allows nullable values.", + "type": "object", + "properties": { + "enabled": { + "description": "If defined, it turns the failure store on/off (`true`/`false`) for this data stream. A data stream failure store\nthat's disabled (enabled: `false`) will redirect no new failed indices to the failure store; however, it will\nnot remove any existing data from the failure store.", + "default": "true", + "oneOf": [ + { + "type": "boolean" + }, + { + "nullable": true, + "type": "string" + } + ] + }, + "lifecycle": { + "description": "If defined, it specifies the lifecycle configuration for the failure store of this data stream.", + "oneOf": [ + { + "$ref": "#/components/schemas/indices._types.FailureStoreLifecycleTemplate" + }, + { + "nullable": true, + "type": "string" + } + ] + } + } + }, + "indices._types.FailureStoreLifecycleTemplate": { + "description": "Template equivalent of FailureStoreLifecycle that allows nullable values.", + "type": "object", + "properties": { + "data_retention": { + "description": "If defined, every document added to this data stream will be stored at least for this time frame.\nAny time after this duration the document could be deleted.\nWhen empty, every document in this data stream will be stored indefinitely.", + "oneOf": [ + { + "$ref": "#/components/schemas/_types.Duration" + }, + { + "nullable": true, + "type": "string" + } + ] + }, + "enabled": { + "description": "If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle\nthat's disabled (enabled: `false`) will have no effect on the data stream.", + "default": true, + "type": "boolean" + } + } }, "cluster.remote_info.ClusterRemoteInfo": { "discriminator": { @@ -97975,6 +98019,9 @@ "failures" ] }, + "_types.DataStreamName": { + "type": "string" + }, "indices.create_from.CreateFrom": { "type": "object", "properties": { @@ -98231,6 +98278,55 @@ "settings" ] }, + "indices._types.IndexState": { + "type": "object", + "properties": { + "aliases": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/indices._types.Alias" + } + }, + "mappings": { + "allOf": [ + { + "$ref": "#/components/schemas/_types.mapping.TypeMapping" + } + ] + }, + "settings": { + "allOf": [ + { + "$ref": "#/components/schemas/indices._types.IndexSettings" + } + ] + }, + "defaults": { + "description": "Default settings, included when the request's `include_default` is `true`.", + "allOf": [ + { + "$ref": "#/components/schemas/indices._types.IndexSettings" + } + ] + }, + "data_stream": { + "allOf": [ + { + "$ref": "#/components/schemas/_types.DataStreamName" + } + ] + }, + "lifecycle": { + "description": "Data stream lifecycle applicable if this is a data stream.", + "x-state": "Generally available; Added in 8.11.0", + "allOf": [ + { + "$ref": "#/components/schemas/indices._types.DataStreamLifecycle" + } + ] + } + } + }, "indices.get_alias._types.IndexAliases": { "type": "object", "properties": { @@ -98604,58 +98700,6 @@ "name" ] }, - "indices._types.DataStreamOptions": { - "description": "Data stream options contain the configuration of data stream level features for a given data stream, for example,\nthe failure store configuration.", - "type": "object", - "properties": { - "failure_store": { - "description": "If defined, it specifies configuration for the failure store of this data stream.", - "allOf": [ - { - "$ref": "#/components/schemas/indices._types.DataStreamFailureStore" - } - ] - } - } - }, - "indices._types.DataStreamFailureStore": { - "description": "Data stream failure store contains the configuration of the failure store for a given data stream.", - "type": "object", - "properties": { - "enabled": { - "description": "If defined, it turns the failure store on/off (`true`/`false`) for this data stream. A data stream failure store\nthat's disabled (enabled: `false`) will redirect no new failed indices to the failure store; however, it will\nnot remove any existing data from the failure store.", - "default": true, - "type": "boolean" - }, - "lifecycle": { - "description": "If defined, it specifies the lifecycle configuration for the failure store of this data stream.", - "allOf": [ - { - "$ref": "#/components/schemas/indices._types.FailureStoreLifecycle" - } - ] - } - } - }, - "indices._types.FailureStoreLifecycle": { - "description": "The failure store lifecycle configures the data stream lifecycle configuration for failure indices.", - "type": "object", - "properties": { - "data_retention": { - "description": "If defined, every document added to this data stream will be stored at least for this time frame.\nAny time after this duration the document could be deleted.\nWhen empty, every document in this data stream will be stored indefinitely.", - "allOf": [ - { - "$ref": "#/components/schemas/_types.Duration" - } - ] - }, - "enabled": { - "description": "If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle\nthat's disabled (enabled: `false`) will have no effect on the data stream.", - "default": true, - "type": "boolean" - } - } - }, "indices.get_data_stream_settings.DataStreamSettings": { "type": "object", "properties": { @@ -98892,13 +98936,9 @@ }, "data_stream_options": { "x-state": "Generally available; Added in 8.19.0", - "oneOf": [ - { - "$ref": "#/components/schemas/indices._types.DataStreamOptionsTemplate" - }, + "allOf": [ { - "nullable": true, - "type": "string" + "$ref": "#/components/schemas/indices._types.DataStreamOptions" } ] } @@ -99258,42 +99298,6 @@ "error" ] }, - "indices.put_index_template.IndexTemplateMapping": { - "type": "object", - "properties": { - "aliases": { - "description": "Aliases to add.\nIf the index template includes a `data_stream` object, these are data stream aliases.\nOtherwise, these are index aliases.\nData stream aliases ignore the `index_routing`, `routing`, and `search_routing` options.", - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/indices._types.Alias" - } - }, - "mappings": { - "description": "Mapping for fields in the index.\nIf specified, this mapping can include field names, field data types, and mapping parameters.", - "allOf": [ - { - "$ref": "#/components/schemas/_types.mapping.TypeMapping" - } - ] - }, - "settings": { - "description": "Configuration options for the index.", - "allOf": [ - { - "$ref": "#/components/schemas/indices._types.IndexSettings" - } - ] - }, - "lifecycle": { - "x-state": "Generally available; Added in 8.11.0", - "allOf": [ - { - "$ref": "#/components/schemas/indices._types.DataStreamLifecycle" - } - ] - } - } - }, "indices._types.DataStreamVisibility": { "type": "object", "properties": { @@ -147935,7 +147939,7 @@ "description": "The template to be applied which includes mappings, settings, or aliases configuration.", "allOf": [ { - "$ref": "#/components/schemas/indices._types.IndexState" + "$ref": "#/components/schemas/indices.put_index_template.IndexTemplateMapping" } ] }, diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 7efc00ba10..1e4a8ca528 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -51159,13 +51159,9 @@ }, "data_stream_options": { "x-state": "Generally available", - "oneOf": [ - { - "$ref": "#/components/schemas/indices._types.DataStreamOptionsTemplate" - }, + "allOf": [ { - "nullable": true, - "type": "string" + "$ref": "#/components/schemas/indices._types.DataStreamOptions" } ] } @@ -61499,67 +61495,48 @@ "last_value" ] }, - "indices._types.DataStreamOptionsTemplate": { - "description": "Data stream options template contains the same information as DataStreamOptions but allows them to be set explicitly to null.", + "indices._types.DataStreamOptions": { + "description": "Data stream options contain the configuration of data stream level features for a given data stream, for example,\nthe failure store configuration.", "type": "object", "properties": { "failure_store": { - "oneOf": [ - { - "$ref": "#/components/schemas/indices._types.DataStreamFailureStoreTemplate" - }, + "description": "If defined, it specifies configuration for the failure store of this data stream.", + "allOf": [ { - "nullable": true, - "type": "string" + "$ref": "#/components/schemas/indices._types.DataStreamFailureStore" } ] } } }, - "indices._types.DataStreamFailureStoreTemplate": { - "description": "Template equivalent of DataStreamFailureStore that allows nullable values.", + "indices._types.DataStreamFailureStore": { + "description": "Data stream failure store contains the configuration of the failure store for a given data stream.", "type": "object", "properties": { "enabled": { "description": "If defined, it turns the failure store on/off (`true`/`false`) for this data stream. A data stream failure store\nthat's disabled (enabled: `false`) will redirect no new failed indices to the failure store; however, it will\nnot remove any existing data from the failure store.", - "default": "true", - "oneOf": [ - { - "type": "boolean" - }, - { - "nullable": true, - "type": "string" - } - ] + "default": true, + "type": "boolean" }, "lifecycle": { "description": "If defined, it specifies the lifecycle configuration for the failure store of this data stream.", - "oneOf": [ - { - "$ref": "#/components/schemas/indices._types.FailureStoreLifecycleTemplate" - }, + "allOf": [ { - "nullable": true, - "type": "string" + "$ref": "#/components/schemas/indices._types.FailureStoreLifecycle" } ] } } }, - "indices._types.FailureStoreLifecycleTemplate": { - "description": "Template equivalent of FailureStoreLifecycle that allows nullable values.", + "indices._types.FailureStoreLifecycle": { + "description": "The failure store lifecycle configures the data stream lifecycle configuration for failure indices.", "type": "object", "properties": { "data_retention": { "description": "If defined, every document added to this data stream will be stored at least for this time frame.\nAny time after this duration the document could be deleted.\nWhen empty, every document in this data stream will be stored indefinitely.", - "oneOf": [ + "allOf": [ { "$ref": "#/components/schemas/_types.Duration" - }, - { - "nullable": true, - "type": "string" } ] }, @@ -61883,16 +61860,18 @@ } } }, - "indices._types.IndexState": { + "indices.put_index_template.IndexTemplateMapping": { "type": "object", "properties": { "aliases": { + "description": "Aliases to add.\nIf the index template includes a `data_stream` object, these are data stream aliases.\nOtherwise, these are index aliases.\nData stream aliases ignore the `index_routing`, `routing`, and `search_routing` options.", "type": "object", "additionalProperties": { "$ref": "#/components/schemas/indices._types.Alias" } }, "mappings": { + "description": "Mapping for fields in the index.\nIf specified, this mapping can include field names, field data types, and mapping parameters.", "allOf": [ { "$ref": "#/components/schemas/_types.mapping.TypeMapping" @@ -61900,33 +61879,30 @@ ] }, "settings": { + "description": "Configuration options for the index.", "allOf": [ { "$ref": "#/components/schemas/indices._types.IndexSettings" } ] }, - "defaults": { - "description": "Default settings, included when the request's `include_default` is `true`.", - "allOf": [ - { - "$ref": "#/components/schemas/indices._types.IndexSettings" - } - ] - }, - "data_stream": { + "lifecycle": { + "x-state": "Generally available", "allOf": [ { - "$ref": "#/components/schemas/_types.DataStreamName" + "$ref": "#/components/schemas/indices._types.DataStreamLifecycle" } ] }, - "lifecycle": { - "description": "Data stream lifecycle applicable if this is a data stream.", + "data_stream_options": { "x-state": "Generally available", - "allOf": [ + "oneOf": [ { - "$ref": "#/components/schemas/indices._types.DataStreamLifecycle" + "$ref": "#/components/schemas/indices._types.DataStreamOptionsTemplate" + }, + { + "nullable": true, + "type": "string" } ] } @@ -61979,8 +61955,76 @@ } } }, - "_types.DataStreamName": { - "type": "string" + "indices._types.DataStreamOptionsTemplate": { + "description": "Data stream options template contains the same information as DataStreamOptions but allows them to be set explicitly to null.", + "type": "object", + "properties": { + "failure_store": { + "oneOf": [ + { + "$ref": "#/components/schemas/indices._types.DataStreamFailureStoreTemplate" + }, + { + "nullable": true, + "type": "string" + } + ] + } + } + }, + "indices._types.DataStreamFailureStoreTemplate": { + "description": "Template equivalent of DataStreamFailureStore that allows nullable values.", + "type": "object", + "properties": { + "enabled": { + "description": "If defined, it turns the failure store on/off (`true`/`false`) for this data stream. A data stream failure store\nthat's disabled (enabled: `false`) will redirect no new failed indices to the failure store; however, it will\nnot remove any existing data from the failure store.", + "default": "true", + "oneOf": [ + { + "type": "boolean" + }, + { + "nullable": true, + "type": "string" + } + ] + }, + "lifecycle": { + "description": "If defined, it specifies the lifecycle configuration for the failure store of this data stream.", + "oneOf": [ + { + "$ref": "#/components/schemas/indices._types.FailureStoreLifecycleTemplate" + }, + { + "nullable": true, + "type": "string" + } + ] + } + } + }, + "indices._types.FailureStoreLifecycleTemplate": { + "description": "Template equivalent of FailureStoreLifecycle that allows nullable values.", + "type": "object", + "properties": { + "data_retention": { + "description": "If defined, every document added to this data stream will be stored at least for this time frame.\nAny time after this duration the document could be deleted.\nWhen empty, every document in this data stream will be stored indefinitely.", + "oneOf": [ + { + "$ref": "#/components/schemas/_types.Duration" + }, + { + "nullable": true, + "type": "string" + } + ] + }, + "enabled": { + "description": "If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle\nthat's disabled (enabled: `false`) will have no effect on the data stream.", + "default": true, + "type": "boolean" + } + } }, "_types.Result": { "type": "string", @@ -64280,6 +64324,9 @@ "type" ] }, + "_types.DataStreamName": { + "type": "string" + }, "indices.create_from.CreateFrom": { "type": "object", "properties": { @@ -64438,6 +64485,55 @@ "settings" ] }, + "indices._types.IndexState": { + "type": "object", + "properties": { + "aliases": { + "type": "object", + "additionalProperties": { + "$ref": "#/components/schemas/indices._types.Alias" + } + }, + "mappings": { + "allOf": [ + { + "$ref": "#/components/schemas/_types.mapping.TypeMapping" + } + ] + }, + "settings": { + "allOf": [ + { + "$ref": "#/components/schemas/indices._types.IndexSettings" + } + ] + }, + "defaults": { + "description": "Default settings, included when the request's `include_default` is `true`.", + "allOf": [ + { + "$ref": "#/components/schemas/indices._types.IndexSettings" + } + ] + }, + "data_stream": { + "allOf": [ + { + "$ref": "#/components/schemas/_types.DataStreamName" + } + ] + }, + "lifecycle": { + "description": "Data stream lifecycle applicable if this is a data stream.", + "x-state": "Generally available", + "allOf": [ + { + "$ref": "#/components/schemas/indices._types.DataStreamLifecycle" + } + ] + } + } + }, "indices.get_alias._types.IndexAliases": { "type": "object", "properties": { @@ -64785,58 +64881,6 @@ "name" ] }, - "indices._types.DataStreamOptions": { - "description": "Data stream options contain the configuration of data stream level features for a given data stream, for example,\nthe failure store configuration.", - "type": "object", - "properties": { - "failure_store": { - "description": "If defined, it specifies configuration for the failure store of this data stream.", - "allOf": [ - { - "$ref": "#/components/schemas/indices._types.DataStreamFailureStore" - } - ] - } - } - }, - "indices._types.DataStreamFailureStore": { - "description": "Data stream failure store contains the configuration of the failure store for a given data stream.", - "type": "object", - "properties": { - "enabled": { - "description": "If defined, it turns the failure store on/off (`true`/`false`) for this data stream. A data stream failure store\nthat's disabled (enabled: `false`) will redirect no new failed indices to the failure store; however, it will\nnot remove any existing data from the failure store.", - "default": true, - "type": "boolean" - }, - "lifecycle": { - "description": "If defined, it specifies the lifecycle configuration for the failure store of this data stream.", - "allOf": [ - { - "$ref": "#/components/schemas/indices._types.FailureStoreLifecycle" - } - ] - } - } - }, - "indices._types.FailureStoreLifecycle": { - "description": "The failure store lifecycle configures the data stream lifecycle configuration for failure indices.", - "type": "object", - "properties": { - "data_retention": { - "description": "If defined, every document added to this data stream will be stored at least for this time frame.\nAny time after this duration the document could be deleted.\nWhen empty, every document in this data stream will be stored indefinitely.", - "allOf": [ - { - "$ref": "#/components/schemas/_types.Duration" - } - ] - }, - "enabled": { - "description": "If defined, it turns data stream lifecycle on/off (`true`/`false`) for this data stream. A data stream lifecycle\nthat's disabled (enabled: `false`) will have no effect on the data stream.", - "default": true, - "type": "boolean" - } - } - }, "indices.get_data_stream_settings.DataStreamSettings": { "type": "object", "properties": { @@ -65039,13 +65083,9 @@ }, "data_stream_options": { "x-state": "Generally available", - "oneOf": [ - { - "$ref": "#/components/schemas/indices._types.DataStreamOptionsTemplate" - }, + "allOf": [ { - "nullable": true, - "type": "string" + "$ref": "#/components/schemas/indices._types.DataStreamOptions" } ] } @@ -65312,42 +65352,6 @@ "error" ] }, - "indices.put_index_template.IndexTemplateMapping": { - "type": "object", - "properties": { - "aliases": { - "description": "Aliases to add.\nIf the index template includes a `data_stream` object, these are data stream aliases.\nOtherwise, these are index aliases.\nData stream aliases ignore the `index_routing`, `routing`, and `search_routing` options.", - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/indices._types.Alias" - } - }, - "mappings": { - "description": "Mapping for fields in the index.\nIf specified, this mapping can include field names, field data types, and mapping parameters.", - "allOf": [ - { - "$ref": "#/components/schemas/_types.mapping.TypeMapping" - } - ] - }, - "settings": { - "description": "Configuration options for the index.", - "allOf": [ - { - "$ref": "#/components/schemas/indices._types.IndexSettings" - } - ] - }, - "lifecycle": { - "x-state": "Generally available", - "allOf": [ - { - "$ref": "#/components/schemas/indices._types.DataStreamLifecycle" - } - ] - } - } - }, "indices._types.DataStreamVisibility": { "type": "object", "properties": { @@ -90228,7 +90232,7 @@ "description": "The template to be applied which includes mappings, settings, or aliases configuration.", "allOf": [ { - "$ref": "#/components/schemas/indices._types.IndexState" + "$ref": "#/components/schemas/indices.put_index_template.IndexTemplateMapping" } ] }, diff --git a/output/schema/schema.json b/output/schema/schema.json index 6308193b6d..c957f73ad2 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -126321,23 +126321,11 @@ "name": "data_stream_options", "required": false, "type": { - "kind": "union_of", - "items": [ - { - "kind": "instance_of", - "type": { - "name": "DataStreamOptionsTemplate", - "namespace": "indices._types" - } - }, - { - "kind": "instance_of", - "type": { - "name": "null", - "namespace": "_builtins" - } - } - ] + "kind": "instance_of", + "type": { + "name": "DataStreamOptions", + "namespace": "indices._types" + } } } ], @@ -129559,8 +129547,8 @@ "type": { "kind": "instance_of", "type": { - "name": "IndexState", - "namespace": "indices._types" + "name": "IndexTemplateMapping", + "namespace": "indices.put_index_template" } } }, @@ -154617,23 +154605,11 @@ "name": "data_stream_options", "required": false, "type": { - "kind": "union_of", - "items": [ - { - "kind": "instance_of", - "type": { - "name": "DataStreamOptionsTemplate", - "namespace": "indices._types" - } - }, - { - "kind": "instance_of", - "type": { - "name": "null", - "namespace": "_builtins" - } - } - ] + "kind": "instance_of", + "type": { + "name": "DataStreamOptions", + "namespace": "indices._types" + } } } ], @@ -167344,9 +167320,41 @@ "namespace": "indices._types" } } + }, + { + "availability": { + "serverless": { + "stability": "stable" + }, + "stack": { + "since": "8.19.0", + "stability": "stable" + } + }, + "name": "data_stream_options", + "required": false, + "type": { + "kind": "union_of", + "items": [ + { + "kind": "instance_of", + "type": { + "name": "DataStreamOptionsTemplate", + "namespace": "indices._types" + } + }, + { + "kind": "instance_of", + "type": { + "name": "null", + "namespace": "_builtins" + } + } + ] + } } ], - "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L162-L184" + "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L163-L190" }, { "kind": "request", @@ -167617,7 +167625,7 @@ } } ], - "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L37-L160" + "specLocation": "indices/put_index_template/IndicesPutIndexTemplateRequest.ts#L38-L161" }, { "kind": "response", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index 7dac61206c..acc732a7b5 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -9708,7 +9708,7 @@ export interface ClusterComponentTemplateSummary { mappings?: MappingTypeMapping aliases?: Record lifecycle?: IndicesDataStreamLifecycleWithRollover - data_stream_options?: IndicesDataStreamOptionsTemplate | null + data_stream_options?: IndicesDataStreamOptions } export interface ClusterAllocationExplainAllocationDecision { @@ -9995,7 +9995,7 @@ export interface ClusterPutComponentTemplateRequest extends RequestBase { cause?: string master_timeout?: Duration body?: { - template: IndicesIndexState + template: IndicesPutIndexTemplateIndexTemplateMapping version?: VersionNumber _meta?: Metadata deprecated?: boolean @@ -12370,7 +12370,7 @@ export interface IndicesIndexTemplateSummary { mappings?: MappingTypeMapping settings?: IndicesIndexSettings lifecycle?: IndicesDataStreamLifecycleWithRollover - data_stream_options?: IndicesDataStreamOptionsTemplate | null + data_stream_options?: IndicesDataStreamOptions } export interface IndicesIndexVersioning { @@ -13515,6 +13515,7 @@ export interface IndicesPutIndexTemplateIndexTemplateMapping { mappings?: MappingTypeMapping settings?: IndicesIndexSettings lifecycle?: IndicesDataStreamLifecycle + data_stream_options?: IndicesDataStreamOptionsTemplate | null } export interface IndicesPutIndexTemplateRequest extends RequestBase { diff --git a/specification/cluster/_types/ComponentTemplate.ts b/specification/cluster/_types/ComponentTemplate.ts index 932a561ed2..f3e2d36318 100644 --- a/specification/cluster/_types/ComponentTemplate.ts +++ b/specification/cluster/_types/ComponentTemplate.ts @@ -22,7 +22,7 @@ import { TypeMapping } from '@_types/mapping/TypeMapping' import { DateTime, EpochTime, UnitMillis } from '@_types/Time' import { AliasDefinition } from '@indices/_types/AliasDefinition' import { DataStreamLifecycleWithRollover } from '@indices/_types/DataStreamLifecycle' -import { DataStreamOptionsTemplate } from '@indices/_types/DataStreamOptions' +import { DataStreamOptions } from '@indices/_types/DataStreamOptions' import { IndexSettings } from '@indices/_types/IndexSettings' import { Dictionary } from '@spec_utils/Dictionary' @@ -82,5 +82,5 @@ export class ComponentTemplateSummary { * @availability stack since=8.19.0 stability=stable * @availability serverless stability=stable */ - data_stream_options?: DataStreamOptionsTemplate | null + data_stream_options?: DataStreamOptions } diff --git a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts index 1095dcfd44..4021331a24 100644 --- a/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts +++ b/specification/cluster/put_component_template/ClusterPutComponentTemplateRequest.ts @@ -20,7 +20,7 @@ import { RequestBase } from '@_types/Base' import { Metadata, Name, VersionNumber } from '@_types/common' import { Duration } from '@_types/Time' -import { IndexState } from '@indices/_types/IndexState' +import { IndexTemplateMapping } from '@indices/put_index_template/IndicesPutIndexTemplateRequest' /** * Create or update a component template. @@ -88,7 +88,7 @@ export interface Request extends RequestBase { /** * The template to be applied which includes mappings, settings, or aliases configuration. */ - template: IndexState + template: IndexTemplateMapping /** * Version number used to manage component templates externally. * This number isn't automatically generated or incremented by Elasticsearch. diff --git a/specification/indices/_types/IndexTemplate.ts b/specification/indices/_types/IndexTemplate.ts index b25a8a661c..28831a4f6c 100644 --- a/specification/indices/_types/IndexTemplate.ts +++ b/specification/indices/_types/IndexTemplate.ts @@ -22,7 +22,7 @@ import { TypeMapping } from '@_types/mapping/TypeMapping' import { long } from '@_types/Numeric' import { DateTime, EpochTime, UnitMillis } from '@_types/Time' import { DataStreamLifecycleWithRollover } from '@indices/_types/DataStreamLifecycle' -import { DataStreamOptionsTemplate } from '@indices/_types/DataStreamOptions' +import { DataStreamOptions } from '@indices/_types/DataStreamOptions' import { Dictionary } from '@spec_utils/Dictionary' import { Alias } from './Alias' import { IndexSettings } from './IndexSettings' @@ -145,5 +145,5 @@ export class IndexTemplateSummary { * @availability stack since=8.19.0 stability=stable * @availability serverless stability=stable */ - data_stream_options?: DataStreamOptionsTemplate | null + data_stream_options?: DataStreamOptions } diff --git a/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts b/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts index dfe9e8f53c..9db0a63a55 100644 --- a/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts +++ b/specification/indices/put_index_template/IndicesPutIndexTemplateRequest.ts @@ -31,6 +31,7 @@ import { Duration } from '@_types/Time' import { Alias } from '@indices/_types/Alias' import { DataStreamVisibility } from '@indices/_types/DataStream' import { DataStreamLifecycle } from '@indices/_types/DataStreamLifecycle' +import { DataStreamOptionsTemplate } from '@indices/_types/DataStreamOptions' import { IndexSettings } from '@indices/_types/IndexSettings' import { Dictionary } from '@spec_utils/Dictionary' @@ -181,4 +182,9 @@ export class IndexTemplateMapping { * @availability serverless stability=stable */ lifecycle?: DataStreamLifecycle + /** + * @availability stack since=8.19.0 stability=stable + * @availability serverless stability=stable + */ + data_stream_options?: DataStreamOptionsTemplate | null }