From 8b06b14f0ee87a0eaf4acb576ca1422c08cc8612 Mon Sep 17 00:00:00 2001 From: Benjamin Trent Date: Fri, 20 Dec 2019 11:26:42 -0500 Subject: [PATCH] [ML][Inference] updates specs with new params + docs (#50373) --- .../rest-api-spec/api/ml.delete_trained_model.json | 2 +- .../rest-api-spec/api/ml.get_trained_models.json | 10 ++++++++-- .../rest-api-spec/api/ml.get_trained_models_stats.json | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_trained_model.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_trained_model.json index edfc157646f91..01e935bd4ad59 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_trained_model.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.delete_trained_model.json @@ -1,7 +1,7 @@ { "ml.delete_trained_model":{ "documentation":{ - "url":"TODO" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference.html" }, "stability":"experimental", "url":{ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_trained_models.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_trained_models.json index 22d16a6c36941..d92c8823b7330 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_trained_models.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_trained_models.json @@ -1,7 +1,7 @@ { "ml.get_trained_models":{ "documentation":{ - "url":"TODO" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference.html" }, "stability":"experimental", "url":{ @@ -36,9 +36,15 @@ "include_model_definition":{ "type":"boolean", "required":false, - "description":"Should the full model definition be included in the results. These definitions can be large", + "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 }, + "decompress_definition": { + "type": "boolean", + "required": false, + "default": true, + "description": "Should the model definition be decompressed into valid JSON or returned in a custom compressed format. Defaults to true." + }, "from":{ "type":"int", "description":"skips a number of trained models", diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_trained_models_stats.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_trained_models_stats.json index 703380c708703..c00b33f2ea9ca 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_trained_models_stats.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/ml.get_trained_models_stats.json @@ -1,7 +1,7 @@ { "ml.get_trained_models_stats":{ "documentation":{ - "url":"TODO" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-stats.html" }, "stability":"experimental", "url":{