浏览代码

[ML] deleting deprecated API in yaml schema (#63145)

Since the inference API is experimental, keeping the deprecated yaml API schema is not necessary.
Benjamin Trent 5 年之前
父节点
当前提交
1cc3d5bff2

+ 0 - 29
x-pack/plugin/src/test/resources/rest-api-spec/api/ml.deprecated_delete_trained_model.json

@@ -1,29 +0,0 @@
-{
-  "ml.deprecated_delete_trained_model":{
-    "documentation":{
-      "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html",
-      "description":"Deletes an existing trained inference model that is currently not referenced by an ingest pipeline."
-    },
-    "stability":"experimental",
-    "url":{
-      "paths":[
-        {
-          "path":"/_ml/inference/{model_id}",
-          "methods":[
-            "DELETE"
-          ],
-          "parts":{
-            "model_id":{
-              "type":"string",
-              "description":"The ID of the trained model to delete"
-            }
-          },
-          "deprecated": {
-            "version":"7.10.0",
-            "description":"[/_ml/inference/{model_id}] is deprecated, use [_ml/trained_models/{mode_id}]."
-          }
-        }
-      ]
-    }
-  }
-}

+ 0 - 88
x-pack/plugin/src/test/resources/rest-api-spec/api/ml.deprecated_get_trained_models.json

@@ -1,88 +0,0 @@
-{
-  "ml.deprecated_get_trained_models":{
-    "documentation":{
-      "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html",
-      "description":"Retrieves configuration information for a trained inference model."
-    },
-    "stability":"experimental",
-    "url":{
-      "paths":[
-        {
-          "path":"/_ml/inference/{model_id}",
-          "methods":[
-            "GET"
-          ],
-          "parts":{
-            "model_id":{
-              "type":"string",
-              "description":"The ID of the trained models to fetch"
-            }
-          },
-          "deprecated": {
-            "version":"7.10.0",
-            "description":"[/_ml/inference/{model_id}] is deprecated, use [_ml/trained_models/{mode_id}]."
-          }
-        },
-        {
-          "path":"/_ml/inference",
-          "methods":[
-            "GET"
-          ],
-          "deprecated": {
-            "version":"7.10.0",
-            "description":"[/_ml/inference] is deprecated, use [_ml/trained_models]."
-          }
-        }
-      ]
-    },
-    "params":{
-      "allow_no_match":{
-        "type":"boolean",
-        "required":false,
-        "description":"Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified)",
-        "default":true
-      },
-      "include":{
-        "type":"string",
-        "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,
-        "default":true,
-        "description":"Should the model definition be decompressed into valid JSON or returned in a custom compressed format. Defaults to true."
-      },
-      "from":{
-        "required":false,
-        "type":"int",
-        "description":"skips a number of trained models",
-        "default":0
-      },
-      "size":{
-        "required":false,
-        "type":"int",
-        "description":"specifies a max number of trained models to get",
-        "default":100
-      },
-      "tags":{
-        "required":false,
-        "type":"list",
-        "description":"A comma-separated list of tags that the model must have."
-      },
-      "for_export": {
-        "required": false,
-        "type": "boolean",
-        "default": false,
-        "description": "Omits fields that are illegal to set on model PUT"
-      }
-    }
-  }
-}

+ 0 - 57
x-pack/plugin/src/test/resources/rest-api-spec/api/ml.deprecated_get_trained_models_stats.json

@@ -1,57 +0,0 @@
-{
-  "ml.deprecated_get_trained_models_stats":{
-    "documentation":{
-      "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html",
-      "description":"Retrieves usage information for trained inference models."
-    },
-    "stability":"experimental",
-    "url":{
-      "paths":[
-        {
-          "path":"/_ml/inference/{model_id}/_stats",
-          "methods":[
-            "GET"
-          ],
-          "parts":{
-            "model_id":{
-              "type":"string",
-              "description":"The ID of the trained models stats to fetch"
-            }
-          },
-          "deprecated": {
-            "version":"7.10.0",
-            "description":"[/_ml/inference/{model_id}/_stats] is deprecated, use [_ml/trained_models/{mode_id}/_stats]."
-          }
-        },
-        {
-          "path":"/_ml/inference/_stats",
-          "methods":[
-            "GET"
-          ],
-          "deprecated": {
-            "version":"7.10.0",
-            "description":"[/_ml/inference/_stats] is deprecated, use [_ml/trained_models/_stats]."
-          }
-        }
-      ]
-    },
-    "params":{
-      "allow_no_match":{
-        "type":"boolean",
-        "required":false,
-        "description":"Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified)",
-        "default":true
-      },
-      "from":{
-        "type":"int",
-        "description":"skips a number of trained models",
-        "default":0
-      },
-      "size":{
-        "type":"int",
-        "description":"specifies a max number of trained models to get",
-        "default":100
-      }
-    }
-  }
-}

+ 0 - 33
x-pack/plugin/src/test/resources/rest-api-spec/api/ml.deprecated_put_trained_model.json

@@ -1,33 +0,0 @@
-{
-  "ml.deprecated_put_trained_model":{
-    "documentation":{
-      "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models.html",
-      "description":"Creates an inference trained model."
-    },
-    "stability":"experimental",
-    "url":{
-      "paths":[
-        {
-          "path":"/_ml/inference/{model_id}",
-          "methods":[
-            "PUT"
-          ],
-          "parts":{
-            "model_id":{
-              "type":"string",
-              "description":"The ID of the trained models to store"
-            }
-          },
-          "deprecated": {
-            "version":"7.10.0",
-            "description":"[/_ml/inference/{model_id}] is deprecated, use [_ml/trained_models/{mode_id}]."
-          }
-        }
-      ]
-    },
-    "body":{
-      "description":"The trained model configuration",
-      "required":true
-    }
-  }
-}