Skip to content

Commit 4a82f43

Browse files
Update rest-api-spec main (#5030)
* Update rest-api-spec * Use new merge_type wording --------- Co-authored-by: pquentin <[email protected]> Co-authored-by: Quentin Pradet <[email protected]>
1 parent 12a57e2 commit 4a82f43

File tree

7 files changed

+68
-12
lines changed

7 files changed

+68
-12
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 28 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_json_spec/indices.get_data_stream_mappings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"description": "Gets a data stream's mappings"
66
},
77
"stability": "stable",
8-
"visibility": "feature_flag",
9-
"feature_flag": "logs_stream",
8+
"visibility": "public",
109
"headers": {
1110
"accept": ["application/json"]
1211
},

specification/_json_spec/indices.put_data_stream_mappings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"description": "Updates a data stream's mappings"
66
},
77
"stability": "stable",
8-
"visibility": "feature_flag",
9-
"feature_flag": "logs_stream",
8+
"visibility": "public",
109
"headers": {
1110
"accept": ["application/json"]
1211
},

specification/_json_spec/simulate.ingest.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
},
3636
"merge_type": {
3737
"type": "string",
38-
"description": "The method to be used when merging mapping_additions existing mappings"
38+
"description": "The mapping merge type if mapping overrides are being provided in mapping_addition. The allowed values are one of index or template. The index option merges mappings the way they would be merged into an existing index. The template option merges mappings the way they would be merged into a template.",
39+
"default": "index"
3940
}
4041
},
4142
"body": {
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"transform.set_upgrade_mode": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/transform-set-upgrade-mode.html",
5+
"description": "Sets a cluster wide upgrade_mode setting that prepares transform indices for an upgrade."
6+
},
7+
"stability": "stable",
8+
"visibility": "public",
9+
"headers": {
10+
"accept": ["application/json"]
11+
},
12+
"url": {
13+
"paths": [
14+
{
15+
"path": "/_transform/set_upgrade_mode",
16+
"methods": ["POST"]
17+
}
18+
]
19+
},
20+
"params": {
21+
"enabled": {
22+
"type": "boolean",
23+
"description": "Whether to enable upgrade_mode Transform setting or not. Defaults to false."
24+
},
25+
"timeout": {
26+
"type": "time",
27+
"description": "Controls the time to wait before action times out. Defaults to 30 seconds"
28+
}
29+
}
30+
}
31+
}

specification/simulate/ingest/SimulateIngestRequest.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,10 @@ export interface Request extends RequestBase {
7676
*/
7777
pipeline?: PipelineName
7878
/**
79-
* The method to be used when merging mapping_additions existing mappings. Mappings can be merged in the way mapping changes are merged into an existing index, or in
80-
* the way mapping changes are merged into existing templates. Some changes are allowed to templates that are not allowed to indices. For example,
81-
* a field cannot be changed to an incompatible type in an index, but can in a template.
79+
* The mapping merge type if mapping overrides are being provided in mapping_addition.
80+
* The allowed values are one of index or template.
81+
* The index option merges mappings the way they would be merged into an existing index.
82+
* The template option merges mappings the way they would be merged into a template.
8283
* @server_default index
8384
*/
8485
merge_type?: MergeType

0 commit comments

Comments
 (0)