From bf5ccf77330f09fb3bbac986f37fca5855bcf189 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 12:53:39 +0400 Subject: [PATCH] Update rest-api-spec main (#2839) --- output/openapi/elasticsearch-openapi.json | 16 ++++++++++++++++ .../elasticsearch-serverless-openapi.json | 16 ++++++++++++++++ output/schema/schema-serverless.json | 15 ++++++++++++++- output/schema/schema.json | 15 ++++++++++++++- output/typescript/types.ts | 1 + .../_json_spec/indices.get_data_stream.json | 4 ++++ .../IndicesGetDataStreamRequest.ts | 5 +++++ 7 files changed, 70 insertions(+), 2 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index 6c42caf2e2..9cab8dd193 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -11360,6 +11360,9 @@ }, { "$ref": "#/components/parameters/indices.get_data_stream#master_timeout" + }, + { + "$ref": "#/components/parameters/indices.get_data_stream#verbose" } ], "responses": { @@ -13163,6 +13166,9 @@ }, { "$ref": "#/components/parameters/indices.get_data_stream#master_timeout" + }, + { + "$ref": "#/components/parameters/indices.get_data_stream#verbose" } ], "responses": { @@ -44784,6 +44790,16 @@ }, "style": "form" }, + "indices.get_data_stream#verbose": { + "in": "query", + "name": "verbose", + "description": "Whether the maximum timestamp for each data stream should be calculated and returned.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "indices.get_field_mapping#fields": { "in": "path", "name": "fields", diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index dcfc670fca..86c390b89d 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -6756,6 +6756,9 @@ }, { "$ref": "#/components/parameters/indices.get_data_stream#master_timeout" + }, + { + "$ref": "#/components/parameters/indices.get_data_stream#verbose" } ], "responses": { @@ -7857,6 +7860,9 @@ }, { "$ref": "#/components/parameters/indices.get_data_stream#master_timeout" + }, + { + "$ref": "#/components/parameters/indices.get_data_stream#verbose" } ], "responses": { @@ -24796,6 +24802,16 @@ }, "style": "form" }, + "indices.get_data_stream#verbose": { + "in": "query", + "name": "verbose", + "description": "Whether the maximum timestamp for each data stream should be calculated and returned.", + "deprecated": false, + "schema": { + "type": "boolean" + }, + "style": "form" + }, "indices.get_index_template#name": { "in": "path", "name": "name", diff --git a/output/schema/schema-serverless.json b/output/schema/schema-serverless.json index b57c0f2116..bee2654c7c 100644 --- a/output/schema/schema-serverless.json +++ b/output/schema/schema-serverless.json @@ -21685,9 +21685,22 @@ "namespace": "_types" } } + }, + { + "description": "Whether the maximum timestamp for each data stream should be calculated and returned.", + "name": "verbose", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "indices/get_data_stream/IndicesGetDataStreamRequest.ts#L24-L60" + "specLocation": "indices/get_data_stream/IndicesGetDataStreamRequest.ts#L24-L65" }, { "body": { diff --git a/output/schema/schema.json b/output/schema/schema.json index cb0e85bd6b..d83d45065f 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -129162,9 +129162,22 @@ "namespace": "_types" } } + }, + { + "description": "Whether the maximum timestamp for each data stream should be calculated and returned.", + "name": "verbose", + "required": false, + "serverDefault": false, + "type": { + "kind": "instance_of", + "type": { + "name": "boolean", + "namespace": "_builtins" + } + } } ], - "specLocation": "indices/get_data_stream/IndicesGetDataStreamRequest.ts#L24-L60" + "specLocation": "indices/get_data_stream/IndicesGetDataStreamRequest.ts#L24-L65" }, { "kind": "response", diff --git a/output/typescript/types.ts b/output/typescript/types.ts index b7da48ce63..a102d76e52 100644 --- a/output/typescript/types.ts +++ b/output/typescript/types.ts @@ -11620,6 +11620,7 @@ export interface IndicesGetDataStreamRequest extends RequestBase { expand_wildcards?: ExpandWildcards include_defaults?: boolean master_timeout?: Duration + verbose?: boolean } export interface IndicesGetDataStreamResponse { diff --git a/specification/_json_spec/indices.get_data_stream.json b/specification/_json_spec/indices.get_data_stream.json index fcd7ce6314..94fc4aac36 100644 --- a/specification/_json_spec/indices.get_data_stream.json +++ b/specification/_json_spec/indices.get_data_stream.json @@ -41,6 +41,10 @@ "master_timeout": { "type": "time", "description": "Specify timeout for connection to master" + }, + "verbose": { + "type": "boolean", + "description": "Whether the maximum timestamp for each data stream should be calculated and returned (default: false)" } } } diff --git a/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts b/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts index 66d8eade5c..81ee441515 100644 --- a/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts +++ b/specification/indices/get_data_stream/IndicesGetDataStreamRequest.ts @@ -56,5 +56,10 @@ export interface Request extends RequestBase { * @server_default 30s */ master_timeout?: Duration + /** + * Whether the maximum timestamp for each data stream should be calculated and returned. + * @server_default false + */ + verbose?: boolean } }