Skip to content

Commit a699663

Browse files
committed
Update to latest 7.10
1 parent 03d4586 commit a699663

19 files changed

+1041
-25
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"close_point_in_time":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html",
5+
"description":"Close a point in time"
6+
},
7+
"stability":"stable",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_pit",
12+
"methods":[
13+
"DELETE"
14+
]
15+
}
16+
]
17+
},
18+
"params":{},
19+
"body":{
20+
"description": "a point-in-time id to close"
21+
}
22+
}
23+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.x
1+
7.10

api_generator/rest_specs/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
],

api_generator/rest_specs/ml.get_trained_models.json

Lines changed: 10 additions & 4 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
]
@@ -34,11 +34,17 @@
3434
"description":"Whether to ignore if a wildcard expression matches no trained models. (This includes `_all` string or when no trained models have been specified)",
3535
"default":true
3636
},
37+
"include":{
38+
"type":"string",
39+
"required":false,
40+
"description":"A comma-separate list of fields to optionally include. Valid options are 'definition' and 'total_feature_importance'. Default is none."
41+
},
3742
"include_model_definition":{
3843
"type":"boolean",
3944
"required":false,
4045
"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.",
41-
"default":false
46+
"default":false,
47+
"deprecated": true
4248
},
4349
"decompress_definition":{
4450
"type":"boolean",

api_generator/rest_specs/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
]

api_generator/rest_specs/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
],
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"open_point_in_time":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html",
5+
"description":"Open a point in time that can be used in subsequent searches"
6+
},
7+
"stability":"stable",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_pit",
12+
"methods":[
13+
"POST"
14+
]
15+
},
16+
{
17+
"path":"/{index}/_pit",
18+
"methods":[
19+
"POST"
20+
],
21+
"parts":{
22+
"index":{
23+
"type":"list",
24+
"description":"A comma-separated list of index names to open point in time; use `_all` or empty string to perform the operation on all indices"
25+
}
26+
}
27+
}
28+
]
29+
},
30+
"params":{
31+
"preference":{
32+
"type":"string",
33+
"description":"Specify the node or shard the operation should be performed on (default: random)"
34+
},
35+
"routing":{
36+
"type":"string",
37+
"description":"Specific routing value"
38+
},
39+
"ignore_unavailable":{
40+
"type":"boolean",
41+
"description":"Whether specified concrete indices should be ignored when unavailable (missing or closed)"
42+
},
43+
"expand_wildcards":{
44+
"type":"enum",
45+
"options":[
46+
"open",
47+
"closed",
48+
"hidden",
49+
"none",
50+
"all"
51+
],
52+
"default":"open",
53+
"description":"Whether to expand wildcard expression to concrete indices that are open, closed or both."
54+
},
55+
"keep_alive": {
56+
"type": "string",
57+
"description": "Specific the time to live for the point in time"
58+
}
59+
}
60+
}
61+
}

api_generator/rest_specs/searchable_snapshots.clear_cache.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"searchable_snapshots.clear_cache": {
33
"documentation": {
4-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-clear-cache.html",
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html",
55
"description" : "Clear the cache of searchable snapshots."
66
},
77
"stability": "experimental",

api_generator/rest_specs/searchable_snapshots.repository_stats.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"searchable_snapshots.repository_stats": {
33
"documentation": {
4-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-repository-stats.html",
5-
"description": "Retrieve usage statistics about a snapshot repository."
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html",
5+
"description": "DEPRECATED: This API is replaced by the Repositories Metering API."
66
},
77
"stability": "experimental",
88
"url": {

api_generator/rest_specs/searchable_snapshots.stats.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"searchable_snapshots.stats": {
33
"documentation": {
4-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-stats.html",
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html",
55
"description": "Retrieve various statistics about searchable snapshots."
66
},
77
"stability": "experimental",
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+
}

api_generator/rest_specs/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
},

api_generator/rest_specs/security.get_role_mapping.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-Mapping name"
17+
"type":"list",
18+
"description":"A comma-separated list of role-mapping names"
1919
}
2020
}
2121
},
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"security.grant_api_key":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-grant-api-key.html",
5+
"description":"Creates an API key on behalf of another user."
6+
},
7+
"stability":"stable",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_security/api_key/grant",
12+
"methods":[
13+
"POST"
14+
]
15+
}
16+
]
17+
},
18+
"params":{
19+
"refresh":{
20+
"type":"enum",
21+
"options":[
22+
"true",
23+
"false",
24+
"wait_for"
25+
],
26+
"description":"If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."
27+
}
28+
},
29+
"body":{
30+
"description":"The api key request to create an API key",
31+
"required":true
32+
}
33+
}
34+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"snapshot.clone":{
3+
"documentation":{
4+
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html",
5+
"description":"Clones indices from one snapshot into another snapshot in the same repository."
6+
},
7+
"stability":"stable",
8+
"url":{
9+
"paths":[
10+
{
11+
"path":"/_snapshot/{repository}/{snapshot}/_clone/{target_snapshot}",
12+
"methods":[
13+
"PUT"
14+
],
15+
"parts":{
16+
"repository":{
17+
"type":"string",
18+
"description":"A repository name"
19+
},
20+
"snapshot":{
21+
"type":"string",
22+
"description":"The name of the snapshot to clone from"
23+
},
24+
"target_snapshot":{
25+
"type":"string",
26+
"description":"The name of the cloned snapshot to create"
27+
}
28+
}
29+
}
30+
]
31+
},
32+
"params":{
33+
"master_timeout":{
34+
"type":"time",
35+
"description":"Explicit operation timeout for connection to master node"
36+
}
37+
},
38+
"body":{
39+
"description":"The snapshot clone definition",
40+
"required":true
41+
}
42+
}
43+
}

elasticsearch/src/params.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub enum OpType {
120120
Create,
121121
}
122122
#[derive(Debug, PartialEq, Deserialize, Serialize, Clone, Copy)]
123-
#[doc = "If `true` then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` (the default) then do nothing with refreshes."]
123+
#[doc = "If `true` (the default) then refresh the affected shards to make this operation visible to search, if `wait_for` then wait for a refresh to make this operation visible to search, if `false` then do nothing with refreshes."]
124124
pub enum Refresh {
125125
#[serde(rename = "true")]
126126
True,
@@ -200,6 +200,8 @@ pub enum VersionType {
200200
External,
201201
#[serde(rename = "external_gte")]
202202
ExternalGte,
203+
#[serde(rename = "force")]
204+
Force,
203205
}
204206
#[derive(Debug, PartialEq, Deserialize, Serialize, Clone, Copy)]
205207
#[doc = "Wait until all currently queued events with the given priority are processed"]

0 commit comments

Comments
 (0)