Skip to content

Commit 16d4a06

Browse files
Update rest-api-spec 9.0 (#4764)
* Update rest-api-spec * Add settings_filter to cluster.get_component_template --------- Co-authored-by: pquentin <[email protected]> Co-authored-by: Quentin Pradet <[email protected]>
1 parent de4ff89 commit 16d4a06

File tree

9 files changed

+102
-23
lines changed

9 files changed

+102
-23
lines changed

output/openapi/elasticsearch-openapi.json

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

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 26 additions & 0 deletions
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 & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,6 @@
77
],
88
"response": []
99
},
10-
"cluster.get_component_template": {
11-
"request": [
12-
"Request: query parameter 'flat_settings' does not exist in the json spec"
13-
],
14-
"response": []
15-
},
16-
"cluster.put_component_template": {
17-
"request": [
18-
"Request: query parameter 'cause' does not exist in the json spec",
19-
"Request: missing json spec query parameter 'timeout'"
20-
],
21-
"response": []
22-
},
2310
"create": {
2411
"request": [
2512
"Request: query parameter 'if_primary_term' does not exist in the json spec",
@@ -55,12 +42,6 @@
5542
],
5643
"response": []
5744
},
58-
"open_point_in_time": {
59-
"request": [
60-
"Request: query parameter 'max_concurrent_shard_requests' does not exist in the json spec"
61-
],
62-
"response": []
63-
},
6445
"reindex": {
6546
"request": [
6647
"Request: query parameter 'require_alias' does not exist in the json spec",

output/typescript/types.ts

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

specification/_json_spec/cluster.get_component_template.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@
4040
"include_defaults": {
4141
"type": "boolean",
4242
"description": "Return all default configurations for the component template (default: false)"
43+
},
44+
"flat_settings": {
45+
"type": "boolean",
46+
"description": "Return settings in flat format (default: false)"
47+
},
48+
"settings_filter": {
49+
"type": "string",
50+
"description": "Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys"
4351
}
4452
}
4553
}

specification/_json_spec/cluster.put_component_template.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@
3030
"description": "Whether the index template should only be added if new or can also replace an existing one",
3131
"default": false
3232
},
33-
"timeout": {
34-
"type": "time",
35-
"description": "Explicit operation timeout"
33+
"cause": {
34+
"type": "string",
35+
"description": "User defined reason for create the component template",
36+
"default": "api"
3637
},
3738
"master_timeout": {
3839
"type": "time",

specification/_json_spec/open_point_in_time.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
"allow_partial_search_results": {
5252
"type": "boolean",
5353
"description": "Specify whether to tolerate shards missing when creating the point-in-time, or otherwise throw an exception. (default: false)"
54+
},
55+
"max_concurrent_shard_requests": {
56+
"type": "number",
57+
"description": "The number of concurrent shard requests per node executed concurrently when opening this point-in-time. This value should be used to limit the impact of opening the point-in-time on the cluster",
58+
"default": 5
5459
}
5560
},
5661
"body": {

specification/cluster/get_component_template/ClusterGetComponentTemplateRequest.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ export interface Request extends RequestBase {
5555
* @server_default false
5656
*/
5757
flat_settings?: boolean
58+
/**
59+
* Filter out results, for example to filter out sensitive information. Supports wildcards or full settings keys
60+
*/
61+
settings_filter?: string | string[]
5862
/**
5963
* @server_default false
6064
* @availability stack since=8.11.0 stability=stable

0 commit comments

Comments
 (0)