HLRC: add support for get license basic/trial status API (#33176)

Relates to #29827
This commit is contained in:
Luca Cavanna 2018-11-13 15:52:59 +01:00 committed by GitHub
parent a76ac5729d
commit 0b7d18d733
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 448 additions and 47 deletions

View file

@ -0,0 +1,23 @@
[[java-rest-high-get-basic-status]]
=== Get Basic Status
[[java-rest-high-get-basic-status-execution]]
==== Execution
The basic status of the license can be retrieved as follows:
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests}/LicensingDocumentationIT.java[get-basic-status-execute]
--------------------------------------------------
[[java-rest-high-get-basic-status-response]]
==== Response
The returned `GetTrialStatusResponse` holds only a `boolean` flag:
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests}/LicensingDocumentationIT.java[get-basic-status-response]
--------------------------------------------------
<1> Whether the license is eligible to start basic or not

View file

@ -0,0 +1,23 @@
[[java-rest-high-get-trial-status]]
=== Get Trial Status
[[java-rest-high-get-trial-status-execution]]
==== Execution
The trial status of the license can be retrieved as follows:
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests}/LicensingDocumentationIT.java[get-trial-status-execute]
--------------------------------------------------
[[java-rest-high-get-trial-status-response]]
==== Response
The returned `GetTrialStatusResponse` holds only a `boolean` flag:
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests}/LicensingDocumentationIT.java[get-trial-status-response]
--------------------------------------------------
<1> Whether the license is eligible to start trial or not

View file

@ -220,12 +220,16 @@ The Java High Level REST Client supports the following Licensing APIs:
* <<java-rest-high-delete-license>>
* <<java-rest-high-start-trial>>
* <<java-rest-high-start-basic>>
* <<java-rest-high-get-trial-status>>
* <<java-rest-high-get-basic-status>>
include::licensing/put-license.asciidoc[]
include::licensing/get-license.asciidoc[]
include::licensing/delete-license.asciidoc[]
include::licensing/start-trial.asciidoc[]
include::licensing/start-basic.asciidoc[]
include::licensing/get-trial-status.asciidoc[]
include::licensing/get-basic-status.asciidoc[]
== Machine Learning APIs
:upid: {mainid}-x-pack-ml