From 30c51710354e48c0f25b7962cd92ddc87bd1a737 Mon Sep 17 00:00:00 2001 From: Mpdreamz Date: Tue, 20 Apr 2021 12:08:08 +0000 Subject: [PATCH] [codegen] 7.x synchronization --- src/ApiGenerator/RestSpecification/Core/snapshot.get.json | 4 ++++ .../Api/RequestParameters/RequestParameters.Snapshot.cs | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/src/ApiGenerator/RestSpecification/Core/snapshot.get.json b/src/ApiGenerator/RestSpecification/Core/snapshot.get.json index e37a9797996..fd338fe2511 100644 --- a/src/ApiGenerator/RestSpecification/Core/snapshot.get.json +++ b/src/ApiGenerator/RestSpecification/Core/snapshot.get.json @@ -38,6 +38,10 @@ "type":"boolean", "description":"Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrown" }, + "index_details":{ + "type":"boolean", + "description":"Whether to include details of each index in the snapshot, if those details are available. Defaults to false." + }, "verbose":{ "type":"boolean", "description":"Whether to show verbose snapshot info or only show the basic info found in the repository index blob" diff --git a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Snapshot.cs b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Snapshot.cs index 2aa6166e53f..0e574e1a871 100644 --- a/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Snapshot.cs +++ b/src/Elasticsearch.Net/Api/RequestParameters/RequestParameters.Snapshot.cs @@ -149,6 +149,13 @@ public bool? IgnoreUnavailable set => Q("ignore_unavailable", value); } + ///Whether to include details of each index in the snapshot, if those details are available. Defaults to false. + public bool? IndexDetails + { + get => Q("index_details"); + set => Q("index_details", value); + } + ///Explicit operation timeout for connection to master node public TimeSpan MasterTimeout {