Skip to content

Commit 57b5a0b

Browse files
authored
fix/7.x/code gen (#5057)
1 parent 04bcf70 commit 57b5a0b

23 files changed

+1208
-880
lines changed

src/ApiGenerator/RestSpecification/Core/root.html

Lines changed: 418 additions & 351 deletions
Large diffs are not rendered by default.

src/ApiGenerator/RestSpecification/XPack/close_point_in_time.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"close_point_in_time":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time.html",
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html",
55
"description":"Close a point in time"
66
},
77
"stability":"stable",

src/ApiGenerator/RestSpecification/XPack/ml.delete_trained_model.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"ml.delete_trained_model":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-inference.html",
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html",
55
"description":"Deletes an existing trained inference model that is currently not referenced by an ingest pipeline."
66
},
77
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{
11-
"path":"/_ml/inference/{model_id}",
11+
"path":"/_ml/trained_models/{model_id}",
1212
"methods":[
1313
"DELETE"
1414
],

src/ApiGenerator/RestSpecification/XPack/ml.get_trained_models.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"ml.get_trained_models":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference.html",
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html",
55
"description":"Retrieves configuration information for a trained inference model."
66
},
77
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{
11-
"path":"/_ml/inference/{model_id}",
11+
"path":"/_ml/trained_models/{model_id}",
1212
"methods":[
1313
"GET"
1414
],
@@ -20,7 +20,7 @@
2020
}
2121
},
2222
{
23-
"path":"/_ml/inference",
23+
"path":"/_ml/trained_models",
2424
"methods":[
2525
"GET"
2626
]
@@ -39,6 +39,13 @@
3939
"required":false,
4040
"description":"A comma-separate list of fields to optionally include. Valid options are 'definition' and 'total_feature_importance'. Default is none."
4141
},
42+
"include_model_definition":{
43+
"type":"boolean",
44+
"required":false,
45+
"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.",
46+
"default":false,
47+
"deprecated": true
48+
},
4249
"decompress_definition":{
4350
"type":"boolean",
4451
"required":false,

src/ApiGenerator/RestSpecification/XPack/ml.get_trained_models_stats.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"ml.get_trained_models_stats":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-inference-stats.html",
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html",
55
"description":"Retrieves usage information for trained inference models."
66
},
77
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{
11-
"path":"/_ml/inference/{model_id}/_stats",
11+
"path":"/_ml/trained_models/{model_id}/_stats",
1212
"methods":[
1313
"GET"
1414
],
@@ -20,7 +20,7 @@
2020
}
2121
},
2222
{
23-
"path":"/_ml/inference/_stats",
23+
"path":"/_ml/trained_models/_stats",
2424
"methods":[
2525
"GET"
2626
]

src/ApiGenerator/RestSpecification/XPack/ml.put_trained_model.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"ml.put_trained_model":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/put-inference.html",
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models.html",
55
"description":"Creates an inference trained model."
66
},
77
"stability":"experimental",
88
"url":{
99
"paths":[
1010
{
11-
"path":"/_ml/inference/{model_id}",
11+
"path":"/_ml/trained_models/{model_id}",
1212
"methods":[
1313
"PUT"
1414
],

src/ApiGenerator/RestSpecification/XPack/open_point_in_time.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"open_point_in_time":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time.html",
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html",
55
"description":"Open a point in time that can be used in subsequent searches"
66
},
77
"stability":"stable",

src/ApiGenerator/RestSpecification/XPack/root.html

Lines changed: 568 additions & 463 deletions
Large diffs are not rendered by default.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"security.clear_api_key_cache":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-api-key-cache.html",
5+
"description":"Clear a subset or all entries from the API key cache."
6+
},
7+
"stability":"stable",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_security/api_key/{ids}/_clear_cache",
12+
"methods":[
13+
"POST"
14+
],
15+
"parts":{
16+
"ids":{
17+
"type":"list",
18+
"description":"A comma-separated list of IDs of API keys to clear from the cache"
19+
}
20+
}
21+
}
22+
]
23+
},
24+
"params":{}
25+
}
26+
}

src/ApiGenerator/RestSpecification/XPack/security.get_role.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
],
1515
"parts":{
1616
"name":{
17-
"type":"string",
18-
"description":"Role name"
17+
"type":"list",
18+
"description":"A comma-separated list of role names"
1919
}
2020
}
2121
},

0 commit comments

Comments
 (0)