HLRC: Convert xpack methods to client side objects (#40705)

This commit fixes a problem with BWC that was brought up in #40511. A
newer version of the code was emitting a new value for an enum to an
older version, and the older version could not handle that. It caused
the response to error. The MainResponse is now relaxed, and will accept
whatever values the server expose, and holds most of them as Strings
instead of complex objects.

Fixes #40511
This commit is contained in:
Michael Basnight 2019-04-04 09:49:12 -05:00 committed by GitHub
parent 0897a2bfb2
commit 86e4b04301
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 361 additions and 38 deletions

View file

@ -20,8 +20,3 @@ The returned `MainResponse` provides various kinds of information about the clus
--------------------------------------------------
include-tagged::{doc-tests}/MiscellaneousDocumentationIT.java[main-response]
--------------------------------------------------
<1> Retrieve the name of the cluster as a `ClusterName`
<2> Retrieve the unique identifier of the cluster
<3> Retrieve the name of the node the request has been executed on
<4> Retrieve the version of the node the request has been executed on
<5> Retrieve the build information of the node the request has been executed on