diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 394c230f48..61b4394d2c 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -20407,9 +20407,6 @@ { "$ref": "#/components/parameters/ml.get_trained_models#include" }, - { - "$ref": "#/components/parameters/ml.get_trained_models#include_model_definition" - }, { "$ref": "#/components/parameters/ml.get_trained_models#size" }, @@ -22319,9 +22316,6 @@ { "$ref": "#/components/parameters/ml.get_trained_models#include" }, - { - "$ref": "#/components/parameters/ml.get_trained_models#include_model_definition" - }, { "$ref": "#/components/parameters/ml.get_trained_models#size" }, @@ -22403,44 +22397,76 @@ "operationId": "ml-infer-trained-model", "parameters": [ { - "$ref": "#/components/parameters/ml.infer_trained_model#model_id" + "in": "path", + "name": "model_id", + "description": "The unique identifier of the trained model.", + "required": true, + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Id" + }, + "style": "simple" }, { - "$ref": "#/components/parameters/ml.infer_trained_model#timeout" + "in": "query", + "name": "timeout", + "description": "Controls the amount of time to wait for inference results.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "requestBody": { - "$ref": "#/components/requestBodies/ml.infer_trained_model" - }, - "responses": { - "200": { - "$ref": "#/components/responses/ml.infer_trained_model#200" - } - }, - "x-state": "Added in 8.3.0" - } - }, - "/_ml/trained_models/{model_id}/deployment/_infer": { - "post": { - "tags": [ - "ml trained model" - ], - "summary": "Evaluate a trained model", - "operationId": "ml-infer-trained-model-1", - "parameters": [ - { - "$ref": "#/components/parameters/ml.infer_trained_model#model_id" + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "docs": { + "description": "An array of objects to pass to the model for inference. The objects should contain a fields matching your\nconfigured trained model input. Typically, for NLP models, the field name is `text_field`.\nCurrently, for NLP models, only a single value is allowed.", + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + }, + "inference_config": { + "$ref": "#/components/schemas/ml._types:InferenceConfigUpdateContainer" + } + }, + "required": [ + "docs" + ] + } + } }, - { - "$ref": "#/components/parameters/ml.infer_trained_model#timeout" - } - ], - "requestBody": { - "$ref": "#/components/requestBodies/ml.infer_trained_model" + "required": true }, "responses": { "200": { - "$ref": "#/components/responses/ml.infer_trained_model#200" + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "inference_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ml._types:InferenceResponseResult" + } + } + }, + "required": [ + "inference_results" + ] + } + } + } } }, "x-state": "Added in 8.3.0" @@ -97144,27 +97170,6 @@ } } }, - "ml.infer_trained_model#200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "inference_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ml._types:InferenceResponseResult" - } - } - }, - "required": [ - "inference_results" - ] - } - } - } - }, "ml.preview_data_frame_analytics#200": { "description": "", "content": { @@ -105527,16 +105532,6 @@ }, "style": "form" }, - "ml.get_trained_models#include_model_definition": { - "in": "query", - "name": "include_model_definition", - "description": "parameter is deprecated! Use [include=definition] instead", - "deprecated": true, - "schema": { - "type": "boolean" - }, - "style": "form" - }, "ml.get_trained_models#size": { "in": "query", "name": "size", @@ -105608,27 +105603,6 @@ }, "style": "form" }, - "ml.infer_trained_model#model_id": { - "in": "path", - "name": "model_id", - "description": "The unique identifier of the trained model.", - "required": true, - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Id" - }, - "style": "simple" - }, - "ml.infer_trained_model#timeout": { - "in": "query", - "name": "timeout", - "description": "Controls the amount of time to wait for inference results.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "ml.preview_data_frame_analytics#id": { "in": "path", "name": "id", @@ -110304,34 +110278,6 @@ } } }, - "ml.infer_trained_model": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "docs": { - "description": "An array of objects to pass to the model for inference. The objects should contain a fields matching your\nconfigured trained model input. Typically, for NLP models, the field name is `text_field`.\nCurrently, for NLP models, only a single value is allowed.", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "object" - } - } - }, - "inference_config": { - "$ref": "#/components/schemas/ml._types:InferenceConfigUpdateContainer" - } - }, - "required": [ - "docs" - ] - } - } - }, - "required": true - }, "ml.preview_data_frame_analytics": { "content": { "application/json": { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index ebd574227f..6c95652dd4 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -11267,9 +11267,6 @@ { "$ref": "#/components/parameters/ml.get_trained_models#include" }, - { - "$ref": "#/components/parameters/ml.get_trained_models#include_model_definition" - }, { "$ref": "#/components/parameters/ml.get_trained_models#size" }, @@ -12371,9 +12368,6 @@ { "$ref": "#/components/parameters/ml.get_trained_models#include" }, - { - "$ref": "#/components/parameters/ml.get_trained_models#include_model_definition" - }, { "$ref": "#/components/parameters/ml.get_trained_models#size" }, @@ -12455,44 +12449,76 @@ "operationId": "ml-infer-trained-model", "parameters": [ { - "$ref": "#/components/parameters/ml.infer_trained_model#model_id" + "in": "path", + "name": "model_id", + "description": "The unique identifier of the trained model.", + "required": true, + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Id" + }, + "style": "simple" }, { - "$ref": "#/components/parameters/ml.infer_trained_model#timeout" + "in": "query", + "name": "timeout", + "description": "Controls the amount of time to wait for inference results.", + "deprecated": false, + "schema": { + "$ref": "#/components/schemas/_types:Duration" + }, + "style": "form" } ], "requestBody": { - "$ref": "#/components/requestBodies/ml.infer_trained_model" - }, - "responses": { - "200": { - "$ref": "#/components/responses/ml.infer_trained_model#200" - } - }, - "x-state": "Added in 8.3.0" - } - }, - "/_ml/trained_models/{model_id}/deployment/_infer": { - "post": { - "tags": [ - "ml trained model" - ], - "summary": "Evaluate a trained model", - "operationId": "ml-infer-trained-model-1", - "parameters": [ - { - "$ref": "#/components/parameters/ml.infer_trained_model#model_id" + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "docs": { + "description": "An array of objects to pass to the model for inference. The objects should contain a fields matching your\nconfigured trained model input. Typically, for NLP models, the field name is `text_field`.\nCurrently, for NLP models, only a single value is allowed.", + "type": "array", + "items": { + "type": "object", + "additionalProperties": { + "type": "object" + } + } + }, + "inference_config": { + "$ref": "#/components/schemas/ml._types:InferenceConfigUpdateContainer" + } + }, + "required": [ + "docs" + ] + } + } }, - { - "$ref": "#/components/parameters/ml.infer_trained_model#timeout" - } - ], - "requestBody": { - "$ref": "#/components/requestBodies/ml.infer_trained_model" + "required": true }, "responses": { "200": { - "$ref": "#/components/responses/ml.infer_trained_model#200" + "description": "", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "inference_results": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ml._types:InferenceResponseResult" + } + } + }, + "required": [ + "inference_results" + ] + } + } + } } }, "x-state": "Added in 8.3.0" @@ -57569,27 +57595,6 @@ } } }, - "ml.infer_trained_model#200": { - "description": "", - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "inference_results": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ml._types:InferenceResponseResult" - } - } - }, - "required": [ - "inference_results" - ] - } - } - } - }, "ml.preview_data_frame_analytics#200": { "description": "", "content": { @@ -61939,16 +61944,6 @@ }, "style": "form" }, - "ml.get_trained_models#include_model_definition": { - "in": "query", - "name": "include_model_definition", - "description": "parameter is deprecated! Use [include=definition] instead", - "deprecated": true, - "schema": { - "type": "boolean" - }, - "style": "form" - }, "ml.get_trained_models#size": { "in": "query", "name": "size", @@ -62020,27 +62015,6 @@ }, "style": "form" }, - "ml.infer_trained_model#model_id": { - "in": "path", - "name": "model_id", - "description": "The unique identifier of the trained model.", - "required": true, - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Id" - }, - "style": "simple" - }, - "ml.infer_trained_model#timeout": { - "in": "query", - "name": "timeout", - "description": "Controls the amount of time to wait for inference results.", - "deprecated": false, - "schema": { - "$ref": "#/components/schemas/_types:Duration" - }, - "style": "form" - }, "ml.preview_data_frame_analytics#id": { "in": "path", "name": "id", @@ -64592,34 +64566,6 @@ } } }, - "ml.infer_trained_model": { - "content": { - "application/json": { - "schema": { - "type": "object", - "properties": { - "docs": { - "description": "An array of objects to pass to the model for inference. The objects should contain a fields matching your\nconfigured trained model input. Typically, for NLP models, the field name is `text_field`.\nCurrently, for NLP models, only a single value is allowed.", - "type": "array", - "items": { - "type": "object", - "additionalProperties": { - "type": "object" - } - } - }, - "inference_config": { - "$ref": "#/components/schemas/ml._types:InferenceConfigUpdateContainer" - } - }, - "required": [ - "docs" - ] - } - } - }, - "required": true - }, "ml.preview_data_frame_analytics": { "content": { "application/json": { diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index d05918a69d..101ed082e7 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -6208,16 +6208,6 @@ "POST" ], "path": "/_ml/trained_models/{model_id}/_infer" - }, - { - "deprecation": { - "description": "/_ml/trained_models/{model_id}/deployment/_infer is deprecated. Use /_ml/trained_models/{model_id}/_infer instead", - "version": "8.3.0" - }, - "methods": [ - "POST" - ], - "path": "/_ml/trained_models/{model_id}/deployment/_infer" } ] }, @@ -29558,22 +29548,6 @@ } } }, - { - "deprecation": { - "description": "", - "version": "7.10.0" - }, - "description": "parameter is deprecated! Use [include=definition] instead", - "name": "include_model_definition", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - }, { "description": "Specifies the maximum number of models to obtain.", "name": "size", @@ -29615,7 +29589,7 @@ } } ], - "specLocation": "ml/get_trained_models/MlGetTrainedModelRequest.ts#L25-L110" + "specLocation": "ml/get_trained_models/MlGetTrainedModelRequest.ts#L25-L104" }, { "body": { @@ -29856,7 +29830,7 @@ } } ], - "specLocation": "ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L72" + "specLocation": "ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L67" }, { "body": { diff --git a/output/schema/schema.json b/output/schema/schema.json index 1343353420..399e9263fd 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -12309,16 +12309,6 @@ "POST" ], "path": "/_ml/trained_models/{model_id}/_infer" - }, - { - "deprecation": { - "description": "/_ml/trained_models/{model_id}/deployment/_infer is deprecated. Use /_ml/trained_models/{model_id}/_infer instead", - "version": "8.3.0" - }, - "methods": [ - "POST" - ], - "path": "/_ml/trained_models/{model_id}/deployment/_infer" } ] }, @@ -175088,22 +175078,6 @@ } } }, - { - "deprecation": { - "description": "", - "version": "7.10.0" - }, - "description": "parameter is deprecated! Use [include=definition] instead", - "name": "include_model_definition", - "required": false, - "type": { - "kind": "instance_of", - "type": { - "name": "boolean", - "namespace": "_builtins" - } - } - }, { "description": "Specifies the maximum number of models to obtain.", "name": "size", @@ -175145,7 +175119,7 @@ } } ], - "specLocation": "ml/get_trained_models/MlGetTrainedModelRequest.ts#L25-L110" + "specLocation": "ml/get_trained_models/MlGetTrainedModelRequest.ts#L25-L104" }, { "kind": "response", @@ -175386,7 +175360,7 @@ } } ], - "specLocation": "ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L72" + "specLocation": "ml/infer_trained_model/MlInferTrainedModelRequest.ts#L27-L67" }, { "kind": "response", diff --git a/output/schema/validation-errors.json b/output/schema/validation-errors.json index e8645306c9..b653cac93c 100644 --- a/output/schema/validation-errors.json +++ b/output/schema/validation-errors.json @@ -176,12 +176,6 @@ ], "response": [] }, - "ml.stop_datafeed": { - "request": [ - "Request: missing json spec query parameter 'allow_no_datafeeds'" - ], - "response": [] - }, "msearch": { "request": [ "Request: query parameter 'allow_no_indices' does not exist in the json spec", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index fa604f8398..b4d2151ceb 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -16015,7 +16015,6 @@ export interface MlGetTrainedModelsRequest extends RequestBase { exclude_generated?: boolean from?: integer include?: MlInclude - include_model_definition?: boolean size?: integer tags?: string | string[] } diff --git a/specification/_json_spec/ml.get_trained_models.json b/specification/_json_spec/ml.get_trained_models.json index f8fbceabf9..9f1fb051d5 100644 --- a/specification/_json_spec/ml.get_trained_models.json +++ b/specification/_json_spec/ml.get_trained_models.json @@ -39,13 +39,6 @@ "required": false, "description": "A comma-separate list of fields to optionally include. Valid options are 'definition' and 'total_feature_importance'. Default is none." }, - "include_model_definition": { - "type": "boolean", - "required": false, - "description": "Should the full model definition be included in the results. These definitions can be large. So be cautious when including them. Defaults to false.", - "default": false, - "deprecated": true - }, "decompress_definition": { "type": "boolean", "required": false, diff --git a/specification/_json_spec/ml.infer_trained_model.json b/specification/_json_spec/ml.infer_trained_model.json index 6e78e56e37..220f7c1fc4 100644 --- a/specification/_json_spec/ml.infer_trained_model.json +++ b/specification/_json_spec/ml.infer_trained_model.json @@ -22,21 +22,6 @@ "required": true } } - }, - { - "path": "/_ml/trained_models/{model_id}/deployment/_infer", - "methods": ["POST"], - "parts": { - "model_id": { - "type": "string", - "description": "The unique identifier of the trained model.", - "required": true - } - }, - "deprecated": { - "version": "8.3.0", - "description": "/_ml/trained_models/{model_id}/deployment/_infer is deprecated. Use /_ml/trained_models/{model_id}/_infer instead" - } } ] }, diff --git a/specification/_json_spec/ml.stop_datafeed.json b/specification/_json_spec/ml.stop_datafeed.json index 316c0dd24f..b3faacb438 100644 --- a/specification/_json_spec/ml.stop_datafeed.json +++ b/specification/_json_spec/ml.stop_datafeed.json @@ -30,12 +30,6 @@ "required": false, "description": "Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)" }, - "allow_no_datafeeds": { - "type": "boolean", - "required": false, - "description": "Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)", - "deprecated": true - }, "force": { "type": "boolean", "required": false, diff --git a/specification/ml/get_trained_models/MlGetTrainedModelRequest.ts b/specification/ml/get_trained_models/MlGetTrainedModelRequest.ts index 0c4ec33b30..fa1d562e39 100644 --- a/specification/ml/get_trained_models/MlGetTrainedModelRequest.ts +++ b/specification/ml/get_trained_models/MlGetTrainedModelRequest.ts @@ -89,12 +89,6 @@ export interface Request extends RequestBase { */ include?: Include - /** - * parameter is deprecated! Use [include=definition] instead - * @deprecated 7.10.0 - */ - include_model_definition?: boolean - /** * Specifies the maximum number of models to obtain. * @server_default 100 diff --git a/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts b/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts index 78ec11b822..380de9553c 100644 --- a/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts +++ b/specification/ml/infer_trained_model/MlInferTrainedModelRequest.ts @@ -37,11 +37,6 @@ export interface Request extends RequestBase { { path: '/_ml/trained_models/{model_id}/_infer' methods: ['POST'] - }, - { - /** @deprecated 8.3.0 /_ml/trained_models/{model_id}/deployment/_infer is deprecated. Use /_ml/trained_models/{model_id}/_infer instead */ - path: '/_ml/trained_models/{model_id}/deployment/_infer' - methods: ['POST'] } ] path_parts: {