From c7bbbdd15af42558c3c47c22d01e4343904052d3 Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Tue, 20 Apr 2021 22:07:21 +0000 Subject: [PATCH] [codegen] 7.x synchronization --- .../RestSpecification/Core/fleet.global_checkpoints.json | 5 +++++ .../RestSpecification/Core/searchable_snapshots.stats.json | 2 +- .../Api/RequestParameters/RequestParameters.Fleet.cs | 7 +++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/ApiGenerator/RestSpecification/Core/fleet.global_checkpoints.json b/src/ApiGenerator/RestSpecification/Core/fleet.global_checkpoints.json index 4f3ccf01fa4..20c46c2d9f5 100644 --- a/src/ApiGenerator/RestSpecification/Core/fleet.global_checkpoints.json +++ b/src/ApiGenerator/RestSpecification/Core/fleet.global_checkpoints.json @@ -32,6 +32,11 @@ "description":"Whether to wait for the global checkpoint to advance past the specified current checkpoints", "default":"false" }, + "wait_for_index":{ + "type":"boolean", + "description":"Whether to wait for the target index to exist and all primary shards be active", + "default":"false" + }, "checkpoints":{ "type":"list", "description":"Comma separated list of checkpoints", diff --git a/src/ApiGenerator/RestSpecification/Core/searchable_snapshots.stats.json b/src/ApiGenerator/RestSpecification/Core/searchable_snapshots.stats.json index 23c6953ff3b..757483b1e5b 100644 --- a/src/ApiGenerator/RestSpecification/Core/searchable_snapshots.stats.json +++ b/src/ApiGenerator/RestSpecification/Core/searchable_snapshots.stats.json @@ -2,7 +2,7 @@ "searchable_snapshots.stats": { "documentation": { "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html", - "description": "Retrieve various statistics about searchable snapshots." + "description": "Retrieve shard-level statistics about searchable snapshots." }, "stability": "experimental", "visibility":"public", diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Fleet.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Fleet.cs index 745259a2d22..ecdaf84fced 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Fleet.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Fleet.cs @@ -49,5 +49,12 @@ public bool? WaitForAdvance get => Q("wait_for_advance"); set => Q("wait_for_advance", value); } + + ///Whether to wait for the target index to exist and all primary shards be active + public bool? WaitForIndex + { + get => Q("wait_for_index"); + set => Q("wait_for_index", value); + } } } \ No newline at end of file