Skip to content

Commit e7f8fec

Browse files
Update rest-api-spec 8.x (#3996)
* Update rest-api-spec * Add allow_partial_results --------- Co-authored-by: pquentin <[email protected]> Co-authored-by: Quentin Pradet <[email protected]>
1 parent b311a96 commit e7f8fec

16 files changed

+108
-17
lines changed

output/openapi/elasticsearch-openapi.json

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

output/schema/schema-serverless.json

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

output/typescript/types.ts

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

specification/_json_spec/esql.async_query.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
"type": "boolean",
3333
"description": "Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section.",
3434
"default": false
35+
},
36+
"allow_partial_results": {
37+
"type": "boolean",
38+
"description": "If `true`, partial results will be returned if there are shard failures, but\nthe query can continue to execute on other clusters and shards.",
39+
"default": false
3540
}
3641
},
3742
"body": {

specification/_json_spec/esql.query.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
"type": "boolean",
3333
"description": "Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section.",
3434
"default": false
35+
},
36+
"allow_partial_results": {
37+
"type": "boolean",
38+
"description": "If `true`, partial results will be returned if there are shard failures, but\nthe query can continue to execute on other clusters and shards.",
39+
"default": false
3540
}
3641
},
3742
"body": {

specification/_json_spec/inference.completion.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/post-inference-api.html",
55
"description": "Perform completion inference"
66
},
7-
"stability": "experimental",
7+
"stability": "stable",
88
"visibility": "public",
99
"headers": {
1010
"accept": ["application/json"],

specification/_json_spec/inference.delete.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-inference-api.html",
55
"description": "Delete an inference endpoint"
66
},
7-
"stability": "experimental",
7+
"stability": "stable",
88
"visibility": "public",
99
"headers": {
1010
"accept": ["application/json"]

specification/_json_spec/inference.get.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-inference-api.html",
55
"description": "Get an inference endpoint"
66
},
7-
"stability": "experimental",
7+
"stability": "stable",
88
"visibility": "public",
99
"headers": {
1010
"accept": ["application/json"]

specification/_json_spec/inference.put.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-inference-api.html",
55
"description": "Configure an inference endpoint for use in the Inference API"
66
},
7-
"stability": "experimental",
7+
"stability": "stable",
88
"visibility": "public",
99
"headers": {
1010
"accept": ["application/json"],

specification/_json_spec/inference.stream_completion.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/post-stream-inference-api.html",
55
"description": "Perform streaming completion inference"
66
},
7-
"stability": "experimental",
7+
"stability": "stable",
88
"visibility": "public",
99
"headers": {
1010
"accept": ["text/event-stream"],

specification/esql/async_query/AsyncQueryRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ import { Duration } from '@_types/Time'
3838
*/
3939
export interface Request extends RequestBase {
4040
query_parameters: {
41+
/**
42+
* If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.
43+
* @server_default false
44+
*/
45+
allow_partial_results?: boolean
4146
/**
4247
* The character to use between values within a CSV row.
4348
* It is valid only for the CSV format.

specification/esql/query/QueryRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ export interface Request extends RequestBase {
5555
* @server_default false
5656
*/
5757
drop_null_columns?: boolean
58+
/**
59+
* If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards.
60+
* @server_default false
61+
*/
62+
allow_partial_results?: boolean
5863
}
5964
/**
6065
* Use the `query` element to start a query. Use `time_zone` to specify an execution time zone and `columnar` to format the answer.

0 commit comments

Comments
 (0)