From d593c963f366faddb211a538cc0ecffde0931782 Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Thu, 6 Aug 2020 15:17:26 +1000 Subject: [PATCH] Use deprecated object to deprecate synced flush API (#57096) Relates: #50835 This commit updates the synced flush REST API spec to deprecate the whole API. --- .../rest-api-spec/api/indices.flush_synced.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush_synced.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush_synced.json index a7b4541c962..134ba93395b 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush_synced.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush_synced.json @@ -12,7 +12,11 @@ "methods":[ "POST", "GET" - ] + ], + "deprecated":{ + "version":"7.6.0", + "description":"Synced flush is deprecated and will be removed in 8.0. Use flush instead." + } }, { "path":"/{index}/_flush/synced", @@ -25,6 +29,10 @@ "type":"list", "description":"A comma-separated list of index names; use `_all` or empty string for all indices" } + }, + "deprecated":{ + "version":"7.6.0", + "description":"Synced flush is deprecated and will be removed in 8.0. Use flush instead." } } ]