From f825fbebc52718fdef5142b17b3b7dd17b9fea14 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Wed, 28 Jul 2021 17:53:23 +0200 Subject: [PATCH 01/27] Move version to a text file to ease backports and automation --- build.gradle.kts | 4 +++- config/version.txt | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 config/version.txt diff --git a/build.gradle.kts b/build.gradle.kts index 6855300ee..d4d8903b9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -19,7 +19,9 @@ allprojects { group = "co.elastic.clients" - version = System.getenv("VERSION") ?: "8.0.0-SNAPSHOT" + // Release manager provides a $VERSION. If not present, it's a local or CI snapshot build. + version = System.getenv("VERSION") ?: + (File(project.rootDir, "config/version.txt").readText().trim() + "-SNAPSHOT") repositories { mavenCentral() diff --git a/config/version.txt b/config/version.txt new file mode 100644 index 000000000..ae9a76b92 --- /dev/null +++ b/config/version.txt @@ -0,0 +1 @@ +8.0.0 From 4e6adcc52064fce83d7666aa7ec75741af002d39 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Wed, 28 Jul 2021 18:04:32 +0200 Subject: [PATCH 02/27] Update readme to use the Elastic snapshots repository --- README.md | 40 +++++++++------------------------------- 1 file changed, 9 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index 898f42831..c634de237 100644 --- a/README.md +++ b/README.md @@ -22,16 +22,11 @@ The `docs/design` folder contains records of the major decisions in the design o ### Installing the library -While it's a work in progress, snapshots of this library are published to a Maven repository hosted on [GitHub Packages](https://github.com/elastic/elasticsearch-java/packages/). To access it [you need a personal access token](https://github.com/settings/tokens) on your GitHub account that has the `read:packages` permission. This token should then be added to `~/.gradle/gradle.properties`: - -```properties -ESJavaGithubPackagesUsername=YOUR_GITHUB_USERNAME -ESJavaGithubPackagesPassword=YOUR_GITHUB_TOKEN -``` +This library requires at least Java 8. Along with this library, you also need a JSON/object mapping library. `elasticsearch-java` has built-in support for [Jackson](https://github.com/FasterXML/jackson) and [JSON-B](http://json-b.net/) implementations such as [Eclipse Yasson](https://github.com/eclipse-ee4j/yasson). -This library requires at least Java 8. +While it's a work in progress, snapshots of this library are published to Elastic's snapshot repository. Snapshots are currently available for the upcoming version 7.15.0, built from the `7.x` branch. Gradle project (Groovy flavor) setup using Jackson: @@ -39,32 +34,17 @@ Gradle project (Groovy flavor) setup using Jackson: repositories { mavenCentral() maven { - name = "ESJavaGithubPackages" - url = uri("https://maven.pkg.github.com/elastic/elasticsearch-java") - credentials(PasswordCredentials) + name = "Elastic-Snapshots" + url = uri("https://snapshots.elastic.co/maven") } } dependencies { - implementation 'co.elastic.clients:elasticsearch-java:8.0.0-SNAPSHOT' + implementation 'co.elastic.clients:elasticsearch-java:7.15.0-SNAPSHOT' implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3' } ``` -If you are using Maven, you need to add the credentials in your `~/.m2/settings.xml`: - -```xml - - - - ESJavaGithubPackages - YOUR_GITHUB_USERNAME - YOUR_GITHUB_TOKEN - - - -``` - In the `pom.xml` for your project add the following repository definition and dependencies: ```xml @@ -72,8 +52,8 @@ In the `pom.xml` for your project add the following repository definition and de - ESJavaGithubPackages - https://maven.pkg.github.com/elastic/elasticsearch-java + Elastic-Snapshots + https://snapshots.elastic.co/maven true @@ -84,7 +64,7 @@ In the `pom.xml` for your project add the following repository definition and de co.elastic.clients elasticsearch-java - 8.0.0-SNAPSHOT + 7.15.0-SNAPSHOT com.fasterxml.jackson.core @@ -125,9 +105,7 @@ if (search.hits().hits().isEmpty()) { ## Compatibility -The `main` branch targets the upcoming Elasticsearch 8.0. Support is still incomplete as the API code is generated from the [Elasticsearch Specification](https://github.com/elastic/elasticsearch-specification) that is also still a work in progress. - -As the work on the specification comes to completion, an additional `7.x` branch will provide support for the corresponding versions of Elasticsearch. +The `main` branch targets the next major release (8.0) and the `7.x` branch targets the next minor release. Support is still incomplete as the API code is generated from the [Elasticsearch Specification](https://github.com/elastic/elasticsearch-specification) that is also still a work in progress. ## Current status From c7a1eeea6e45dbe173664dd0d57d05ad3455d89b Mon Sep 17 00:00:00 2001 From: Chris Koehnke Date: Thu, 5 Aug 2021 09:27:23 -0400 Subject: [PATCH 03/27] Copy config into ci docker image Copy the config directory into the docker image used by CI. Without this the build command used by the unified build process fails. ``` env DEPENDENCIES_REPORTS_DIR=$PWD \ DEPENDENCIES_REPORT=dependencies-report.csv \ .ci/make.sh assemble 8.0.0-SNAPSHOT ``` --- .ci/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/.ci/Dockerfile b/.ci/Dockerfile index 9ec81b90b..1fcb0eeff 100644 --- a/.ci/Dockerfile +++ b/.ci/Dockerfile @@ -34,6 +34,7 @@ COPY LICENSE.txt NOTICE.txt ./ # Prefetch dependencies COPY build.gradle.kts settings.gradle.kts ./ COPY buildSrc ./buildSrc/ +COPY config ./config/ COPY java-client/build.gradle.kts ./java-client/ RUN ./gradlew resolveDependencies From c4fea267ef00026c05ca8341158291b09eeaefb9 Mon Sep 17 00:00:00 2001 From: philkra Date: Wed, 18 Aug 2021 11:39:47 +0200 Subject: [PATCH 04/27] Amend compatibility matrix --- README.md | 10 ++++++---- docs/guide/.keep | 0 2 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 docs/guide/.keep diff --git a/README.md b/README.md index c634de237..bcfd92bbc 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ In the `pom.xml` for your project add the following repository definition and de ```xml - + Elastic-Snapshots @@ -59,7 +59,7 @@ In the `pom.xml` for your project add the following repository definition and de - + co.elastic.clients @@ -72,7 +72,7 @@ In the `pom.xml` for your project add the following repository definition and de 2.12.3 - + ``` @@ -107,10 +107,12 @@ if (search.hits().hits().isEmpty()) { The `main` branch targets the next major release (8.0) and the `7.x` branch targets the next minor release. Support is still incomplete as the API code is generated from the [Elasticsearch Specification](https://github.com/elastic/elasticsearch-specification) that is also still a work in progress. +The Elasticsearch Java client is forward compatible; meaning that the client supports communicating with greater minor versions of Elasticsearch. Elastic language clients are also backwards compatible with lesser supported minor Elasticsearch versions. + ## Current status While not complete, this library is already fairly usable. What's missing falls in two main categories, related to the [Elasticsearch specification](https://github.com/elastic/elasticsearch-specification): -* incomplete support for some data types used in specification (e.g. unions). Until they have been implemented in the code generator, they are represented as raw `JsonValue` objects. +* incomplete support for some data types used in specification (e.g. unions). Until they have been implemented in the code generator, they are represented as raw `JsonValue` objects. * incomplete APIs: as the API specification is still incomplete, so are their implementations in this library since their code is entirely generated from the spec. ## Contributing diff --git a/docs/guide/.keep b/docs/guide/.keep new file mode 100644 index 000000000..e69de29bb From 085350f8f9beb8062749d143437b333817a9b6d8 Mon Sep 17 00:00:00 2001 From: philkra Date: Wed, 18 Aug 2021 11:48:31 +0200 Subject: [PATCH 05/27] remove obsolete file --- docs/guide/.keep | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 docs/guide/.keep diff --git a/docs/guide/.keep b/docs/guide/.keep deleted file mode 100644 index e69de29bb..000000000 From 499518e6c950f00151487a426f62de2b79c539e0 Mon Sep 17 00:00:00 2001 From: Carl Dea Date: Mon, 30 Aug 2021 13:37:28 -0400 Subject: [PATCH 06/27] Using Temurin Builds of OpenJDK in GH Actions Signed-off-by: Carl Dea --- .github/workflows/checkstyle.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/checkstyle.yml b/.github/workflows/checkstyle.yml index 9af5602ef..89c3972f4 100644 --- a/.github/workflows/checkstyle.yml +++ b/.github/workflows/checkstyle.yml @@ -4,14 +4,17 @@ on: [pull_request] jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + java-version: [ 11 ] steps: - uses: actions/checkout@v2 - - name: Set up JDK 11 + - name: Set up JDK ${{ matrix.java-version }} uses: actions/setup-java@v2 with: - java-version: '11' - distribution: 'adopt' + java-version: ${{ matrix.java-version }} + distribution: 'temurin' - name: Check style and license headers run: | From c9a499a2d1150fff8af6909fb17293d9e4a70016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Fri, 10 Sep 2021 13:32:15 +0200 Subject: [PATCH 07/27] [DOCS] Adds Introduction and Installation section to Java client docs. --- docs/index.asciidoc | 7 +++ docs/installation.asciidoc | 89 ++++++++++++++++++++++++++++++++++++++ docs/introduction.asciidoc | 12 +++++ 3 files changed, 108 insertions(+) create mode 100644 docs/index.asciidoc create mode 100644 docs/installation.asciidoc create mode 100644 docs/introduction.asciidoc diff --git a/docs/index.asciidoc b/docs/index.asciidoc new file mode 100644 index 000000000..30ee61714 --- /dev/null +++ b/docs/index.asciidoc @@ -0,0 +1,7 @@ += Elasticsearch Java High-level client + +:branch: master +include::{asciidoc-dir}/../../shared/attributes.asciidoc[] + +include::introduction.asciidoc[] +include::installation.asciidoc[] \ No newline at end of file diff --git a/docs/installation.asciidoc b/docs/installation.asciidoc new file mode 100644 index 000000000..a7f361ba1 --- /dev/null +++ b/docs/installation.asciidoc @@ -0,0 +1,89 @@ +[[installation]] +== Installation + +This page guides you through the installation process of the client. + +Requirements: + +* Java 8 or later. The library provides high-level type-safe classes + and methods for all {es} APIs. It sits on top of the + https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-low.htm8l[Low Level Rest Client] + that manages all http communications. + +* The JSON implementation used by the Java client is pluggable and you must add + a JSON object mapping library as a dependency to your project. It has support + for https://github.com/FasterXML/jackson[Jackson] or a + http://json-b.net/[JSON-B] library like + https://github.com/eclipse-ee4j/yasson[Eclipse Yasson]. + + +The GA releases are hosted on Maven Central. Snapshot versions are hosted on +https://snapshots.elastic.co/maven/[Elastic's Maven snapshot repository]. + + +[discrete] +[[gradle]] +=== Installation in a Gradle project by using Jackson + +``` +repositories { + mavenCentral() + maven { + name = "Elastic-Snapshots" + url = uri("https://snapshots.elastic.co/maven") + } +} + +dependencies { + implementation 'co.elastic.clients:elasticsearch-java:7.15.0-SNAPSHOT' + implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3' +} +``` + +[discrete] +[[maven]] +=== Installation in a Maven project by using Jackson + +In the `pom.xml` of your project, add the following repository definition and +dependencies: + +``` + + + + + Elastic-Snapshots + https://snapshots.elastic.co/maven + + true + + + + + + + co.elastic.clients + elasticsearch-java + 7.15.0-SNAPSHOT + + + com.fasterxml.jackson.core + jackson-databind + 2.12.3 + + + + +``` + +[discrete] +[[compatibility]] +=== Compatibility + +The `main` branch targets the next major release (8.0), the `7.x` branch targets +the next minor release. Support is still incomplete as the API code is generated +from the {es} Specification that is also still a work in progress. + +The {es} Java client is forward compatible; meaning that the client supports +communicating with greater minor versions of {es}. Elastic language clients are +also backwards compatible with lesser supported minor {es} versions. \ No newline at end of file diff --git a/docs/introduction.asciidoc b/docs/introduction.asciidoc new file mode 100644 index 000000000..a8a879f61 --- /dev/null +++ b/docs/introduction.asciidoc @@ -0,0 +1,12 @@ +[[introduction]] +== Introduction + +experimental[] + +This is the official Java high-level REST client for {es}. It works on the top +of the Java low-level REST client. The client provides strongly typed requests +and responses for all {es} APIs. It delegates protocol handling to an http +client such as the +https://www.elastic.co/guide/en/elasticsearch/client/java-rest/master/java-rest-low.html[{es} Low Level REST client] +that takes care of all transport-level concerns. This page gives a quick +overview about the features of the client. \ No newline at end of file From 57eaaa03a9987b8c18edcfc539b465d1444467b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Fri, 10 Sep 2021 13:40:04 +0200 Subject: [PATCH 08/27] [DOCS] Adds connecting section. --- docs/connecting.asciidoc | 21 +++++++++++++++++++++ docs/index.asciidoc | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 docs/connecting.asciidoc diff --git a/docs/connecting.asciidoc b/docs/connecting.asciidoc new file mode 100644 index 000000000..7272b36e8 --- /dev/null +++ b/docs/connecting.asciidoc @@ -0,0 +1,21 @@ +[[connecting]] +== Connecting + +The code snippet below shows how to initialize a low level REST client and the +Jackson object mapper to configure an ElasticsearchClient: + +``` +// Create the low-level client +RestClient restClient = RestClient.builder(new HttpHost("localhost", 9200)).build(); + +// Create the transport that provides JSON and http services to API clients +Transport transport = new RestClientTransport(restClient, new JacksonJsonpMapper()); + +// And create our API client +ElasticsearchClient client = new ElasticsearchClient(transport); +``` + +Authentication is managed by the +https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-low.html[low-level Rest Client]. +For further details on configuring authentication, refer to the +https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/_basic_authentication.html[documentation]. \ No newline at end of file diff --git a/docs/index.asciidoc b/docs/index.asciidoc index 30ee61714..15a6a55b0 100644 --- a/docs/index.asciidoc +++ b/docs/index.asciidoc @@ -4,4 +4,5 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[] include::introduction.asciidoc[] -include::installation.asciidoc[] \ No newline at end of file +include::installation.asciidoc[] +include::connecting.asciidoc[] \ No newline at end of file From 6356029f4dc3c218e22405bbf8d3e58baec6df1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Mon, 13 Sep 2021 14:03:19 +0200 Subject: [PATCH 09/27] Apply suggestions from code review --- docs/installation.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.asciidoc b/docs/installation.asciidoc index a7f361ba1..932c6dd1b 100644 --- a/docs/installation.asciidoc +++ b/docs/installation.asciidoc @@ -85,5 +85,5 @@ the next minor release. Support is still incomplete as the API code is generated from the {es} Specification that is also still a work in progress. The {es} Java client is forward compatible; meaning that the client supports -communicating with greater minor versions of {es}. Elastic language clients are +communicating with greater or equal minor versions of {es}. Elastic language clients are also backwards compatible with lesser supported minor {es} versions. \ No newline at end of file From d300c08cc23876e01dccbc7f6db7290f06d2175c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Mon, 13 Sep 2021 14:05:19 +0200 Subject: [PATCH 10/27] Apply suggestions from code review --- docs/installation.asciidoc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/installation.asciidoc b/docs/installation.asciidoc index 932c6dd1b..66819d392 100644 --- a/docs/installation.asciidoc +++ b/docs/installation.asciidoc @@ -85,5 +85,4 @@ the next minor release. Support is still incomplete as the API code is generated from the {es} Specification that is also still a work in progress. The {es} Java client is forward compatible; meaning that the client supports -communicating with greater or equal minor versions of {es}. Elastic language clients are -also backwards compatible with lesser supported minor {es} versions. \ No newline at end of file +communicating with greater or equal minor versions of {es}. \ No newline at end of file From 6569dc655b9b5752fe0d47f2856a95ea341f72dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Mon, 13 Sep 2021 15:11:08 +0200 Subject: [PATCH 11/27] [DOCS] Modifies Compatibility statement. --- docs/installation.asciidoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/installation.asciidoc b/docs/installation.asciidoc index 66819d392..75d8ee91b 100644 --- a/docs/installation.asciidoc +++ b/docs/installation.asciidoc @@ -85,4 +85,6 @@ the next minor release. Support is still incomplete as the API code is generated from the {es} Specification that is also still a work in progress. The {es} Java client is forward compatible; meaning that the client supports -communicating with greater or equal minor versions of {es}. \ No newline at end of file +communicating with greater or equal minor versions of {es}. {es} language +clients are only backwards compatible with default distributions and without +guarantees made. \ No newline at end of file From 8c632639595e744ced85e3b12f94d40d9c45a45a Mon Sep 17 00:00:00 2001 From: lcawl Date: Wed, 15 Sep 2021 14:47:40 -0700 Subject: [PATCH 12/27] [DOCS] Fixes typo --- docs/installation.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation.asciidoc b/docs/installation.asciidoc index 75d8ee91b..6ab6a8076 100644 --- a/docs/installation.asciidoc +++ b/docs/installation.asciidoc @@ -7,7 +7,7 @@ Requirements: * Java 8 or later. The library provides high-level type-safe classes and methods for all {es} APIs. It sits on top of the - https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-low.htm8l[Low Level Rest Client] + https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-low.html[Low Level Rest Client] that manages all http communications. * The JSON implementation used by the Java client is pluggable and you must add From b609460582dff416327a9a78631b11f30249ea2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Istv=C3=A1n=20Zolt=C3=A1n=20Szab=C3=B3?= Date: Thu, 16 Sep 2021 10:53:29 +0200 Subject: [PATCH 13/27] [DOCS] Adds intro text to the index file, changes snippet attributes. --- docs/connecting.asciidoc | 8 ++++++-- docs/index.asciidoc | 12 ++++++++++++ docs/installation.asciidoc | 12 ++++++++---- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/docs/connecting.asciidoc b/docs/connecting.asciidoc index 7272b36e8..9b13247f9 100644 --- a/docs/connecting.asciidoc +++ b/docs/connecting.asciidoc @@ -1,10 +1,14 @@ [[connecting]] == Connecting +experimental[] + The code snippet below shows how to initialize a low level REST client and the Jackson object mapper to configure an ElasticsearchClient: -``` + +["source","java"] +-------------------------------------------------- // Create the low-level client RestClient restClient = RestClient.builder(new HttpHost("localhost", 9200)).build(); @@ -13,7 +17,7 @@ Transport transport = new RestClientTransport(restClient, new JacksonJsonpMapper // And create our API client ElasticsearchClient client = new ElasticsearchClient(transport); -``` +-------------------------------------------------- Authentication is managed by the https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/java-rest-low.html[low-level Rest Client]. diff --git a/docs/index.asciidoc b/docs/index.asciidoc index 15a6a55b0..d3836a594 100644 --- a/docs/index.asciidoc +++ b/docs/index.asciidoc @@ -1,5 +1,17 @@ = Elasticsearch Java High-level client +[partintro] +-- + +The {es} Java High-level REST Client is an experimental Java client for {es}. +It removes all dependencies to the {es} server code base. + +* <> +* <> +* <> + +-- + :branch: master include::{asciidoc-dir}/../../shared/attributes.asciidoc[] diff --git a/docs/installation.asciidoc b/docs/installation.asciidoc index 6ab6a8076..dba119ee0 100644 --- a/docs/installation.asciidoc +++ b/docs/installation.asciidoc @@ -1,6 +1,8 @@ [[installation]] == Installation +experimental[] + This page guides you through the installation process of the client. Requirements: @@ -25,7 +27,8 @@ https://snapshots.elastic.co/maven/[Elastic's Maven snapshot repository]. [[gradle]] === Installation in a Gradle project by using Jackson -``` +["source","groovy",subs="attributes"] +-------------------------------------------------- repositories { mavenCentral() maven { @@ -38,7 +41,7 @@ dependencies { implementation 'co.elastic.clients:elasticsearch-java:7.15.0-SNAPSHOT' implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.3' } -``` +-------------------------------------------------- [discrete] [[maven]] @@ -47,7 +50,8 @@ dependencies { In the `pom.xml` of your project, add the following repository definition and dependencies: -``` +["source","xml",subs="attributes"] +-------------------------------------------------- @@ -74,7 +78,7 @@ dependencies: -``` +-------------------------------------------------- [discrete] [[compatibility]] From 75c6966f438ae2ed092ae2e7497407681a48a628 Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Fri, 3 Sep 2021 17:07:23 +0200 Subject: [PATCH 14/27] Better Javadoc formatting --- .../ElasticsearchAsyncClient.java | 448 +++++++---- .../elasticsearch/ElasticsearchClient.java | 448 +++++++---- .../elasticsearch/_global/BulkRequest.java | 23 +- .../elasticsearch/_global/CreateRequest.java | 5 +- .../_global/ExplainResponse.java | 1 - .../elasticsearch/_global/GetRequest.java | 48 +- .../elasticsearch/_global/GetResponse.java | 5 +- .../_global/GetScriptRequest.java | 4 +- .../_global/GetSourceRequest.java | 12 +- .../_global/GetSourceResponse.java | 5 +- .../elasticsearch/_global/IndexRequest.java | 5 +- .../elasticsearch/_global/MgetResponse.java | 1 - .../elasticsearch/_global/MsearchRequest.java | 56 +- .../_global/MsearchResponse.java | 1 - .../_global/MsearchTemplateRequest.java | 6 +- .../_global/MsearchTemplateResponse.java | 1 - .../_global/RankEvalRequest.java | 26 +- .../_global/RankEvalResponse.java | 8 +- .../ScriptsPainlessExecuteResponse.java | 1 - .../elasticsearch/_global/SearchResponse.java | 1 - .../_global/SearchTemplateRequest.java | 8 +- .../_global/SearchTemplateResponse.java | 1 - .../_global/TermsEnumRequest.java | 42 +- .../_global/TermvectorsRequest.java | 1 - .../elasticsearch/_global/UpdateRequest.java | 2 - .../elasticsearch/_global/UpdateResponse.java | 1 - .../elasticsearch/_global/mget/Hit.java | 1 - .../_global/rank_eval/DocumentRating.java | 12 +- .../_global/rank_eval/RankEvalMetricBase.java | 4 +- .../rank_eval/RankEvalMetricDetail.java | 20 +- ...ankEvalMetricDiscountedCumulativeGain.java | 4 +- .../RankEvalMetricExpectedReciprocalRank.java | 4 +- .../rank_eval/RankEvalMetricPrecision.java | 4 +- .../RankEvalMetricRatingTreshold.java | 8 +- .../rank_eval/RankEvalRequestItem.java | 24 +- .../elasticsearch/_global/search/Hit.java | 1 - .../_global/search/HitsMetadata.java | 1 - .../elasticsearch/_global/search/Suggest.java | 1 - .../_types/AcknowledgedResponseBase.java | 4 +- .../elasticsearch/_types/ErrorCause.java | 10 +- .../elasticsearch/_types/InlineGet.java | 1 - .../elasticsearch/_types/NodeAttributes.java | 20 +- .../elasticsearch/_types/NodeStatistics.java | 12 +- .../ClassificationInferenceOptions.java | 20 +- .../_types/aggregations/ExtendedBounds.java | 1 - .../InferenceConfigContainer.java | 12 +- .../RegressionInferenceOptions.java | 8 +- .../_types/query_dsl/NamedQuery.java | 1 - .../async_search/AsyncSearchAsyncClient.java | 48 +- .../api/async_search/AsyncSearchClient.java | 48 +- .../autoscaling/AutoscalingAsyncClient.java | 48 +- .../api/autoscaling/AutoscalingClient.java | 48 +- .../elasticsearch/api/cat/CatAsyncClient.java | 264 ++++--- .../elasticsearch/api/cat/CatClient.java | 264 ++++--- .../elasticsearch/api/ccr/CcrAsyncClient.java | 150 ++-- .../elasticsearch/api/ccr/CcrClient.java | 150 ++-- .../api/cluster/ClusterAsyncClient.java | 180 +++-- .../api/cluster/ClusterClient.java | 180 +++-- .../DanglingIndicesAsyncClient.java | 36 +- .../DanglingIndicesClient.java | 36 +- .../api/enrich/EnrichAsyncClient.java | 54 +- .../api/enrich/EnrichClient.java | 54 +- .../elasticsearch/api/eql/EqlAsyncClient.java | 48 +- .../elasticsearch/api/eql/EqlClient.java | 48 +- .../api/features/FeaturesAsyncClient.java | 24 +- .../api/features/FeaturesClient.java | 24 +- .../api/graph/GraphAsyncClient.java | 12 +- .../elasticsearch/api/graph/GraphClient.java | 12 +- .../elasticsearch/api/ilm/IlmAsyncClient.java | 114 ++- .../elasticsearch/api/ilm/IlmClient.java | 114 ++- .../api/indices/IndicesAsyncClient.java | 660 ++++++++++------ .../api/indices/IndicesClient.java | 660 ++++++++++------ .../api/ingest/IngestAsyncClient.java | 60 +- .../api/ingest/IngestClient.java | 60 +- .../api/license/LicenseAsyncClient.java | 66 +- .../api/license/LicenseClient.java | 66 +- .../api/logstash/LogstashAsyncClient.java | 36 +- .../api/logstash/LogstashClient.java | 36 +- .../api/migration/MigrationAsyncClient.java | 12 +- .../api/migration/MigrationClient.java | 12 +- .../elasticsearch/api/ml/MlAsyncClient.java | 738 ++++++++++++------ .../elasticsearch/api/ml/MlClient.java | 738 ++++++++++++------ .../api/monitoring/MonitoringAsyncClient.java | 12 +- .../api/monitoring/MonitoringClient.java | 12 +- .../api/nodes/NodesAsyncClient.java | 60 +- .../elasticsearch/api/nodes/NodesClient.java | 60 +- .../api/rollup/RollupAsyncClient.java | 108 ++- .../api/rollup/RollupClient.java | 108 ++- .../SearchableSnapshotsAsyncClient.java | 48 +- .../SearchableSnapshotsClient.java | 48 +- .../api/security/SecurityAsyncClient.java | 396 ++++++---- .../api/security/SecurityClient.java | 396 ++++++---- .../api/shutdown/ShutdownAsyncClient.java | 36 +- .../api/shutdown/ShutdownClient.java | 36 +- .../elasticsearch/api/slm/SlmAsyncClient.java | 78 +- .../elasticsearch/api/slm/SlmClient.java | 78 +- .../api/snapshot/SnapshotAsyncClient.java | 132 ++-- .../api/snapshot/SnapshotClient.java | 132 ++-- .../elasticsearch/api/sql/SqlAsyncClient.java | 36 +- .../elasticsearch/api/sql/SqlClient.java | 36 +- .../elasticsearch/api/ssl/SslAsyncClient.java | 6 +- .../elasticsearch/api/ssl/SslClient.java | 6 +- .../api/tasks/TasksAsyncClient.java | 36 +- .../elasticsearch/api/tasks/TasksClient.java | 36 +- .../TextStructureAsyncClient.java | 12 +- .../text_structure/TextStructureClient.java | 12 +- .../api/transform/TransformAsyncClient.java | 96 ++- .../api/transform/TransformClient.java | 96 ++- .../api/watcher/WatcherAsyncClient.java | 120 ++- .../api/watcher/WatcherClient.java | 120 ++- .../api/xpack/XpackAsyncClient.java | 24 +- .../elasticsearch/api/xpack/XpackClient.java | 24 +- .../async_search/AsyncSearch.java | 1 - .../AsyncSearchDocumentResponseBase.java | 1 - .../async_search/GetResponse.java | 1 - .../async_search/StatusResponse.java | 1 - .../async_search/SubmitResponse.java | 1 - .../autoscaling/PolicyDeleteRequest.java | 4 +- .../autoscaling/PolicyGetRequest.java | 4 +- .../autoscaling/PolicyPutRequest.java | 4 +- .../elasticsearch/cat/AliasesResponse.java | 6 +- .../elasticsearch/cat/AllocationResponse.java | 6 +- .../elasticsearch/cat/CountResponse.java | 6 +- .../cat/DataFrameAnalyticsResponse.java | 6 +- .../elasticsearch/cat/DatafeedsResponse.java | 6 +- .../elasticsearch/cat/FielddataResponse.java | 6 +- .../elasticsearch/cat/HealthResponse.java | 6 +- .../elasticsearch/cat/HelpResponse.java | 6 +- .../elasticsearch/cat/IndicesResponse.java | 6 +- .../elasticsearch/cat/JobsResponse.java | 6 +- .../elasticsearch/cat/MasterResponse.java | 6 +- .../cat/NodeAttributesResponse.java | 6 +- .../elasticsearch/cat/NodesResponse.java | 6 +- .../cat/PendingTasksResponse.java | 6 +- .../elasticsearch/cat/PluginsResponse.java | 6 +- .../elasticsearch/cat/RecoveryResponse.java | 6 +- .../cat/RepositoriesResponse.java | 6 +- .../elasticsearch/cat/SegmentsResponse.java | 6 +- .../elasticsearch/cat/ShardsResponse.java | 6 +- .../elasticsearch/cat/SnapshotsResponse.java | 6 +- .../elasticsearch/cat/TasksResponse.java | 6 +- .../elasticsearch/cat/TemplatesResponse.java | 6 +- .../elasticsearch/cat/ThreadPoolResponse.java | 6 +- .../cat/TrainedModelsResponse.java | 6 +- .../elasticsearch/cat/TransformsResponse.java | 6 +- .../cat/aliases/AliasesRecord.java | 24 +- .../cat/allocation/AllocationRecord.java | 36 +- .../elasticsearch/cat/count/CountRecord.java | 12 +- .../DataFrameAnalyticsRecord.java | 64 +- .../cat/datafeeds/DatafeedsRecord.java | 48 +- .../cat/fielddata/FielddataRecord.java | 24 +- .../cat/health/HealthRecord.java | 56 +- .../cat/indices/IndicesRecord.java | 564 ++++++------- .../elasticsearch/cat/jobs/JobsRecord.java | 240 +++--- .../cat/master/MasterRecord.java | 16 +- .../node_attributes/NodeAttributesRecord.java | 32 +- .../elasticsearch/cat/nodes/NodesRecord.java | 384 ++++----- .../cat/pending_tasks/PendingTasksRecord.java | 16 +- .../cat/plugins/PluginsRecord.java | 24 +- .../cat/recovery/RecoveryRecord.java | 104 +-- .../cat/repositories/RepositoriesRecord.java | 8 +- .../cat/segments/SegmentsRecord.java | 60 +- .../cat/shards/ShardsRecord.java | 304 ++++---- .../cat/snapshots/SnapshotsRecord.java | 52 +- .../elasticsearch/cat/tasks/TasksRecord.java | 64 +- .../cat/templates/TemplatesRecord.java | 20 +- .../cat/thread_pool/ThreadPoolRecord.java | 80 +- .../trained_models/TrainedModelsRecord.java | 68 +- .../cat/transforms/TransformsRecord.java | 132 ++-- .../ccr/GetAutoFollowPatternRequest.java | 4 +- .../cluster/AllocationExplainRequest.java | 24 +- .../ExistsComponentTemplateRequest.java | 4 +- .../elasticsearch/cluster/HealthRequest.java | 46 +- .../elasticsearch/cluster/HealthResponse.java | 52 +- .../elasticsearch/cluster/RerouteRequest.java | 32 +- .../elasticsearch/cluster/StatsRequest.java | 8 +- .../elasticsearch/cluster/StatsResponse.java | 28 +- .../cluster/reroute/Command.java | 30 +- .../reroute/CommandAllocatePrimaryAction.java | 4 +- .../cluster/reroute/CommandMoveAction.java | 8 +- .../cluster/stats/ClusterIndices.java | 58 +- .../cluster/stats/ClusterIndicesShards.java | 18 +- .../stats/ClusterIndicesShardsIndex.java | 18 +- .../cluster/stats/ClusterNodes.java | 58 +- .../dangling_indices/IndexDeleteRequest.java | 4 +- .../dangling_indices/IndexImportRequest.java | 4 +- .../elasticsearch/eql/DeleteRequest.java | 4 +- .../clients/elasticsearch/eql/EqlHits.java | 19 +- .../eql/EqlSearchResponseBase.java | 27 +- .../clients/elasticsearch/eql/GetRequest.java | 12 +- .../elasticsearch/eql/GetResponse.java | 1 - .../elasticsearch/eql/GetStatusRequest.java | 4 +- .../elasticsearch/eql/GetStatusResponse.java | 24 +- .../clients/elasticsearch/eql/HitsEvent.java | 13 +- .../elasticsearch/eql/HitsSequence.java | 13 +- .../elasticsearch/eql/SearchRequest.java | 44 +- .../elasticsearch/eql/SearchResponse.java | 1 - .../indices/ExistsIndexTemplateRequest.java | 8 +- .../indices/GetIndexTemplateRequest.java | 20 +- .../elasticsearch/indices/GetRequest.java | 34 +- .../indices/GetUpgradeRequest.java | 4 +- .../indices/GetUpgradeResponse.java | 12 +- .../elasticsearch/indices/IndexSettings.java | 16 +- .../indices/PutIndexTemplateRequest.java | 4 +- .../indices/PutSettingsRequest.java | 6 +- .../indices/SimulateIndexTemplateRequest.java | 10 +- .../indices/SimulateTemplateRequest.java | 18 +- .../elasticsearch/indices/UpgradeRequest.java | 4 +- .../indices/stats/IndexStats.java | 96 +-- .../ingest/GeoIpStatsResponse.java | 10 +- .../geo_ip_stats/GeoIpDownloadStatistics.java | 20 +- .../geo_ip_stats/GeoIpNodeDatabaseName.java | 4 +- .../geo_ip_stats/GeoIpNodeDatabases.java | 12 +- .../logstash/PipelineDeleteRequest.java | 4 +- .../logstash/PipelineGetRequest.java | 4 +- .../logstash/PipelinePutRequest.java | 4 +- .../migration/DeprecationInfoRequest.java | 4 +- .../deprecation_info/Deprecation.java | 4 +- .../elasticsearch/ml/AnalysisMemoryLimit.java | 4 +- .../elasticsearch/ml/BucketInfluencer.java | 40 +- .../elasticsearch/ml/CalendarEvent.java | 12 +- .../clients/elasticsearch/ml/Category.java | 48 +- ...ysisFeatureProcessorFrequencyEncoding.java | 8 +- ...AnalysisFeatureProcessorMultiEncoding.java | 6 +- ...AnalysisFeatureProcessorNGramEncoding.java | 26 +- ...nalysisFeatureProcessorOneHotEncoding.java | 8 +- ...sisFeatureProcessorTargetMeanEncoding.java | 16 +- .../elasticsearch/ml/DataframeAnalytics.java | 42 +- .../ml/DataframeAnalyticsDestination.java | 8 +- .../ml/DataframeAnalyticsFieldSelection.java | 26 +- .../DataframeAnalyticsMemoryEstimation.java | 8 +- .../ml/DataframeAnalyticsSource.java | 22 +- .../ml/DataframeAnalyticsStatsDataCounts.java | 12 +- ...ataframeAnalyticsStatsHyperparameters.java | 4 +- .../DataframeAnalyticsStatsMemoryUsage.java | 16 +- .../ml/DataframeAnalyticsStatsProgress.java | 8 +- .../ml/DataframeEvaluationClassification.java | 26 +- ...aframeEvaluationClassificationMetrics.java | 8 +- ...EvaluationClassificationMetricsAucRoc.java | 20 +- .../ml/DataframeEvaluationMetrics.java | 20 +- .../DataframeEvaluationOutlierDetection.java | 14 +- ...rameEvaluationOutlierDetectionMetrics.java | 4 +- .../ml/DataframeEvaluationRegression.java | 14 +- .../DataframeEvaluationRegressionMetrics.java | 20 +- ...frameEvaluationRegressionMetricsHuber.java | 4 +- ...aframeEvaluationRegressionMetricsMsle.java | 4 +- .../ml/EvaluateDataFrameRequest.java | 16 +- .../ml/ExplainDataFrameAnalyticsRequest.java | 42 +- .../ml/ExplainDataFrameAnalyticsResponse.java | 12 +- .../elasticsearch/ml/GetCalendarsRequest.java | 12 +- .../ml/GetCategoriesRequest.java | 12 +- .../ml/GetDataFrameAnalyticsRequest.java | 16 +- .../ml/GetDataFrameAnalyticsResponse.java | 6 +- .../ml/GetDataFrameAnalyticsStatsRequest.java | 16 +- .../GetDataFrameAnalyticsStatsResponse.java | 6 +- .../ml/GetInfluencersRequest.java | 36 +- .../ml/GetInfluencersResponse.java | 6 +- .../ml/GetModelSnapshotsRequest.java | 24 +- .../ml/GetOverallBucketsRequest.java | 28 +- .../ml/GetOverallBucketsResponse.java | 6 +- .../ml/GetTrainedModelsRequest.java | 52 +- .../ml/GetTrainedModelsResponse.java | 6 +- .../ml/GetTrainedModelsStatsRequest.java | 36 +- .../ml/GetTrainedModelsStatsResponse.java | 10 +- .../elasticsearch/ml/Hyperparameter.java | 20 +- .../elasticsearch/ml/ModelSnapshot.java | 42 +- .../elasticsearch/ml/OverallBucket.java | 26 +- .../ml/PerPartitionCategorization.java | 8 +- .../ml/PostCalendarEventsRequest.java | 10 +- .../ml/PreviewDataFrameAnalyticsRequest.java | 10 +- .../ml/PreviewDataFrameAnalyticsResponse.java | 6 +- .../ml/PreviewDatafeedResponse.java | 1 - .../ml/PutCalendarJobRequest.java | 8 +- .../ml/PutDataFrameAnalyticsRequest.java | 42 +- .../ml/PutTrainedModelAliasRequest.java | 12 +- .../ml/PutTrainedModelRequest.java | 4 +- .../ml/StartDataFrameAnalyticsRequest.java | 4 +- .../ml/StartDataFrameAnalyticsResponse.java | 4 +- .../ml/StopDataFrameAnalyticsRequest.java | 12 +- .../clients/elasticsearch/ml/TimingStats.java | 8 +- .../ml/TotalFeatureImportance.java | 16 +- .../ml/TotalFeatureImportanceClass.java | 10 +- .../ml/TotalFeatureImportanceStatistics.java | 12 +- .../elasticsearch/ml/TrainedModelConfig.java | 60 +- .../ml/TrainedModelConfigInput.java | 6 +- .../ml/TrainedModelConfigMetadata.java | 16 +- .../ml/TrainedModelInferenceStats.java | 20 +- .../elasticsearch/ml/TrainedModelStats.java | 18 +- .../ml/UpdateDataFrameAnalyticsRequest.java | 20 +- .../elasticsearch/ml/UpdateJobRequest.java | 46 +- .../ml/UpgradeJobSnapshotRequest.java | 16 +- .../ml/UpgradeJobSnapshotResponse.java | 8 +- .../ml/ValidateDetectorRequest.java | 6 +- .../elasticsearch/ml/ValidationLoss.java | 10 +- .../ConfusionMatrixTreshold.java | 16 +- .../ml/get_calendars/Calendar.java | 10 +- .../elasticsearch/monitoring/BulkRequest.java | 4 +- .../elasticsearch/nodes/InfoRequest.java | 22 +- .../nodes/NodesResponseBase.java | 6 +- .../elasticsearch/nodes/StatsRequest.java | 54 +- .../elasticsearch/nodes/info/NodeInfo.java | 32 +- .../nodes/info/NodeOperatingSystemInfo.java | 24 +- .../nodes/info/NodeProcessInfo.java | 12 +- .../elasticsearch/rollup/RollupRequest.java | 8 +- .../rollup/RollupSearchResponse.java | 1 - .../RepositoryStatsRequest.java | 4 +- .../searchable_snapshots/StatsRequest.java | 4 +- .../security/CreateApiKeyRequest.java | 16 +- .../security/GetUserPrivilegesRequest.java | 8 +- .../security/GetUserRequest.java | 6 +- .../security/PutPrivilegesRequest.java | 4 +- .../shutdown/DeleteNodeRequest.java | 4 +- .../shutdown/GetNodeRequest.java | 4 +- .../shutdown/PutNodeRequest.java | 4 +- .../elasticsearch/sql/QueryRequest.java | 30 +- .../ssl/GetCertificatesResponse.java | 6 +- .../text_structure/FindStructureRequest.java | 85 +- .../elasticsearch/transform/Latest.java | 10 +- .../transform/PreviewTransformRequest.java | 50 +- .../transform/PreviewTransformResponse.java | 1 - .../transform/PutTransformRequest.java | 8 +- .../transform/RetentionPolicy.java | 8 +- .../elasticsearch/transform/Settings.java | 12 +- .../elasticsearch/transform/TimeSync.java | 8 +- .../transform/UpdateTransformRequest.java | 4 +- 325 files changed, 8398 insertions(+), 5630 deletions(-) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java index 552264b20..22b3436dd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java @@ -288,8 +288,10 @@ public XpackAsyncClient xpack() { /** * Allows to perform multiple index/update/delete operations in a single * request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture bulk(BulkRequest request) throws IOException { @@ -299,12 +301,14 @@ public CompletableFuture bulk(BulkRequest reque /** * Allows to perform multiple index/update/delete operations in a single * request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture bulk( @@ -316,8 +320,10 @@ public final CompletableFuture bulk( /** * Explicitly clears the search context for a scroll. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture clearScroll(ClearScrollRequest request) throws IOException { @@ -326,12 +332,14 @@ public CompletableFuture clearScroll(ClearScrollRequest req /** * Explicitly clears the search context for a scroll. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture clearScroll( @@ -343,8 +351,10 @@ public final CompletableFuture clearScroll( /** * Close a point in time - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture closePointInTime(ClosePointInTimeRequest request) @@ -354,12 +364,14 @@ public CompletableFuture closePointInTime(ClosePointIn /** * Close a point in time - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture closePointInTime( @@ -371,8 +383,10 @@ public final CompletableFuture closePointInTime( /** * Returns number of documents matching a query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture count(CountRequest request) throws IOException { @@ -381,12 +395,14 @@ public CompletableFuture count(CountRequest request) throws IOExc /** * Returns number of documents matching a query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture count(Function> fn) @@ -398,11 +414,13 @@ public final CompletableFuture count(Function * Returns a 409 response when a document with a same ID already exists in the * index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture create(CreateRequest request) throws IOException { @@ -411,15 +429,17 @@ public CompletableFuture create(CreateRequest * Returns a 409 response when a document with a same ID already exists in the * index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture create( @@ -431,8 +451,10 @@ public final CompletableFuture create( /** * Removes a document from the index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture delete(DeleteRequest request) throws IOException { @@ -441,12 +463,14 @@ public CompletableFuture delete(DeleteRequest request) throws IO /** * Removes a document from the index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture delete( @@ -458,8 +482,10 @@ public final CompletableFuture delete( /** * Deletes documents matching the provided query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteByQuery(DeleteByQueryRequest request) throws IOException { @@ -468,12 +494,14 @@ public CompletableFuture deleteByQuery(DeleteByQueryReque /** * Deletes documents matching the provided query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteByQuery( @@ -486,8 +514,10 @@ public final CompletableFuture deleteByQuery( /** * Changes the number of requests per second for a particular Delete By Query * operation. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteByQueryRethrottle( @@ -499,12 +529,14 @@ public CompletableFuture deleteByQueryRethrottl /** * Changes the number of requests per second for a particular Delete By Query * operation. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteByQueryRethrottle( @@ -517,8 +549,10 @@ public final CompletableFuture deleteByQueryRet /** * Deletes a script. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteScript(DeleteScriptRequest request) throws IOException { @@ -527,12 +561,14 @@ public CompletableFuture deleteScript(DeleteScriptRequest /** * Deletes a script. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteScript( @@ -544,8 +580,10 @@ public final CompletableFuture deleteScript( /** * Returns information about whether a document exists in an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture exists(ExistsRequest request) throws IOException { @@ -554,12 +592,14 @@ public CompletableFuture exists(ExistsRequest request) throws I /** * Returns information about whether a document exists in an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture exists( @@ -571,8 +611,10 @@ public final CompletableFuture exists( /** * Returns information about whether a document source exists in an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture existsSource(ExistsSourceRequest request) throws IOException { @@ -581,12 +623,14 @@ public CompletableFuture existsSource(ExistsSourceRequest reque /** * Returns information about whether a document source exists in an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture existsSource( @@ -598,8 +642,10 @@ public final CompletableFuture existsSource( /** * Returns information about why a specific matches (or doesn't match) a query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> explain(ExplainRequest request, @@ -610,12 +656,14 @@ public CompletableFuture> explain(Explain /** * Returns information about why a specific matches (or doesn't match) a query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> explain( @@ -629,8 +677,10 @@ public final CompletableFuture> explain( /** * Returns the information about the capabilities of fields among multiple * indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture fieldCaps(FieldCapsRequest request) throws IOException { @@ -640,12 +690,14 @@ public CompletableFuture fieldCaps(FieldCapsRequest request) /** * Returns the information about the capabilities of fields among multiple * indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture fieldCaps( @@ -657,8 +709,10 @@ public final CompletableFuture fieldCaps( /** * Returns a document. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> get(GetRequest request, @@ -669,12 +723,14 @@ public CompletableFuture> get(GetRequest requ /** * Returns a document. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> get( @@ -687,8 +743,10 @@ public final CompletableFuture> get( /** * Returns a script. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getScript(GetScriptRequest request) throws IOException { @@ -697,12 +755,14 @@ public CompletableFuture getScript(GetScriptRequest request) /** * Returns a script. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getScript( @@ -714,8 +774,10 @@ public final CompletableFuture getScript( /** * Returns all script contexts. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-contexts.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getScriptContext() throws IOException { return this.transport.performRequestAsync(GetScriptContextRequest.INSTANCE, GetScriptContextRequest.ENDPOINT, @@ -726,8 +788,10 @@ public CompletableFuture getScriptContext() throws IOE /** * Returns available script types, languages and contexts - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getScriptLanguages() throws IOException { return this.transport.performRequestAsync(GetScriptLanguagesRequest.INSTANCE, @@ -738,8 +802,10 @@ public CompletableFuture getScriptLanguages() throws /** * Returns the source of a document. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> getSource(GetSourceRequest request, @@ -750,12 +816,14 @@ public CompletableFuture> getSource(Get /** * Returns the source of a document. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> getSource( @@ -768,8 +836,10 @@ public final CompletableFuture> getSour /** * Creates or updates a document in an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture index(IndexRequest request) throws IOException { @@ -778,12 +848,14 @@ public CompletableFuture index(IndexRequestDocumentation + * on elastic.co */ public final CompletableFuture index( @@ -795,8 +867,10 @@ public final CompletableFuture index( /** * Returns basic information about the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture info() throws IOException { return this.transport.performRequestAsync(InfoRequest.INSTANCE, InfoRequest.ENDPOINT, this.requestOptions); @@ -806,8 +880,10 @@ public CompletableFuture info() throws IOException { /** * Allows to get multiple documents in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> mget(MgetRequest request, @@ -818,12 +894,14 @@ public CompletableFuture> mget(MgetRequest r /** * Allows to get multiple documents in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> mget( @@ -836,8 +914,10 @@ public final CompletableFuture> mget( /** * Allows to execute several search operations in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> msearch(MsearchRequest request, @@ -848,12 +928,14 @@ public CompletableFuture> msearch(Msearch /** * Allows to execute several search operations in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> msearch( @@ -866,8 +948,10 @@ public final CompletableFuture> msearch( /** * Allows to execute several search template operations in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> msearchTemplate( @@ -879,12 +963,14 @@ public CompletableFuture> msearch /** * Allows to execute several search template operations in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> msearchTemplate( @@ -897,8 +983,10 @@ public final CompletableFuture> m /** * Returns multiple termvectors in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture mtermvectors(MtermvectorsRequest request) throws IOException { @@ -907,12 +995,14 @@ public CompletableFuture mtermvectors(MtermvectorsRequest /** * Returns multiple termvectors in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture mtermvectors( @@ -924,8 +1014,10 @@ public final CompletableFuture mtermvectors( /** * Open a point in time that can be used in subsequent searches - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture openPointInTime(OpenPointInTimeRequest request) @@ -935,12 +1027,14 @@ public CompletableFuture openPointInTime(OpenPointInTim /** * Open a point in time that can be used in subsequent searches - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture openPointInTime( @@ -952,8 +1046,10 @@ public final CompletableFuture openPointInTime( /** * Returns whether the cluster is running. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture ping() throws IOException { return this.transport.performRequestAsync(PingRequest.INSTANCE, PingRequest.ENDPOINT, this.requestOptions); @@ -963,8 +1059,10 @@ public CompletableFuture ping() throws IOException { /** * Creates or updates a script. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putScript(PutScriptRequest request) throws IOException { @@ -973,12 +1071,14 @@ public CompletableFuture putScript(PutScriptRequest request) /** * Creates or updates a script. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putScript( @@ -991,8 +1091,10 @@ public final CompletableFuture putScript( /** * Allows to evaluate the quality of ranked search results over a set of typical * search queries - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture rankEval(RankEvalRequest request) throws IOException { @@ -1002,12 +1104,14 @@ public CompletableFuture rankEval(RankEvalRequest request) thr /** * Allows to evaluate the quality of ranked search results over a set of typical * search queries - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture rankEval( @@ -1021,8 +1125,10 @@ public final CompletableFuture rankEval( * Allows to copy documents from one index to another, optionally filtering the * source documents by a query, changing the destination index settings, or * fetching the documents from a remote cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture reindex(ReindexRequest request) throws IOException { @@ -1033,12 +1139,14 @@ public CompletableFuture reindex(ReindexRequest request) throws * Allows to copy documents from one index to another, optionally filtering the * source documents by a query, changing the destination index settings, or * fetching the documents from a remote cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture reindex( @@ -1050,8 +1158,10 @@ public final CompletableFuture reindex( /** * Changes the number of requests per second for a particular Reindex operation. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture reindexRethrottle(ReindexRethrottleRequest request) @@ -1061,12 +1171,14 @@ public CompletableFuture reindexRethrottle(ReindexRet /** * Changes the number of requests per second for a particular Reindex operation. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture reindexRethrottle( @@ -1078,8 +1190,10 @@ public final CompletableFuture reindexRethrottle( /** * Allows an arbitrary script to be executed and a result to be returned - * - * @see "https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> scriptsPainlessExecute( @@ -1091,12 +1205,14 @@ public CompletableFuture> scri /** * Allows an arbitrary script to be executed and a result to be returned - * - * @see "https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> scriptsPainlessExecute( @@ -1109,8 +1225,10 @@ public final CompletableFuture /** * Returns results matching a query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> search(SearchRequest request, @@ -1121,12 +1239,14 @@ public CompletableFuture> search(SearchReq /** * Returns results matching a query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> search( @@ -1140,8 +1260,10 @@ public final CompletableFuture> search( /** * Returns information about the indices and shards that a search request would * be executed against. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture searchShards(SearchShardsRequest request) throws IOException { @@ -1151,12 +1273,14 @@ public CompletableFuture searchShards(SearchShardsRequest /** * Returns information about the indices and shards that a search request would * be executed against. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture searchShards( @@ -1168,8 +1292,10 @@ public final CompletableFuture searchShards( /** * Allows to use the Mustache language to pre-render a search definition. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> searchTemplate( @@ -1181,12 +1307,14 @@ public CompletableFuture> searchTe /** * Allows to use the Mustache language to pre-render a search definition. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> searchTemplate( @@ -1201,8 +1329,10 @@ public final CompletableFuture> se * The terms enum API can be used to discover terms in the index that begin with * the provided string. It is designed for low-latency look-ups used in * auto-complete scenarios. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture termsEnum(TermsEnumRequest request) throws IOException { @@ -1213,12 +1343,14 @@ public CompletableFuture termsEnum(TermsEnumRequest request) * The terms enum API can be used to discover terms in the index that begin with * the provided string. It is designed for low-latency look-ups used in * auto-complete scenarios. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture termsEnum( @@ -1231,8 +1363,10 @@ public final CompletableFuture termsEnum( /** * Returns information and statistics about terms in the fields of a particular * document. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture termvectors(TermvectorsRequest request) @@ -1243,12 +1377,14 @@ public CompletableFuture termvectors(Termvector /** * Returns information and statistics about terms in the fields of a particular * document. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture termvectors( @@ -1261,8 +1397,10 @@ public final CompletableFuture termvectors( /** * Updates a document with a script or partial document. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> update( @@ -1273,12 +1411,14 @@ public CompletableFuture /** * Updates a document with a script or partial document. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> update( @@ -1292,8 +1432,10 @@ public final CompletableFutureDocumentation + * on elastic.co */ public CompletableFuture updateByQuery(UpdateByQueryRequest request) throws IOException { @@ -1303,12 +1445,14 @@ public CompletableFuture updateByQuery(UpdateByQueryReque /** * Performs an update on every document in the index without changing the * source, for example to pick up a mapping change. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture updateByQuery( @@ -1321,8 +1465,10 @@ public final CompletableFuture updateByQuery( /** * Changes the number of requests per second for a particular Update By Query * operation. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture updateByQueryRethrottle( @@ -1334,12 +1480,14 @@ public CompletableFuture updateByQueryRethrottl /** * Changes the number of requests per second for a particular Update By Query * operation. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture updateByQueryRethrottle( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java index 3c00aee4e..8ee6d48f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java @@ -287,8 +287,10 @@ public XpackClient xpack() { /** * Allows to perform multiple index/update/delete operations in a single * request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html" + * + * @see Documentation + * on elastic.co */ public BulkResponse bulk(BulkRequest request) throws IOException { @@ -298,12 +300,14 @@ public BulkResponse bulk(BulkRequest request) throws IOExcept /** * Allows to perform multiple index/update/delete operations in a single * request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final BulkResponse bulk( @@ -315,8 +319,10 @@ public final BulkResponse bulk( /** * Explicitly clears the search context for a scroll. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html" + * + * @see Documentation + * on elastic.co */ public ClearScrollResponse clearScroll(ClearScrollRequest request) throws IOException { @@ -325,12 +331,14 @@ public ClearScrollResponse clearScroll(ClearScrollRequest request) throws IOExce /** * Explicitly clears the search context for a scroll. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-scroll-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ClearScrollResponse clearScroll( @@ -342,8 +350,10 @@ public final ClearScrollResponse clearScroll( /** * Close a point in time - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html" + * + * @see Documentation + * on elastic.co */ public ClosePointInTimeResponse closePointInTime(ClosePointInTimeRequest request) throws IOException { @@ -352,12 +362,14 @@ public ClosePointInTimeResponse closePointInTime(ClosePointInTimeRequest request /** * Close a point in time - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ClosePointInTimeResponse closePointInTime( @@ -369,8 +381,10 @@ public final ClosePointInTimeResponse closePointInTime( /** * Returns number of documents matching a query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html" + * + * @see Documentation + * on elastic.co */ public CountResponse count(CountRequest request) throws IOException { @@ -379,12 +393,14 @@ public CountResponse count(CountRequest request) throws IOException { /** * Returns number of documents matching a query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-count.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CountResponse count(Function> fn) @@ -396,11 +412,13 @@ public final CountResponse count(Function * Returns a 409 response when a document with a same ID already exists in the * index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html" + * + * @see Documentation + * on elastic.co */ public CreateResponse create(CreateRequest request) throws IOException { @@ -409,15 +427,17 @@ public CreateResponse create(CreateRequest request) throw /** * Creates a new document in the index. - * + *

* Returns a 409 response when a document with a same ID already exists in the * index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CreateResponse create( @@ -429,8 +449,10 @@ public final CreateResponse create( /** * Removes a document from the index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html" + * + * @see Documentation + * on elastic.co */ public DeleteResponse delete(DeleteRequest request) throws IOException { @@ -439,12 +461,14 @@ public DeleteResponse delete(DeleteRequest request) throws IOException { /** * Removes a document from the index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteResponse delete(Function> fn) @@ -456,8 +480,10 @@ public final DeleteResponse delete(FunctionDocumentation + * on elastic.co */ public DeleteByQueryResponse deleteByQuery(DeleteByQueryRequest request) throws IOException { @@ -466,12 +492,14 @@ public DeleteByQueryResponse deleteByQuery(DeleteByQueryRequest request) throws /** * Deletes documents matching the provided query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-delete-by-query.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteByQueryResponse deleteByQuery( @@ -484,8 +512,10 @@ public final DeleteByQueryResponse deleteByQuery( /** * Changes the number of requests per second for a particular Delete By Query * operation. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html" + * + * @see Documentation + * on elastic.co */ public DeleteByQueryRethrottleResponse deleteByQueryRethrottle(DeleteByQueryRethrottleRequest request) @@ -496,12 +526,14 @@ public DeleteByQueryRethrottleResponse deleteByQueryRethrottle(DeleteByQueryReth /** * Changes the number of requests per second for a particular Delete By Query * operation. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteByQueryRethrottleResponse deleteByQueryRethrottle( @@ -514,8 +546,10 @@ public final DeleteByQueryRethrottleResponse deleteByQueryRethrottle( /** * Deletes a script. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html" + * + * @see Documentation + * on elastic.co */ public DeleteScriptResponse deleteScript(DeleteScriptRequest request) throws IOException { @@ -524,12 +558,14 @@ public DeleteScriptResponse deleteScript(DeleteScriptRequest request) throws IOE /** * Deletes a script. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteScriptResponse deleteScript( @@ -541,8 +577,10 @@ public final DeleteScriptResponse deleteScript( /** * Returns information about whether a document exists in an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html" + * + * @see Documentation + * on elastic.co */ public BooleanResponse exists(ExistsRequest request) throws IOException { @@ -551,12 +589,14 @@ public BooleanResponse exists(ExistsRequest request) throws IOException { /** * Returns information about whether a document exists in an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final BooleanResponse exists(Function> fn) @@ -568,8 +608,10 @@ public final BooleanResponse exists(FunctionDocumentation + * on elastic.co */ public BooleanResponse existsSource(ExistsSourceRequest request) throws IOException { @@ -578,12 +620,14 @@ public BooleanResponse existsSource(ExistsSourceRequest request) throws IOExcept /** * Returns information about whether a document source exists in an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final BooleanResponse existsSource( @@ -595,8 +639,10 @@ public final BooleanResponse existsSource( /** * Returns information about why a specific matches (or doesn't match) a query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html" + * + * @see Documentation + * on elastic.co */ public ExplainResponse explain(ExplainRequest request, Class tDocumentClass) @@ -607,12 +653,14 @@ public ExplainResponse explain(ExplainRequest request, Cl /** * Returns information about why a specific matches (or doesn't match) a query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-explain.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ExplainResponse explain( @@ -626,8 +674,10 @@ public final ExplainResponse explain( /** * Returns the information about the capabilities of fields among multiple * indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html" + * + * @see Documentation + * on elastic.co */ public FieldCapsResponse fieldCaps(FieldCapsRequest request) throws IOException { @@ -637,12 +687,14 @@ public FieldCapsResponse fieldCaps(FieldCapsRequest request) throws IOException /** * Returns the information about the capabilities of fields among multiple * indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-field-caps.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final FieldCapsResponse fieldCaps(Function> fn) @@ -654,8 +706,10 @@ public final FieldCapsResponse fieldCaps(FunctionDocumentation + * on elastic.co */ public GetResponse get(GetRequest request, Class tDocumentClass) @@ -666,12 +720,14 @@ public GetResponse get(GetRequest request, ClassDocumentation + * on elastic.co */ public final GetResponse get(Function> fn, @@ -683,8 +739,10 @@ public final GetResponse get(FunctionDocumentation + * on elastic.co */ public GetScriptResponse getScript(GetScriptRequest request) throws IOException { @@ -693,12 +751,14 @@ public GetScriptResponse getScript(GetScriptRequest request) throws IOException /** * Returns a script. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetScriptResponse getScript(Function> fn) @@ -710,8 +770,10 @@ public final GetScriptResponse getScript(FunctionDocumentation + * on elastic.co */ public GetScriptContextResponse getScriptContext() throws IOException { return this.transport.performRequest(GetScriptContextRequest.INSTANCE, GetScriptContextRequest.ENDPOINT, @@ -722,8 +784,10 @@ public GetScriptContextResponse getScriptContext() throws IOException { /** * Returns available script types, languages and contexts - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html" + * + * @see Documentation + * on elastic.co */ public GetScriptLanguagesResponse getScriptLanguages() throws IOException { return this.transport.performRequest(GetScriptLanguagesRequest.INSTANCE, GetScriptLanguagesRequest.ENDPOINT, @@ -734,8 +798,10 @@ public GetScriptLanguagesResponse getScriptLanguages() throws IOException { /** * Returns the source of a document. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html" + * + * @see Documentation + * on elastic.co */ public GetSourceResponse getSource(GetSourceRequest request, Class tDocumentClass) @@ -746,12 +812,14 @@ public GetSourceResponse getSource(GetSourceRequest reque /** * Returns the source of a document. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-get.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetSourceResponse getSource( @@ -764,8 +832,10 @@ public final GetSourceResponse getSource( /** * Creates or updates a document in an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html" + * + * @see Documentation + * on elastic.co */ public IndexResponse index(IndexRequest request) throws IOException { @@ -774,12 +844,14 @@ public IndexResponse index(IndexRequest request) throws I /** * Creates or updates a document in an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-index_.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final IndexResponse index( @@ -791,8 +863,10 @@ public final IndexResponse index( /** * Returns basic information about the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" + * + * @see Documentation + * on elastic.co */ public InfoResponse info() throws IOException { return this.transport.performRequest(InfoRequest.INSTANCE, InfoRequest.ENDPOINT, this.requestOptions); @@ -802,8 +876,10 @@ public InfoResponse info() throws IOException { /** * Allows to get multiple documents in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html" + * + * @see Documentation + * on elastic.co */ public MgetResponse mget(MgetRequest request, Class tDocumentClass) @@ -814,12 +890,14 @@ public MgetResponse mget(MgetRequest request, ClassDocumentation + * on elastic.co */ public final MgetResponse mget(Function> fn, @@ -831,8 +909,10 @@ public final MgetResponse mget(FunctionDocumentation + * on elastic.co */ public MsearchResponse msearch(MsearchRequest request, Class tDocumentClass) @@ -843,12 +923,14 @@ public MsearchResponse msearch(MsearchRequest request, Cl /** * Allows to execute several search operations in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-multi-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final MsearchResponse msearch( @@ -861,8 +943,10 @@ public final MsearchResponse msearch( /** * Allows to execute several search template operations in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html" + * + * @see Documentation + * on elastic.co */ public MsearchTemplateResponse msearchTemplate(MsearchTemplateRequest request, @@ -874,12 +958,14 @@ public MsearchTemplateResponse msearchTemplate(MsearchTem /** * Allows to execute several search template operations in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-multi-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final MsearchTemplateResponse msearchTemplate( @@ -892,8 +978,10 @@ public final MsearchTemplateResponse msearchTemplate( /** * Returns multiple termvectors in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html" + * + * @see Documentation + * on elastic.co */ public MtermvectorsResponse mtermvectors(MtermvectorsRequest request) throws IOException { @@ -902,12 +990,14 @@ public MtermvectorsResponse mtermvectors(MtermvectorsRequest request) throws IOE /** * Returns multiple termvectors in one request. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-termvectors.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final MtermvectorsResponse mtermvectors( @@ -919,8 +1009,10 @@ public final MtermvectorsResponse mtermvectors( /** * Open a point in time that can be used in subsequent searches - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html" + * + * @see Documentation + * on elastic.co */ public OpenPointInTimeResponse openPointInTime(OpenPointInTimeRequest request) throws IOException { @@ -929,12 +1021,14 @@ public OpenPointInTimeResponse openPointInTime(OpenPointInTimeRequest request) t /** * Open a point in time that can be used in subsequent searches - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/point-in-time-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final OpenPointInTimeResponse openPointInTime( @@ -946,8 +1040,10 @@ public final OpenPointInTimeResponse openPointInTime( /** * Returns whether the cluster is running. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html" + * + * @see Documentation + * on elastic.co */ public BooleanResponse ping() throws IOException { return this.transport.performRequest(PingRequest.INSTANCE, PingRequest.ENDPOINT, this.requestOptions); @@ -957,8 +1053,10 @@ public BooleanResponse ping() throws IOException { /** * Creates or updates a script. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html" + * + * @see Documentation + * on elastic.co */ public PutScriptResponse putScript(PutScriptRequest request) throws IOException { @@ -967,12 +1065,14 @@ public PutScriptResponse putScript(PutScriptRequest request) throws IOException /** * Creates or updates a script. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutScriptResponse putScript(Function> fn) @@ -985,8 +1085,10 @@ public final PutScriptResponse putScript(FunctionDocumentation + * on elastic.co */ public RankEvalResponse rankEval(RankEvalRequest request) throws IOException { @@ -996,12 +1098,14 @@ public RankEvalResponse rankEval(RankEvalRequest request) throws IOException { /** * Allows to evaluate the quality of ranked search results over a set of typical * search queries - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-rank-eval.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RankEvalResponse rankEval(Function> fn) @@ -1015,8 +1119,10 @@ public final RankEvalResponse rankEval(FunctionDocumentation + * on elastic.co */ public ReindexResponse reindex(ReindexRequest request) throws IOException { @@ -1027,12 +1133,14 @@ public ReindexResponse reindex(ReindexRequest request) throws IOException { * Allows to copy documents from one index to another, optionally filtering the * source documents by a query, changing the destination index settings, or * fetching the documents from a remote cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ReindexResponse reindex(Function> fn) @@ -1044,8 +1152,10 @@ public final ReindexResponse reindex(FunctionDocumentation + * on elastic.co */ public ReindexRethrottleResponse reindexRethrottle(ReindexRethrottleRequest request) throws IOException { @@ -1054,12 +1164,14 @@ public ReindexRethrottleResponse reindexRethrottle(ReindexRethrottleRequest requ /** * Changes the number of requests per second for a particular Reindex operation. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-reindex.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ReindexRethrottleResponse reindexRethrottle( @@ -1071,8 +1183,10 @@ public final ReindexRethrottleResponse reindexRethrottle( /** * Allows an arbitrary script to be executed and a result to be returned - * - * @see "https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html" + * + * @see Documentation + * on elastic.co */ public ScriptsPainlessExecuteResponse scriptsPainlessExecute( @@ -1084,12 +1198,14 @@ public ScriptsPainlessExecuteResponse scriptsPainlessExecute( /** * Allows an arbitrary script to be executed and a result to be returned - * - * @see "https://www.elastic.co/guide/en/elasticsearch/painless/master/painless-execute-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ScriptsPainlessExecuteResponse scriptsPainlessExecute( @@ -1102,8 +1218,10 @@ public final ScriptsPainlessExecuteResponse scriptsPainlessEx /** * Returns results matching a query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html" + * + * @see Documentation + * on elastic.co */ public SearchResponse search(SearchRequest request, Class tDocumentClass) @@ -1114,12 +1232,14 @@ public SearchResponse search(SearchRequest request, Class /** * Returns results matching a query. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final SearchResponse search( @@ -1133,8 +1253,10 @@ public final SearchResponse search( /** * Returns information about the indices and shards that a search request would * be executed against. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html" + * + * @see Documentation + * on elastic.co */ public SearchShardsResponse searchShards(SearchShardsRequest request) throws IOException { @@ -1144,12 +1266,14 @@ public SearchShardsResponse searchShards(SearchShardsRequest request) throws IOE /** * Returns information about the indices and shards that a search request would * be executed against. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-shards.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final SearchShardsResponse searchShards( @@ -1161,8 +1285,10 @@ public final SearchShardsResponse searchShards( /** * Allows to use the Mustache language to pre-render a search definition. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html" + * + * @see Documentation + * on elastic.co */ public SearchTemplateResponse searchTemplate(SearchTemplateRequest request, @@ -1174,12 +1300,14 @@ public SearchTemplateResponse searchTemplate(SearchTempla /** * Allows to use the Mustache language to pre-render a search definition. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final SearchTemplateResponse searchTemplate( @@ -1194,8 +1322,10 @@ public final SearchTemplateResponse searchTemplate( * The terms enum API can be used to discover terms in the index that begin with * the provided string. It is designed for low-latency look-ups used in * auto-complete scenarios. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html" + * + * @see Documentation + * on elastic.co */ public TermsEnumResponse termsEnum(TermsEnumRequest request) throws IOException { @@ -1206,12 +1336,14 @@ public TermsEnumResponse termsEnum(TermsEnumRequest request) throws IOException * The terms enum API can be used to discover terms in the index that begin with * the provided string. It is designed for low-latency look-ups used in * auto-complete scenarios. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/search-terms-enum.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final TermsEnumResponse termsEnum(Function> fn) @@ -1224,8 +1356,10 @@ public final TermsEnumResponse termsEnum(FunctionDocumentation + * on elastic.co */ public TermvectorsResponse termvectors(TermvectorsRequest request) throws IOException { @@ -1235,12 +1369,14 @@ public TermvectorsResponse termvectors(TermvectorsRequest /** * Returns information and statistics about terms in the fields of a particular * document. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-termvectors.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final TermvectorsResponse termvectors( @@ -1253,8 +1389,10 @@ public final TermvectorsResponse termvectors( /** * Updates a document with a script or partial document. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html" + * + * @see Documentation + * on elastic.co */ public UpdateResponse update( @@ -1265,12 +1403,14 @@ public UpdateResponse update( /** * Updates a document with a script or partial document. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UpdateResponse update( @@ -1284,8 +1424,10 @@ public final UpdateResponse update( /** * Performs an update on every document in the index without changing the * source, for example to pick up a mapping change. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html" + * + * @see Documentation + * on elastic.co */ public UpdateByQueryResponse updateByQuery(UpdateByQueryRequest request) throws IOException { @@ -1295,12 +1437,14 @@ public UpdateByQueryResponse updateByQuery(UpdateByQueryRequest request) throws /** * Performs an update on every document in the index without changing the * source, for example to pick up a mapping change. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/docs-update-by-query.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UpdateByQueryResponse updateByQuery( @@ -1313,8 +1457,10 @@ public final UpdateByQueryResponse updateByQuery( /** * Changes the number of requests per second for a particular Update By Query * operation. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html" + * + * @see Documentation + * on elastic.co */ public UpdateByQueryRethrottleResponse updateByQueryRethrottle(UpdateByQueryRethrottleRequest request) @@ -1325,12 +1471,14 @@ public UpdateByQueryRethrottleResponse updateByQueryRethrottle(UpdateByQueryReth /** * Changes the number of requests per second for a particular Update By Query * operation. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-update-by-query.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UpdateByQueryRethrottleResponse updateByQueryRethrottle( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/BulkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/BulkRequest.java index c21001115..5e90fe292 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/BulkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/BulkRequest.java @@ -109,9 +109,9 @@ protected BulkRequest(Builder builder) { } /** - * A comma-separated list of index names to search; use `_all` or empty string - * to perform the operation on all indices - * + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -122,7 +122,7 @@ public String index() { /** * A comma-separated list of document types to search; leave empty to perform * the operation on all types - * + *

* API name: {@code type} */ @Nullable @@ -204,7 +204,7 @@ public Boolean requireAlias() { /** * Request body. - * + *

* API name: {@code value} */ public List value() { @@ -269,9 +269,9 @@ public static class Builder implements ObjectBuilder tSourceSerializer; /** - * A comma-separated list of index names to search; use `_all` or empty string - * to perform the operation on all indices - * + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable String value) { @@ -282,7 +282,7 @@ public Builder index(@Nullable String value) { /** * A comma-separated list of document types to search; leave empty to perform * the operation on all types - * + *

* API name: {@code type} */ public Builder type(@Nullable String value) { @@ -402,7 +402,7 @@ public Builder requireAlias(@Nullable Boolean value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -412,7 +412,7 @@ public Builder value(List value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(JsonValue... value) { @@ -434,7 +434,6 @@ public Builder addValue(JsonValue value) { /** * Serializer for TSource. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tSourceSerializer(@Nullable JsonpSerializer value) { this.tSourceSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/CreateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/CreateRequest.java index 18cd36dba..8711c1d4a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/CreateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/CreateRequest.java @@ -179,7 +179,7 @@ public JsonValue waitForActiveShards() { /** * Request body. - * + *

* API name: {@code value} */ public TDocument value() { @@ -315,7 +315,7 @@ public Builder waitForActiveShards(@Nullable JsonValue value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(TDocument value) { @@ -326,7 +326,6 @@ public Builder value(TDocument value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExplainResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExplainResponse.java index 04fe08e5d..53090e713 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExplainResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExplainResponse.java @@ -252,7 +252,6 @@ public Builder get(Function, ObjectBuild /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetRequest.java index 2c3591d6b..9cc8f5510 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetRequest.java @@ -109,7 +109,7 @@ protected GetRequest(AbstractBuilder builder) { /** * Unique identifier of the document. - * + *

* API name: {@code id} */ public String id() { @@ -118,7 +118,7 @@ public String id() { /** * Name of the index that contains the document. - * + *

* API name: {@code index} */ public String index() { @@ -136,7 +136,7 @@ public String type() { /** * Specifies the node or shard the operation should be performed on. Random by * default. - * + *

* API name: {@code preference} */ @Nullable @@ -146,7 +146,7 @@ public String preference() { /** * Boolean) If true, the request is real-time as opposed to near-real-time. - * + *

* API name: {@code realtime} */ @Nullable @@ -157,7 +157,7 @@ public Boolean realtime() { /** * If true, Elasticsearch refreshes the affected shards to make this operation * visible to search. If false, do nothing with refreshes. - * + *

* API name: {@code refresh} */ @Nullable @@ -167,7 +167,7 @@ public Boolean refresh() { /** * Target the specified primary shard. - * + *

* API name: {@code routing} */ @Nullable @@ -185,7 +185,7 @@ public Boolean sourceEnabled() { /** * A comma-separated list of source fields to exclude in the response. - * + *

* API name: {@code _source_excludes} */ @Nullable @@ -195,7 +195,7 @@ public List sourceExcludes() { /** * A comma-separated list of source fields to include in the response. - * + *

* API name: {@code _source_includes} */ @Nullable @@ -214,7 +214,7 @@ public List storedFields() { /** * Explicit version number for concurrency control. The specified version must * match the current version of the document for the request to succeed. - * + *

* API name: {@code version} */ @Nullable @@ -224,7 +224,7 @@ public Number version() { /** * Specific version type: internal, external, external_gte. - * + *

* API name: {@code version_type} */ @Nullable @@ -235,7 +235,7 @@ public JsonValue versionType() { /** * True or false to return the _source field or not, or a list of fields to * return. - * + *

* API name: {@code _source} */ @Nullable @@ -309,7 +309,7 @@ protected abstract static class AbstractBuilder * API name: {@code id} */ public BuilderT id(String value) { @@ -319,7 +319,7 @@ public BuilderT id(String value) { /** * Name of the index that contains the document. - * + *

* API name: {@code index} */ public BuilderT index(String value) { @@ -338,7 +338,7 @@ public BuilderT type(@Nullable String value) { /** * Specifies the node or shard the operation should be performed on. Random by * default. - * + *

* API name: {@code preference} */ public BuilderT preference(@Nullable String value) { @@ -348,7 +348,7 @@ public BuilderT preference(@Nullable String value) { /** * Boolean) If true, the request is real-time as opposed to near-real-time. - * + *

* API name: {@code realtime} */ public BuilderT realtime(@Nullable Boolean value) { @@ -359,7 +359,7 @@ public BuilderT realtime(@Nullable Boolean value) { /** * If true, Elasticsearch refreshes the affected shards to make this operation * visible to search. If false, do nothing with refreshes. - * + *

* API name: {@code refresh} */ public BuilderT refresh(@Nullable Boolean value) { @@ -369,7 +369,7 @@ public BuilderT refresh(@Nullable Boolean value) { /** * Target the specified primary shard. - * + *

* API name: {@code routing} */ public BuilderT routing(@Nullable JsonValue value) { @@ -387,7 +387,7 @@ public BuilderT sourceEnabled(@Nullable Boolean value) { /** * A comma-separated list of source fields to exclude in the response. - * + *

* API name: {@code _source_excludes} */ public BuilderT sourceExcludes(@Nullable List value) { @@ -397,7 +397,7 @@ public BuilderT sourceExcludes(@Nullable List value) { /** * A comma-separated list of source fields to exclude in the response. - * + *

* API name: {@code _source_excludes} */ public BuilderT sourceExcludes(String... value) { @@ -418,7 +418,7 @@ public BuilderT addSourceExcludes(String value) { /** * A comma-separated list of source fields to include in the response. - * + *

* API name: {@code _source_includes} */ public BuilderT sourceIncludes(@Nullable List value) { @@ -428,7 +428,7 @@ public BuilderT sourceIncludes(@Nullable List value) { /** * A comma-separated list of source fields to include in the response. - * + *

* API name: {@code _source_includes} */ public BuilderT sourceIncludes(String... value) { @@ -477,7 +477,7 @@ public BuilderT addStoredFields(String value) { /** * Explicit version number for concurrency control. The specified version must * match the current version of the document for the request to succeed. - * + *

* API name: {@code version} */ public BuilderT version(@Nullable Number value) { @@ -487,7 +487,7 @@ public BuilderT version(@Nullable Number value) { /** * Specific version type: internal, external, external_gte. - * + *

* API name: {@code version_type} */ public BuilderT versionType(@Nullable JsonValue value) { @@ -498,7 +498,7 @@ public BuilderT versionType(@Nullable JsonValue value) { /** * True or false to return the _source field or not, or a list of fields to * return. - * + *

* API name: {@code _source} */ public BuilderT source(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetResponse.java index 4fb4bbe30..a60d5a3e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetResponse.java @@ -156,7 +156,7 @@ public TDocument source() { /** * deprecated since 7.0.0 - * + *

* API name: {@code _type} */ @Nullable @@ -357,7 +357,7 @@ public Builder source(@Nullable TDocument value) { /** * deprecated since 7.0.0 - * + *

* API name: {@code _type} */ public Builder type(@Nullable String value) { @@ -376,7 +376,6 @@ public Builder version(@Nullable Number value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetScriptRequest.java index 742b53f19..70b11fbae 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetScriptRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetScriptRequest.java @@ -63,7 +63,7 @@ public String id() { /** * Specify timeout for connection to master - * + *

* API name: {@code master_timeout} */ @Nullable @@ -92,7 +92,7 @@ public Builder id(String value) { /** * Specify timeout for connection to master - * + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetSourceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetSourceRequest.java index 6fe1e9aa4..a4be8d7f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetSourceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetSourceRequest.java @@ -57,7 +57,7 @@ protected GetSourceRequest(Builder builder) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code index} */ @Nullable @@ -67,7 +67,7 @@ public String index() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code id} */ @Nullable @@ -77,7 +77,7 @@ public String id() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code type} */ @Nullable @@ -102,7 +102,7 @@ public static class Builder extends GetRequest.AbstractBuilder implemen /** * Auto generated - missing in the input spec - * + *

* API name: {@code index} */ public Builder index(@Nullable String value) { @@ -112,7 +112,7 @@ public Builder index(@Nullable String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -122,7 +122,7 @@ public Builder id(@Nullable String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code type} */ public Builder type(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetSourceResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetSourceResponse.java index b606a790b..59410d9ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetSourceResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetSourceResponse.java @@ -55,7 +55,7 @@ protected GetSourceResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public TDocument value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder * API name: {@code value} */ public Builder value(TDocument value) { @@ -94,7 +94,6 @@ public Builder value(TDocument value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/IndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/IndexRequest.java index 232bef080..142f03a2d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/IndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/IndexRequest.java @@ -230,7 +230,7 @@ public Boolean requireAlias() { /** * Request body. - * + *

* API name: {@code value} */ public TDocument value() { @@ -411,7 +411,7 @@ public Builder requireAlias(@Nullable Boolean value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(TDocument value) { @@ -422,7 +422,6 @@ public Builder value(TDocument value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MgetResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MgetResponse.java index 625a5ce73..f82d66f6a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MgetResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MgetResponse.java @@ -140,7 +140,6 @@ public Builder addDocs(Function, ObjectBuilder /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchRequest.java index 078cd6a61..76a9a2445 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchRequest.java @@ -113,7 +113,7 @@ protected MsearchRequest(Builder builder) { /** * Comma-separated list of data streams, indices, and index aliases to search. - * + *

* API name: {@code index} */ @Nullable @@ -135,7 +135,7 @@ public List type() { * applies even if the request targets other open indices. For example, a * request targeting foo*,bar* returns an error if an index starts with foo but * no index starts with bar. - * + *

* API name: {@code allow_no_indices} */ @Nullable @@ -146,7 +146,7 @@ public Boolean allowNoIndices() { /** * If true, network roundtrips between the coordinating node and remote clusters * are minimized for cross-cluster search requests. - * + *

* API name: {@code ccs_minimize_roundtrips} */ @Nullable @@ -158,7 +158,7 @@ public Boolean ccsMinimizeRoundtrips() { * Type of index that wildcard expressions can match. If the request can target * data streams, this argument determines whether wildcard expressions match * hidden data streams. - * + *

* API name: {@code expand_wildcards} */ @Nullable @@ -168,7 +168,7 @@ public JsonValue expandWildcards() { /** * If true, concrete, expanded or aliased indices are ignored when frozen. - * + *

* API name: {@code ignore_throttled} */ @Nullable @@ -178,7 +178,7 @@ public Boolean ignoreThrottled() { /** * If true, missing or closed indices are not included in the response. - * + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -188,7 +188,7 @@ public Boolean ignoreUnavailable() { /** * Maximum number of concurrent searches the multi search API can execute. - * + *

* API name: {@code max_concurrent_searches} */ @Nullable @@ -199,7 +199,7 @@ public Number maxConcurrentSearches() { /** * Maximum number of concurrent shard requests that each sub-search request * executes per node. - * + *

* API name: {@code max_concurrent_shard_requests} */ @Nullable @@ -214,7 +214,7 @@ public Number maxConcurrentShardRequests() { * of shards significantly if for instance a shard can not match any documents * based on its rewrite method i.e., if date filters are mandatory to match but * the shard bounds and the query are disjoint. - * + *

* API name: {@code pre_filter_shard_size} */ @Nullable @@ -225,7 +225,7 @@ public Number preFilterShardSize() { /** * Indicates whether global term and document frequencies should be used when * scoring returned documents. - * + *

* API name: {@code search_type} */ @Nullable @@ -236,7 +236,7 @@ public JsonValue searchType() { /** * If true, hits.total are returned as an integer in the response. Defaults to * false, which returns an object. - * + *

* API name: {@code rest_total_hits_as_int} */ @Nullable @@ -247,7 +247,7 @@ public Boolean restTotalHitsAsInt() { /** * Specifies whether aggregation and suggester names should be prefixed by their * respective types in the response. - * + *

* API name: {@code typed_keys} */ @Nullable @@ -257,7 +257,7 @@ public Boolean typedKeys() { /** * Request body. - * + *

* API name: {@code value} */ public List value() { @@ -326,7 +326,7 @@ public static class Builder implements ObjectBuilder { /** * Comma-separated list of data streams, indices, and index aliases to search. - * + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -336,7 +336,7 @@ public Builder index(@Nullable List value) { /** * Comma-separated list of data streams, indices, and index aliases to search. - * + *

* API name: {@code index} */ public Builder index(String... value) { @@ -388,7 +388,7 @@ public Builder addType(String value) { * applies even if the request targets other open indices. For example, a * request targeting foo*,bar* returns an error if an index starts with foo but * no index starts with bar. - * + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -399,7 +399,7 @@ public Builder allowNoIndices(@Nullable Boolean value) { /** * If true, network roundtrips between the coordinating node and remote clusters * are minimized for cross-cluster search requests. - * + *

* API name: {@code ccs_minimize_roundtrips} */ public Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { @@ -411,7 +411,7 @@ public Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { * Type of index that wildcard expressions can match. If the request can target * data streams, this argument determines whether wildcard expressions match * hidden data streams. - * + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -421,7 +421,7 @@ public Builder expandWildcards(@Nullable JsonValue value) { /** * If true, concrete, expanded or aliased indices are ignored when frozen. - * + *

* API name: {@code ignore_throttled} */ public Builder ignoreThrottled(@Nullable Boolean value) { @@ -431,7 +431,7 @@ public Builder ignoreThrottled(@Nullable Boolean value) { /** * If true, missing or closed indices are not included in the response. - * + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -441,7 +441,7 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { /** * Maximum number of concurrent searches the multi search API can execute. - * + *

* API name: {@code max_concurrent_searches} */ public Builder maxConcurrentSearches(@Nullable Number value) { @@ -452,7 +452,7 @@ public Builder maxConcurrentSearches(@Nullable Number value) { /** * Maximum number of concurrent shard requests that each sub-search request * executes per node. - * + *

* API name: {@code max_concurrent_shard_requests} */ public Builder maxConcurrentShardRequests(@Nullable Number value) { @@ -467,7 +467,7 @@ public Builder maxConcurrentShardRequests(@Nullable Number value) { * of shards significantly if for instance a shard can not match any documents * based on its rewrite method i.e., if date filters are mandatory to match but * the shard bounds and the query are disjoint. - * + *

* API name: {@code pre_filter_shard_size} */ public Builder preFilterShardSize(@Nullable Number value) { @@ -478,7 +478,7 @@ public Builder preFilterShardSize(@Nullable Number value) { /** * Indicates whether global term and document frequencies should be used when * scoring returned documents. - * + *

* API name: {@code search_type} */ public Builder searchType(@Nullable JsonValue value) { @@ -489,7 +489,7 @@ public Builder searchType(@Nullable JsonValue value) { /** * If true, hits.total are returned as an integer in the response. Defaults to * false, which returns an object. - * + *

* API name: {@code rest_total_hits_as_int} */ public Builder restTotalHitsAsInt(@Nullable Boolean value) { @@ -500,7 +500,7 @@ public Builder restTotalHitsAsInt(@Nullable Boolean value) { /** * Specifies whether aggregation and suggester names should be prefixed by their * respective types in the response. - * + *

* API name: {@code typed_keys} */ public Builder typedKeys(@Nullable Boolean value) { @@ -510,7 +510,7 @@ public Builder typedKeys(@Nullable Boolean value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -520,7 +520,7 @@ public Builder value(List value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(JsonValue... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchResponse.java index 8269b8c2e..ff445a402 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchResponse.java @@ -149,7 +149,6 @@ public Builder addResponses(JsonValue value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchTemplateRequest.java index 95339a63b..0dce46033 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchTemplateRequest.java @@ -147,7 +147,7 @@ public Boolean typedKeys() { /** * Request body. - * + *

* API name: {@code value} */ public List value() { @@ -292,7 +292,7 @@ public Builder typedKeys(@Nullable Boolean value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -302,7 +302,7 @@ public Builder value(List value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(TemplateItem... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchTemplateResponse.java index 0f25b18e4..559e63b98 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchTemplateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchTemplateResponse.java @@ -165,7 +165,6 @@ public Builder took(Number value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/RankEvalRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/RankEvalRequest.java index 5631d45dd..c768d7292 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/RankEvalRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/RankEvalRequest.java @@ -88,7 +88,7 @@ protected RankEvalRequest(Builder builder) { * Comma-separated list of data streams, indices, and index aliases used to * limit the request. Wildcard (*) expressions are supported. To target all data * streams and indices in a cluster, omit this parameter or use _all or *. - * + *

* API name: {@code index} */ public List index() { @@ -101,7 +101,7 @@ public List index() { * applies even if the request targets other open indices. For example, a * request targeting foo*,bar* returns an error if an index starts with foo but * no index starts with bar. - * + *

* API name: {@code allow_no_indices} */ @Nullable @@ -119,7 +119,7 @@ public JsonValue expandWildcards() { /** * If true, missing or closed indices are not included in the response. - * + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -137,7 +137,7 @@ public String searchType() { /** * A set of typical search requests, together with their provided ratings - * + *

* API name: {@code requests} */ public List requests() { @@ -146,7 +146,7 @@ public List requests() { /** * Definition of the evaluation metric to calculate - * + *

* API name: {@code metric} */ @Nullable @@ -211,7 +211,7 @@ public static class Builder implements ObjectBuilder { * Comma-separated list of data streams, indices, and index aliases used to * limit the request. Wildcard (*) expressions are supported. To target all data * streams and indices in a cluster, omit this parameter or use _all or *. - * + *

* API name: {@code index} */ public Builder index(List value) { @@ -223,7 +223,7 @@ public Builder index(List value) { * Comma-separated list of data streams, indices, and index aliases used to * limit the request. Wildcard (*) expressions are supported. To target all data * streams and indices in a cluster, omit this parameter or use _all or *. - * + *

* API name: {@code index} */ public Builder index(String... value) { @@ -248,7 +248,7 @@ public Builder addIndex(String value) { * applies even if the request targets other open indices. For example, a * request targeting foo*,bar* returns an error if an index starts with foo but * no index starts with bar. - * + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -266,7 +266,7 @@ public Builder expandWildcards(@Nullable JsonValue value) { /** * If true, missing or closed indices are not included in the response. - * + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -284,7 +284,7 @@ public Builder searchType(@Nullable String value) { /** * A set of typical search requests, together with their provided ratings - * + *

* API name: {@code requests} */ public Builder requests(List value) { @@ -294,7 +294,7 @@ public Builder requests(List value) { /** * A set of typical search requests, together with their provided ratings - * + *

* API name: {@code requests} */ public Builder requests(RankEvalRequestItem... value) { @@ -329,7 +329,7 @@ public Builder addRequests(Function * API name: {@code metric} */ public Builder metric(@Nullable RankEvalMetric value) { @@ -339,7 +339,7 @@ public Builder metric(@Nullable RankEvalMetric value) { /** * Definition of the evaluation metric to calculate - * + *

* API name: {@code metric} */ public Builder metric(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/RankEvalResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/RankEvalResponse.java index 3ba5f0946..7fe7de974 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/RankEvalResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/RankEvalResponse.java @@ -61,7 +61,7 @@ protected RankEvalResponse(Builder builder) { /** * The overall evaluation quality calculated by the defined metric - * + *

* API name: {@code metric_score} */ public Number metricScore() { @@ -71,7 +71,7 @@ public Number metricScore() { /** * The details section contains one entry for every query in the original * requests section, keyed by the search request id - * + *

* API name: {@code details} */ public Map details() { @@ -133,7 +133,7 @@ public static class Builder implements ObjectBuilder { /** * The overall evaluation quality calculated by the defined metric - * + *

* API name: {@code metric_score} */ public Builder metricScore(Number value) { @@ -144,7 +144,7 @@ public Builder metricScore(Number value) { /** * The details section contains one entry for every query in the original * requests section, keyed by the search request id - * + *

* API name: {@code details} */ public Builder details(Map value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ScriptsPainlessExecuteResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ScriptsPainlessExecuteResponse.java index ce7bb921a..2892cb635 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ScriptsPainlessExecuteResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ScriptsPainlessExecuteResponse.java @@ -98,7 +98,6 @@ public Builder result(TResult value) { /** * Serializer for TResult. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tResultSerializer(@Nullable JsonpSerializer value) { this.tResultSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchResponse.java index dec6a9e97..ba0d53671 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchResponse.java @@ -630,7 +630,6 @@ public BuilderT terminatedEarly(@Nullable Boolean value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public BuilderT tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchTemplateRequest.java index 81a775e92..712215857 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchTemplateRequest.java @@ -168,7 +168,7 @@ public JsonValue expandWildcards() { /** * server_default false - * + *

* API name: {@code explain} */ @Nullable @@ -234,7 +234,7 @@ public JsonValue searchType() { /** * If true, hits.total are rendered as an integer in the response. - * + *

* API name: {@code total_hits_as_integer} */ @Nullable @@ -452,7 +452,7 @@ public Builder expandWildcards(@Nullable JsonValue value) { /** * server_default false - * + *

* API name: {@code explain} */ public Builder explain(@Nullable Boolean value) { @@ -518,7 +518,7 @@ public Builder searchType(@Nullable JsonValue value) { /** * If true, hits.total are rendered as an integer in the response. - * + *

* API name: {@code total_hits_as_integer} */ public Builder totalHitsAsInteger(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchTemplateResponse.java index 61086857a..35842e752 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchTemplateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchTemplateResponse.java @@ -186,7 +186,6 @@ public Builder hits( /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/TermsEnumRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/TermsEnumRequest.java index c3acd7d61..93eca1b34 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/TermsEnumRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/TermsEnumRequest.java @@ -86,7 +86,7 @@ protected TermsEnumRequest(Builder builder) { /** * Comma-separated list of data streams, indices, and index aliases to search. * Wildcard (*) expressions are supported. - * + *

* API name: {@code index} */ public String index() { @@ -96,7 +96,7 @@ public String index() { /** * The string to match at the start of indexed terms. If not provided, all terms * in the field are considered. - * + *

* API name: {@code field} */ public String field() { @@ -105,7 +105,7 @@ public String field() { /** * How many matching terms to return. - * + *

* API name: {@code size} */ @Nullable @@ -114,10 +114,10 @@ public Number size() { } /** - * The maximum length of time to spend collecting results. Defaults to "1s" (one - * second). If the timeout is exceeded the complete flag set to false in the - * response and the results may be partial or empty. - * + * The maximum length of time to spend collecting results. Defaults to + * "1s" (one second). If the timeout is exceeded the complete flag set + * to false in the response and the results may be partial or empty. + *

* API name: {@code timeout} */ @Nullable @@ -128,7 +128,7 @@ public JsonValue timeout() { /** * When true the provided search string is matched against index terms without * case sensitivity. - * + *

* API name: {@code case_insensitive} */ @Nullable @@ -138,7 +138,7 @@ public Boolean caseInsensitive() { /** * Allows to filter an index shard if the provided query rewrites to match_none. - * + *

* API name: {@code index_filter} */ @Nullable @@ -150,7 +150,7 @@ public QueryContainer indexFilter() { * The string after which terms in the index should be returned. Allows for a * form of pagination if the last result from one request is passed as the * search_after parameter for a subsequent request. - * + *

* API name: {@code string} */ @Nullable @@ -250,7 +250,7 @@ public static class Builder implements ObjectBuilder { /** * Comma-separated list of data streams, indices, and index aliases to search. * Wildcard (*) expressions are supported. - * + *

* API name: {@code index} */ public Builder index(String value) { @@ -261,7 +261,7 @@ public Builder index(String value) { /** * The string to match at the start of indexed terms. If not provided, all terms * in the field are considered. - * + *

* API name: {@code field} */ public Builder field(String value) { @@ -271,7 +271,7 @@ public Builder field(String value) { /** * How many matching terms to return. - * + *

* API name: {@code size} */ public Builder size(@Nullable Number value) { @@ -280,10 +280,10 @@ public Builder size(@Nullable Number value) { } /** - * The maximum length of time to spend collecting results. Defaults to "1s" (one - * second). If the timeout is exceeded the complete flag set to false in the - * response and the results may be partial or empty. - * + * The maximum length of time to spend collecting results. Defaults to + * "1s" (one second). If the timeout is exceeded the complete flag set + * to false in the response and the results may be partial or empty. + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -294,7 +294,7 @@ public Builder timeout(@Nullable JsonValue value) { /** * When true the provided search string is matched against index terms without * case sensitivity. - * + *

* API name: {@code case_insensitive} */ public Builder caseInsensitive(@Nullable Boolean value) { @@ -304,7 +304,7 @@ public Builder caseInsensitive(@Nullable Boolean value) { /** * Allows to filter an index shard if the provided query rewrites to match_none. - * + *

* API name: {@code index_filter} */ public Builder indexFilter(@Nullable QueryContainer value) { @@ -314,7 +314,7 @@ public Builder indexFilter(@Nullable QueryContainer value) { /** * Allows to filter an index shard if the provided query rewrites to match_none. - * + *

* API name: {@code index_filter} */ public Builder indexFilter(Function> fn) { @@ -325,7 +325,7 @@ public Builder indexFilter(Function * API name: {@code string} */ public Builder string(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/TermvectorsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/TermvectorsRequest.java index 00472bb1c..824db4905 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/TermvectorsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/TermvectorsRequest.java @@ -541,7 +541,6 @@ public Builder putPerFieldAnalyzer(String key, String value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateRequest.java index 2b20f999a..314edb302 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateRequest.java @@ -678,7 +678,6 @@ public Builder upsert(@Nullable TDocument value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; @@ -688,7 +687,6 @@ public Builder tDocumentSerializer(@Nullable JsonpS /** * Serializer for TPartialDocument. If not set, an attempt will be made to find * a serializer from the JSON context. - * */ public Builder tPartialDocumentSerializer( @Nullable JsonpSerializer value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateResponse.java index 84aa4c704..75a53ca12 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateResponse.java @@ -105,7 +105,6 @@ public Builder get(Function, ObjectBuild /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/mget/Hit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/mget/Hit.java index e5a7676da..d9bec3b0c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/mget/Hit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/mget/Hit.java @@ -416,7 +416,6 @@ public Builder version(@Nullable Number value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/DocumentRating.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/DocumentRating.java index 5946b16a0..4e91a3683 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/DocumentRating.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/DocumentRating.java @@ -56,7 +56,7 @@ protected DocumentRating(Builder builder) { /** * The document ID. - * + *

* API name: {@code _id} */ public String id() { @@ -66,7 +66,7 @@ public String id() { /** * The document’s index. For data streams, this should be the document’s backing * index. - * + *

* API name: {@code _index} */ public String index() { @@ -75,7 +75,7 @@ public String index() { /** * The document’s relevance with regard to this search request. - * + *

* API name: {@code rating} */ public Number rating() { @@ -118,7 +118,7 @@ public static class Builder implements ObjectBuilder { /** * The document ID. - * + *

* API name: {@code _id} */ public Builder id(String value) { @@ -129,7 +129,7 @@ public Builder id(String value) { /** * The document’s index. For data streams, this should be the document’s backing * index. - * + *

* API name: {@code _index} */ public Builder index(String value) { @@ -139,7 +139,7 @@ public Builder index(String value) { /** * The document’s relevance with regard to this search request. - * + *

* API name: {@code rating} */ public Builder rating(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricBase.java index 82847dcd5..5c89f4185 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricBase.java @@ -50,7 +50,7 @@ protected RankEvalMetricBase(AbstractBuilder builder) { /** * Sets the maximum number of documents retrieved per query. This value will act * in place of the usual size parameter in the query. - * + *

* API name: {@code k} */ @Nullable @@ -85,7 +85,7 @@ protected abstract static class AbstractBuilder * API name: {@code k} */ public BuilderT k(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricDetail.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricDetail.java index 8d1a59d26..7f8df4449 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricDetail.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricDetail.java @@ -66,7 +66,7 @@ protected RankEvalMetricDetail(Builder builder) { /** * The metric_score in the details section shows the contribution of this query * to the global quality metric score - * + *

* API name: {@code metric_score} */ public Number metricScore() { @@ -77,7 +77,7 @@ public Number metricScore() { * The unrated_docs section contains an _index and _id entry for each document * in the search result for this query that didn’t have a ratings value. This * can be used to ask the user to supply ratings for these documents - * + *

* API name: {@code unrated_docs} */ public List unratedDocs() { @@ -87,7 +87,7 @@ public List unratedDocs() { /** * The hits section shows a grouping of the search results with their supplied * ratings - * + *

* API name: {@code hits} */ public List hits() { @@ -98,7 +98,7 @@ public List hits() { * The metric_details give additional information about the calculated quality * metric (e.g. how many of the retrieved documents were relevant). The content * varies for each metric but allows for better interpretation of the results - * + *

* API name: {@code metric_details} */ public Map> metricDetails() { @@ -169,7 +169,7 @@ public static class Builder implements ObjectBuilder { /** * The metric_score in the details section shows the contribution of this query * to the global quality metric score - * + *

* API name: {@code metric_score} */ public Builder metricScore(Number value) { @@ -181,7 +181,7 @@ public Builder metricScore(Number value) { * The unrated_docs section contains an _index and _id entry for each document * in the search result for this query that didn’t have a ratings value. This * can be used to ask the user to supply ratings for these documents - * + *

* API name: {@code unrated_docs} */ public Builder unratedDocs(List value) { @@ -193,7 +193,7 @@ public Builder unratedDocs(List value) { * The unrated_docs section contains an _index and _id entry for each document * in the search result for this query that didn’t have a ratings value. This * can be used to ask the user to supply ratings for these documents - * + *

* API name: {@code unrated_docs} */ public Builder unratedDocs(UnratedDocument... value) { @@ -229,7 +229,7 @@ public Builder addUnratedDocs(Function * API name: {@code hits} */ public Builder hits(List value) { @@ -240,7 +240,7 @@ public Builder hits(List value) { /** * The hits section shows a grouping of the search results with their supplied * ratings - * + *

* API name: {@code hits} */ public Builder hits(RankEvalHitItem... value) { @@ -277,7 +277,7 @@ public Builder addHits(Function * API name: {@code metric_details} */ public Builder metricDetails(Map> value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricDiscountedCumulativeGain.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricDiscountedCumulativeGain.java index df205b8f4..fd3452d8a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricDiscountedCumulativeGain.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricDiscountedCumulativeGain.java @@ -48,7 +48,7 @@ protected RankEvalMetricDiscountedCumulativeGain(Builder builder) { /** * If set to true, this metric will calculate the Normalized DCG. - * + *

* API name: {@code normalize} */ @Nullable @@ -80,7 +80,7 @@ public static class Builder extends RankEvalMetricBase.AbstractBuilder /** * If set to true, this metric will calculate the Normalized DCG. - * + *

* API name: {@code normalize} */ public Builder normalize(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricExpectedReciprocalRank.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricExpectedReciprocalRank.java index 6f0d15ae6..a00964e55 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricExpectedReciprocalRank.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricExpectedReciprocalRank.java @@ -48,7 +48,7 @@ protected RankEvalMetricExpectedReciprocalRank(Builder builder) { /** * The highest relevance grade used in the user-supplied relevance judgments. - * + *

* API name: {@code maximum_relevance} */ public Number maximumRelevance() { @@ -75,7 +75,7 @@ public static class Builder extends RankEvalMetricBase.AbstractBuilder /** * The highest relevance grade used in the user-supplied relevance judgments. - * + *

* API name: {@code maximum_relevance} */ public Builder maximumRelevance(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricPrecision.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricPrecision.java index dfc3df557..58b41fde1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricPrecision.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricPrecision.java @@ -50,7 +50,7 @@ protected RankEvalMetricPrecision(Builder builder) { * Controls how unlabeled documents in the search results are counted. If set to * true, unlabeled documents are ignored and neither count as relevant or * irrelevant. Set to false (the default), they are treated as irrelevant. - * + *

* API name: {@code ignore_unlabeled} */ @Nullable @@ -84,7 +84,7 @@ public static class Builder extends RankEvalMetricRatingTreshold.AbstractBuilder * Controls how unlabeled documents in the search results are counted. If set to * true, unlabeled documents are ignored and neither count as relevant or * irrelevant. Set to false (the default), they are treated as irrelevant. - * + *

* API name: {@code ignore_unlabeled} */ public Builder ignoreUnlabeled(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricRatingTreshold.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricRatingTreshold.java index 5e4a3a2e4..28822b117 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricRatingTreshold.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalMetricRatingTreshold.java @@ -48,8 +48,8 @@ protected RankEvalMetricRatingTreshold(AbstractBuilder builder) { /** * Sets the rating threshold above which documents are considered to be - * "relevant". - * + * "relevant". + *

* API name: {@code relevant_rating_threshold} */ @Nullable @@ -76,8 +76,8 @@ protected abstract static class AbstractBuilder * API name: {@code relevant_rating_threshold} */ public BuilderT relevantRatingThreshold(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalRequestItem.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalRequestItem.java index b07084878..64efd1081 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalRequestItem.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/rank_eval/RankEvalRequestItem.java @@ -71,7 +71,7 @@ protected RankEvalRequestItem(Builder builder) { /** * The search request’s ID, used to group result details later. - * + *

* API name: {@code id} */ public String id() { @@ -80,7 +80,7 @@ public String id() { /** * The query being evaluated. - * + *

* API name: {@code request} */ @Nullable @@ -90,7 +90,7 @@ public RankEvalQuery request() { /** * List of document ratings - * + *

* API name: {@code ratings} */ public List ratings() { @@ -99,7 +99,7 @@ public List ratings() { /** * The search template Id - * + *

* API name: {@code template_id} */ @Nullable @@ -109,7 +109,7 @@ public String templateId() { /** * The search template parameters. - * + *

* API name: {@code params} */ @Nullable @@ -188,7 +188,7 @@ public static class Builder implements ObjectBuilder { /** * The search request’s ID, used to group result details later. - * + *

* API name: {@code id} */ public Builder id(String value) { @@ -198,7 +198,7 @@ public Builder id(String value) { /** * The query being evaluated. - * + *

* API name: {@code request} */ public Builder request(@Nullable RankEvalQuery value) { @@ -208,7 +208,7 @@ public Builder request(@Nullable RankEvalQuery value) { /** * The query being evaluated. - * + *

* API name: {@code request} */ public Builder request(Function> fn) { @@ -217,7 +217,7 @@ public Builder request(Function * API name: {@code ratings} */ public Builder ratings(List value) { @@ -227,7 +227,7 @@ public Builder ratings(List value) { /** * List of document ratings - * + *

* API name: {@code ratings} */ public Builder ratings(DocumentRating... value) { @@ -262,7 +262,7 @@ public Builder addRatings(Function * API name: {@code template_id} */ public Builder templateId(@Nullable String value) { @@ -272,7 +272,7 @@ public Builder templateId(@Nullable String value) { /** * The search template parameters. - * + *

* API name: {@code params} */ public Builder params(@Nullable Map value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/Hit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/Hit.java index 768bb938a..0755548c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/Hit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/Hit.java @@ -784,7 +784,6 @@ public Builder addSort(JsonValue value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/HitsMetadata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/HitsMetadata.java index b8634ae6c..a4df82558 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/HitsMetadata.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/HitsMetadata.java @@ -194,7 +194,6 @@ public Builder maxScore(@Nullable Number value) { /** * Serializer for T. If not set, an attempt will be made to find a serializer * from the JSON context. - * */ public Builder tSerializer(@Nullable JsonpSerializer value) { this.tSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/Suggest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/Suggest.java index be8cb7518..866301890 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/Suggest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/Suggest.java @@ -196,7 +196,6 @@ public Builder text(String value) { /** * Serializer for T. If not set, an attempt will be made to find a serializer * from the JSON context. - * */ public Builder tSerializer(@Nullable JsonpSerializer value) { this.tSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/AcknowledgedResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/AcknowledgedResponseBase.java index 42664ec42..0845c07df 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/AcknowledgedResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/AcknowledgedResponseBase.java @@ -50,7 +50,7 @@ protected AcknowledgedResponseBase(AbstractBuilder builder) { /** * For a successful response, this value is always true. On failure, an * exception is returned instead. - * + *

* API name: {@code acknowledged} */ public Boolean acknowledged() { @@ -79,7 +79,7 @@ protected abstract static class AbstractBuilder * API name: {@code acknowledged} */ public BuilderT acknowledged(Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorCause.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorCause.java index 487e21042..7457d8cc6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorCause.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/ErrorCause.java @@ -332,7 +332,7 @@ public String processorType() { /** * resource id - * + *

* API name: {@code resource_id} */ @Nullable @@ -342,7 +342,7 @@ public List resourceId() { /** * resource type - * + *

* API name: {@code resource_type} */ @Nullable @@ -950,7 +950,7 @@ public BuilderT processorType(@Nullable String value) { /** * resource id - * + *

* API name: {@code resource_id} */ public BuilderT resourceId(@Nullable List value) { @@ -960,7 +960,7 @@ public BuilderT resourceId(@Nullable List value) { /** * resource id - * + *

* API name: {@code resource_id} */ public BuilderT resourceId(String... value) { @@ -981,7 +981,7 @@ public BuilderT addResourceId(String value) { /** * resource type - * + *

* API name: {@code resource_type} */ public BuilderT resourceType(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java index 612eadcd3..ca80c1eac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/InlineGet.java @@ -249,7 +249,6 @@ public Builder source(TDocument value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeAttributes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeAttributes.java index 6cbfaf724..147e59740 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeAttributes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeAttributes.java @@ -72,7 +72,7 @@ protected NodeAttributes(Builder builder) { /** * Lists node attributes. - * + *

* API name: {@code attributes} */ public Map attributes() { @@ -81,7 +81,7 @@ public Map attributes() { /** * The ephemeral ID of the node. - * + *

* API name: {@code ephemeral_id} */ public String ephemeralId() { @@ -90,7 +90,7 @@ public String ephemeralId() { /** * The unique identifier of the node. - * + *

* API name: {@code id} */ @Nullable @@ -100,7 +100,7 @@ public String id() { /** * The unique identifier of the node. - * + *

* API name: {@code name} */ public String name() { @@ -109,7 +109,7 @@ public String name() { /** * The host and port where transport HTTP connections are accepted. - * + *

* API name: {@code transport_address} */ public String transportAddress() { @@ -196,7 +196,7 @@ public static class Builder implements ObjectBuilder { /** * Lists node attributes. - * + *

* API name: {@code attributes} */ public Builder attributes(Map value) { @@ -217,7 +217,7 @@ public Builder putAttributes(String key, String value) { /** * The ephemeral ID of the node. - * + *

* API name: {@code ephemeral_id} */ public Builder ephemeralId(String value) { @@ -227,7 +227,7 @@ public Builder ephemeralId(String value) { /** * The unique identifier of the node. - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -237,7 +237,7 @@ public Builder id(@Nullable String value) { /** * The unique identifier of the node. - * + *

* API name: {@code name} */ public Builder name(String value) { @@ -247,7 +247,7 @@ public Builder name(String value) { /** * The host and port where transport HTTP connections are accepted. - * + *

* API name: {@code transport_address} */ public Builder transportAddress(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeStatistics.java index 1afcae0d8..427998df3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/NodeStatistics.java @@ -71,7 +71,7 @@ public List failures() { /** * Total number of nodes selected by the request. - * + *

* API name: {@code total} */ public Number total() { @@ -80,7 +80,7 @@ public Number total() { /** * Number of nodes that responded successfully to the request. - * + *

* API name: {@code successful} */ public Number successful() { @@ -90,7 +90,7 @@ public Number successful() { /** * Number of nodes that rejected the request or failed to respond. If this value * is not 0, a reason for the rejection or failure is included in the response. - * + *

* API name: {@code failed} */ public Number failed() { @@ -189,7 +189,7 @@ public Builder addFailures(Function * API name: {@code total} */ public Builder total(Number value) { @@ -199,7 +199,7 @@ public Builder total(Number value) { /** * Number of nodes that responded successfully to the request. - * + *

* API name: {@code successful} */ public Builder successful(Number value) { @@ -210,7 +210,7 @@ public Builder successful(Number value) { /** * Number of nodes that rejected the request or failed to respond. If this value * is not 0, a reason for the rejection or failure is included in the response. - * + *

* API name: {@code failed} */ public Builder failed(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ClassificationInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ClassificationInferenceOptions.java index 262b1c8fe..3bb86a511 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ClassificationInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ClassificationInferenceOptions.java @@ -66,7 +66,7 @@ protected ClassificationInferenceOptions(Builder builder) { /** * Specifies the number of top class predictions to return. Defaults to 0. - * + *

* API name: {@code num_top_classes} */ @Nullable @@ -77,7 +77,7 @@ public Number numTopClasses() { /** * Specifies the maximum number of feature importance values per document. By * default, it is zero and no feature importance calculation occurs. - * + *

* API name: {@code num_top_feature_importance_values} */ @Nullable @@ -89,7 +89,7 @@ public Number numTopFeatureImportanceValues() { * Specifies the type of the predicted field to write. Acceptable values are: * string, number, boolean. When boolean is provided 1.0 is transformed to true * and 0.0 to false. - * + *

* API name: {@code prediction_field_type} */ @Nullable @@ -100,7 +100,7 @@ public String predictionFieldType() { /** * The field that is added to incoming documents to contain the inference * prediction. Defaults to predicted_value. - * + *

* API name: {@code results_field} */ @Nullable @@ -111,7 +111,7 @@ public String resultsField() { /** * Specifies the field to which the top classes are written. Defaults to * top_classes. - * + *

* API name: {@code top_classes_results_field} */ @Nullable @@ -186,7 +186,7 @@ public static class Builder implements ObjectBuilder * API name: {@code num_top_classes} */ public Builder numTopClasses(@Nullable Number value) { @@ -197,7 +197,7 @@ public Builder numTopClasses(@Nullable Number value) { /** * Specifies the maximum number of feature importance values per document. By * default, it is zero and no feature importance calculation occurs. - * + *

* API name: {@code num_top_feature_importance_values} */ public Builder numTopFeatureImportanceValues(@Nullable Number value) { @@ -209,7 +209,7 @@ public Builder numTopFeatureImportanceValues(@Nullable Number value) { * Specifies the type of the predicted field to write. Acceptable values are: * string, number, boolean. When boolean is provided 1.0 is transformed to true * and 0.0 to false. - * + *

* API name: {@code prediction_field_type} */ public Builder predictionFieldType(@Nullable String value) { @@ -220,7 +220,7 @@ public Builder predictionFieldType(@Nullable String value) { /** * The field that is added to incoming documents to contain the inference * prediction. Defaults to predicted_value. - * + *

* API name: {@code results_field} */ public Builder resultsField(@Nullable String value) { @@ -231,7 +231,7 @@ public Builder resultsField(@Nullable String value) { /** * Specifies the field to which the top classes are written. Defaults to * top_classes. - * + *

* API name: {@code top_classes_results_field} */ public Builder topClassesResultsField(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java index 408a72f9f..6c887b29c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/ExtendedBounds.java @@ -121,7 +121,6 @@ public Builder min(T value) { /** * Serializer for T. If not set, an attempt will be made to find a serializer * from the JSON context. - * */ public Builder tSerializer(@Nullable JsonpSerializer value) { this.tSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceConfigContainer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceConfigContainer.java index 7ee1bc1df..a97c632bc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceConfigContainer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/InferenceConfigContainer.java @@ -53,7 +53,7 @@ protected InferenceConfigContainer(Builder builder) { /** * Regression configuration for inference. - * + *

* API name: {@code regression} */ @Nullable @@ -63,7 +63,7 @@ public RegressionInferenceOptions regression() { /** * Classification configuration for inference. - * + *

* API name: {@code classification} */ @Nullable @@ -111,7 +111,7 @@ public static class Builder implements ObjectBuilder { /** * Regression configuration for inference. - * + *

* API name: {@code regression} */ public Builder regression(@Nullable RegressionInferenceOptions value) { @@ -121,7 +121,7 @@ public Builder regression(@Nullable RegressionInferenceOptions value) { /** * Regression configuration for inference. - * + *

* API name: {@code regression} */ public Builder regression( @@ -131,7 +131,7 @@ public Builder regression( /** * Classification configuration for inference. - * + *

* API name: {@code classification} */ public Builder classification(@Nullable ClassificationInferenceOptions value) { @@ -141,7 +141,7 @@ public Builder classification(@Nullable ClassificationInferenceOptions value) { /** * Classification configuration for inference. - * + *

* API name: {@code classification} */ public Builder classification( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RegressionInferenceOptions.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RegressionInferenceOptions.java index 9e42e10dd..ebf54c509 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RegressionInferenceOptions.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/RegressionInferenceOptions.java @@ -55,7 +55,7 @@ protected RegressionInferenceOptions(Builder builder) { /** * The field that is added to incoming documents to contain the inference * prediction. Defaults to predicted_value. - * + *

* API name: {@code results_field} */ public String resultsField() { @@ -65,7 +65,7 @@ public String resultsField() { /** * Specifies the maximum number of feature importance values per document. By * default, it is zero and no feature importance calculation occurs. - * + *

* API name: {@code num_top_feature_importance_values} */ @Nullable @@ -110,7 +110,7 @@ public static class Builder implements ObjectBuilder /** * The field that is added to incoming documents to contain the inference * prediction. Defaults to predicted_value. - * + *

* API name: {@code results_field} */ public Builder resultsField(String value) { @@ -121,7 +121,7 @@ public Builder resultsField(String value) { /** * Specifies the maximum number of feature importance values per document. By * default, it is zero and no feature importance calculation occurs. - * + *

* API name: {@code num_top_feature_importance_values} */ public Builder numTopFeatureImportanceValues(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NamedQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NamedQuery.java index fe9617346..93d543e5c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NamedQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/NamedQuery.java @@ -164,7 +164,6 @@ public Builder ignoreUnmapped(@Nullable Boolean value) { /** * Serializer for TQuery. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tQuerySerializer(@Nullable JsonpSerializer value) { this.tQuerySerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/async_search/AsyncSearchAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/async_search/AsyncSearchAsyncClient.java index 1dd7920b5..7f3fb619d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/async_search/AsyncSearchAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/async_search/AsyncSearchAsyncClient.java @@ -58,8 +58,10 @@ public AsyncSearchAsyncClient(Transport transport, RequestOptions options) { /** * Deletes an async search by ID. If the search is still running, the search * request will be cancelled. Otherwise, the saved search results are deleted. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture delete(DeleteRequest request) throws IOException { @@ -69,12 +71,14 @@ public CompletableFuture delete(DeleteRequest request) throws IO /** * Deletes an async search by ID. If the search is still running, the search * request will be cancelled. Otherwise, the saved search results are deleted. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture delete( @@ -87,8 +91,10 @@ public final CompletableFuture delete( /** * Retrieves the results of a previously submitted async search request given * its ID. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> get(GetRequest request, @@ -100,12 +106,14 @@ public CompletableFuture> get(GetRequest requ /** * Retrieves the results of a previously submitted async search request given * its ID. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> get( @@ -119,8 +127,10 @@ public final CompletableFuture> get( /** * Retrieves the status of a previously submitted async search request given its * ID. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> status(StatusRequest request, @@ -132,12 +142,14 @@ public CompletableFuture> status(StatusReq /** * Retrieves the status of a previously submitted async search request given its * ID. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> status( @@ -150,8 +162,10 @@ public final CompletableFuture> status( /** * Executes a search request asynchronously. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> submit(SubmitRequest request, @@ -162,12 +176,14 @@ public CompletableFuture> submit(SubmitReq /** * Executes a search request asynchronously. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> submit( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/async_search/AsyncSearchClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/async_search/AsyncSearchClient.java index be26d6093..ea2268da3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/async_search/AsyncSearchClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/async_search/AsyncSearchClient.java @@ -57,8 +57,10 @@ public AsyncSearchClient(Transport transport, RequestOptions options) { /** * Deletes an async search by ID. If the search is still running, the search * request will be cancelled. Otherwise, the saved search results are deleted. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html" + * + * @see Documentation + * on elastic.co */ public DeleteResponse delete(DeleteRequest request) throws IOException { @@ -68,12 +70,14 @@ public DeleteResponse delete(DeleteRequest request) throws IOException { /** * Deletes an async search by ID. If the search is still running, the search * request will be cancelled. Otherwise, the saved search results are deleted. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteResponse delete(Function> fn) @@ -86,8 +90,10 @@ public final DeleteResponse delete(FunctionDocumentation + * on elastic.co */ public GetResponse get(GetRequest request, Class tDocumentClass) @@ -99,12 +105,14 @@ public GetResponse get(GetRequest request, ClassDocumentation + * on elastic.co */ public final GetResponse get(Function> fn, @@ -117,8 +125,10 @@ public final GetResponse get(FunctionDocumentation + * on elastic.co */ public StatusResponse status(StatusRequest request, Class tDocumentClass) @@ -130,12 +140,14 @@ public StatusResponse status(StatusRequest request, Class /** * Retrieves the status of a previously submitted async search request given its * ID. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StatusResponse status( @@ -148,8 +160,10 @@ public final StatusResponse status( /** * Executes a search request asynchronously. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html" + * + * @see Documentation + * on elastic.co */ public SubmitResponse submit(SubmitRequest request, Class tDocumentClass) @@ -160,12 +174,14 @@ public SubmitResponse submit(SubmitRequest request, Class /** * Executes a search request asynchronously. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final SubmitResponse submit( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingAsyncClient.java index 2f2609bba..c4b2c60ef 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingAsyncClient.java @@ -58,8 +58,10 @@ public AutoscalingAsyncClient(Transport transport, RequestOptions options) { /** * Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. * Direct use is not supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteAutoscalingPolicy(PolicyDeleteRequest request) @@ -70,12 +72,14 @@ public CompletableFuture deleteAutoscalingPolicy(PolicyDel /** * Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. * Direct use is not supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteAutoscalingPolicy( @@ -89,8 +93,10 @@ public final CompletableFuture deleteAutoscalingPolicy( * Gets the current autoscaling capacity based on the configured autoscaling * policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not * supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getAutoscalingCapacity(CapacityGetRequest request) @@ -102,12 +108,14 @@ public CompletableFuture getAutoscalingCapacity(CapacityGet * Gets the current autoscaling capacity based on the configured autoscaling * policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not * supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getAutoscalingCapacity( @@ -120,8 +128,10 @@ public final CompletableFuture getAutoscalingCapacity( /** * Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and * ECK. Direct use is not supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getAutoscalingPolicy(PolicyGetRequest request) throws IOException { @@ -131,12 +141,14 @@ public CompletableFuture getAutoscalingPolicy(PolicyGetReques /** * Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and * ECK. Direct use is not supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getAutoscalingPolicy( @@ -149,8 +161,10 @@ public final CompletableFuture getAutoscalingPolicy( /** * Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and * ECK. Direct use is not supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putAutoscalingPolicy(PolicyPutRequest request) throws IOException { @@ -160,12 +174,14 @@ public CompletableFuture putAutoscalingPolicy(PolicyPutReques /** * Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and * ECK. Direct use is not supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putAutoscalingPolicy( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingClient.java index d62602fb3..bf45facc1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingClient.java @@ -57,8 +57,10 @@ public AutoscalingClient(Transport transport, RequestOptions options) { /** * Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. * Direct use is not supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html" + * + * @see Documentation + * on elastic.co */ public PolicyDeleteResponse deleteAutoscalingPolicy(PolicyDeleteRequest request) throws IOException { @@ -68,12 +70,14 @@ public PolicyDeleteResponse deleteAutoscalingPolicy(PolicyDeleteRequest request) /** * Deletes an autoscaling policy. Designed for indirect use by ECE/ESS and ECK. * Direct use is not supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-delete-autoscaling-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PolicyDeleteResponse deleteAutoscalingPolicy( @@ -87,8 +91,10 @@ public final PolicyDeleteResponse deleteAutoscalingPolicy( * Gets the current autoscaling capacity based on the configured autoscaling * policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not * supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html" + * + * @see Documentation + * on elastic.co */ public CapacityGetResponse getAutoscalingCapacity(CapacityGetRequest request) throws IOException { @@ -99,12 +105,14 @@ public CapacityGetResponse getAutoscalingCapacity(CapacityGetRequest request) th * Gets the current autoscaling capacity based on the configured autoscaling * policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not * supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CapacityGetResponse getAutoscalingCapacity( @@ -117,8 +125,10 @@ public final CapacityGetResponse getAutoscalingCapacity( /** * Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and * ECK. Direct use is not supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html" + * + * @see Documentation + * on elastic.co */ public PolicyGetResponse getAutoscalingPolicy(PolicyGetRequest request) throws IOException { @@ -128,12 +138,14 @@ public PolicyGetResponse getAutoscalingPolicy(PolicyGetRequest request) throws I /** * Retrieves an autoscaling policy. Designed for indirect use by ECE/ESS and * ECK. Direct use is not supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PolicyGetResponse getAutoscalingPolicy( @@ -146,8 +158,10 @@ public final PolicyGetResponse getAutoscalingPolicy( /** * Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and * ECK. Direct use is not supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html" + * + * @see Documentation + * on elastic.co */ public PolicyPutResponse putAutoscalingPolicy(PolicyPutRequest request) throws IOException { @@ -157,12 +171,14 @@ public PolicyPutResponse putAutoscalingPolicy(PolicyPutRequest request) throws I /** * Creates a new autoscaling policy. Designed for indirect use by ECE/ESS and * ECK. Direct use is not supported. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-put-autoscaling-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PolicyPutResponse putAutoscalingPolicy( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatAsyncClient.java index fe7998e1f..683b5499d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatAsyncClient.java @@ -100,8 +100,10 @@ public CatAsyncClient(Transport transport, RequestOptions options) { /** * Shows information about currently configured aliases to indices including * filter and routing infos. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture aliases(AliasesRequest request) throws IOException { @@ -111,12 +113,14 @@ public CompletableFuture aliases(AliasesRequest request) throws /** * Shows information about currently configured aliases to indices including * filter and routing infos. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture aliases( @@ -129,8 +133,10 @@ public final CompletableFuture aliases( /** * Provides a snapshot of how many shards are allocated to each data node and * how much disk space they are using. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture allocation(AllocationRequest request) throws IOException { @@ -140,12 +146,14 @@ public CompletableFuture allocation(AllocationRequest reques /** * Provides a snapshot of how many shards are allocated to each data node and * how much disk space they are using. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture allocation( @@ -158,8 +166,10 @@ public final CompletableFuture allocation( /** * Provides quick access to the document count of the entire cluster, or * individual indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture count(CountRequest request) throws IOException { @@ -169,12 +179,14 @@ public CompletableFuture count(CountRequest request) throws IOExc /** * Provides quick access to the document count of the entire cluster, or * individual indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture count(Function> fn) @@ -187,8 +199,10 @@ public final CompletableFuture count(FunctionDocumentation + * on elastic.co */ public CompletableFuture fielddata(FielddataRequest request) throws IOException { @@ -198,12 +212,14 @@ public CompletableFuture fielddata(FielddataRequest request) /** * Shows how much heap memory is currently being used by fielddata on every data * node in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture fielddata( @@ -215,8 +231,10 @@ public final CompletableFuture fielddata( /** * Returns a concise representation of the cluster health. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture health(HealthRequest request) throws IOException { @@ -225,12 +243,14 @@ public CompletableFuture health(HealthRequest request) throws IO /** * Returns a concise representation of the cluster health. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture health( @@ -242,8 +262,10 @@ public final CompletableFuture health( /** * Returns help for the Cat APIs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture help() throws IOException { return this.transport.performRequestAsync(HelpRequest.INSTANCE, HelpRequest.ENDPOINT, this.requestOptions); @@ -254,8 +276,10 @@ public CompletableFuture help() throws IOException { /** * Returns information about indices: number of primaries and replicas, document * counts, disk size, ... - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture indices(IndicesRequest request) throws IOException { @@ -265,12 +289,14 @@ public CompletableFuture indices(IndicesRequest request) throws /** * Returns information about indices: number of primaries and replicas, document * counts, disk size, ... - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture indices( @@ -282,8 +308,10 @@ public final CompletableFuture indices( /** * Returns information about the master node. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-master.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture master() throws IOException { return this.transport.performRequestAsync(MasterRequest.INSTANCE, MasterRequest.ENDPOINT, this.requestOptions); @@ -293,8 +321,10 @@ public CompletableFuture master() throws IOException { /** * Gets configuration and usage information about data frame analytics jobs. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture mlDataFrameAnalytics(DataFrameAnalyticsRequest request) @@ -304,12 +334,14 @@ public CompletableFuture mlDataFrameAnalytics(DataFr /** * Gets configuration and usage information about data frame analytics jobs. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture mlDataFrameAnalytics( @@ -322,8 +354,10 @@ public final CompletableFuture mlDataFrameAnalytics( /** * Gets configuration and usage information about datafeeds. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-datafeeds.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture mlDatafeeds(DatafeedsRequest request) throws IOException { @@ -332,12 +366,14 @@ public CompletableFuture mlDatafeeds(DatafeedsRequest request /** * Gets configuration and usage information about datafeeds. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-datafeeds.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture mlDatafeeds( @@ -349,8 +385,10 @@ public final CompletableFuture mlDatafeeds( /** * Gets configuration and usage information about anomaly detection jobs. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-anomaly-detectors.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture mlJobs(JobsRequest request) throws IOException { @@ -359,12 +397,14 @@ public CompletableFuture mlJobs(JobsRequest request) throws IOExce /** * Gets configuration and usage information about anomaly detection jobs. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-anomaly-detectors.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture mlJobs(Function> fn) @@ -376,8 +416,10 @@ public final CompletableFuture mlJobs(FunctionDocumentation + * on elastic.co */ public CompletableFuture mlTrainedModels(TrainedModelsRequest request) throws IOException { @@ -386,12 +428,14 @@ public CompletableFuture mlTrainedModels(TrainedModelsReq /** * Gets configuration and usage information about inference trained models. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-trained-model.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture mlTrainedModels( @@ -403,8 +447,10 @@ public final CompletableFuture mlTrainedModels( /** * Returns information about custom node attributes. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture nodeattrs() throws IOException { return this.transport.performRequestAsync(NodeAttributesRequest.INSTANCE, NodeAttributesRequest.ENDPOINT, @@ -415,8 +461,10 @@ public CompletableFuture nodeattrs() throws IOException /** * Returns basic statistics about performance of cluster nodes. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture nodes(NodesRequest request) throws IOException { @@ -425,12 +473,14 @@ public CompletableFuture nodes(NodesRequest request) throws IOExc /** * Returns basic statistics about performance of cluster nodes. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture nodes(Function> fn) @@ -442,8 +492,10 @@ public final CompletableFuture nodes(FunctionDocumentation + * on elastic.co */ public CompletableFuture pendingTasks() throws IOException { return this.transport.performRequestAsync(PendingTasksRequest.INSTANCE, PendingTasksRequest.ENDPOINT, @@ -454,8 +506,10 @@ public CompletableFuture pendingTasks() throws IOException /** * Returns information about installed plugins across nodes node. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture plugins() throws IOException { return this.transport.performRequestAsync(PluginsRequest.INSTANCE, PluginsRequest.ENDPOINT, @@ -466,8 +520,10 @@ public CompletableFuture plugins() throws IOException { /** * Returns information about index shard recoveries, both on-going completed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture recovery(RecoveryRequest request) throws IOException { @@ -476,12 +532,14 @@ public CompletableFuture recovery(RecoveryRequest request) thr /** * Returns information about index shard recoveries, both on-going completed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture recovery( @@ -493,8 +551,10 @@ public final CompletableFuture recovery( /** * Returns information about snapshot repositories registered in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-repositories.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture repositories() throws IOException { return this.transport.performRequestAsync(RepositoriesRequest.INSTANCE, RepositoriesRequest.ENDPOINT, @@ -505,8 +565,10 @@ public CompletableFuture repositories() throws IOException /** * Provides low-level information about the segments in the shards of an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture segments(SegmentsRequest request) throws IOException { @@ -515,12 +577,14 @@ public CompletableFuture segments(SegmentsRequest request) thr /** * Provides low-level information about the segments in the shards of an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture segments( @@ -532,8 +596,10 @@ public final CompletableFuture segments( /** * Provides a detailed view of shard allocation on nodes. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture shards(ShardsRequest request) throws IOException { @@ -542,12 +608,14 @@ public CompletableFuture shards(ShardsRequest request) throws IO /** * Provides a detailed view of shard allocation on nodes. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture shards( @@ -559,8 +627,10 @@ public final CompletableFuture shards( /** * Returns all snapshots in a specific repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture snapshots(SnapshotsRequest request) throws IOException { @@ -569,12 +639,14 @@ public CompletableFuture snapshots(SnapshotsRequest request) /** * Returns all snapshots in a specific repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture snapshots( @@ -587,8 +659,10 @@ public final CompletableFuture snapshots( /** * Returns information about the tasks currently executing on one or more nodes * in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture tasks(TasksRequest request) throws IOException { @@ -598,12 +672,14 @@ public CompletableFuture tasks(TasksRequest request) throws IOExc /** * Returns information about the tasks currently executing on one or more nodes * in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture tasks(Function> fn) @@ -615,8 +691,10 @@ public final CompletableFuture tasks(FunctionDocumentation + * on elastic.co */ public CompletableFuture templates(TemplatesRequest request) throws IOException { @@ -625,12 +703,14 @@ public CompletableFuture templates(TemplatesRequest request) /** * Returns information about existing templates. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture templates( @@ -643,8 +723,10 @@ public final CompletableFuture templates( /** * Returns cluster-wide thread pool statistics per node. By default the active, * queue and rejected statistics are returned for all thread pools. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture threadPool(ThreadPoolRequest request) throws IOException { @@ -654,12 +736,14 @@ public CompletableFuture threadPool(ThreadPoolRequest reques /** * Returns cluster-wide thread pool statistics per node. By default the active, * queue and rejected statistics are returned for all thread pools. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture threadPool( @@ -671,8 +755,10 @@ public final CompletableFuture threadPool( /** * Gets configuration and usage information about transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transforms.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture transforms(TransformsRequest request) throws IOException { @@ -681,12 +767,14 @@ public CompletableFuture transforms(TransformsRequest reques /** * Gets configuration and usage information about transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transforms.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture transforms( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatClient.java index 7162ca8ea..8a89bfe85 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatClient.java @@ -99,8 +99,10 @@ public CatClient(Transport transport, RequestOptions options) { /** * Shows information about currently configured aliases to indices including * filter and routing infos. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html" + * + * @see Documentation + * on elastic.co */ public AliasesResponse aliases(AliasesRequest request) throws IOException { @@ -110,12 +112,14 @@ public AliasesResponse aliases(AliasesRequest request) throws IOException { /** * Shows information about currently configured aliases to indices including * filter and routing infos. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-alias.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final AliasesResponse aliases(Function> fn) @@ -128,8 +132,10 @@ public final AliasesResponse aliases(FunctionDocumentation + * on elastic.co */ public AllocationResponse allocation(AllocationRequest request) throws IOException { @@ -139,12 +145,14 @@ public AllocationResponse allocation(AllocationRequest request) throws IOExcepti /** * Provides a snapshot of how many shards are allocated to each data node and * how much disk space they are using. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-allocation.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final AllocationResponse allocation(Function> fn) @@ -157,8 +165,10 @@ public final AllocationResponse allocation(FunctionDocumentation + * on elastic.co */ public CountResponse count(CountRequest request) throws IOException { @@ -168,12 +178,14 @@ public CountResponse count(CountRequest request) throws IOException { /** * Provides quick access to the document count of the entire cluster, or * individual indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-count.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CountResponse count(Function> fn) @@ -186,8 +198,10 @@ public final CountResponse count(FunctionDocumentation + * on elastic.co */ public FielddataResponse fielddata(FielddataRequest request) throws IOException { @@ -197,12 +211,14 @@ public FielddataResponse fielddata(FielddataRequest request) throws IOException /** * Shows how much heap memory is currently being used by fielddata on every data * node in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-fielddata.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final FielddataResponse fielddata(Function> fn) @@ -214,8 +230,10 @@ public final FielddataResponse fielddata(FunctionDocumentation + * on elastic.co */ public HealthResponse health(HealthRequest request) throws IOException { @@ -224,12 +242,14 @@ public HealthResponse health(HealthRequest request) throws IOException { /** * Returns a concise representation of the cluster health. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-health.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final HealthResponse health(Function> fn) @@ -241,8 +261,10 @@ public final HealthResponse health(FunctionDocumentation + * on elastic.co */ public HelpResponse help() throws IOException { return this.transport.performRequest(HelpRequest.INSTANCE, HelpRequest.ENDPOINT, this.requestOptions); @@ -253,8 +275,10 @@ public HelpResponse help() throws IOException { /** * Returns information about indices: number of primaries and replicas, document * counts, disk size, ... - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html" + * + * @see Documentation + * on elastic.co */ public IndicesResponse indices(IndicesRequest request) throws IOException { @@ -264,12 +288,14 @@ public IndicesResponse indices(IndicesRequest request) throws IOException { /** * Returns information about indices: number of primaries and replicas, document * counts, disk size, ... - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-indices.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final IndicesResponse indices(Function> fn) @@ -281,8 +307,10 @@ public final IndicesResponse indices(FunctionDocumentation + * on elastic.co */ public MasterResponse master() throws IOException { return this.transport.performRequest(MasterRequest.INSTANCE, MasterRequest.ENDPOINT, this.requestOptions); @@ -292,8 +320,10 @@ public MasterResponse master() throws IOException { /** * Gets configuration and usage information about data frame analytics jobs. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public DataFrameAnalyticsResponse mlDataFrameAnalytics(DataFrameAnalyticsRequest request) throws IOException { @@ -302,12 +332,14 @@ public DataFrameAnalyticsResponse mlDataFrameAnalytics(DataFrameAnalyticsRequest /** * Gets configuration and usage information about data frame analytics jobs. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DataFrameAnalyticsResponse mlDataFrameAnalytics( @@ -320,8 +352,10 @@ public final DataFrameAnalyticsResponse mlDataFrameAnalytics( /** * Gets configuration and usage information about datafeeds. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-datafeeds.html" + * + * @see Documentation + * on elastic.co */ public DatafeedsResponse mlDatafeeds(DatafeedsRequest request) throws IOException { @@ -330,12 +364,14 @@ public DatafeedsResponse mlDatafeeds(DatafeedsRequest request) throws IOExceptio /** * Gets configuration and usage information about datafeeds. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-datafeeds.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DatafeedsResponse mlDatafeeds(Function> fn) @@ -347,8 +383,10 @@ public final DatafeedsResponse mlDatafeeds(FunctionDocumentation + * on elastic.co */ public JobsResponse mlJobs(JobsRequest request) throws IOException { @@ -357,12 +395,14 @@ public JobsResponse mlJobs(JobsRequest request) throws IOException { /** * Gets configuration and usage information about anomaly detection jobs. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-anomaly-detectors.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final JobsResponse mlJobs(Function> fn) throws IOException { @@ -373,8 +413,10 @@ public final JobsResponse mlJobs(FunctionDocumentation + * on elastic.co */ public TrainedModelsResponse mlTrainedModels(TrainedModelsRequest request) throws IOException { @@ -383,12 +425,14 @@ public TrainedModelsResponse mlTrainedModels(TrainedModelsRequest request) throw /** * Gets configuration and usage information about inference trained models. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-trained-model.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final TrainedModelsResponse mlTrainedModels( @@ -400,8 +444,10 @@ public final TrainedModelsResponse mlTrainedModels( /** * Returns information about custom node attributes. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html" + * + * @see Documentation + * on elastic.co */ public NodeAttributesResponse nodeattrs() throws IOException { return this.transport.performRequest(NodeAttributesRequest.INSTANCE, NodeAttributesRequest.ENDPOINT, @@ -412,8 +458,10 @@ public NodeAttributesResponse nodeattrs() throws IOException { /** * Returns basic statistics about performance of cluster nodes. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html" + * + * @see Documentation + * on elastic.co */ public NodesResponse nodes(NodesRequest request) throws IOException { @@ -422,12 +470,14 @@ public NodesResponse nodes(NodesRequest request) throws IOException { /** * Returns basic statistics about performance of cluster nodes. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodes.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final NodesResponse nodes(Function> fn) @@ -439,8 +489,10 @@ public final NodesResponse nodes(FunctionDocumentation + * on elastic.co */ public PendingTasksResponse pendingTasks() throws IOException { return this.transport.performRequest(PendingTasksRequest.INSTANCE, PendingTasksRequest.ENDPOINT, @@ -451,8 +503,10 @@ public PendingTasksResponse pendingTasks() throws IOException { /** * Returns information about installed plugins across nodes node. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-plugins.html" + * + * @see Documentation + * on elastic.co */ public PluginsResponse plugins() throws IOException { return this.transport.performRequest(PluginsRequest.INSTANCE, PluginsRequest.ENDPOINT, this.requestOptions); @@ -462,8 +516,10 @@ public PluginsResponse plugins() throws IOException { /** * Returns information about index shard recoveries, both on-going completed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html" + * + * @see Documentation + * on elastic.co */ public RecoveryResponse recovery(RecoveryRequest request) throws IOException { @@ -472,12 +528,14 @@ public RecoveryResponse recovery(RecoveryRequest request) throws IOException { /** * Returns information about index shard recoveries, both on-going completed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-recovery.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RecoveryResponse recovery(Function> fn) @@ -489,8 +547,10 @@ public final RecoveryResponse recovery(FunctionDocumentation + * on elastic.co */ public RepositoriesResponse repositories() throws IOException { return this.transport.performRequest(RepositoriesRequest.INSTANCE, RepositoriesRequest.ENDPOINT, @@ -501,8 +561,10 @@ public RepositoriesResponse repositories() throws IOException { /** * Provides low-level information about the segments in the shards of an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html" + * + * @see Documentation + * on elastic.co */ public SegmentsResponse segments(SegmentsRequest request) throws IOException { @@ -511,12 +573,14 @@ public SegmentsResponse segments(SegmentsRequest request) throws IOException { /** * Provides low-level information about the segments in the shards of an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-segments.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final SegmentsResponse segments(Function> fn) @@ -528,8 +592,10 @@ public final SegmentsResponse segments(FunctionDocumentation + * on elastic.co */ public ShardsResponse shards(ShardsRequest request) throws IOException { @@ -538,12 +604,14 @@ public ShardsResponse shards(ShardsRequest request) throws IOException { /** * Provides a detailed view of shard allocation on nodes. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-shards.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ShardsResponse shards(Function> fn) @@ -555,8 +623,10 @@ public final ShardsResponse shards(FunctionDocumentation + * on elastic.co */ public SnapshotsResponse snapshots(SnapshotsRequest request) throws IOException { @@ -565,12 +635,14 @@ public SnapshotsResponse snapshots(SnapshotsRequest request) throws IOException /** * Returns all snapshots in a specific repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final SnapshotsResponse snapshots(Function> fn) @@ -583,8 +655,10 @@ public final SnapshotsResponse snapshots(FunctionDocumentation + * on elastic.co */ public TasksResponse tasks(TasksRequest request) throws IOException { @@ -594,12 +668,14 @@ public TasksResponse tasks(TasksRequest request) throws IOException { /** * Returns information about the tasks currently executing on one or more nodes * in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final TasksResponse tasks(Function> fn) @@ -611,8 +687,10 @@ public final TasksResponse tasks(FunctionDocumentation + * on elastic.co */ public TemplatesResponse templates(TemplatesRequest request) throws IOException { @@ -621,12 +699,14 @@ public TemplatesResponse templates(TemplatesRequest request) throws IOException /** * Returns information about existing templates. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final TemplatesResponse templates(Function> fn) @@ -639,8 +719,10 @@ public final TemplatesResponse templates(FunctionDocumentation + * on elastic.co */ public ThreadPoolResponse threadPool(ThreadPoolRequest request) throws IOException { @@ -650,12 +732,14 @@ public ThreadPoolResponse threadPool(ThreadPoolRequest request) throws IOExcepti /** * Returns cluster-wide thread pool statistics per node. By default the active, * queue and rejected statistics are returned for all thread pools. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-thread-pool.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ThreadPoolResponse threadPool(Function> fn) @@ -667,8 +751,10 @@ public final ThreadPoolResponse threadPool(FunctionDocumentation + * on elastic.co */ public TransformsResponse transforms(TransformsRequest request) throws IOException { @@ -677,12 +763,14 @@ public TransformsResponse transforms(TransformsRequest request) throws IOExcepti /** * Gets configuration and usage information about transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-transforms.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final TransformsResponse transforms(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrAsyncClient.java index f45cdb242..8d983d374 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrAsyncClient.java @@ -75,8 +75,10 @@ public CcrAsyncClient(Transport transport, RequestOptions options) { /** * Deletes auto-follow patterns. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteAutoFollowPattern( @@ -87,12 +89,14 @@ public CompletableFuture deleteAutoFollowPatter /** * Deletes auto-follow patterns. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteAutoFollowPattern( @@ -106,8 +110,10 @@ public final CompletableFuture deleteAutoFollow /** * Creates a new follower index configured to follow the referenced leader * index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture follow(CreateFollowIndexRequest request) throws IOException { @@ -117,12 +123,14 @@ public CompletableFuture follow(CreateFollowIndexRequ /** * Creates a new follower index configured to follow the referenced leader * index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture follow( @@ -135,8 +143,10 @@ public final CompletableFuture follow( /** * Retrieves information about all follower indices, including parameters and * status for each follower index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-info.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture followInfo(FollowInfoRequest request) throws IOException { @@ -146,12 +156,14 @@ public CompletableFuture followInfo(FollowInfoRequest reques /** * Retrieves information about all follower indices, including parameters and * status for each follower index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-info.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture followInfo( @@ -164,8 +176,10 @@ public final CompletableFuture followInfo( /** * Retrieves follower stats. return shard-level stats about the following tasks * associated with each shard for the specified indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture followStats(FollowIndexStatsRequest request) throws IOException { @@ -175,12 +189,14 @@ public CompletableFuture followStats(FollowIndexStatsR /** * Retrieves follower stats. return shard-level stats about the following tasks * associated with each shard for the specified indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture followStats( @@ -192,8 +208,10 @@ public final CompletableFuture followStats( /** * Removes the follower retention leases from the leader. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture forgetFollower(ForgetFollowerIndexRequest request) @@ -203,12 +221,14 @@ public CompletableFuture forgetFollower(ForgetFollo /** * Removes the follower retention leases from the leader. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture forgetFollower( @@ -222,8 +242,10 @@ public final CompletableFuture forgetFollower( /** * Gets configured auto-follow patterns. Returns the specified auto-follow * pattern collection. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getAutoFollowPattern(GetAutoFollowPatternRequest request) @@ -234,12 +256,14 @@ public CompletableFuture getAutoFollowPattern(GetA /** * Gets configured auto-follow patterns. Returns the specified auto-follow * pattern collection. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getAutoFollowPattern( @@ -252,8 +276,10 @@ public final CompletableFuture getAutoFollowPatter /** * Pauses an auto-follow pattern - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-pause-auto-follow-pattern.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture pauseAutoFollowPattern( @@ -263,12 +289,14 @@ public CompletableFuture pauseAutoFollowPattern( /** * Pauses an auto-follow pattern - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-pause-auto-follow-pattern.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture pauseAutoFollowPattern( @@ -282,8 +310,10 @@ public final CompletableFuture pauseAutoFollowPa /** * Pauses a follower index. The follower index will not fetch any additional * operations from the leader index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture pauseFollow(PauseFollowIndexRequest request) throws IOException { @@ -293,12 +323,14 @@ public CompletableFuture pauseFollow(PauseFollowIndexR /** * Pauses a follower index. The follower index will not fetch any additional * operations from the leader index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture pauseFollow( @@ -312,8 +344,10 @@ public final CompletableFuture pauseFollow( * Creates a new named collection of auto-follow patterns against a specified * remote cluster. Newly created indices on the remote cluster matching any of * the specified patterns will be automatically configured as follower indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putAutoFollowPattern(PutAutoFollowPatternRequest request) @@ -325,12 +359,14 @@ public CompletableFuture putAutoFollowPattern(PutA * Creates a new named collection of auto-follow patterns against a specified * remote cluster. Newly created indices on the remote cluster matching any of * the specified patterns will be automatically configured as follower indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putAutoFollowPattern( @@ -343,8 +379,10 @@ public final CompletableFuture putAutoFollowPatter /** * Resumes an auto-follow pattern that has been paused - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-resume-auto-follow-pattern.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture resumeAutoFollowPattern( @@ -355,12 +393,14 @@ public CompletableFuture resumeAutoFollowPatter /** * Resumes an auto-follow pattern that has been paused - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-resume-auto-follow-pattern.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture resumeAutoFollowPattern( @@ -373,8 +413,10 @@ public final CompletableFuture resumeAutoFollow /** * Resumes a follower index that has been paused - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture resumeFollow(ResumeFollowIndexRequest request) @@ -384,12 +426,14 @@ public CompletableFuture resumeFollow(ResumeFollowInd /** * Resumes a follower index that has been paused - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture resumeFollow( @@ -401,8 +445,10 @@ public final CompletableFuture resumeFollow( /** * Gets all stats related to cross-cluster replication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture stats() throws IOException { return this.transport.performRequestAsync(StatsRequest.INSTANCE, StatsRequest.ENDPOINT, this.requestOptions); @@ -413,8 +459,10 @@ public CompletableFuture stats() throws IOException { /** * Stops the following task associated with a follower index and removes index * metadata and settings associated with cross-cluster replication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture unfollow(UnfollowIndexRequest request) throws IOException { @@ -424,12 +472,14 @@ public CompletableFuture unfollow(UnfollowIndexRequest re /** * Stops the following task associated with a follower index and removes index * metadata and settings associated with cross-cluster replication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture unfollow( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrClient.java index ad3a9842c..b48018bd5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrClient.java @@ -74,8 +74,10 @@ public CcrClient(Transport transport, RequestOptions options) { /** * Deletes auto-follow patterns. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html" + * + * @see Documentation + * on elastic.co */ public DeleteAutoFollowPatternResponse deleteAutoFollowPattern(DeleteAutoFollowPatternRequest request) @@ -85,12 +87,14 @@ public DeleteAutoFollowPatternResponse deleteAutoFollowPattern(DeleteAutoFollowP /** * Deletes auto-follow patterns. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-delete-auto-follow-pattern.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteAutoFollowPatternResponse deleteAutoFollowPattern( @@ -104,8 +108,10 @@ public final DeleteAutoFollowPatternResponse deleteAutoFollowPattern( /** * Creates a new follower index configured to follow the referenced leader * index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html" + * + * @see Documentation + * on elastic.co */ public CreateFollowIndexResponse follow(CreateFollowIndexRequest request) throws IOException { @@ -115,12 +121,14 @@ public CreateFollowIndexResponse follow(CreateFollowIndexRequest request) throws /** * Creates a new follower index configured to follow the referenced leader * index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-follow.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CreateFollowIndexResponse follow( @@ -133,8 +141,10 @@ public final CreateFollowIndexResponse follow( /** * Retrieves information about all follower indices, including parameters and * status for each follower index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-info.html" + * + * @see Documentation + * on elastic.co */ public FollowInfoResponse followInfo(FollowInfoRequest request) throws IOException { @@ -144,12 +154,14 @@ public FollowInfoResponse followInfo(FollowInfoRequest request) throws IOExcepti /** * Retrieves information about all follower indices, including parameters and * status for each follower index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-info.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final FollowInfoResponse followInfo(Function> fn) @@ -162,8 +174,10 @@ public final FollowInfoResponse followInfo(FunctionDocumentation + * on elastic.co */ public FollowIndexStatsResponse followStats(FollowIndexStatsRequest request) throws IOException { @@ -173,12 +187,14 @@ public FollowIndexStatsResponse followStats(FollowIndexStatsRequest request) thr /** * Retrieves follower stats. return shard-level stats about the following tasks * associated with each shard for the specified indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-follow-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final FollowIndexStatsResponse followStats( @@ -190,8 +206,10 @@ public final FollowIndexStatsResponse followStats( /** * Removes the follower retention leases from the leader. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html" + * + * @see Documentation + * on elastic.co */ public ForgetFollowerIndexResponse forgetFollower(ForgetFollowerIndexRequest request) throws IOException { @@ -200,12 +218,14 @@ public ForgetFollowerIndexResponse forgetFollower(ForgetFollowerIndexRequest req /** * Removes the follower retention leases from the leader. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-forget-follower.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ForgetFollowerIndexResponse forgetFollower( @@ -219,8 +239,10 @@ public final ForgetFollowerIndexResponse forgetFollower( /** * Gets configured auto-follow patterns. Returns the specified auto-follow * pattern collection. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html" + * + * @see Documentation + * on elastic.co */ public GetAutoFollowPatternResponse getAutoFollowPattern(GetAutoFollowPatternRequest request) throws IOException { @@ -230,12 +252,14 @@ public GetAutoFollowPatternResponse getAutoFollowPattern(GetAutoFollowPatternReq /** * Gets configured auto-follow patterns. Returns the specified auto-follow * pattern collection. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-auto-follow-pattern.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetAutoFollowPatternResponse getAutoFollowPattern( @@ -248,8 +272,10 @@ public final GetAutoFollowPatternResponse getAutoFollowPattern( /** * Pauses an auto-follow pattern - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-pause-auto-follow-pattern.html" + * + * @see Documentation + * on elastic.co */ public PauseAutoFollowPatternResponse pauseAutoFollowPattern(PauseAutoFollowPatternRequest request) @@ -259,12 +285,14 @@ public PauseAutoFollowPatternResponse pauseAutoFollowPattern(PauseAutoFollowPatt /** * Pauses an auto-follow pattern - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-pause-auto-follow-pattern.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PauseAutoFollowPatternResponse pauseAutoFollowPattern( @@ -278,8 +306,10 @@ public final PauseAutoFollowPatternResponse pauseAutoFollowPattern( /** * Pauses a follower index. The follower index will not fetch any additional * operations from the leader index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html" + * + * @see Documentation + * on elastic.co */ public PauseFollowIndexResponse pauseFollow(PauseFollowIndexRequest request) throws IOException { @@ -289,12 +319,14 @@ public PauseFollowIndexResponse pauseFollow(PauseFollowIndexRequest request) thr /** * Pauses a follower index. The follower index will not fetch any additional * operations from the leader index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-pause-follow.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PauseFollowIndexResponse pauseFollow( @@ -308,8 +340,10 @@ public final PauseFollowIndexResponse pauseFollow( * Creates a new named collection of auto-follow patterns against a specified * remote cluster. Newly created indices on the remote cluster matching any of * the specified patterns will be automatically configured as follower indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html" + * + * @see Documentation + * on elastic.co */ public PutAutoFollowPatternResponse putAutoFollowPattern(PutAutoFollowPatternRequest request) throws IOException { @@ -320,12 +354,14 @@ public PutAutoFollowPatternResponse putAutoFollowPattern(PutAutoFollowPatternReq * Creates a new named collection of auto-follow patterns against a specified * remote cluster. Newly created indices on the remote cluster matching any of * the specified patterns will be automatically configured as follower indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-put-auto-follow-pattern.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutAutoFollowPatternResponse putAutoFollowPattern( @@ -338,8 +374,10 @@ public final PutAutoFollowPatternResponse putAutoFollowPattern( /** * Resumes an auto-follow pattern that has been paused - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-resume-auto-follow-pattern.html" + * + * @see Documentation + * on elastic.co */ public ResumeAutoFollowPatternResponse resumeAutoFollowPattern(ResumeAutoFollowPatternRequest request) @@ -349,12 +387,14 @@ public ResumeAutoFollowPatternResponse resumeAutoFollowPattern(ResumeAutoFollowP /** * Resumes an auto-follow pattern that has been paused - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-resume-auto-follow-pattern.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ResumeAutoFollowPatternResponse resumeAutoFollowPattern( @@ -367,8 +407,10 @@ public final ResumeAutoFollowPatternResponse resumeAutoFollowPattern( /** * Resumes a follower index that has been paused - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html" + * + * @see Documentation + * on elastic.co */ public ResumeFollowIndexResponse resumeFollow(ResumeFollowIndexRequest request) throws IOException { @@ -377,12 +419,14 @@ public ResumeFollowIndexResponse resumeFollow(ResumeFollowIndexRequest request) /** * Resumes a follower index that has been paused - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-resume-follow.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ResumeFollowIndexResponse resumeFollow( @@ -394,8 +438,10 @@ public final ResumeFollowIndexResponse resumeFollow( /** * Gets all stats related to cross-cluster replication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-get-stats.html" + * + * @see Documentation + * on elastic.co */ public StatsResponse stats() throws IOException { return this.transport.performRequest(StatsRequest.INSTANCE, StatsRequest.ENDPOINT, this.requestOptions); @@ -406,8 +452,10 @@ public StatsResponse stats() throws IOException { /** * Stops the following task associated with a follower index and removes index * metadata and settings associated with cross-cluster replication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html" + * + * @see Documentation + * on elastic.co */ public UnfollowIndexResponse unfollow(UnfollowIndexRequest request) throws IOException { @@ -417,12 +465,14 @@ public UnfollowIndexResponse unfollow(UnfollowIndexRequest request) throws IOExc /** * Stops the following task associated with a follower index and removes index * metadata and settings associated with cross-cluster replication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ccr-post-unfollow.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UnfollowIndexResponse unfollow( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterAsyncClient.java index e745dc218..b9f9dfea9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterAsyncClient.java @@ -79,8 +79,10 @@ public ClusterAsyncClient(Transport transport, RequestOptions options) { /** * Provides explanations for shard allocations in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture allocationExplain(AllocationExplainRequest request) @@ -90,12 +92,14 @@ public CompletableFuture allocationExplain(Allocation /** * Provides explanations for shard allocations in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture allocationExplain( @@ -107,8 +111,10 @@ public final CompletableFuture allocationExplain( /** * Deletes a component template - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteComponentTemplate( @@ -119,12 +125,14 @@ public CompletableFuture deleteComponentTemplat /** * Deletes a component template - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteComponentTemplate( @@ -137,8 +145,10 @@ public final CompletableFuture deleteComponentT /** * Clears cluster voting config exclusions. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteVotingConfigExclusions( @@ -149,12 +159,14 @@ public CompletableFuture deleteVotingConfi /** * Clears cluster voting config exclusions. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteVotingConfigExclusions( @@ -167,8 +179,10 @@ public final CompletableFuture deleteVotin /** * Returns information about whether a particular component template exist - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture existsComponentTemplate( @@ -179,12 +193,14 @@ public CompletableFuture existsComponentTemplat /** * Returns information about whether a particular component template exist - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture existsComponentTemplate( @@ -197,8 +213,10 @@ public final CompletableFuture existsComponentT /** * Returns one or more component templates - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getComponentTemplate(GetComponentTemplateRequest request) @@ -208,12 +226,14 @@ public CompletableFuture getComponentTemplate(GetC /** * Returns one or more component templates - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getComponentTemplate( @@ -226,8 +246,10 @@ public final CompletableFuture getComponentTemplat /** * Returns cluster settings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getSettings(GetSettingsRequest request) throws IOException { @@ -236,12 +258,14 @@ public CompletableFuture getSettings(GetSettingsRequest req /** * Returns cluster settings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getSettings( @@ -253,8 +277,10 @@ public final CompletableFuture getSettings( /** * Returns basic information about the health of the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture health(HealthRequest request) throws IOException { @@ -263,12 +289,14 @@ public CompletableFuture health(HealthRequest request) throws IO /** * Returns basic information about the health of the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture health( @@ -281,8 +309,10 @@ public final CompletableFuture health( /** * Returns a list of any cluster-level changes (e.g. create index, update * mapping, allocate or fail shard) which have not yet been executed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture pendingTasks(PendingTasksRequest request) throws IOException { @@ -292,12 +322,14 @@ public CompletableFuture pendingTasks(PendingTasksRequest /** * Returns a list of any cluster-level changes (e.g. create index, update * mapping, allocate or fail shard) which have not yet been executed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture pendingTasks( @@ -309,8 +341,10 @@ public final CompletableFuture pendingTasks( /** * Updates the cluster voting config exclusions by node ids or node names. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture postVotingConfigExclusions( @@ -321,12 +355,14 @@ public CompletableFuture postVotingConfigExcl /** * Updates the cluster voting config exclusions by node ids or node names. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture postVotingConfigExclusions( @@ -339,8 +375,10 @@ public final CompletableFuture postVotingConf /** * Creates or updates a component template - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putComponentTemplate(PutComponentTemplateRequest request) @@ -350,12 +388,14 @@ public CompletableFuture putComponentTemplate(PutC /** * Creates or updates a component template - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putComponentTemplate( @@ -368,8 +408,10 @@ public final CompletableFuture putComponentTemplat /** * Updates the cluster settings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putSettings(PutSettingsRequest request) throws IOException { @@ -378,12 +420,14 @@ public CompletableFuture putSettings(PutSettingsRequest req /** * Updates the cluster settings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putSettings( @@ -395,8 +439,10 @@ public final CompletableFuture putSettings( /** * Returns the information about configured remote clusters. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture remoteInfo(RemoteInfoRequest request) throws IOException { @@ -405,12 +451,14 @@ public CompletableFuture remoteInfo(RemoteInfoRequest reques /** * Returns the information about configured remote clusters. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture remoteInfo( @@ -422,8 +470,10 @@ public final CompletableFuture remoteInfo( /** * Allows to manually change the allocation of individual shards in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture reroute(RerouteRequest request) throws IOException { @@ -432,12 +482,14 @@ public CompletableFuture reroute(RerouteRequest request) throws /** * Allows to manually change the allocation of individual shards in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture reroute( @@ -449,8 +501,10 @@ public final CompletableFuture reroute( /** * Returns a comprehensive information about the state of the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture state(StateRequest request) throws IOException { @@ -459,12 +513,14 @@ public CompletableFuture state(StateRequest request) throws IOExc /** * Returns a comprehensive information about the state of the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture state(Function> fn) @@ -476,8 +532,10 @@ public final CompletableFuture state(FunctionDocumentation + * on elastic.co */ public CompletableFuture stats(StatsRequest request) throws IOException { @@ -486,12 +544,14 @@ public CompletableFuture stats(StatsRequest request) throws IOExc /** * Returns high-level overview of cluster statistics. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture stats(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterClient.java index c2dd2e19a..53bce2110 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterClient.java @@ -78,8 +78,10 @@ public ClusterClient(Transport transport, RequestOptions options) { /** * Provides explanations for shard allocations in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html" + * + * @see Documentation + * on elastic.co */ public AllocationExplainResponse allocationExplain(AllocationExplainRequest request) throws IOException { @@ -88,12 +90,14 @@ public AllocationExplainResponse allocationExplain(AllocationExplainRequest requ /** * Provides explanations for shard allocations in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-allocation-explain.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final AllocationExplainResponse allocationExplain( @@ -105,8 +109,10 @@ public final AllocationExplainResponse allocationExplain( /** * Deletes a component template - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * + * @see Documentation + * on elastic.co */ public DeleteComponentTemplateResponse deleteComponentTemplate(DeleteComponentTemplateRequest request) @@ -116,12 +122,14 @@ public DeleteComponentTemplateResponse deleteComponentTemplate(DeleteComponentTe /** * Deletes a component template - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteComponentTemplateResponse deleteComponentTemplate( @@ -134,8 +142,10 @@ public final DeleteComponentTemplateResponse deleteComponentTemplate( /** * Clears cluster voting config exclusions. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html" + * + * @see Documentation + * on elastic.co */ public DeleteVotingConfigExclusionsResponse deleteVotingConfigExclusions( @@ -146,12 +156,14 @@ public DeleteVotingConfigExclusionsResponse deleteVotingConfigExclusions( /** * Clears cluster voting config exclusions. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteVotingConfigExclusionsResponse deleteVotingConfigExclusions( @@ -164,8 +176,10 @@ public final DeleteVotingConfigExclusionsResponse deleteVotingConfigExclusions( /** * Returns information about whether a particular component template exist - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * + * @see Documentation + * on elastic.co */ public ExistsComponentTemplateResponse existsComponentTemplate(ExistsComponentTemplateRequest request) @@ -175,12 +189,14 @@ public ExistsComponentTemplateResponse existsComponentTemplate(ExistsComponentTe /** * Returns information about whether a particular component template exist - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ExistsComponentTemplateResponse existsComponentTemplate( @@ -193,8 +209,10 @@ public final ExistsComponentTemplateResponse existsComponentTemplate( /** * Returns one or more component templates - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * + * @see Documentation + * on elastic.co */ public GetComponentTemplateResponse getComponentTemplate(GetComponentTemplateRequest request) throws IOException { @@ -203,12 +221,14 @@ public GetComponentTemplateResponse getComponentTemplate(GetComponentTemplateReq /** * Returns one or more component templates - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetComponentTemplateResponse getComponentTemplate( @@ -221,8 +241,10 @@ public final GetComponentTemplateResponse getComponentTemplate( /** * Returns cluster settings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html" + * + * @see Documentation + * on elastic.co */ public GetSettingsResponse getSettings(GetSettingsRequest request) throws IOException { @@ -231,12 +253,14 @@ public GetSettingsResponse getSettings(GetSettingsRequest request) throws IOExce /** * Returns cluster settings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-get-settings.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetSettingsResponse getSettings( @@ -248,8 +272,10 @@ public final GetSettingsResponse getSettings( /** * Returns basic information about the health of the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html" + * + * @see Documentation + * on elastic.co */ public HealthResponse health(HealthRequest request) throws IOException { @@ -258,12 +284,14 @@ public HealthResponse health(HealthRequest request) throws IOException { /** * Returns basic information about the health of the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-health.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final HealthResponse health(Function> fn) @@ -276,8 +304,10 @@ public final HealthResponse health(FunctionDocumentation + * on elastic.co */ public PendingTasksResponse pendingTasks(PendingTasksRequest request) throws IOException { @@ -287,12 +317,14 @@ public PendingTasksResponse pendingTasks(PendingTasksRequest request) throws IOE /** * Returns a list of any cluster-level changes (e.g. create index, update * mapping, allocate or fail shard) which have not yet been executed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-pending.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PendingTasksResponse pendingTasks( @@ -304,8 +336,10 @@ public final PendingTasksResponse pendingTasks( /** * Updates the cluster voting config exclusions by node ids or node names. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html" + * + * @see Documentation + * on elastic.co */ public PutVotingConfigExclusionsResponse postVotingConfigExclusions(PutVotingConfigExclusionsRequest request) @@ -315,12 +349,14 @@ public PutVotingConfigExclusionsResponse postVotingConfigExclusions(PutVotingCon /** * Updates the cluster voting config exclusions by node ids or node names. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/voting-config-exclusions.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutVotingConfigExclusionsResponse postVotingConfigExclusions( @@ -333,8 +369,10 @@ public final PutVotingConfigExclusionsResponse postVotingConfigExclusions( /** * Creates or updates a component template - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * + * @see Documentation + * on elastic.co */ public PutComponentTemplateResponse putComponentTemplate(PutComponentTemplateRequest request) throws IOException { @@ -343,12 +381,14 @@ public PutComponentTemplateResponse putComponentTemplate(PutComponentTemplateReq /** * Creates or updates a component template - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-component-template.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutComponentTemplateResponse putComponentTemplate( @@ -361,8 +401,10 @@ public final PutComponentTemplateResponse putComponentTemplate( /** * Updates the cluster settings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html" + * + * @see Documentation + * on elastic.co */ public PutSettingsResponse putSettings(PutSettingsRequest request) throws IOException { @@ -371,12 +413,14 @@ public PutSettingsResponse putSettings(PutSettingsRequest request) throws IOExce /** * Updates the cluster settings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-update-settings.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutSettingsResponse putSettings( @@ -388,8 +432,10 @@ public final PutSettingsResponse putSettings( /** * Returns the information about configured remote clusters. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html" + * + * @see Documentation + * on elastic.co */ public RemoteInfoResponse remoteInfo(RemoteInfoRequest request) throws IOException { @@ -398,12 +444,14 @@ public RemoteInfoResponse remoteInfo(RemoteInfoRequest request) throws IOExcepti /** * Returns the information about configured remote clusters. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RemoteInfoResponse remoteInfo(Function> fn) @@ -415,8 +463,10 @@ public final RemoteInfoResponse remoteInfo(FunctionDocumentation + * on elastic.co */ public RerouteResponse reroute(RerouteRequest request) throws IOException { @@ -425,12 +475,14 @@ public RerouteResponse reroute(RerouteRequest request) throws IOException { /** * Allows to manually change the allocation of individual shards in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-reroute.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RerouteResponse reroute(Function> fn) @@ -442,8 +494,10 @@ public final RerouteResponse reroute(FunctionDocumentation + * on elastic.co */ public StateResponse state(StateRequest request) throws IOException { @@ -452,12 +506,14 @@ public StateResponse state(StateRequest request) throws IOException { /** * Returns a comprehensive information about the state of the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-state.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StateResponse state(Function> fn) @@ -469,8 +525,10 @@ public final StateResponse state(FunctionDocumentation + * on elastic.co */ public StatsResponse stats(StatsRequest request) throws IOException { @@ -479,12 +537,14 @@ public StatsResponse stats(StatsRequest request) throws IOException { /** * Returns high-level overview of cluster statistics. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StatsResponse stats(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesAsyncClient.java index 6306a1231..257b4ea88 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesAsyncClient.java @@ -55,8 +55,10 @@ public DanglingIndicesAsyncClient(Transport transport, RequestOptions options) { /** * Deletes the specified dangling index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteDanglingIndex(IndexDeleteRequest request) throws IOException { @@ -65,12 +67,14 @@ public CompletableFuture deleteDanglingIndex(IndexDeleteReq /** * Deletes the specified dangling index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteDanglingIndex( @@ -82,8 +86,10 @@ public final CompletableFuture deleteDanglingIndex( /** * Imports the specified dangling index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture importDanglingIndex(IndexImportRequest request) throws IOException { @@ -92,12 +98,14 @@ public CompletableFuture importDanglingIndex(IndexImportReq /** * Imports the specified dangling index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture importDanglingIndex( @@ -109,8 +117,10 @@ public final CompletableFuture importDanglingIndex( /** * Returns all dangling indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture listDanglingIndices(IndicesListRequest request) throws IOException { @@ -119,12 +129,14 @@ public CompletableFuture listDanglingIndices(IndicesListReq /** * Returns all dangling indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture listDanglingIndices( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesClient.java index ce338e51d..112035d61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesClient.java @@ -54,8 +54,10 @@ public DanglingIndicesClient(Transport transport, RequestOptions options) { /** * Deletes the specified dangling index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html" + * + * @see Documentation + * on elastic.co */ public IndexDeleteResponse deleteDanglingIndex(IndexDeleteRequest request) throws IOException { @@ -64,12 +66,14 @@ public IndexDeleteResponse deleteDanglingIndex(IndexDeleteRequest request) throw /** * Deletes the specified dangling index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final IndexDeleteResponse deleteDanglingIndex( @@ -81,8 +85,10 @@ public final IndexDeleteResponse deleteDanglingIndex( /** * Imports the specified dangling index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html" + * + * @see Documentation + * on elastic.co */ public IndexImportResponse importDanglingIndex(IndexImportRequest request) throws IOException { @@ -91,12 +97,14 @@ public IndexImportResponse importDanglingIndex(IndexImportRequest request) throw /** * Imports the specified dangling index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final IndexImportResponse importDanglingIndex( @@ -108,8 +116,10 @@ public final IndexImportResponse importDanglingIndex( /** * Returns all dangling indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html" + * + * @see Documentation + * on elastic.co */ public IndicesListResponse listDanglingIndices(IndicesListRequest request) throws IOException { @@ -118,12 +128,14 @@ public IndicesListResponse listDanglingIndices(IndicesListRequest request) throw /** * Returns all dangling indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final IndicesListResponse listDanglingIndices( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/enrich/EnrichAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/enrich/EnrichAsyncClient.java index 1d0a687e3..aafa9d15e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/enrich/EnrichAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/enrich/EnrichAsyncClient.java @@ -59,8 +59,10 @@ public EnrichAsyncClient(Transport transport, RequestOptions options) { /** * Deletes an existing enrich policy and its enrich index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deletePolicy(DeletePolicyRequest request) throws IOException { @@ -69,12 +71,14 @@ public CompletableFuture deletePolicy(DeletePolicyRequest /** * Deletes an existing enrich policy and its enrich index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deletePolicy( @@ -86,8 +90,10 @@ public final CompletableFuture deletePolicy( /** * Creates the enrich index for an existing enrich policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture executePolicy(ExecutePolicyRequest request) throws IOException { @@ -96,12 +102,14 @@ public CompletableFuture executePolicy(ExecutePolicyReque /** * Creates the enrich index for an existing enrich policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture executePolicy( @@ -113,8 +121,10 @@ public final CompletableFuture executePolicy( /** * Gets information about an enrich policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getPolicy(GetPolicyRequest request) throws IOException { @@ -123,12 +133,14 @@ public CompletableFuture getPolicy(GetPolicyRequest request) /** * Gets information about an enrich policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getPolicy( @@ -140,8 +152,10 @@ public final CompletableFuture getPolicy( /** * Creates a new enrich policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-enrich-policy-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putPolicy(PutPolicyRequest request) throws IOException { @@ -150,12 +164,14 @@ public CompletableFuture putPolicy(PutPolicyRequest request) /** * Creates a new enrich policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-enrich-policy-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putPolicy( @@ -168,8 +184,10 @@ public final CompletableFuture putPolicy( /** * Gets enrich coordinator statistics and information about enrich policies that * are currently executing. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/enrich-stats-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture stats() throws IOException { return this.transport.performRequestAsync(StatsRequest.INSTANCE, StatsRequest.ENDPOINT, this.requestOptions); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/enrich/EnrichClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/enrich/EnrichClient.java index bd9d8c735..98a7ddc64 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/enrich/EnrichClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/enrich/EnrichClient.java @@ -58,8 +58,10 @@ public EnrichClient(Transport transport, RequestOptions options) { /** * Deletes an existing enrich policy and its enrich index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html" + * + * @see Documentation + * on elastic.co */ public DeletePolicyResponse deletePolicy(DeletePolicyRequest request) throws IOException { @@ -68,12 +70,14 @@ public DeletePolicyResponse deletePolicy(DeletePolicyRequest request) throws IOE /** * Deletes an existing enrich policy and its enrich index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-enrich-policy-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeletePolicyResponse deletePolicy( @@ -85,8 +89,10 @@ public final DeletePolicyResponse deletePolicy( /** * Creates the enrich index for an existing enrich policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html" + * + * @see Documentation + * on elastic.co */ public ExecutePolicyResponse executePolicy(ExecutePolicyRequest request) throws IOException { @@ -95,12 +101,14 @@ public ExecutePolicyResponse executePolicy(ExecutePolicyRequest request) throws /** * Creates the enrich index for an existing enrich policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/execute-enrich-policy-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ExecutePolicyResponse executePolicy( @@ -112,8 +120,10 @@ public final ExecutePolicyResponse executePolicy( /** * Gets information about an enrich policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html" + * + * @see Documentation + * on elastic.co */ public GetPolicyResponse getPolicy(GetPolicyRequest request) throws IOException { @@ -122,12 +132,14 @@ public GetPolicyResponse getPolicy(GetPolicyRequest request) throws IOException /** * Gets information about an enrich policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-enrich-policy-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetPolicyResponse getPolicy(Function> fn) @@ -139,8 +151,10 @@ public final GetPolicyResponse getPolicy(FunctionDocumentation + * on elastic.co */ public PutPolicyResponse putPolicy(PutPolicyRequest request) throws IOException { @@ -149,12 +163,14 @@ public PutPolicyResponse putPolicy(PutPolicyRequest request) throws IOException /** * Creates a new enrich policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-enrich-policy-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutPolicyResponse putPolicy(Function> fn) @@ -167,8 +183,10 @@ public final PutPolicyResponse putPolicy(FunctionDocumentation + * on elastic.co */ public StatsResponse stats() throws IOException { return this.transport.performRequest(StatsRequest.INSTANCE, StatsRequest.ENDPOINT, this.requestOptions); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/eql/EqlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/eql/EqlAsyncClient.java index 0ccb252f5..e04c771a7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/eql/EqlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/eql/EqlAsyncClient.java @@ -58,8 +58,10 @@ public EqlAsyncClient(Transport transport, RequestOptions options) { /** * Deletes an async EQL search by ID. If the search is still running, the search * request will be cancelled. Otherwise, the saved search results are deleted. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture delete(DeleteRequest request) throws IOException { @@ -69,12 +71,14 @@ public CompletableFuture delete(DeleteRequest request) throws IO /** * Deletes an async EQL search by ID. If the search is still running, the search * request will be cancelled. Otherwise, the saved search results are deleted. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture delete( @@ -87,8 +91,10 @@ public final CompletableFuture delete( /** * Returns async results from previously executed Event Query Language (EQL) * search - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> get(GetRequest request, Class tEventClass) @@ -100,12 +106,14 @@ public CompletableFuture> get(GetRequest request, C /** * Returns async results from previously executed Event Query Language (EQL) * search - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> get( @@ -118,8 +126,10 @@ public final CompletableFuture> get( /** * Returns the status of a previously submitted async or stored Event Query * Language (EQL) search - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getStatus(GetStatusRequest request) throws IOException { @@ -129,12 +139,14 @@ public CompletableFuture getStatus(GetStatusRequest request) /** * Returns the status of a previously submitted async or stored Event Query * Language (EQL) search - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getStatus( @@ -146,8 +158,10 @@ public final CompletableFuture getStatus( /** * Returns results matching a query expressed in Event Query Language (EQL) - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> search(SearchRequest request, Class tEventClass) @@ -158,12 +172,14 @@ public CompletableFuture> search(SearchRequest r /** * Returns results matching a query expressed in Event Query Language (EQL) - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> search( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/eql/EqlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/eql/EqlClient.java index e2beaadb9..82843e257 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/eql/EqlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/eql/EqlClient.java @@ -57,8 +57,10 @@ public EqlClient(Transport transport, RequestOptions options) { /** * Deletes an async EQL search by ID. If the search is still running, the search * request will be cancelled. Otherwise, the saved search results are deleted. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html" + * + * @see Documentation + * on elastic.co */ public DeleteResponse delete(DeleteRequest request) throws IOException { @@ -68,12 +70,14 @@ public DeleteResponse delete(DeleteRequest request) throws IOException { /** * Deletes an async EQL search by ID. If the search is still running, the search * request will be cancelled. Otherwise, the saved search results are deleted. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteResponse delete(Function> fn) @@ -86,8 +90,10 @@ public final DeleteResponse delete(FunctionDocumentation + * on elastic.co */ public GetResponse get(GetRequest request, Class tEventClass) throws IOException { @@ -98,12 +104,14 @@ public GetResponse get(GetRequest request, Class tEvent /** * Returns async results from previously executed Event Query Language (EQL) * search - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetResponse get(Function> fn, @@ -116,8 +124,10 @@ public final GetResponse get(FunctionDocumentation + * on elastic.co */ public GetStatusResponse getStatus(GetStatusRequest request) throws IOException { @@ -127,12 +137,14 @@ public GetStatusResponse getStatus(GetStatusRequest request) throws IOException /** * Returns the status of a previously submitted async or stored Event Query * Language (EQL) search - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/eql-search-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetStatusResponse getStatus(Function> fn) @@ -144,8 +156,10 @@ public final GetStatusResponse getStatus(FunctionDocumentation + * on elastic.co */ public SearchResponse search(SearchRequest request, Class tEventClass) throws IOException { @@ -155,12 +169,14 @@ public SearchResponse search(SearchRequest request, ClassDocumentation + * on elastic.co */ public final SearchResponse search( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesAsyncClient.java index 862c95294..a4d67fe07 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesAsyncClient.java @@ -54,8 +54,10 @@ public FeaturesAsyncClient(Transport transport, RequestOptions options) { /** * Gets a list of features which can be included in snapshots using the * feature_states field when creating a snapshot - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-features-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getFeatures(GetFeaturesRequest request) throws IOException { @@ -65,12 +67,14 @@ public CompletableFuture getFeatures(GetFeaturesRequest req /** * Gets a list of features which can be included in snapshots using the * feature_states field when creating a snapshot - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-features-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getFeatures( @@ -82,8 +86,10 @@ public final CompletableFuture getFeatures( /** * Resets the internal state of features, usually by deleting system indices - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture resetFeatures(ResetFeaturesRequest request) throws IOException { @@ -92,12 +98,14 @@ public CompletableFuture resetFeatures(ResetFeaturesReque /** * Resets the internal state of features, usually by deleting system indices - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture resetFeatures( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesClient.java index 979a3f98b..6087a3a41 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesClient.java @@ -53,8 +53,10 @@ public FeaturesClient(Transport transport, RequestOptions options) { /** * Gets a list of features which can be included in snapshots using the * feature_states field when creating a snapshot - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-features-api.html" + * + * @see Documentation + * on elastic.co */ public GetFeaturesResponse getFeatures(GetFeaturesRequest request) throws IOException { @@ -64,12 +66,14 @@ public GetFeaturesResponse getFeatures(GetFeaturesRequest request) throws IOExce /** * Gets a list of features which can be included in snapshots using the * feature_states field when creating a snapshot - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-features-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetFeaturesResponse getFeatures( @@ -81,8 +85,10 @@ public final GetFeaturesResponse getFeatures( /** * Resets the internal state of features, usually by deleting system indices - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public ResetFeaturesResponse resetFeatures(ResetFeaturesRequest request) throws IOException { @@ -91,12 +97,14 @@ public ResetFeaturesResponse resetFeatures(ResetFeaturesRequest request) throws /** * Resets the internal state of features, usually by deleting system indices - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ResetFeaturesResponse resetFeatures( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/graph/GraphAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/graph/GraphAsyncClient.java index 30ac6ac5e..e7a76b2b1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/graph/GraphAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/graph/GraphAsyncClient.java @@ -52,8 +52,10 @@ public GraphAsyncClient(Transport transport, RequestOptions options) { /** * Explore extracted and summarized information about the documents and terms in * an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture explore(ExploreRequest request) throws IOException { @@ -63,12 +65,14 @@ public CompletableFuture explore(ExploreRequest request) throws /** * Explore extracted and summarized information about the documents and terms in * an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture explore( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/graph/GraphClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/graph/GraphClient.java index 9c70a207f..117890d7f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/graph/GraphClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/graph/GraphClient.java @@ -51,8 +51,10 @@ public GraphClient(Transport transport, RequestOptions options) { /** * Explore extracted and summarized information about the documents and terms in * an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html" + * + * @see Documentation + * on elastic.co */ public ExploreResponse explore(ExploreRequest request) throws IOException { @@ -62,12 +64,14 @@ public ExploreResponse explore(ExploreRequest request) throws IOException { /** * Explore extracted and summarized information about the documents and terms in * an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/graph-explore-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ExploreResponse explore(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ilm/IlmAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ilm/IlmAsyncClient.java index f3a543a5f..4e4b7defe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ilm/IlmAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ilm/IlmAsyncClient.java @@ -70,8 +70,10 @@ public IlmAsyncClient(Transport transport, RequestOptions options) { /** * Deletes the specified lifecycle policy definition. A currently used policy * cannot be deleted. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteLifecycle(DeleteLifecycleRequest request) @@ -82,12 +84,14 @@ public CompletableFuture deleteLifecycle(DeleteLifecycl /** * Deletes the specified lifecycle policy definition. A currently used policy * cannot be deleted. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteLifecycle( @@ -100,8 +104,10 @@ public final CompletableFuture deleteLifecycle( /** * Retrieves information about the index's current lifecycle state, such as the * currently executing phase, action, and step. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture explainLifecycle(ExplainLifecycleRequest request) @@ -112,12 +118,14 @@ public CompletableFuture explainLifecycle(ExplainLifec /** * Retrieves information about the index's current lifecycle state, such as the * currently executing phase, action, and step. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture explainLifecycle( @@ -130,8 +138,10 @@ public final CompletableFuture explainLifecycle( /** * Returns the specified policy definition. Includes the policy version and last * modified date. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getLifecycle(GetLifecycleRequest request) throws IOException { @@ -141,12 +151,14 @@ public CompletableFuture getLifecycle(GetLifecycleRequest /** * Returns the specified policy definition. Includes the policy version and last * modified date. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getLifecycle( @@ -158,8 +170,10 @@ public final CompletableFuture getLifecycle( /** * Retrieves the current index lifecycle management (ILM) status. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-status.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getStatus() throws IOException { return this.transport.performRequestAsync(GetStatusRequest.INSTANCE, GetStatusRequest.ENDPOINT, @@ -170,8 +184,10 @@ public CompletableFuture getStatus() throws IOException { /** * Manually moves an index into the specified step and executes that step. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-move-to-step.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture moveToStep(MoveToStepRequest request) throws IOException { @@ -180,12 +196,14 @@ public CompletableFuture moveToStep(MoveToStepRequest reques /** * Manually moves an index into the specified step and executes that step. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-move-to-step.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture moveToStep( @@ -197,8 +215,10 @@ public final CompletableFuture moveToStep( /** * Creates a lifecycle policy - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putLifecycle(PutLifecycleRequest request) throws IOException { @@ -207,12 +227,14 @@ public CompletableFuture putLifecycle(PutLifecycleRequest /** * Creates a lifecycle policy - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putLifecycle( @@ -224,8 +246,10 @@ public final CompletableFuture putLifecycle( /** * Removes the assigned lifecycle policy and stops managing the specified index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture removePolicy(RemovePolicyRequest request) throws IOException { @@ -234,12 +258,14 @@ public CompletableFuture removePolicy(RemovePolicyRequest /** * Removes the assigned lifecycle policy and stops managing the specified index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture removePolicy( @@ -251,8 +277,10 @@ public final CompletableFuture removePolicy( /** * Retries executing the policy for an index that is in the ERROR step. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-retry-policy.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture retry(RetryRequest request) throws IOException { @@ -261,12 +289,14 @@ public CompletableFuture retry(RetryRequest request) throws IOExc /** * Retries executing the policy for an index that is in the ERROR step. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-retry-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture retry(Function> fn) @@ -278,8 +308,10 @@ public final CompletableFuture retry(FunctionDocumentation + * on elastic.co */ public CompletableFuture start(StartRequest request) throws IOException { @@ -288,12 +320,14 @@ public CompletableFuture start(StartRequest request) throws IOExc /** * Start the index lifecycle management (ILM) plugin. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-start.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture start(Function> fn) @@ -306,8 +340,10 @@ public final CompletableFuture start(FunctionDocumentation + * on elastic.co */ public CompletableFuture stop(StopRequest request) throws IOException { @@ -317,12 +353,14 @@ public CompletableFuture stop(StopRequest request) throws IOExcept /** * Halts all lifecycle management operations and stops the index lifecycle * management (ILM) plugin - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-stop.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture stop(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ilm/IlmClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ilm/IlmClient.java index 2f119d150..4bc411be9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ilm/IlmClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ilm/IlmClient.java @@ -69,8 +69,10 @@ public IlmClient(Transport transport, RequestOptions options) { /** * Deletes the specified lifecycle policy definition. A currently used policy * cannot be deleted. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html" + * + * @see Documentation + * on elastic.co */ public DeleteLifecycleResponse deleteLifecycle(DeleteLifecycleRequest request) throws IOException { @@ -80,12 +82,14 @@ public DeleteLifecycleResponse deleteLifecycle(DeleteLifecycleRequest request) t /** * Deletes the specified lifecycle policy definition. A currently used policy * cannot be deleted. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteLifecycleResponse deleteLifecycle( @@ -98,8 +102,10 @@ public final DeleteLifecycleResponse deleteLifecycle( /** * Retrieves information about the index's current lifecycle state, such as the * currently executing phase, action, and step. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html" + * + * @see Documentation + * on elastic.co */ public ExplainLifecycleResponse explainLifecycle(ExplainLifecycleRequest request) throws IOException { @@ -109,12 +115,14 @@ public ExplainLifecycleResponse explainLifecycle(ExplainLifecycleRequest request /** * Retrieves information about the index's current lifecycle state, such as the * currently executing phase, action, and step. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ExplainLifecycleResponse explainLifecycle( @@ -127,8 +135,10 @@ public final ExplainLifecycleResponse explainLifecycle( /** * Returns the specified policy definition. Includes the policy version and last * modified date. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html" + * + * @see Documentation + * on elastic.co */ public GetLifecycleResponse getLifecycle(GetLifecycleRequest request) throws IOException { @@ -138,12 +148,14 @@ public GetLifecycleResponse getLifecycle(GetLifecycleRequest request) throws IOE /** * Returns the specified policy definition. Includes the policy version and last * modified date. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetLifecycleResponse getLifecycle( @@ -155,8 +167,10 @@ public final GetLifecycleResponse getLifecycle( /** * Retrieves the current index lifecycle management (ILM) status. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-status.html" + * + * @see Documentation + * on elastic.co */ public GetStatusResponse getStatus() throws IOException { return this.transport.performRequest(GetStatusRequest.INSTANCE, GetStatusRequest.ENDPOINT, this.requestOptions); @@ -166,8 +180,10 @@ public GetStatusResponse getStatus() throws IOException { /** * Manually moves an index into the specified step and executes that step. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-move-to-step.html" + * + * @see Documentation + * on elastic.co */ public MoveToStepResponse moveToStep(MoveToStepRequest request) throws IOException { @@ -176,12 +192,14 @@ public MoveToStepResponse moveToStep(MoveToStepRequest request) throws IOExcepti /** * Manually moves an index into the specified step and executes that step. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-move-to-step.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final MoveToStepResponse moveToStep(Function> fn) @@ -193,8 +211,10 @@ public final MoveToStepResponse moveToStep(FunctionDocumentation + * on elastic.co */ public PutLifecycleResponse putLifecycle(PutLifecycleRequest request) throws IOException { @@ -203,12 +223,14 @@ public PutLifecycleResponse putLifecycle(PutLifecycleRequest request) throws IOE /** * Creates a lifecycle policy - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutLifecycleResponse putLifecycle( @@ -220,8 +242,10 @@ public final PutLifecycleResponse putLifecycle( /** * Removes the assigned lifecycle policy and stops managing the specified index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html" + * + * @see Documentation + * on elastic.co */ public RemovePolicyResponse removePolicy(RemovePolicyRequest request) throws IOException { @@ -230,12 +254,14 @@ public RemovePolicyResponse removePolicy(RemovePolicyRequest request) throws IOE /** * Removes the assigned lifecycle policy and stops managing the specified index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RemovePolicyResponse removePolicy( @@ -247,8 +273,10 @@ public final RemovePolicyResponse removePolicy( /** * Retries executing the policy for an index that is in the ERROR step. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-retry-policy.html" + * + * @see Documentation + * on elastic.co */ public RetryResponse retry(RetryRequest request) throws IOException { @@ -257,12 +285,14 @@ public RetryResponse retry(RetryRequest request) throws IOException { /** * Retries executing the policy for an index that is in the ERROR step. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-retry-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RetryResponse retry(Function> fn) @@ -274,8 +304,10 @@ public final RetryResponse retry(FunctionDocumentation + * on elastic.co */ public StartResponse start(StartRequest request) throws IOException { @@ -284,12 +316,14 @@ public StartResponse start(StartRequest request) throws IOException { /** * Start the index lifecycle management (ILM) plugin. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-start.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StartResponse start(Function> fn) @@ -302,8 +336,10 @@ public final StartResponse start(FunctionDocumentation + * on elastic.co */ public StopResponse stop(StopRequest request) throws IOException { @@ -313,12 +349,14 @@ public StopResponse stop(StopRequest request) throws IOException { /** * Halts all lifecycle management operations and stops the index lifecycle * management (ILM) plugin - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-stop.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StopResponse stop(Function> fn) throws IOException { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesAsyncClient.java index 2f04cd1aa..0fbe4d83e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesAsyncClient.java @@ -155,8 +155,10 @@ public IndicesAsyncClient(Transport transport, RequestOptions options) { /** * Adds a block to an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-blocks.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture addBlock(AddBlockRequest request) throws IOException { @@ -165,12 +167,14 @@ public CompletableFuture addBlock(AddBlockRequest request) thr /** * Adds a block to an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-blocks.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture addBlock( @@ -183,8 +187,10 @@ public final CompletableFuture addBlock( /** * Performs the analysis process on a text and return the tokens breakdown of * the text. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture analyze(AnalyzeRequest request) throws IOException { @@ -194,12 +200,14 @@ public CompletableFuture analyze(AnalyzeRequest request) throws /** * Performs the analysis process on a text and return the tokens breakdown of * the text. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture analyze( @@ -211,8 +219,10 @@ public final CompletableFuture analyze( /** * Clears all or specific caches for one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture clearCache(ClearCacheRequest request) throws IOException { @@ -221,12 +231,14 @@ public CompletableFuture clearCache(ClearCacheRequest reques /** * Clears all or specific caches for one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture clearCache( @@ -238,8 +250,10 @@ public final CompletableFuture clearCache( /** * Clones an index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture clone(CloneRequest request) throws IOException { @@ -248,12 +262,14 @@ public CompletableFuture clone(CloneRequest request) throws IOExc /** * Clones an index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture clone(Function> fn) @@ -265,8 +281,10 @@ public final CompletableFuture clone(FunctionDocumentation + * on elastic.co */ public CompletableFuture close(CloseRequest request) throws IOException { @@ -275,12 +293,14 @@ public CompletableFuture close(CloseRequest request) throws IOExc /** * Closes an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture close(Function> fn) @@ -292,8 +312,10 @@ public final CompletableFuture close(FunctionDocumentation + * on elastic.co */ public CompletableFuture create(CreateRequest request) throws IOException { @@ -302,12 +324,14 @@ public CompletableFuture create(CreateRequest request) throws IO /** * Creates an index with optional settings and mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture create( @@ -319,8 +343,10 @@ public final CompletableFuture create( /** * Creates a data stream - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture createDataStream(CreateDataStreamRequest request) @@ -330,12 +356,14 @@ public CompletableFuture createDataStream(CreateDataSt /** * Creates a data stream - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture createDataStream( @@ -347,8 +375,10 @@ public final CompletableFuture createDataStream( /** * Provides statistics on operations happening in a data stream. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture dataStreamsStats(DataStreamsStatsRequest request) @@ -358,12 +388,14 @@ public CompletableFuture dataStreamsStats(DataStreamsS /** * Provides statistics on operations happening in a data stream. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture dataStreamsStats( @@ -375,8 +407,10 @@ public final CompletableFuture dataStreamsStats( /** * Deletes an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture delete(DeleteRequest request) throws IOException { @@ -385,12 +419,14 @@ public CompletableFuture delete(DeleteRequest request) throws IO /** * Deletes an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture delete( @@ -402,8 +438,10 @@ public final CompletableFuture delete( /** * Deletes an alias. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteAlias(DeleteAliasRequest request) throws IOException { @@ -412,12 +450,14 @@ public CompletableFuture deleteAlias(DeleteAliasRequest req /** * Deletes an alias. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteAlias( @@ -429,8 +469,10 @@ public final CompletableFuture deleteAlias( /** * Deletes a data stream. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteDataStream(DeleteDataStreamRequest request) @@ -440,12 +482,14 @@ public CompletableFuture deleteDataStream(DeleteDataSt /** * Deletes a data stream. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteDataStream( @@ -457,8 +501,10 @@ public final CompletableFuture deleteDataStream( /** * Deletes an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteIndexTemplate(DeleteIndexTemplateRequest request) @@ -468,12 +514,14 @@ public CompletableFuture deleteIndexTemplate(Delete /** * Deletes an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteIndexTemplate( @@ -486,8 +534,10 @@ public final CompletableFuture deleteIndexTemplate( /** * Deletes an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteTemplate(DeleteTemplateRequest request) throws IOException { @@ -496,12 +546,14 @@ public CompletableFuture deleteTemplate(DeleteTemplateRe /** * Deletes an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteTemplate( @@ -513,8 +565,10 @@ public final CompletableFuture deleteTemplate( /** * Returns information about whether a particular index exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture exists(ExistsRequest request) throws IOException { @@ -523,12 +577,14 @@ public CompletableFuture exists(ExistsRequest request) throws I /** * Returns information about whether a particular index exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture exists( @@ -540,8 +596,10 @@ public final CompletableFuture exists( /** * Returns information about whether a particular alias exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture existsAlias(ExistsAliasRequest request) throws IOException { @@ -550,12 +608,14 @@ public CompletableFuture existsAlias(ExistsAliasRequest request /** * Returns information about whether a particular alias exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture existsAlias( @@ -567,8 +627,10 @@ public final CompletableFuture existsAlias( /** * Returns information about whether a particular index template exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture existsIndexTemplate(ExistsIndexTemplateRequest request) @@ -578,12 +640,14 @@ public CompletableFuture existsIndexTemplate(ExistsIndexTemplat /** * Returns information about whether a particular index template exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture existsIndexTemplate( @@ -596,8 +660,10 @@ public final CompletableFuture existsIndexTemplate( /** * Returns information about whether a particular index template exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture existsTemplate(ExistsTemplateRequest request) throws IOException { @@ -606,12 +672,14 @@ public CompletableFuture existsTemplate(ExistsTemplateRequest r /** * Returns information about whether a particular index template exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture existsTemplate( @@ -624,8 +692,10 @@ public final CompletableFuture existsTemplate( /** * Returns information about whether a particular document type exists. * (DEPRECATED) - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture existsType(ExistsTypeRequest request) throws IOException { @@ -635,12 +705,14 @@ public CompletableFuture existsType(ExistsTypeRequest request) /** * Returns information about whether a particular document type exists. * (DEPRECATED) - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture existsType( @@ -652,8 +724,10 @@ public final CompletableFuture existsType( /** * Performs the flush operation on one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture flush(FlushRequest request) throws IOException { @@ -662,12 +736,14 @@ public CompletableFuture flush(FlushRequest request) throws IOExc /** * Performs the flush operation on one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture flush(Function> fn) @@ -680,8 +756,10 @@ public final CompletableFuture flush(FunctionDocumentation + * on elastic.co */ public CompletableFuture flushSynced(FlushSyncedRequest request) throws IOException { @@ -691,12 +769,14 @@ public CompletableFuture flushSynced(FlushSyncedRequest req /** * Performs a synced flush operation on one or more indices. Synced flush is * deprecated and will be removed in 8.0. Use flush instead - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture flushSynced( @@ -708,8 +788,10 @@ public final CompletableFuture flushSynced( /** * Performs the force merge operation on one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture forcemerge(ForcemergeRequest request) throws IOException { @@ -718,12 +800,14 @@ public CompletableFuture forcemerge(ForcemergeRequest reques /** * Performs the force merge operation on one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture forcemerge( @@ -736,8 +820,10 @@ public final CompletableFuture forcemerge( /** * Freezes an index. A frozen index has almost no overhead on the cluster * (except for maintaining its metadata in memory) and is read-only. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/freeze-index-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture freeze(FreezeRequest request) throws IOException { @@ -747,12 +833,14 @@ public CompletableFuture freeze(FreezeRequest request) throws IO /** * Freezes an index. A frozen index has almost no overhead on the cluster * (except for maintaining its metadata in memory) and is read-only. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/freeze-index-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture freeze( @@ -764,8 +852,10 @@ public final CompletableFuture freeze( /** * Returns information about one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture get(GetRequest request) throws IOException { @@ -774,12 +864,14 @@ public CompletableFuture get(GetRequest request) throws IOException /** * Returns information about one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture get(Function> fn) @@ -791,8 +883,10 @@ public final CompletableFuture get(FunctionDocumentation + * on elastic.co */ public CompletableFuture getAlias(GetAliasRequest request) throws IOException { @@ -801,12 +895,14 @@ public CompletableFuture getAlias(GetAliasRequest request) thr /** * Returns an alias. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getAlias( @@ -818,8 +914,10 @@ public final CompletableFuture getAlias( /** * Returns data streams. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getDataStream(GetDataStreamRequest request) throws IOException { @@ -828,12 +926,14 @@ public CompletableFuture getDataStream(GetDataStreamReque /** * Returns data streams. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getDataStream( @@ -845,8 +945,10 @@ public final CompletableFuture getDataStream( /** * Returns mapping for one or more fields. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getFieldMapping(GetFieldMappingRequest request) @@ -856,12 +958,14 @@ public CompletableFuture getFieldMapping(GetFieldMappin /** * Returns mapping for one or more fields. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getFieldMapping( @@ -873,8 +977,10 @@ public final CompletableFuture getFieldMapping( /** * Returns an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getIndexTemplate(GetIndexTemplateRequest request) @@ -884,12 +990,14 @@ public CompletableFuture getIndexTemplate(GetIndexTemp /** * Returns an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getIndexTemplate( @@ -901,8 +1009,10 @@ public final CompletableFuture getIndexTemplate( /** * Returns mappings for one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getMapping(GetMappingRequest request) throws IOException { @@ -911,12 +1021,14 @@ public CompletableFuture getMapping(GetMappingRequest reques /** * Returns mappings for one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getMapping( @@ -928,8 +1040,10 @@ public final CompletableFuture getMapping( /** * Returns settings for one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getSettings(GetSettingsRequest request) throws IOException { @@ -938,12 +1052,14 @@ public CompletableFuture getSettings(GetSettingsRequest req /** * Returns settings for one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getSettings( @@ -955,8 +1071,10 @@ public final CompletableFuture getSettings( /** * Returns an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getTemplate(GetTemplateRequest request) throws IOException { @@ -965,12 +1083,14 @@ public CompletableFuture getTemplate(GetTemplateRequest req /** * Returns an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getTemplate( @@ -982,8 +1102,10 @@ public final CompletableFuture getTemplate( /** * DEPRECATED Returns a progress status of current upgrade. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getUpgrade(GetUpgradeRequest request) throws IOException { @@ -992,12 +1114,14 @@ public CompletableFuture getUpgrade(GetUpgradeRequest reques /** * DEPRECATED Returns a progress status of current upgrade. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getUpgrade( @@ -1009,8 +1133,10 @@ public final CompletableFuture getUpgrade( /** * Migrates an alias to a data stream - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture migrateToDataStream(MigrateToDataStreamRequest request) @@ -1020,12 +1146,14 @@ public CompletableFuture migrateToDataStream(Migrat /** * Migrates an alias to a data stream - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture migrateToDataStream( @@ -1038,8 +1166,10 @@ public final CompletableFuture migrateToDataStream( /** * Opens an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture open(OpenRequest request) throws IOException { @@ -1048,12 +1178,14 @@ public CompletableFuture open(OpenRequest request) throws IOExcept /** * Opens an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture open(Function> fn) @@ -1066,8 +1198,10 @@ public final CompletableFuture open(FunctionDocumentation + * on elastic.co */ public CompletableFuture promoteDataStream(PromoteDataStreamRequest request) @@ -1078,12 +1212,14 @@ public CompletableFuture promoteDataStream(PromoteDat /** * Promotes a data stream from a replicated data stream managed by CCR to a * regular data stream - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture promoteDataStream( @@ -1095,8 +1231,10 @@ public final CompletableFuture promoteDataStream( /** * Creates or updates an alias. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putAlias(PutAliasRequest request) throws IOException { @@ -1105,12 +1243,14 @@ public CompletableFuture putAlias(PutAliasRequest request) thr /** * Creates or updates an alias. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putAlias( @@ -1122,8 +1262,10 @@ public final CompletableFuture putAlias( /** * Creates or updates an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putIndexTemplate(PutIndexTemplateRequest request) @@ -1133,12 +1275,14 @@ public CompletableFuture putIndexTemplate(PutIndexTemp /** * Creates or updates an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putIndexTemplate( @@ -1150,8 +1294,10 @@ public final CompletableFuture putIndexTemplate( /** * Updates the index mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putMapping(PutMappingRequest request) throws IOException { @@ -1160,12 +1306,14 @@ public CompletableFuture putMapping(PutMappingRequest reques /** * Updates the index mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putMapping( @@ -1177,8 +1325,10 @@ public final CompletableFuture putMapping( /** * Updates the index settings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putSettings(PutSettingsRequest request) throws IOException { @@ -1187,12 +1337,14 @@ public CompletableFuture putSettings(PutSettingsRequest req /** * Updates the index settings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putSettings( @@ -1204,8 +1356,10 @@ public final CompletableFuture putSettings( /** * Creates or updates an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putTemplate(PutTemplateRequest request) throws IOException { @@ -1214,12 +1368,14 @@ public CompletableFuture putTemplate(PutTemplateRequest req /** * Creates or updates an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putTemplate( @@ -1231,8 +1387,10 @@ public final CompletableFuture putTemplate( /** * Returns information about ongoing index shard recoveries. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture recovery(RecoveryRequest request) throws IOException { @@ -1241,12 +1399,14 @@ public CompletableFuture recovery(RecoveryRequest request) thr /** * Returns information about ongoing index shard recoveries. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture recovery( @@ -1258,8 +1418,10 @@ public final CompletableFuture recovery( /** * Performs the refresh operation in one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture refresh(RefreshRequest request) throws IOException { @@ -1268,12 +1430,14 @@ public CompletableFuture refresh(RefreshRequest request) throws /** * Performs the refresh operation in one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture refresh( @@ -1285,8 +1449,10 @@ public final CompletableFuture refresh( /** * Reloads an index's search analyzers and their resources. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-reload-analyzers.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture reloadSearchAnalyzers(ReloadSearchAnalyzersRequest request) @@ -1296,12 +1462,14 @@ public CompletableFuture reloadSearchAnalyzers(Re /** * Reloads an index's search analyzers and their resources. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-reload-analyzers.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture reloadSearchAnalyzers( @@ -1314,8 +1482,10 @@ public final CompletableFuture reloadSearchAnalyz /** * Returns information about any matching indices, aliases, and data streams - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture resolveIndex(ResolveIndexRequest request) throws IOException { @@ -1324,12 +1494,14 @@ public CompletableFuture resolveIndex(ResolveIndexRequest /** * Returns information about any matching indices, aliases, and data streams - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture resolveIndex( @@ -1342,8 +1514,10 @@ public final CompletableFuture resolveIndex( /** * Updates an alias to point to a new index when the existing index is * considered to be too large or too old. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture rollover(RolloverRequest request) throws IOException { @@ -1353,12 +1527,14 @@ public CompletableFuture rollover(RolloverRequest request) thr /** * Updates an alias to point to a new index when the existing index is * considered to be too large or too old. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture rollover( @@ -1370,8 +1546,10 @@ public final CompletableFuture rollover( /** * Provides low-level information about segments in a Lucene index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture segments(SegmentsRequest request) throws IOException { @@ -1380,12 +1558,14 @@ public CompletableFuture segments(SegmentsRequest request) thr /** * Provides low-level information about segments in a Lucene index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture segments( @@ -1397,8 +1577,10 @@ public final CompletableFuture segments( /** * Provides store information for shard copies of indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture shardStores(ShardStoresRequest request) throws IOException { @@ -1407,12 +1589,14 @@ public CompletableFuture shardStores(ShardStoresRequest req /** * Provides store information for shard copies of indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture shardStores( @@ -1424,8 +1608,10 @@ public final CompletableFuture shardStores( /** * Allow to shrink an existing index into a new index with fewer primary shards. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture shrink(ShrinkRequest request) throws IOException { @@ -1434,12 +1620,14 @@ public CompletableFuture shrink(ShrinkRequest request) throws IO /** * Allow to shrink an existing index into a new index with fewer primary shards. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture shrink( @@ -1452,8 +1640,10 @@ public final CompletableFuture shrink( /** * Simulate matching the given index name against the index templates in the * system - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture simulateIndexTemplate(SimulateIndexTemplateRequest request) @@ -1464,12 +1654,14 @@ public CompletableFuture simulateIndexTemplate(Si /** * Simulate matching the given index name against the index templates in the * system - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture simulateIndexTemplate( @@ -1482,8 +1674,10 @@ public final CompletableFuture simulateIndexTempl /** * Simulate resolving the given template name or body - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture simulateTemplate(SimulateTemplateRequest request) @@ -1493,12 +1687,14 @@ public CompletableFuture simulateTemplate(SimulateTemp /** * Simulate resolving the given template name or body - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture simulateTemplate( @@ -1511,8 +1707,10 @@ public final CompletableFuture simulateTemplate( /** * Allows you to split an existing index into a new index with more primary * shards. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture split(SplitRequest request) throws IOException { @@ -1522,12 +1720,14 @@ public CompletableFuture split(SplitRequest request) throws IOExc /** * Allows you to split an existing index into a new index with more primary * shards. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture split(Function> fn) @@ -1539,8 +1739,10 @@ public final CompletableFuture split(FunctionDocumentation + * on elastic.co */ public CompletableFuture stats(StatsRequest request) throws IOException { @@ -1549,12 +1751,14 @@ public CompletableFuture stats(StatsRequest request) throws IOExc /** * Provides statistics on operations happening in an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture stats(Function> fn) @@ -1567,8 +1771,10 @@ public final CompletableFuture stats(FunctionDocumentation + * on elastic.co */ public CompletableFuture unfreeze(UnfreezeRequest request) throws IOException { @@ -1578,12 +1784,14 @@ public CompletableFuture unfreeze(UnfreezeRequest request) thr /** * Unfreezes an index. When a frozen index is unfrozen, the index goes through * the normal recovery process and becomes writeable again. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/unfreeze-index-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture unfreeze( @@ -1595,8 +1803,10 @@ public final CompletableFuture unfreeze( /** * Updates index aliases. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture updateAliases(UpdateAliasesRequest request) throws IOException { @@ -1605,12 +1815,14 @@ public CompletableFuture updateAliases(UpdateAliasesReque /** * Updates index aliases. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture updateAliases( @@ -1622,8 +1834,10 @@ public final CompletableFuture updateAliases( /** * DEPRECATED Upgrades to the current version of Lucene. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture upgrade(UpgradeRequest request) throws IOException { @@ -1632,12 +1846,14 @@ public CompletableFuture upgrade(UpgradeRequest request) throws /** * DEPRECATED Upgrades to the current version of Lucene. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture upgrade( @@ -1649,8 +1865,10 @@ public final CompletableFuture upgrade( /** * Allows a user to validate a potentially expensive query without executing it. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture validateQuery(ValidateQueryRequest request) throws IOException { @@ -1659,12 +1877,14 @@ public CompletableFuture validateQuery(ValidateQueryReque /** * Allows a user to validate a potentially expensive query without executing it. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture validateQuery( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesClient.java index 9a655daaa..50bf73d42 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesClient.java @@ -154,8 +154,10 @@ public IndicesClient(Transport transport, RequestOptions options) { /** * Adds a block to an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-blocks.html" + * + * @see Documentation + * on elastic.co */ public AddBlockResponse addBlock(AddBlockRequest request) throws IOException { @@ -164,12 +166,14 @@ public AddBlockResponse addBlock(AddBlockRequest request) throws IOException { /** * Adds a block to an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-blocks.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final AddBlockResponse addBlock(Function> fn) @@ -182,8 +186,10 @@ public final AddBlockResponse addBlock(FunctionDocumentation + * on elastic.co */ public AnalyzeResponse analyze(AnalyzeRequest request) throws IOException { @@ -193,12 +199,14 @@ public AnalyzeResponse analyze(AnalyzeRequest request) throws IOException { /** * Performs the analysis process on a text and return the tokens breakdown of * the text. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-analyze.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final AnalyzeResponse analyze(Function> fn) @@ -210,8 +218,10 @@ public final AnalyzeResponse analyze(FunctionDocumentation + * on elastic.co */ public ClearCacheResponse clearCache(ClearCacheRequest request) throws IOException { @@ -220,12 +230,14 @@ public ClearCacheResponse clearCache(ClearCacheRequest request) throws IOExcepti /** * Clears all or specific caches for one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clearcache.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ClearCacheResponse clearCache(Function> fn) @@ -237,8 +249,10 @@ public final ClearCacheResponse clearCache(FunctionDocumentation + * on elastic.co */ public CloneResponse clone(CloneRequest request) throws IOException { @@ -247,12 +261,14 @@ public CloneResponse clone(CloneRequest request) throws IOException { /** * Clones an index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-clone-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CloneResponse clone(Function> fn) @@ -264,8 +280,10 @@ public final CloneResponse clone(FunctionDocumentation + * on elastic.co */ public CloseResponse close(CloseRequest request) throws IOException { @@ -274,12 +292,14 @@ public CloseResponse close(CloseRequest request) throws IOException { /** * Closes an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CloseResponse close(Function> fn) @@ -291,8 +311,10 @@ public final CloseResponse close(FunctionDocumentation + * on elastic.co */ public CreateResponse create(CreateRequest request) throws IOException { @@ -301,12 +323,14 @@ public CreateResponse create(CreateRequest request) throws IOException { /** * Creates an index with optional settings and mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-create-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CreateResponse create(Function> fn) @@ -318,8 +342,10 @@ public final CreateResponse create(FunctionDocumentation + * on elastic.co */ public CreateDataStreamResponse createDataStream(CreateDataStreamRequest request) throws IOException { @@ -328,12 +354,14 @@ public CreateDataStreamResponse createDataStream(CreateDataStreamRequest request /** * Creates a data stream - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CreateDataStreamResponse createDataStream( @@ -345,8 +373,10 @@ public final CreateDataStreamResponse createDataStream( /** * Provides statistics on operations happening in a data stream. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * + * @see Documentation + * on elastic.co */ public DataStreamsStatsResponse dataStreamsStats(DataStreamsStatsRequest request) throws IOException { @@ -355,12 +385,14 @@ public DataStreamsStatsResponse dataStreamsStats(DataStreamsStatsRequest request /** * Provides statistics on operations happening in a data stream. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DataStreamsStatsResponse dataStreamsStats( @@ -372,8 +404,10 @@ public final DataStreamsStatsResponse dataStreamsStats( /** * Deletes an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html" + * + * @see Documentation + * on elastic.co */ public DeleteResponse delete(DeleteRequest request) throws IOException { @@ -382,12 +416,14 @@ public DeleteResponse delete(DeleteRequest request) throws IOException { /** * Deletes an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-delete-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteResponse delete(Function> fn) @@ -399,8 +435,10 @@ public final DeleteResponse delete(FunctionDocumentation + * on elastic.co */ public DeleteAliasResponse deleteAlias(DeleteAliasRequest request) throws IOException { @@ -409,12 +447,14 @@ public DeleteAliasResponse deleteAlias(DeleteAliasRequest request) throws IOExce /** * Deletes an alias. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteAliasResponse deleteAlias( @@ -426,8 +466,10 @@ public final DeleteAliasResponse deleteAlias( /** * Deletes a data stream. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * + * @see Documentation + * on elastic.co */ public DeleteDataStreamResponse deleteDataStream(DeleteDataStreamRequest request) throws IOException { @@ -436,12 +478,14 @@ public DeleteDataStreamResponse deleteDataStream(DeleteDataStreamRequest request /** * Deletes a data stream. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteDataStreamResponse deleteDataStream( @@ -453,8 +497,10 @@ public final DeleteDataStreamResponse deleteDataStream( /** * Deletes an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public DeleteIndexTemplateResponse deleteIndexTemplate(DeleteIndexTemplateRequest request) throws IOException { @@ -463,12 +509,14 @@ public DeleteIndexTemplateResponse deleteIndexTemplate(DeleteIndexTemplateReques /** * Deletes an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteIndexTemplateResponse deleteIndexTemplate( @@ -481,8 +529,10 @@ public final DeleteIndexTemplateResponse deleteIndexTemplate( /** * Deletes an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public DeleteTemplateResponse deleteTemplate(DeleteTemplateRequest request) throws IOException { @@ -491,12 +541,14 @@ public DeleteTemplateResponse deleteTemplate(DeleteTemplateRequest request) thro /** * Deletes an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteTemplateResponse deleteTemplate( @@ -508,8 +560,10 @@ public final DeleteTemplateResponse deleteTemplate( /** * Returns information about whether a particular index exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html" + * + * @see Documentation + * on elastic.co */ public BooleanResponse exists(ExistsRequest request) throws IOException { @@ -518,12 +572,14 @@ public BooleanResponse exists(ExistsRequest request) throws IOException { /** * Returns information about whether a particular index exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-exists.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final BooleanResponse exists(Function> fn) @@ -535,8 +591,10 @@ public final BooleanResponse exists(FunctionDocumentation + * on elastic.co */ public BooleanResponse existsAlias(ExistsAliasRequest request) throws IOException { @@ -545,12 +603,14 @@ public BooleanResponse existsAlias(ExistsAliasRequest request) throws IOExceptio /** * Returns information about whether a particular alias exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final BooleanResponse existsAlias(Function> fn) @@ -562,8 +622,10 @@ public final BooleanResponse existsAlias(FunctionDocumentation + * on elastic.co */ public BooleanResponse existsIndexTemplate(ExistsIndexTemplateRequest request) throws IOException { @@ -572,12 +634,14 @@ public BooleanResponse existsIndexTemplate(ExistsIndexTemplateRequest request) t /** * Returns information about whether a particular index template exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final BooleanResponse existsIndexTemplate( @@ -590,8 +654,10 @@ public final BooleanResponse existsIndexTemplate( /** * Returns information about whether a particular index template exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public BooleanResponse existsTemplate(ExistsTemplateRequest request) throws IOException { @@ -600,12 +666,14 @@ public BooleanResponse existsTemplate(ExistsTemplateRequest request) throws IOEx /** * Returns information about whether a particular index template exists. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final BooleanResponse existsTemplate( @@ -618,8 +686,10 @@ public final BooleanResponse existsTemplate( /** * Returns information about whether a particular document type exists. * (DEPRECATED) - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html" + * + * @see Documentation + * on elastic.co */ public BooleanResponse existsType(ExistsTypeRequest request) throws IOException { @@ -629,12 +699,14 @@ public BooleanResponse existsType(ExistsTypeRequest request) throws IOException /** * Returns information about whether a particular document type exists. * (DEPRECATED) - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-types-exists.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final BooleanResponse existsType(Function> fn) @@ -646,8 +718,10 @@ public final BooleanResponse existsType(FunctionDocumentation + * on elastic.co */ public FlushResponse flush(FlushRequest request) throws IOException { @@ -656,12 +730,14 @@ public FlushResponse flush(FlushRequest request) throws IOException { /** * Performs the flush operation on one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-flush.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final FlushResponse flush(Function> fn) @@ -674,8 +750,10 @@ public final FlushResponse flush(FunctionDocumentation + * on elastic.co */ public FlushSyncedResponse flushSynced(FlushSyncedRequest request) throws IOException { @@ -685,12 +763,14 @@ public FlushSyncedResponse flushSynced(FlushSyncedRequest request) throws IOExce /** * Performs a synced flush operation on one or more indices. Synced flush is * deprecated and will be removed in 8.0. Use flush instead - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-synced-flush-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final FlushSyncedResponse flushSynced( @@ -702,8 +782,10 @@ public final FlushSyncedResponse flushSynced( /** * Performs the force merge operation on one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html" + * + * @see Documentation + * on elastic.co */ public ForcemergeResponse forcemerge(ForcemergeRequest request) throws IOException { @@ -712,12 +794,14 @@ public ForcemergeResponse forcemerge(ForcemergeRequest request) throws IOExcepti /** * Performs the force merge operation on one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-forcemerge.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ForcemergeResponse forcemerge(Function> fn) @@ -730,8 +814,10 @@ public final ForcemergeResponse forcemerge(FunctionDocumentation + * on elastic.co */ public FreezeResponse freeze(FreezeRequest request) throws IOException { @@ -741,12 +827,14 @@ public FreezeResponse freeze(FreezeRequest request) throws IOException { /** * Freezes an index. A frozen index has almost no overhead on the cluster * (except for maintaining its metadata in memory) and is read-only. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/freeze-index-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final FreezeResponse freeze(Function> fn) @@ -758,8 +846,10 @@ public final FreezeResponse freeze(FunctionDocumentation + * on elastic.co */ public GetResponse get(GetRequest request) throws IOException { @@ -768,12 +858,14 @@ public GetResponse get(GetRequest request) throws IOException { /** * Returns information about one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetResponse get(Function> fn) throws IOException { @@ -784,8 +876,10 @@ public final GetResponse get(FunctionDocumentation + * on elastic.co */ public GetAliasResponse getAlias(GetAliasRequest request) throws IOException { @@ -794,12 +888,14 @@ public GetAliasResponse getAlias(GetAliasRequest request) throws IOException { /** * Returns an alias. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetAliasResponse getAlias(Function> fn) @@ -811,8 +907,10 @@ public final GetAliasResponse getAlias(FunctionDocumentation + * on elastic.co */ public GetDataStreamResponse getDataStream(GetDataStreamRequest request) throws IOException { @@ -821,12 +919,14 @@ public GetDataStreamResponse getDataStream(GetDataStreamRequest request) throws /** * Returns data streams. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetDataStreamResponse getDataStream( @@ -838,8 +938,10 @@ public final GetDataStreamResponse getDataStream( /** * Returns mapping for one or more fields. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html" + * + * @see Documentation + * on elastic.co */ public GetFieldMappingResponse getFieldMapping(GetFieldMappingRequest request) throws IOException { @@ -848,12 +950,14 @@ public GetFieldMappingResponse getFieldMapping(GetFieldMappingRequest request) t /** * Returns mapping for one or more fields. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-field-mapping.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetFieldMappingResponse getFieldMapping( @@ -865,8 +969,10 @@ public final GetFieldMappingResponse getFieldMapping( /** * Returns an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public GetIndexTemplateResponse getIndexTemplate(GetIndexTemplateRequest request) throws IOException { @@ -875,12 +981,14 @@ public GetIndexTemplateResponse getIndexTemplate(GetIndexTemplateRequest request /** * Returns an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetIndexTemplateResponse getIndexTemplate( @@ -892,8 +1000,10 @@ public final GetIndexTemplateResponse getIndexTemplate( /** * Returns mappings for one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html" + * + * @see Documentation + * on elastic.co */ public GetMappingResponse getMapping(GetMappingRequest request) throws IOException { @@ -902,12 +1012,14 @@ public GetMappingResponse getMapping(GetMappingRequest request) throws IOExcepti /** * Returns mappings for one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-mapping.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetMappingResponse getMapping(Function> fn) @@ -919,8 +1031,10 @@ public final GetMappingResponse getMapping(FunctionDocumentation + * on elastic.co */ public GetSettingsResponse getSettings(GetSettingsRequest request) throws IOException { @@ -929,12 +1043,14 @@ public GetSettingsResponse getSettings(GetSettingsRequest request) throws IOExce /** * Returns settings for one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-settings.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetSettingsResponse getSettings( @@ -946,8 +1062,10 @@ public final GetSettingsResponse getSettings( /** * Returns an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public GetTemplateResponse getTemplate(GetTemplateRequest request) throws IOException { @@ -956,12 +1074,14 @@ public GetTemplateResponse getTemplate(GetTemplateRequest request) throws IOExce /** * Returns an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetTemplateResponse getTemplate( @@ -973,8 +1093,10 @@ public final GetTemplateResponse getTemplate( /** * DEPRECATED Returns a progress status of current upgrade. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html" + * + * @see Documentation + * on elastic.co */ public GetUpgradeResponse getUpgrade(GetUpgradeRequest request) throws IOException { @@ -983,12 +1105,14 @@ public GetUpgradeResponse getUpgrade(GetUpgradeRequest request) throws IOExcepti /** * DEPRECATED Returns a progress status of current upgrade. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetUpgradeResponse getUpgrade(Function> fn) @@ -1000,8 +1124,10 @@ public final GetUpgradeResponse getUpgrade(FunctionDocumentation + * on elastic.co */ public MigrateToDataStreamResponse migrateToDataStream(MigrateToDataStreamRequest request) throws IOException { @@ -1010,12 +1136,14 @@ public MigrateToDataStreamResponse migrateToDataStream(MigrateToDataStreamReques /** * Migrates an alias to a data stream - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final MigrateToDataStreamResponse migrateToDataStream( @@ -1028,8 +1156,10 @@ public final MigrateToDataStreamResponse migrateToDataStream( /** * Opens an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html" + * + * @see Documentation + * on elastic.co */ public OpenResponse open(OpenRequest request) throws IOException { @@ -1038,12 +1168,14 @@ public OpenResponse open(OpenRequest request) throws IOException { /** * Opens an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-open-close.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final OpenResponse open(Function> fn) throws IOException { @@ -1055,8 +1187,10 @@ public final OpenResponse open(FunctionDocumentation + * on elastic.co */ public PromoteDataStreamResponse promoteDataStream(PromoteDataStreamRequest request) throws IOException { @@ -1066,12 +1200,14 @@ public PromoteDataStreamResponse promoteDataStream(PromoteDataStreamRequest requ /** * Promotes a data stream from a replicated data stream managed by CCR to a * regular data stream - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/data-streams.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PromoteDataStreamResponse promoteDataStream( @@ -1083,8 +1219,10 @@ public final PromoteDataStreamResponse promoteDataStream( /** * Creates or updates an alias. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * + * @see Documentation + * on elastic.co */ public PutAliasResponse putAlias(PutAliasRequest request) throws IOException { @@ -1093,12 +1231,14 @@ public PutAliasResponse putAlias(PutAliasRequest request) throws IOException { /** * Creates or updates an alias. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutAliasResponse putAlias(Function> fn) @@ -1110,8 +1250,10 @@ public final PutAliasResponse putAlias(FunctionDocumentation + * on elastic.co */ public PutIndexTemplateResponse putIndexTemplate(PutIndexTemplateRequest request) throws IOException { @@ -1120,12 +1262,14 @@ public PutIndexTemplateResponse putIndexTemplate(PutIndexTemplateRequest request /** * Creates or updates an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutIndexTemplateResponse putIndexTemplate( @@ -1137,8 +1281,10 @@ public final PutIndexTemplateResponse putIndexTemplate( /** * Updates the index mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html" + * + * @see Documentation + * on elastic.co */ public PutMappingResponse putMapping(PutMappingRequest request) throws IOException { @@ -1147,12 +1293,14 @@ public PutMappingResponse putMapping(PutMappingRequest request) throws IOExcepti /** * Updates the index mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-put-mapping.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutMappingResponse putMapping(Function> fn) @@ -1164,8 +1312,10 @@ public final PutMappingResponse putMapping(FunctionDocumentation + * on elastic.co */ public PutSettingsResponse putSettings(PutSettingsRequest request) throws IOException { @@ -1174,12 +1324,14 @@ public PutSettingsResponse putSettings(PutSettingsRequest request) throws IOExce /** * Updates the index settings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-update-settings.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutSettingsResponse putSettings( @@ -1191,8 +1343,10 @@ public final PutSettingsResponse putSettings( /** * Creates or updates an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public PutTemplateResponse putTemplate(PutTemplateRequest request) throws IOException { @@ -1201,12 +1355,14 @@ public PutTemplateResponse putTemplate(PutTemplateRequest request) throws IOExce /** * Creates or updates an index template. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutTemplateResponse putTemplate( @@ -1218,8 +1374,10 @@ public final PutTemplateResponse putTemplate( /** * Returns information about ongoing index shard recoveries. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html" + * + * @see Documentation + * on elastic.co */ public RecoveryResponse recovery(RecoveryRequest request) throws IOException { @@ -1228,12 +1386,14 @@ public RecoveryResponse recovery(RecoveryRequest request) throws IOException { /** * Returns information about ongoing index shard recoveries. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-recovery.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RecoveryResponse recovery(Function> fn) @@ -1245,8 +1405,10 @@ public final RecoveryResponse recovery(FunctionDocumentation + * on elastic.co */ public RefreshResponse refresh(RefreshRequest request) throws IOException { @@ -1255,12 +1417,14 @@ public RefreshResponse refresh(RefreshRequest request) throws IOException { /** * Performs the refresh operation in one or more indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-refresh.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RefreshResponse refresh(Function> fn) @@ -1272,8 +1436,10 @@ public final RefreshResponse refresh(FunctionDocumentation + * on elastic.co */ public ReloadSearchAnalyzersResponse reloadSearchAnalyzers(ReloadSearchAnalyzersRequest request) @@ -1283,12 +1449,14 @@ public ReloadSearchAnalyzersResponse reloadSearchAnalyzers(ReloadSearchAnalyzers /** * Reloads an index's search analyzers and their resources. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-reload-analyzers.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ReloadSearchAnalyzersResponse reloadSearchAnalyzers( @@ -1301,8 +1469,10 @@ public final ReloadSearchAnalyzersResponse reloadSearchAnalyzers( /** * Returns information about any matching indices, aliases, and data streams - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html" + * + * @see Documentation + * on elastic.co */ public ResolveIndexResponse resolveIndex(ResolveIndexRequest request) throws IOException { @@ -1311,12 +1481,14 @@ public ResolveIndexResponse resolveIndex(ResolveIndexRequest request) throws IOE /** * Returns information about any matching indices, aliases, and data streams - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-index-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ResolveIndexResponse resolveIndex( @@ -1329,8 +1501,10 @@ public final ResolveIndexResponse resolveIndex( /** * Updates an alias to point to a new index when the existing index is * considered to be too large or too old. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html" + * + * @see Documentation + * on elastic.co */ public RolloverResponse rollover(RolloverRequest request) throws IOException { @@ -1340,12 +1514,14 @@ public RolloverResponse rollover(RolloverRequest request) throws IOException { /** * Updates an alias to point to a new index when the existing index is * considered to be too large or too old. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RolloverResponse rollover(Function> fn) @@ -1357,8 +1533,10 @@ public final RolloverResponse rollover(FunctionDocumentation + * on elastic.co */ public SegmentsResponse segments(SegmentsRequest request) throws IOException { @@ -1367,12 +1545,14 @@ public SegmentsResponse segments(SegmentsRequest request) throws IOException { /** * Provides low-level information about segments in a Lucene index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-segments.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final SegmentsResponse segments(Function> fn) @@ -1384,8 +1564,10 @@ public final SegmentsResponse segments(FunctionDocumentation + * on elastic.co */ public ShardStoresResponse shardStores(ShardStoresRequest request) throws IOException { @@ -1394,12 +1576,14 @@ public ShardStoresResponse shardStores(ShardStoresRequest request) throws IOExce /** * Provides store information for shard copies of indices. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shards-stores.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ShardStoresResponse shardStores( @@ -1411,8 +1595,10 @@ public final ShardStoresResponse shardStores( /** * Allow to shrink an existing index into a new index with fewer primary shards. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html" + * + * @see Documentation + * on elastic.co */ public ShrinkResponse shrink(ShrinkRequest request) throws IOException { @@ -1421,12 +1607,14 @@ public ShrinkResponse shrink(ShrinkRequest request) throws IOException { /** * Allow to shrink an existing index into a new index with fewer primary shards. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-shrink-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ShrinkResponse shrink(Function> fn) @@ -1439,8 +1627,10 @@ public final ShrinkResponse shrink(FunctionDocumentation + * on elastic.co */ public SimulateIndexTemplateResponse simulateIndexTemplate(SimulateIndexTemplateRequest request) @@ -1451,12 +1641,14 @@ public SimulateIndexTemplateResponse simulateIndexTemplate(SimulateIndexTemplate /** * Simulate matching the given index name against the index templates in the * system - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final SimulateIndexTemplateResponse simulateIndexTemplate( @@ -1469,8 +1661,10 @@ public final SimulateIndexTemplateResponse simulateIndexTemplate( /** * Simulate resolving the given template name or body - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * + * @see Documentation + * on elastic.co */ public SimulateTemplateResponse simulateTemplate(SimulateTemplateRequest request) throws IOException { @@ -1479,12 +1673,14 @@ public SimulateTemplateResponse simulateTemplate(SimulateTemplateRequest request /** * Simulate resolving the given template name or body - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-templates.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final SimulateTemplateResponse simulateTemplate( @@ -1497,8 +1693,10 @@ public final SimulateTemplateResponse simulateTemplate( /** * Allows you to split an existing index into a new index with more primary * shards. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html" + * + * @see Documentation + * on elastic.co */ public SplitResponse split(SplitRequest request) throws IOException { @@ -1508,12 +1706,14 @@ public SplitResponse split(SplitRequest request) throws IOException { /** * Allows you to split an existing index into a new index with more primary * shards. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-split-index.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final SplitResponse split(Function> fn) @@ -1525,8 +1725,10 @@ public final SplitResponse split(FunctionDocumentation + * on elastic.co */ public StatsResponse stats(StatsRequest request) throws IOException { @@ -1535,12 +1737,14 @@ public StatsResponse stats(StatsRequest request) throws IOException { /** * Provides statistics on operations happening in an index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StatsResponse stats(Function> fn) @@ -1553,8 +1757,10 @@ public final StatsResponse stats(FunctionDocumentation + * on elastic.co */ public UnfreezeResponse unfreeze(UnfreezeRequest request) throws IOException { @@ -1564,12 +1770,14 @@ public UnfreezeResponse unfreeze(UnfreezeRequest request) throws IOException { /** * Unfreezes an index. When a frozen index is unfrozen, the index goes through * the normal recovery process and becomes writeable again. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/unfreeze-index-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UnfreezeResponse unfreeze(Function> fn) @@ -1581,8 +1789,10 @@ public final UnfreezeResponse unfreeze(FunctionDocumentation + * on elastic.co */ public UpdateAliasesResponse updateAliases(UpdateAliasesRequest request) throws IOException { @@ -1591,12 +1801,14 @@ public UpdateAliasesResponse updateAliases(UpdateAliasesRequest request) throws /** * Updates index aliases. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UpdateAliasesResponse updateAliases( @@ -1608,8 +1820,10 @@ public final UpdateAliasesResponse updateAliases( /** * DEPRECATED Upgrades to the current version of Lucene. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html" + * + * @see Documentation + * on elastic.co */ public UpgradeResponse upgrade(UpgradeRequest request) throws IOException { @@ -1618,12 +1832,14 @@ public UpgradeResponse upgrade(UpgradeRequest request) throws IOException { /** * DEPRECATED Upgrades to the current version of Lucene. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-upgrade.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UpgradeResponse upgrade(Function> fn) @@ -1635,8 +1851,10 @@ public final UpgradeResponse upgrade(FunctionDocumentation + * on elastic.co */ public ValidateQueryResponse validateQuery(ValidateQueryRequest request) throws IOException { @@ -1645,12 +1863,14 @@ public ValidateQueryResponse validateQuery(ValidateQueryRequest request) throws /** * Allows a user to validate a potentially expensive query without executing it. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/search-validate.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ValidateQueryResponse validateQuery( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestAsyncClient.java index 8c92bf8d7..8aaff9b0a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestAsyncClient.java @@ -61,8 +61,10 @@ public IngestAsyncClient(Transport transport, RequestOptions options) { /** * Deletes a pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deletePipeline(DeletePipelineRequest request) throws IOException { @@ -71,12 +73,14 @@ public CompletableFuture deletePipeline(DeletePipelineRe /** * Deletes a pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deletePipeline( @@ -88,8 +92,10 @@ public final CompletableFuture deletePipeline( /** * Returns statistical information about geoip databases - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/geoip-stats-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture geoIpStats() throws IOException { return this.transport.performRequestAsync(GeoIpStatsRequest.INSTANCE, GeoIpStatsRequest.ENDPOINT, @@ -100,8 +106,10 @@ public CompletableFuture geoIpStats() throws IOException { /** * Returns a pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getPipeline(GetPipelineRequest request) throws IOException { @@ -110,12 +118,14 @@ public CompletableFuture getPipeline(GetPipelineRequest req /** * Returns a pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getPipeline( @@ -127,8 +137,10 @@ public final CompletableFuture getPipeline( /** * Returns a list of the built-in patterns. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get" + * + * @see Documentation + * on elastic.co */ public CompletableFuture processorGrok() throws IOException { return this.transport.performRequestAsync(ProcessorGrokRequest.INSTANCE, ProcessorGrokRequest.ENDPOINT, @@ -139,8 +151,10 @@ public CompletableFuture processorGrok() throws IOExcepti /** * Creates or updates a pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putPipeline(PutPipelineRequest request) throws IOException { @@ -149,12 +163,14 @@ public CompletableFuture putPipeline(PutPipelineRequest req /** * Creates or updates a pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putPipeline( @@ -166,8 +182,10 @@ public final CompletableFuture putPipeline( /** * Allows to simulate a pipeline with example documents. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture simulate(SimulatePipelineRequest request) throws IOException { @@ -176,12 +194,14 @@ public CompletableFuture simulate(SimulatePipelineRequ /** * Allows to simulate a pipeline with example documents. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture simulate( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestClient.java index ccc0b80c2..e7435ae64 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestClient.java @@ -60,8 +60,10 @@ public IngestClient(Transport transport, RequestOptions options) { /** * Deletes a pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html" + * + * @see Documentation + * on elastic.co */ public DeletePipelineResponse deletePipeline(DeletePipelineRequest request) throws IOException { @@ -70,12 +72,14 @@ public DeletePipelineResponse deletePipeline(DeletePipelineRequest request) thro /** * Deletes a pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-pipeline-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeletePipelineResponse deletePipeline( @@ -87,8 +91,10 @@ public final DeletePipelineResponse deletePipeline( /** * Returns statistical information about geoip databases - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/geoip-stats-api.html" + * + * @see Documentation + * on elastic.co */ public GeoIpStatsResponse geoIpStats() throws IOException { return this.transport.performRequest(GeoIpStatsRequest.INSTANCE, GeoIpStatsRequest.ENDPOINT, @@ -99,8 +105,10 @@ public GeoIpStatsResponse geoIpStats() throws IOException { /** * Returns a pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html" + * + * @see Documentation + * on elastic.co */ public GetPipelineResponse getPipeline(GetPipelineRequest request) throws IOException { @@ -109,12 +117,14 @@ public GetPipelineResponse getPipeline(GetPipelineRequest request) throws IOExce /** * Returns a pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-pipeline-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetPipelineResponse getPipeline( @@ -126,8 +136,10 @@ public final GetPipelineResponse getPipeline( /** * Returns a list of the built-in patterns. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/grok-processor.html#grok-processor-rest-get" + * + * @see Documentation + * on elastic.co */ public ProcessorGrokResponse processorGrok() throws IOException { return this.transport.performRequest(ProcessorGrokRequest.INSTANCE, ProcessorGrokRequest.ENDPOINT, @@ -138,8 +150,10 @@ public ProcessorGrokResponse processorGrok() throws IOException { /** * Creates or updates a pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html" + * + * @see Documentation + * on elastic.co */ public PutPipelineResponse putPipeline(PutPipelineRequest request) throws IOException { @@ -148,12 +162,14 @@ public PutPipelineResponse putPipeline(PutPipelineRequest request) throws IOExce /** * Creates or updates a pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-pipeline-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutPipelineResponse putPipeline( @@ -165,8 +181,10 @@ public final PutPipelineResponse putPipeline( /** * Allows to simulate a pipeline with example documents. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html" + * + * @see Documentation + * on elastic.co */ public SimulatePipelineResponse simulate(SimulatePipelineRequest request) throws IOException { @@ -175,12 +193,14 @@ public SimulatePipelineResponse simulate(SimulatePipelineRequest request) throws /** * Allows to simulate a pipeline with example documents. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/simulate-pipeline-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final SimulatePipelineResponse simulate( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/license/LicenseAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/license/LicenseAsyncClient.java index ec70c7120..5d2883907 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/license/LicenseAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/license/LicenseAsyncClient.java @@ -63,8 +63,10 @@ public LicenseAsyncClient(Transport transport, RequestOptions options) { /** * Deletes licensing information for the cluster - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-license.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture delete() throws IOException { return this.transport.performRequestAsync(DeleteRequest.INSTANCE, DeleteRequest.ENDPOINT, this.requestOptions); @@ -74,8 +76,10 @@ public CompletableFuture delete() throws IOException { /** * Retrieves licensing information for the cluster - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-license.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture get(GetRequest request) throws IOException { @@ -84,12 +88,14 @@ public CompletableFuture get(GetRequest request) throws IOException /** * Retrieves licensing information for the cluster - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-license.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture get(Function> fn) @@ -101,8 +107,10 @@ public final CompletableFuture get(FunctionDocumentation + * on elastic.co */ public CompletableFuture getBasicStatus() throws IOException { return this.transport.performRequestAsync(GetBasicStatusRequest.INSTANCE, GetBasicStatusRequest.ENDPOINT, @@ -113,8 +121,10 @@ public CompletableFuture getBasicStatus() throws IOExcep /** * Retrieves information about the status of the trial license. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-trial-status.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getTrialStatus() throws IOException { return this.transport.performRequestAsync(GetTrialStatusRequest.INSTANCE, GetTrialStatusRequest.ENDPOINT, @@ -125,8 +135,10 @@ public CompletableFuture getTrialStatus() throws IOExcep /** * Updates the license for the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/update-license.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture post(PostRequest request) throws IOException { @@ -135,12 +147,14 @@ public CompletableFuture post(PostRequest request) throws IOExcept /** * Updates the license for the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/update-license.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture post(Function> fn) @@ -152,8 +166,10 @@ public final CompletableFuture post(FunctionDocumentation + * on elastic.co */ public CompletableFuture postStartBasic(PostStartBasicRequest request) throws IOException { @@ -162,12 +178,14 @@ public CompletableFuture postStartBasic(PostStartBasicRe /** * Starts an indefinite basic license. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/start-basic.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture postStartBasic( @@ -179,8 +197,10 @@ public final CompletableFuture postStartBasic( /** * starts a limited time trial license. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/start-trial.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture postStartTrial(PostStartTrialRequest request) throws IOException { @@ -189,12 +209,14 @@ public CompletableFuture postStartTrial(PostStartTrialRe /** * starts a limited time trial license. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/start-trial.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture postStartTrial( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/license/LicenseClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/license/LicenseClient.java index 10a6eb573..4f4915e2e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/license/LicenseClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/license/LicenseClient.java @@ -62,8 +62,10 @@ public LicenseClient(Transport transport, RequestOptions options) { /** * Deletes licensing information for the cluster - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-license.html" + * + * @see Documentation + * on elastic.co */ public DeleteResponse delete() throws IOException { return this.transport.performRequest(DeleteRequest.INSTANCE, DeleteRequest.ENDPOINT, this.requestOptions); @@ -73,8 +75,10 @@ public DeleteResponse delete() throws IOException { /** * Retrieves licensing information for the cluster - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-license.html" + * + * @see Documentation + * on elastic.co */ public GetResponse get(GetRequest request) throws IOException { @@ -83,12 +87,14 @@ public GetResponse get(GetRequest request) throws IOException { /** * Retrieves licensing information for the cluster - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-license.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetResponse get(Function> fn) throws IOException { @@ -99,8 +105,10 @@ public final GetResponse get(FunctionDocumentation + * on elastic.co */ public GetBasicStatusResponse getBasicStatus() throws IOException { return this.transport.performRequest(GetBasicStatusRequest.INSTANCE, GetBasicStatusRequest.ENDPOINT, @@ -111,8 +119,10 @@ public GetBasicStatusResponse getBasicStatus() throws IOException { /** * Retrieves information about the status of the trial license. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-trial-status.html" + * + * @see Documentation + * on elastic.co */ public GetTrialStatusResponse getTrialStatus() throws IOException { return this.transport.performRequest(GetTrialStatusRequest.INSTANCE, GetTrialStatusRequest.ENDPOINT, @@ -123,8 +133,10 @@ public GetTrialStatusResponse getTrialStatus() throws IOException { /** * Updates the license for the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/update-license.html" + * + * @see Documentation + * on elastic.co */ public PostResponse post(PostRequest request) throws IOException { @@ -133,12 +145,14 @@ public PostResponse post(PostRequest request) throws IOException { /** * Updates the license for the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/update-license.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PostResponse post(Function> fn) throws IOException { @@ -149,8 +163,10 @@ public final PostResponse post(FunctionDocumentation + * on elastic.co */ public PostStartBasicResponse postStartBasic(PostStartBasicRequest request) throws IOException { @@ -159,12 +175,14 @@ public PostStartBasicResponse postStartBasic(PostStartBasicRequest request) thro /** * Starts an indefinite basic license. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/start-basic.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PostStartBasicResponse postStartBasic( @@ -176,8 +194,10 @@ public final PostStartBasicResponse postStartBasic( /** * starts a limited time trial license. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/start-trial.html" + * + * @see Documentation + * on elastic.co */ public PostStartTrialResponse postStartTrial(PostStartTrialRequest request) throws IOException { @@ -186,12 +206,14 @@ public PostStartTrialResponse postStartTrial(PostStartTrialRequest request) thro /** * starts a limited time trial license. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/start-trial.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PostStartTrialResponse postStartTrial( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashAsyncClient.java index f52ea098d..2e92f7338 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashAsyncClient.java @@ -55,8 +55,10 @@ public LogstashAsyncClient(Transport transport, RequestOptions options) { /** * Deletes Logstash Pipelines used by Central Management - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deletePipeline(PipelineDeleteRequest request) throws IOException { @@ -65,12 +67,14 @@ public CompletableFuture deletePipeline(PipelineDeleteRe /** * Deletes Logstash Pipelines used by Central Management - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deletePipeline( @@ -82,8 +86,10 @@ public final CompletableFuture deletePipeline( /** * Retrieves Logstash Pipelines used by Central Management - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getPipeline(PipelineGetRequest request) throws IOException { @@ -92,12 +98,14 @@ public CompletableFuture getPipeline(PipelineGetRequest req /** * Retrieves Logstash Pipelines used by Central Management - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getPipeline( @@ -109,8 +117,10 @@ public final CompletableFuture getPipeline( /** * Adds and updates Logstash Pipelines used for Central Management - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putPipeline(PipelinePutRequest request) throws IOException { @@ -119,12 +129,14 @@ public CompletableFuture putPipeline(PipelinePutRequest req /** * Adds and updates Logstash Pipelines used for Central Management - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putPipeline( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashClient.java index 419f9217d..6133cca84 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashClient.java @@ -54,8 +54,10 @@ public LogstashClient(Transport transport, RequestOptions options) { /** * Deletes Logstash Pipelines used by Central Management - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html" + * + * @see Documentation + * on elastic.co */ public PipelineDeleteResponse deletePipeline(PipelineDeleteRequest request) throws IOException { @@ -64,12 +66,14 @@ public PipelineDeleteResponse deletePipeline(PipelineDeleteRequest request) thro /** * Deletes Logstash Pipelines used by Central Management - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-delete-pipeline.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PipelineDeleteResponse deletePipeline( @@ -81,8 +85,10 @@ public final PipelineDeleteResponse deletePipeline( /** * Retrieves Logstash Pipelines used by Central Management - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html" + * + * @see Documentation + * on elastic.co */ public PipelineGetResponse getPipeline(PipelineGetRequest request) throws IOException { @@ -91,12 +97,14 @@ public PipelineGetResponse getPipeline(PipelineGetRequest request) throws IOExce /** * Retrieves Logstash Pipelines used by Central Management - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-get-pipeline.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PipelineGetResponse getPipeline( @@ -108,8 +116,10 @@ public final PipelineGetResponse getPipeline( /** * Adds and updates Logstash Pipelines used for Central Management - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html" + * + * @see Documentation + * on elastic.co */ public PipelinePutResponse putPipeline(PipelinePutRequest request) throws IOException { @@ -118,12 +128,14 @@ public PipelinePutResponse putPipeline(PipelinePutRequest request) throws IOExce /** * Adds and updates Logstash Pipelines used for Central Management - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/logstash-api-put-pipeline.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PipelinePutResponse putPipeline( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationAsyncClient.java index ad1e69641..316f029ac 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationAsyncClient.java @@ -53,8 +53,10 @@ public MigrationAsyncClient(Transport transport, RequestOptions options) { * Retrieves information about different cluster, node, and index level settings * that use deprecated features that will be removed or changed in the next * major version. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deprecations(DeprecationInfoRequest request) throws IOException { @@ -65,12 +67,14 @@ public CompletableFuture deprecations(DeprecationInfoRe * Retrieves information about different cluster, node, and index level settings * that use deprecated features that will be removed or changed in the next * major version. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deprecations( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationClient.java index a0218d01b..1d9c3b4c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationClient.java @@ -52,8 +52,10 @@ public MigrationClient(Transport transport, RequestOptions options) { * Retrieves information about different cluster, node, and index level settings * that use deprecated features that will be removed or changed in the next * major version. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html" + * + * @see Documentation + * on elastic.co */ public DeprecationInfoResponse deprecations(DeprecationInfoRequest request) throws IOException { @@ -64,12 +66,14 @@ public DeprecationInfoResponse deprecations(DeprecationInfoRequest request) thro * Retrieves information about different cluster, node, and index level settings * that use deprecated features that will be removed or changed in the next * major version. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/migration-api-deprecation.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeprecationInfoResponse deprecations( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlAsyncClient.java index 654fc92bb..8d1d2407f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlAsyncClient.java @@ -174,8 +174,10 @@ public MlAsyncClient(Transport transport, RequestOptions options) { /** * Closes one or more anomaly detection jobs. A job can be opened and closed * multiple times throughout its lifecycle. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture closeJob(CloseJobRequest request) throws IOException { @@ -185,12 +187,14 @@ public CompletableFuture closeJob(CloseJobRequest request) thr /** * Closes one or more anomaly detection jobs. A job can be opened and closed * multiple times throughout its lifecycle. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture closeJob( @@ -202,8 +206,10 @@ public final CompletableFuture closeJob( /** * Deletes a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteCalendar(DeleteCalendarRequest request) throws IOException { @@ -212,12 +218,14 @@ public CompletableFuture deleteCalendar(DeleteCalendarRe /** * Deletes a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteCalendar( @@ -229,8 +237,10 @@ public final CompletableFuture deleteCalendar( /** * Deletes scheduled events from a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-event.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteCalendarEvent(DeleteCalendarEventRequest request) @@ -240,12 +250,14 @@ public CompletableFuture deleteCalendarEvent(Delete /** * Deletes scheduled events from a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-event.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteCalendarEvent( @@ -258,8 +270,10 @@ public final CompletableFuture deleteCalendarEvent( /** * Deletes anomaly detection jobs from a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteCalendarJob(DeleteCalendarJobRequest request) @@ -269,12 +283,14 @@ public CompletableFuture deleteCalendarJob(DeleteCale /** * Deletes anomaly detection jobs from a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteCalendarJob( @@ -286,8 +302,10 @@ public final CompletableFuture deleteCalendarJob( /** * Deletes an existing data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteDataFrameAnalytics( @@ -298,12 +316,14 @@ public CompletableFuture deleteDataFrameAnalyt /** * Deletes an existing data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteDataFrameAnalytics( @@ -316,8 +336,10 @@ public final CompletableFuture deleteDataFrame /** * Deletes an existing datafeed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteDatafeed(DeleteDatafeedRequest request) throws IOException { @@ -326,12 +348,14 @@ public CompletableFuture deleteDatafeed(DeleteDatafeedRe /** * Deletes an existing datafeed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteDatafeed( @@ -343,8 +367,10 @@ public final CompletableFuture deleteDatafeed( /** * Deletes a filter. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-filter.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteFilter(DeleteFilterRequest request) throws IOException { @@ -353,12 +379,14 @@ public CompletableFuture deleteFilter(DeleteFilterRequest /** * Deletes a filter. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-filter.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteFilter( @@ -370,8 +398,10 @@ public final CompletableFuture deleteFilter( /** * Deletes forecasts from a machine learning job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteForecast(DeleteForecastRequest request) throws IOException { @@ -380,12 +410,14 @@ public CompletableFuture deleteForecast(DeleteForecastRe /** * Deletes forecasts from a machine learning job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteForecast( @@ -397,8 +429,10 @@ public final CompletableFuture deleteForecast( /** * Deletes an existing anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteJob(DeleteJobRequest request) throws IOException { @@ -407,12 +441,14 @@ public CompletableFuture deleteJob(DeleteJobRequest request) /** * Deletes an existing anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteJob( @@ -424,8 +460,10 @@ public final CompletableFuture deleteJob( /** * Deletes an existing model snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteModelSnapshot(DeleteModelSnapshotRequest request) @@ -435,12 +473,14 @@ public CompletableFuture deleteModelSnapshot(Delete /** * Deletes an existing model snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteModelSnapshot( @@ -454,8 +494,10 @@ public final CompletableFuture deleteModelSnapshot( /** * Deletes an existing trained inference model that is currently not referenced * by an ingest pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteTrainedModel(DeleteTrainedModelRequest request) @@ -466,12 +508,14 @@ public CompletableFuture deleteTrainedModel(DeleteTr /** * Deletes an existing trained inference model that is currently not referenced * by an ingest pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteTrainedModel( @@ -484,8 +528,10 @@ public final CompletableFuture deleteTrainedModel( /** * Deletes a model alias that refers to the trained model - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models-aliases.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteTrainedModelAlias( @@ -496,12 +542,14 @@ public CompletableFuture deleteTrainedModelAlia /** * Deletes a model alias that refers to the trained model - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteTrainedModelAlias( @@ -514,8 +562,10 @@ public final CompletableFuture deleteTrainedMod /** * Estimates the model memory - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-apis.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture estimateModelMemory(EstimateModelMemoryRequest request) @@ -525,12 +575,14 @@ public CompletableFuture estimateModelMemory(Estima /** * Estimates the model memory - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-apis.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture estimateModelMemory( @@ -543,8 +595,10 @@ public final CompletableFuture estimateModelMemory( /** * Evaluates the data frame analytics for an annotated index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture evaluateDataFrame(EvaluateDataFrameRequest request) @@ -554,12 +608,14 @@ public CompletableFuture evaluateDataFrame(EvaluateDa /** * Evaluates the data frame analytics for an annotated index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture evaluateDataFrame( @@ -571,8 +627,10 @@ public final CompletableFuture evaluateDataFrame( /** * Explains a data frame analytics config. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture explainDataFrameAnalytics( @@ -583,12 +641,14 @@ public CompletableFuture explainDataFrameAnal /** * Explains a data frame analytics config. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture explainDataFrameAnalytics( @@ -602,8 +662,10 @@ public final CompletableFuture explainDataFra /** * Finds the structure of a text file. The text file must contain data that is * suitable to be ingested into Elasticsearch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture findFileStructure(FindFileStructureRequest request) @@ -614,12 +676,14 @@ public CompletableFuture findFileStructure(FindFileSt /** * Finds the structure of a text file. The text file must contain data that is * suitable to be ingested into Elasticsearch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture findFileStructure( @@ -631,8 +695,10 @@ public final CompletableFuture findFileStructure( /** * Forces any buffered data to be processed by the job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture flushJob(FlushJobRequest request) throws IOException { @@ -641,12 +707,14 @@ public CompletableFuture flushJob(FlushJobRequest request) thr /** * Forces any buffered data to be processed by the job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture flushJob( @@ -659,8 +727,10 @@ public final CompletableFuture flushJob( /** * Predicts the future behavior of a time series by using its historical * behavior. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-forecast.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture forecast(ForecastJobRequest request) throws IOException { @@ -670,12 +740,14 @@ public CompletableFuture forecast(ForecastJobRequest reques /** * Predicts the future behavior of a time series by using its historical * behavior. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-forecast.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture forecast( @@ -687,8 +759,10 @@ public final CompletableFuture forecast( /** * Retrieves anomaly detection job results for one or more buckets. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getBuckets(GetBucketsRequest request) throws IOException { @@ -697,12 +771,14 @@ public CompletableFuture getBuckets(GetBucketsRequest reques /** * Retrieves anomaly detection job results for one or more buckets. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getBuckets( @@ -714,8 +790,10 @@ public final CompletableFuture getBuckets( /** * Retrieves information about the scheduled events in calendars. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar-event.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getCalendarEvents(GetCalendarEventsRequest request) @@ -725,12 +803,14 @@ public CompletableFuture getCalendarEvents(GetCalenda /** * Retrieves information about the scheduled events in calendars. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar-event.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getCalendarEvents( @@ -742,8 +822,10 @@ public final CompletableFuture getCalendarEvents( /** * Retrieves configuration information for calendars. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getCalendars(GetCalendarsRequest request) throws IOException { @@ -752,12 +834,14 @@ public CompletableFuture getCalendars(GetCalendarsRequest /** * Retrieves configuration information for calendars. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getCalendars( @@ -769,8 +853,10 @@ public final CompletableFuture getCalendars( /** * Retrieves anomaly detection job results for one or more categories. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getCategories(GetCategoriesRequest request) throws IOException { @@ -779,12 +865,14 @@ public CompletableFuture getCategories(GetCategoriesReque /** * Retrieves anomaly detection job results for one or more categories. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getCategories( @@ -796,8 +884,10 @@ public final CompletableFuture getCategories( /** * Retrieves configuration information for data frame analytics jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getDataFrameAnalytics(GetDataFrameAnalyticsRequest request) @@ -807,12 +897,14 @@ public CompletableFuture getDataFrameAnalytics(Ge /** * Retrieves configuration information for data frame analytics jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getDataFrameAnalytics( @@ -825,8 +917,10 @@ public final CompletableFuture getDataFrameAnalyt /** * Retrieves usage information for data frame analytics jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getDataFrameAnalyticsStats( @@ -837,12 +931,14 @@ public CompletableFuture getDataFrameAnalyti /** * Retrieves usage information for data frame analytics jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getDataFrameAnalyticsStats( @@ -855,8 +951,10 @@ public final CompletableFuture getDataFrameA /** * Retrieves usage information for datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getDatafeedStats(GetDatafeedStatsRequest request) @@ -866,12 +964,14 @@ public CompletableFuture getDatafeedStats(GetDatafeedS /** * Retrieves usage information for datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getDatafeedStats( @@ -883,8 +983,10 @@ public final CompletableFuture getDatafeedStats( /** * Retrieves configuration information for datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getDatafeeds(GetDatafeedsRequest request) throws IOException { @@ -893,12 +995,14 @@ public CompletableFuture getDatafeeds(GetDatafeedsRequest /** * Retrieves configuration information for datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getDatafeeds( @@ -910,8 +1014,10 @@ public final CompletableFuture getDatafeeds( /** * Retrieves filters. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-filter.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getFilters(GetFiltersRequest request) throws IOException { @@ -920,12 +1026,14 @@ public CompletableFuture getFilters(GetFiltersRequest reques /** * Retrieves filters. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-filter.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getFilters( @@ -937,8 +1045,10 @@ public final CompletableFuture getFilters( /** * Retrieves anomaly detection job results for one or more influencers. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getInfluencers(GetInfluencersRequest request) throws IOException { @@ -947,12 +1057,14 @@ public CompletableFuture getInfluencers(GetInfluencersRe /** * Retrieves anomaly detection job results for one or more influencers. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getInfluencers( @@ -964,8 +1076,10 @@ public final CompletableFuture getInfluencers( /** * Retrieves usage information for anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getJobStats(GetJobStatsRequest request) throws IOException { @@ -974,12 +1088,14 @@ public CompletableFuture getJobStats(GetJobStatsRequest req /** * Retrieves usage information for anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getJobStats( @@ -991,8 +1107,10 @@ public final CompletableFuture getJobStats( /** * Retrieves configuration information for anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getJobs(GetJobsRequest request) throws IOException { @@ -1001,12 +1119,14 @@ public CompletableFuture getJobs(GetJobsRequest request) throws /** * Retrieves configuration information for anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getJobs( @@ -1018,8 +1138,10 @@ public final CompletableFuture getJobs( /** * Retrieves information about model snapshots. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getModelSnapshots(GetModelSnapshotsRequest request) @@ -1029,12 +1151,14 @@ public CompletableFuture getModelSnapshots(GetModelSn /** * Retrieves information about model snapshots. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getModelSnapshots( @@ -1047,8 +1171,10 @@ public final CompletableFuture getModelSnapshots( /** * Retrieves overall bucket results that summarize the bucket results of * multiple anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getOverallBuckets(GetOverallBucketsRequest request) @@ -1059,12 +1185,14 @@ public CompletableFuture getOverallBuckets(GetOverall /** * Retrieves overall bucket results that summarize the bucket results of * multiple anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getOverallBuckets( @@ -1076,8 +1204,10 @@ public final CompletableFuture getOverallBuckets( /** * Retrieves anomaly records for an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getRecords(GetAnomalyRecordsRequest request) @@ -1087,12 +1217,14 @@ public CompletableFuture getRecords(GetAnomalyRecords /** * Retrieves anomaly records for an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getRecords( @@ -1104,8 +1236,10 @@ public final CompletableFuture getRecords( /** * Retrieves configuration information for a trained inference model. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getTrainedModels(GetTrainedModelsRequest request) @@ -1115,12 +1249,14 @@ public CompletableFuture getTrainedModels(GetTrainedMo /** * Retrieves configuration information for a trained inference model. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getTrainedModels( @@ -1132,8 +1268,10 @@ public final CompletableFuture getTrainedModels( /** * Retrieves usage information for trained inference models. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getTrainedModelsStats(GetTrainedModelsStatsRequest request) @@ -1143,12 +1281,14 @@ public CompletableFuture getTrainedModelsStats(Ge /** * Retrieves usage information for trained inference models. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getTrainedModelsStats( @@ -1161,8 +1301,10 @@ public final CompletableFuture getTrainedModelsSt /** * Returns defaults and limits used by machine learning. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ml-info.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture info() throws IOException { return this.transport.performRequestAsync(InfoRequest.INSTANCE, InfoRequest.ENDPOINT, this.requestOptions); @@ -1172,8 +1314,10 @@ public CompletableFuture info() throws IOException { /** * Opens one or more anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture openJob(OpenJobRequest request) throws IOException { @@ -1182,12 +1326,14 @@ public CompletableFuture openJob(OpenJobRequest request) throws /** * Opens one or more anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture openJob( @@ -1199,8 +1345,10 @@ public final CompletableFuture openJob( /** * Posts scheduled events in a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-calendar-event.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture postCalendarEvents(PostCalendarEventsRequest request) @@ -1210,12 +1358,14 @@ public CompletableFuture postCalendarEvents(PostCale /** * Posts scheduled events in a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-calendar-event.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture postCalendarEvents( @@ -1228,8 +1378,10 @@ public final CompletableFuture postCalendarEvents( /** * Sends data to an anomaly detection job for analysis. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture postData(PostJobDataRequest request) throws IOException { @@ -1238,12 +1390,14 @@ public CompletableFuture postData(PostJobDataRequest reques /** * Sends data to an anomaly detection job for analysis. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture postData( @@ -1255,8 +1409,10 @@ public final CompletableFuture postData( /** * Previews that will be analyzed given a data frame analytics config. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/preview-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture previewDataFrameAnalytics( @@ -1267,12 +1423,14 @@ public CompletableFuture previewDataFrameAnal /** * Previews that will be analyzed given a data frame analytics config. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/preview-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture previewDataFrameAnalytics( @@ -1285,8 +1443,10 @@ public final CompletableFuture previewDataFra /** * Previews a datafeed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> previewDatafeed( @@ -1298,12 +1458,14 @@ public CompletableFuture> preview /** * Previews a datafeed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> previewDatafeed( @@ -1316,8 +1478,10 @@ public final CompletableFuture> p /** * Instantiates a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putCalendar(PutCalendarRequest request) throws IOException { @@ -1326,12 +1490,14 @@ public CompletableFuture putCalendar(PutCalendarRequest req /** * Instantiates a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putCalendar( @@ -1343,8 +1509,10 @@ public final CompletableFuture putCalendar( /** * Adds an anomaly detection job to a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putCalendarJob(PutCalendarJobRequest request) throws IOException { @@ -1353,12 +1521,14 @@ public CompletableFuture putCalendarJob(PutCalendarJobRe /** * Adds an anomaly detection job to a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putCalendarJob( @@ -1370,8 +1540,10 @@ public final CompletableFuture putCalendarJob( /** * Instantiates a data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putDataFrameAnalytics(PutDataFrameAnalyticsRequest request) @@ -1381,12 +1553,14 @@ public CompletableFuture putDataFrameAnalytics(Pu /** * Instantiates a data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putDataFrameAnalytics( @@ -1399,8 +1573,10 @@ public final CompletableFuture putDataFrameAnalyt /** * Instantiates a datafeed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putDatafeed(PutDatafeedRequest request) throws IOException { @@ -1409,12 +1585,14 @@ public CompletableFuture putDatafeed(PutDatafeedRequest req /** * Instantiates a datafeed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putDatafeed( @@ -1426,8 +1604,10 @@ public final CompletableFuture putDatafeed( /** * Instantiates a filter. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-filter.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putFilter(PutFilterRequest request) throws IOException { @@ -1436,12 +1616,14 @@ public CompletableFuture putFilter(PutFilterRequest request) /** * Instantiates a filter. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-filter.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putFilter( @@ -1453,8 +1635,10 @@ public final CompletableFuture putFilter( /** * Instantiates an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putJob(PutJobRequest request) throws IOException { @@ -1463,12 +1647,14 @@ public CompletableFuture putJob(PutJobRequest request) throws IO /** * Instantiates an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putJob( @@ -1480,8 +1666,10 @@ public final CompletableFuture putJob( /** * Creates an inference trained model. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putTrainedModel(PutTrainedModelRequest request) @@ -1491,12 +1679,14 @@ public CompletableFuture putTrainedModel(PutTrainedMode /** * Creates an inference trained model. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putTrainedModel( @@ -1509,8 +1699,10 @@ public final CompletableFuture putTrainedModel( /** * Creates a new model alias (or reassigns an existing one) to refer to the * trained model - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models-aliases.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putTrainedModelAlias(PutTrainedModelAliasRequest request) @@ -1521,12 +1713,14 @@ public CompletableFuture putTrainedModelAlias(PutT /** * Creates a new model alias (or reassigns an existing one) to refer to the * trained model - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putTrainedModelAlias( @@ -1539,8 +1733,10 @@ public final CompletableFuture putTrainedModelAlia /** * Reverts to a specific snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture revertModelSnapshot(RevertModelSnapshotRequest request) @@ -1550,12 +1746,14 @@ public CompletableFuture revertModelSnapshot(Revert /** * Reverts to a specific snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture revertModelSnapshot( @@ -1569,8 +1767,10 @@ public final CompletableFuture revertModelSnapshot( /** * Sets a cluster wide upgrade_mode setting that prepares machine learning * indices for an upgrade. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-set-upgrade-mode.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture setUpgradeMode(SetUpgradeModeRequest request) throws IOException { @@ -1580,12 +1780,14 @@ public CompletableFuture setUpgradeMode(SetUpgradeModeRe /** * Sets a cluster wide upgrade_mode setting that prepares machine learning * indices for an upgrade. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-set-upgrade-mode.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture setUpgradeMode( @@ -1597,8 +1799,10 @@ public final CompletableFuture setUpgradeMode( /** * Starts a data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/start-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture startDataFrameAnalytics( @@ -1609,12 +1813,14 @@ public CompletableFuture startDataFrameAnalytic /** * Starts a data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/start-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture startDataFrameAnalytics( @@ -1627,8 +1833,10 @@ public final CompletableFuture startDataFrameAn /** * Starts one or more datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture startDatafeed(StartDatafeedRequest request) throws IOException { @@ -1637,12 +1845,14 @@ public CompletableFuture startDatafeed(StartDatafeedReque /** * Starts one or more datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture startDatafeed( @@ -1654,8 +1864,10 @@ public final CompletableFuture startDatafeed( /** * Stops one or more data frame analytics jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture stopDataFrameAnalytics( @@ -1665,12 +1877,14 @@ public CompletableFuture stopDataFrameAnalytics( /** * Stops one or more data frame analytics jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture stopDataFrameAnalytics( @@ -1683,8 +1897,10 @@ public final CompletableFuture stopDataFrameAnal /** * Stops one or more datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture stopDatafeed(StopDatafeedRequest request) throws IOException { @@ -1693,12 +1909,14 @@ public CompletableFuture stopDatafeed(StopDatafeedRequest /** * Stops one or more datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture stopDatafeed( @@ -1710,8 +1928,10 @@ public final CompletableFuture stopDatafeed( /** * Updates certain properties of a data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture updateDataFrameAnalytics( @@ -1722,12 +1942,14 @@ public CompletableFuture updateDataFrameAnalyt /** * Updates certain properties of a data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture updateDataFrameAnalytics( @@ -1740,8 +1962,10 @@ public final CompletableFuture updateDataFrame /** * Updates the description of a filter, adds items, or removes items. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-filter.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture updateFilter(UpdateFilterRequest request) throws IOException { @@ -1750,12 +1974,14 @@ public CompletableFuture updateFilter(UpdateFilterRequest /** * Updates the description of a filter, adds items, or removes items. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-filter.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture updateFilter( @@ -1767,8 +1993,10 @@ public final CompletableFuture updateFilter( /** * Updates certain properties of an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture updateJob(UpdateJobRequest request) throws IOException { @@ -1777,12 +2005,14 @@ public CompletableFuture updateJob(UpdateJobRequest request) /** * Updates certain properties of an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture updateJob( @@ -1794,8 +2024,10 @@ public final CompletableFuture updateJob( /** * Updates certain properties of a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture updateModelSnapshot(UpdateModelSnapshotRequest request) @@ -1805,12 +2037,14 @@ public CompletableFuture updateModelSnapshot(Update /** * Updates certain properties of a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture updateModelSnapshot( @@ -1823,8 +2057,10 @@ public final CompletableFuture updateModelSnapshot( /** * Upgrades a given job snapshot to the current major version. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-upgrade-job-model-snapshot.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture upgradeJobSnapshot(UpgradeJobSnapshotRequest request) @@ -1834,12 +2070,14 @@ public CompletableFuture upgradeJobSnapshot(UpgradeJ /** * Upgrades a given job snapshot to the current major version. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-upgrade-job-model-snapshot.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture upgradeJobSnapshot( @@ -1852,8 +2090,10 @@ public final CompletableFuture upgradeJobSnapshot( /** * Validates an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture validate(ValidateJobRequest request) throws IOException { @@ -1862,12 +2102,14 @@ public CompletableFuture validate(ValidateJobRequest reques /** * Validates an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture validate( @@ -1879,8 +2121,10 @@ public final CompletableFuture validate( /** * Validates an anomaly detection detector. - * - * @see "https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture validateDetector(ValidateDetectorRequest request) @@ -1890,12 +2134,14 @@ public CompletableFuture validateDetector(ValidateDete /** * Validates an anomaly detection detector. - * - * @see "https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture validateDetector( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlClient.java index 0af6f7c45..ff64422f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlClient.java @@ -173,8 +173,10 @@ public MlClient(Transport transport, RequestOptions options) { /** * Closes one or more anomaly detection jobs. A job can be opened and closed * multiple times throughout its lifecycle. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html" + * + * @see Documentation + * on elastic.co */ public CloseJobResponse closeJob(CloseJobRequest request) throws IOException { @@ -184,12 +186,14 @@ public CloseJobResponse closeJob(CloseJobRequest request) throws IOException { /** * Closes one or more anomaly detection jobs. A job can be opened and closed * multiple times throughout its lifecycle. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-close-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CloseJobResponse closeJob(Function> fn) @@ -201,8 +205,10 @@ public final CloseJobResponse closeJob(FunctionDocumentation + * on elastic.co */ public DeleteCalendarResponse deleteCalendar(DeleteCalendarRequest request) throws IOException { @@ -211,12 +217,14 @@ public DeleteCalendarResponse deleteCalendar(DeleteCalendarRequest request) thro /** * Deletes a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteCalendarResponse deleteCalendar( @@ -228,8 +236,10 @@ public final DeleteCalendarResponse deleteCalendar( /** * Deletes scheduled events from a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-event.html" + * + * @see Documentation + * on elastic.co */ public DeleteCalendarEventResponse deleteCalendarEvent(DeleteCalendarEventRequest request) throws IOException { @@ -238,12 +248,14 @@ public DeleteCalendarEventResponse deleteCalendarEvent(DeleteCalendarEventReques /** * Deletes scheduled events from a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-event.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteCalendarEventResponse deleteCalendarEvent( @@ -256,8 +268,10 @@ public final DeleteCalendarEventResponse deleteCalendarEvent( /** * Deletes anomaly detection jobs from a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-job.html" + * + * @see Documentation + * on elastic.co */ public DeleteCalendarJobResponse deleteCalendarJob(DeleteCalendarJobRequest request) throws IOException { @@ -266,12 +280,14 @@ public DeleteCalendarJobResponse deleteCalendarJob(DeleteCalendarJobRequest requ /** * Deletes anomaly detection jobs from a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-calendar-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteCalendarJobResponse deleteCalendarJob( @@ -283,8 +299,10 @@ public final DeleteCalendarJobResponse deleteCalendarJob( /** * Deletes an existing data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public DeleteDataFrameAnalyticsResponse deleteDataFrameAnalytics(DeleteDataFrameAnalyticsRequest request) @@ -294,12 +312,14 @@ public DeleteDataFrameAnalyticsResponse deleteDataFrameAnalytics(DeleteDataFrame /** * Deletes an existing data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteDataFrameAnalyticsResponse deleteDataFrameAnalytics( @@ -312,8 +332,10 @@ public final DeleteDataFrameAnalyticsResponse deleteDataFrameAnalytics( /** * Deletes an existing datafeed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html" + * + * @see Documentation + * on elastic.co */ public DeleteDatafeedResponse deleteDatafeed(DeleteDatafeedRequest request) throws IOException { @@ -322,12 +344,14 @@ public DeleteDatafeedResponse deleteDatafeed(DeleteDatafeedRequest request) thro /** * Deletes an existing datafeed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-datafeed.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteDatafeedResponse deleteDatafeed( @@ -339,8 +363,10 @@ public final DeleteDatafeedResponse deleteDatafeed( /** * Deletes a filter. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-filter.html" + * + * @see Documentation + * on elastic.co */ public DeleteFilterResponse deleteFilter(DeleteFilterRequest request) throws IOException { @@ -349,12 +375,14 @@ public DeleteFilterResponse deleteFilter(DeleteFilterRequest request) throws IOE /** * Deletes a filter. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-filter.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteFilterResponse deleteFilter( @@ -366,8 +394,10 @@ public final DeleteFilterResponse deleteFilter( /** * Deletes forecasts from a machine learning job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html" + * + * @see Documentation + * on elastic.co */ public DeleteForecastResponse deleteForecast(DeleteForecastRequest request) throws IOException { @@ -376,12 +406,14 @@ public DeleteForecastResponse deleteForecast(DeleteForecastRequest request) thro /** * Deletes forecasts from a machine learning job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-forecast.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteForecastResponse deleteForecast( @@ -393,8 +425,10 @@ public final DeleteForecastResponse deleteForecast( /** * Deletes an existing anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html" + * + * @see Documentation + * on elastic.co */ public DeleteJobResponse deleteJob(DeleteJobRequest request) throws IOException { @@ -403,12 +437,14 @@ public DeleteJobResponse deleteJob(DeleteJobRequest request) throws IOException /** * Deletes an existing anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteJobResponse deleteJob(Function> fn) @@ -420,8 +456,10 @@ public final DeleteJobResponse deleteJob(FunctionDocumentation + * on elastic.co */ public DeleteModelSnapshotResponse deleteModelSnapshot(DeleteModelSnapshotRequest request) throws IOException { @@ -430,12 +468,14 @@ public DeleteModelSnapshotResponse deleteModelSnapshot(DeleteModelSnapshotReques /** * Deletes an existing model snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-snapshot.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteModelSnapshotResponse deleteModelSnapshot( @@ -449,8 +489,10 @@ public final DeleteModelSnapshotResponse deleteModelSnapshot( /** * Deletes an existing trained inference model that is currently not referenced * by an ingest pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html" + * + * @see Documentation + * on elastic.co */ public DeleteTrainedModelResponse deleteTrainedModel(DeleteTrainedModelRequest request) throws IOException { @@ -460,12 +502,14 @@ public DeleteTrainedModelResponse deleteTrainedModel(DeleteTrainedModelRequest r /** * Deletes an existing trained inference model that is currently not referenced * by an ingest pipeline. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteTrainedModelResponse deleteTrainedModel( @@ -478,8 +522,10 @@ public final DeleteTrainedModelResponse deleteTrainedModel( /** * Deletes a model alias that refers to the trained model - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models-aliases.html" + * + * @see Documentation + * on elastic.co */ public DeleteTrainedModelAliasResponse deleteTrainedModelAlias(DeleteTrainedModelAliasRequest request) @@ -489,12 +535,14 @@ public DeleteTrainedModelAliasResponse deleteTrainedModelAlias(DeleteTrainedMode /** * Deletes a model alias that refers to the trained model - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-trained-models-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteTrainedModelAliasResponse deleteTrainedModelAlias( @@ -507,8 +555,10 @@ public final DeleteTrainedModelAliasResponse deleteTrainedModelAlias( /** * Estimates the model memory - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-apis.html" + * + * @see Documentation + * on elastic.co */ public EstimateModelMemoryResponse estimateModelMemory(EstimateModelMemoryRequest request) throws IOException { @@ -517,12 +567,14 @@ public EstimateModelMemoryResponse estimateModelMemory(EstimateModelMemoryReques /** * Estimates the model memory - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-apis.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final EstimateModelMemoryResponse estimateModelMemory( @@ -535,8 +587,10 @@ public final EstimateModelMemoryResponse estimateModelMemory( /** * Evaluates the data frame analytics for an annotated index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public EvaluateDataFrameResponse evaluateDataFrame(EvaluateDataFrameRequest request) throws IOException { @@ -545,12 +599,14 @@ public EvaluateDataFrameResponse evaluateDataFrame(EvaluateDataFrameRequest requ /** * Evaluates the data frame analytics for an annotated index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/evaluate-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final EvaluateDataFrameResponse evaluateDataFrame( @@ -562,8 +618,10 @@ public final EvaluateDataFrameResponse evaluateDataFrame( /** * Explains a data frame analytics config. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public ExplainDataFrameAnalyticsResponse explainDataFrameAnalytics(ExplainDataFrameAnalyticsRequest request) @@ -573,12 +631,14 @@ public ExplainDataFrameAnalyticsResponse explainDataFrameAnalytics(ExplainDataFr /** * Explains a data frame analytics config. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/explain-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ExplainDataFrameAnalyticsResponse explainDataFrameAnalytics( @@ -592,8 +652,10 @@ public final ExplainDataFrameAnalyticsResponse explainDataFrameAnalytics( /** * Finds the structure of a text file. The text file must contain data that is * suitable to be ingested into Elasticsearch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html" + * + * @see Documentation + * on elastic.co */ public FindFileStructureResponse findFileStructure(FindFileStructureRequest request) throws IOException { @@ -603,12 +665,14 @@ public FindFileStructureResponse findFileStructure(FindFileStructureRequest requ /** * Finds the structure of a text file. The text file must contain data that is * suitable to be ingested into Elasticsearch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final FindFileStructureResponse findFileStructure( @@ -620,8 +684,10 @@ public final FindFileStructureResponse findFileStructure( /** * Forces any buffered data to be processed by the job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html" + * + * @see Documentation + * on elastic.co */ public FlushJobResponse flushJob(FlushJobRequest request) throws IOException { @@ -630,12 +696,14 @@ public FlushJobResponse flushJob(FlushJobRequest request) throws IOException { /** * Forces any buffered data to be processed by the job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-flush-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final FlushJobResponse flushJob(Function> fn) @@ -648,8 +716,10 @@ public final FlushJobResponse flushJob(FunctionDocumentation + * on elastic.co */ public ForecastJobResponse forecast(ForecastJobRequest request) throws IOException { @@ -659,12 +729,14 @@ public ForecastJobResponse forecast(ForecastJobRequest request) throws IOExcepti /** * Predicts the future behavior of a time series by using its historical * behavior. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-forecast.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ForecastJobResponse forecast( @@ -676,8 +748,10 @@ public final ForecastJobResponse forecast( /** * Retrieves anomaly detection job results for one or more buckets. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html" + * + * @see Documentation + * on elastic.co */ public GetBucketsResponse getBuckets(GetBucketsRequest request) throws IOException { @@ -686,12 +760,14 @@ public GetBucketsResponse getBuckets(GetBucketsRequest request) throws IOExcepti /** * Retrieves anomaly detection job results for one or more buckets. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-bucket.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetBucketsResponse getBuckets(Function> fn) @@ -703,8 +779,10 @@ public final GetBucketsResponse getBuckets(FunctionDocumentation + * on elastic.co */ public GetCalendarEventsResponse getCalendarEvents(GetCalendarEventsRequest request) throws IOException { @@ -713,12 +791,14 @@ public GetCalendarEventsResponse getCalendarEvents(GetCalendarEventsRequest requ /** * Retrieves information about the scheduled events in calendars. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar-event.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetCalendarEventsResponse getCalendarEvents( @@ -730,8 +810,10 @@ public final GetCalendarEventsResponse getCalendarEvents( /** * Retrieves configuration information for calendars. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar.html" + * + * @see Documentation + * on elastic.co */ public GetCalendarsResponse getCalendars(GetCalendarsRequest request) throws IOException { @@ -740,12 +822,14 @@ public GetCalendarsResponse getCalendars(GetCalendarsRequest request) throws IOE /** * Retrieves configuration information for calendars. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-calendar.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetCalendarsResponse getCalendars( @@ -757,8 +841,10 @@ public final GetCalendarsResponse getCalendars( /** * Retrieves anomaly detection job results for one or more categories. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html" + * + * @see Documentation + * on elastic.co */ public GetCategoriesResponse getCategories(GetCategoriesRequest request) throws IOException { @@ -767,12 +853,14 @@ public GetCategoriesResponse getCategories(GetCategoriesRequest request) throws /** * Retrieves anomaly detection job results for one or more categories. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-category.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetCategoriesResponse getCategories( @@ -784,8 +872,10 @@ public final GetCategoriesResponse getCategories( /** * Retrieves configuration information for data frame analytics jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public GetDataFrameAnalyticsResponse getDataFrameAnalytics(GetDataFrameAnalyticsRequest request) @@ -795,12 +885,14 @@ public GetDataFrameAnalyticsResponse getDataFrameAnalytics(GetDataFrameAnalytics /** * Retrieves configuration information for data frame analytics jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetDataFrameAnalyticsResponse getDataFrameAnalytics( @@ -813,8 +905,10 @@ public final GetDataFrameAnalyticsResponse getDataFrameAnalytics( /** * Retrieves usage information for data frame analytics jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html" + * + * @see Documentation + * on elastic.co */ public GetDataFrameAnalyticsStatsResponse getDataFrameAnalyticsStats(GetDataFrameAnalyticsStatsRequest request) @@ -824,12 +918,14 @@ public GetDataFrameAnalyticsStatsResponse getDataFrameAnalyticsStats(GetDataFram /** * Retrieves usage information for data frame analytics jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-dfanalytics-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetDataFrameAnalyticsStatsResponse getDataFrameAnalyticsStats( @@ -842,8 +938,10 @@ public final GetDataFrameAnalyticsStatsResponse getDataFrameAnalyticsStats( /** * Retrieves usage information for datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html" + * + * @see Documentation + * on elastic.co */ public GetDatafeedStatsResponse getDatafeedStats(GetDatafeedStatsRequest request) throws IOException { @@ -852,12 +950,14 @@ public GetDatafeedStatsResponse getDatafeedStats(GetDatafeedStatsRequest request /** * Retrieves usage information for datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetDatafeedStatsResponse getDatafeedStats( @@ -869,8 +969,10 @@ public final GetDatafeedStatsResponse getDatafeedStats( /** * Retrieves configuration information for datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html" + * + * @see Documentation + * on elastic.co */ public GetDatafeedsResponse getDatafeeds(GetDatafeedsRequest request) throws IOException { @@ -879,12 +981,14 @@ public GetDatafeedsResponse getDatafeeds(GetDatafeedsRequest request) throws IOE /** * Retrieves configuration information for datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-datafeed.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetDatafeedsResponse getDatafeeds( @@ -896,8 +1000,10 @@ public final GetDatafeedsResponse getDatafeeds( /** * Retrieves filters. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-filter.html" + * + * @see Documentation + * on elastic.co */ public GetFiltersResponse getFilters(GetFiltersRequest request) throws IOException { @@ -906,12 +1012,14 @@ public GetFiltersResponse getFilters(GetFiltersRequest request) throws IOExcepti /** * Retrieves filters. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-filter.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetFiltersResponse getFilters(Function> fn) @@ -923,8 +1031,10 @@ public final GetFiltersResponse getFilters(FunctionDocumentation + * on elastic.co */ public GetInfluencersResponse getInfluencers(GetInfluencersRequest request) throws IOException { @@ -933,12 +1043,14 @@ public GetInfluencersResponse getInfluencers(GetInfluencersRequest request) thro /** * Retrieves anomaly detection job results for one or more influencers. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-influencer.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetInfluencersResponse getInfluencers( @@ -950,8 +1062,10 @@ public final GetInfluencersResponse getInfluencers( /** * Retrieves usage information for anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html" + * + * @see Documentation + * on elastic.co */ public GetJobStatsResponse getJobStats(GetJobStatsRequest request) throws IOException { @@ -960,12 +1074,14 @@ public GetJobStatsResponse getJobStats(GetJobStatsRequest request) throws IOExce /** * Retrieves usage information for anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetJobStatsResponse getJobStats( @@ -977,8 +1093,10 @@ public final GetJobStatsResponse getJobStats( /** * Retrieves configuration information for anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html" + * + * @see Documentation + * on elastic.co */ public GetJobsResponse getJobs(GetJobsRequest request) throws IOException { @@ -987,12 +1105,14 @@ public GetJobsResponse getJobs(GetJobsRequest request) throws IOException { /** * Retrieves configuration information for anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetJobsResponse getJobs(Function> fn) @@ -1004,8 +1124,10 @@ public final GetJobsResponse getJobs(FunctionDocumentation + * on elastic.co */ public GetModelSnapshotsResponse getModelSnapshots(GetModelSnapshotsRequest request) throws IOException { @@ -1014,12 +1136,14 @@ public GetModelSnapshotsResponse getModelSnapshots(GetModelSnapshotsRequest requ /** * Retrieves information about model snapshots. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-snapshot.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetModelSnapshotsResponse getModelSnapshots( @@ -1032,8 +1156,10 @@ public final GetModelSnapshotsResponse getModelSnapshots( /** * Retrieves overall bucket results that summarize the bucket results of * multiple anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html" + * + * @see Documentation + * on elastic.co */ public GetOverallBucketsResponse getOverallBuckets(GetOverallBucketsRequest request) throws IOException { @@ -1043,12 +1169,14 @@ public GetOverallBucketsResponse getOverallBuckets(GetOverallBucketsRequest requ /** * Retrieves overall bucket results that summarize the bucket results of * multiple anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-overall-buckets.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetOverallBucketsResponse getOverallBuckets( @@ -1060,8 +1188,10 @@ public final GetOverallBucketsResponse getOverallBuckets( /** * Retrieves anomaly records for an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html" + * + * @see Documentation + * on elastic.co */ public GetAnomalyRecordsResponse getRecords(GetAnomalyRecordsRequest request) throws IOException { @@ -1070,12 +1200,14 @@ public GetAnomalyRecordsResponse getRecords(GetAnomalyRecordsRequest request) th /** * Retrieves anomaly records for an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-get-record.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetAnomalyRecordsResponse getRecords( @@ -1087,8 +1219,10 @@ public final GetAnomalyRecordsResponse getRecords( /** * Retrieves configuration information for a trained inference model. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html" + * + * @see Documentation + * on elastic.co */ public GetTrainedModelsResponse getTrainedModels(GetTrainedModelsRequest request) throws IOException { @@ -1097,12 +1231,14 @@ public GetTrainedModelsResponse getTrainedModels(GetTrainedModelsRequest request /** * Retrieves configuration information for a trained inference model. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetTrainedModelsResponse getTrainedModels( @@ -1114,8 +1250,10 @@ public final GetTrainedModelsResponse getTrainedModels( /** * Retrieves usage information for trained inference models. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html" + * + * @see Documentation + * on elastic.co */ public GetTrainedModelsStatsResponse getTrainedModelsStats(GetTrainedModelsStatsRequest request) @@ -1125,12 +1263,14 @@ public GetTrainedModelsStatsResponse getTrainedModelsStats(GetTrainedModelsStats /** * Retrieves usage information for trained inference models. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-trained-models-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetTrainedModelsStatsResponse getTrainedModelsStats( @@ -1143,8 +1283,10 @@ public final GetTrainedModelsStatsResponse getTrainedModelsStats( /** * Returns defaults and limits used by machine learning. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ml-info.html" + * + * @see Documentation + * on elastic.co */ public InfoResponse info() throws IOException { return this.transport.performRequest(InfoRequest.INSTANCE, InfoRequest.ENDPOINT, this.requestOptions); @@ -1154,8 +1296,10 @@ public InfoResponse info() throws IOException { /** * Opens one or more anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html" + * + * @see Documentation + * on elastic.co */ public OpenJobResponse openJob(OpenJobRequest request) throws IOException { @@ -1164,12 +1308,14 @@ public OpenJobResponse openJob(OpenJobRequest request) throws IOException { /** * Opens one or more anomaly detection jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-open-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final OpenJobResponse openJob(Function> fn) @@ -1181,8 +1327,10 @@ public final OpenJobResponse openJob(FunctionDocumentation + * on elastic.co */ public PostCalendarEventsResponse postCalendarEvents(PostCalendarEventsRequest request) throws IOException { @@ -1191,12 +1339,14 @@ public PostCalendarEventsResponse postCalendarEvents(PostCalendarEventsRequest r /** * Posts scheduled events in a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-calendar-event.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PostCalendarEventsResponse postCalendarEvents( @@ -1209,8 +1359,10 @@ public final PostCalendarEventsResponse postCalendarEvents( /** * Sends data to an anomaly detection job for analysis. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html" + * + * @see Documentation + * on elastic.co */ public PostJobDataResponse postData(PostJobDataRequest request) throws IOException { @@ -1219,12 +1371,14 @@ public PostJobDataResponse postData(PostJobDataRequest request) throws IOExcepti /** * Sends data to an anomaly detection job for analysis. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-post-data.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PostJobDataResponse postData( @@ -1236,8 +1390,10 @@ public final PostJobDataResponse postData( /** * Previews that will be analyzed given a data frame analytics config. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/preview-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public PreviewDataFrameAnalyticsResponse previewDataFrameAnalytics(PreviewDataFrameAnalyticsRequest request) @@ -1247,12 +1403,14 @@ public PreviewDataFrameAnalyticsResponse previewDataFrameAnalytics(PreviewDataFr /** * Previews that will be analyzed given a data frame analytics config. - * - * @see "http://www.elastic.co/guide/en/elasticsearch/reference/current/preview-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PreviewDataFrameAnalyticsResponse previewDataFrameAnalytics( @@ -1265,8 +1423,10 @@ public final PreviewDataFrameAnalyticsResponse previewDataFrameAnalytics( /** * Previews a datafeed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html" + * + * @see Documentation + * on elastic.co */ public PreviewDatafeedResponse previewDatafeed(PreviewDatafeedRequest request, @@ -1278,12 +1438,14 @@ public PreviewDatafeedResponse previewDatafeed(PreviewDat /** * Previews a datafeed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-preview-datafeed.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PreviewDatafeedResponse previewDatafeed( @@ -1296,8 +1458,10 @@ public final PreviewDatafeedResponse previewDatafeed( /** * Instantiates a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar.html" + * + * @see Documentation + * on elastic.co */ public PutCalendarResponse putCalendar(PutCalendarRequest request) throws IOException { @@ -1306,12 +1470,14 @@ public PutCalendarResponse putCalendar(PutCalendarRequest request) throws IOExce /** * Instantiates a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutCalendarResponse putCalendar( @@ -1323,8 +1489,10 @@ public final PutCalendarResponse putCalendar( /** * Adds an anomaly detection job to a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar-job.html" + * + * @see Documentation + * on elastic.co */ public PutCalendarJobResponse putCalendarJob(PutCalendarJobRequest request) throws IOException { @@ -1333,12 +1501,14 @@ public PutCalendarJobResponse putCalendarJob(PutCalendarJobRequest request) thro /** * Adds an anomaly detection job to a calendar. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-calendar-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutCalendarJobResponse putCalendarJob( @@ -1350,8 +1520,10 @@ public final PutCalendarJobResponse putCalendarJob( /** * Instantiates a data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public PutDataFrameAnalyticsResponse putDataFrameAnalytics(PutDataFrameAnalyticsRequest request) @@ -1361,12 +1533,14 @@ public PutDataFrameAnalyticsResponse putDataFrameAnalytics(PutDataFrameAnalytics /** * Instantiates a data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutDataFrameAnalyticsResponse putDataFrameAnalytics( @@ -1379,8 +1553,10 @@ public final PutDataFrameAnalyticsResponse putDataFrameAnalytics( /** * Instantiates a datafeed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html" + * + * @see Documentation + * on elastic.co */ public PutDatafeedResponse putDatafeed(PutDatafeedRequest request) throws IOException { @@ -1389,12 +1565,14 @@ public PutDatafeedResponse putDatafeed(PutDatafeedRequest request) throws IOExce /** * Instantiates a datafeed. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-datafeed.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutDatafeedResponse putDatafeed( @@ -1406,8 +1584,10 @@ public final PutDatafeedResponse putDatafeed( /** * Instantiates a filter. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-filter.html" + * + * @see Documentation + * on elastic.co */ public PutFilterResponse putFilter(PutFilterRequest request) throws IOException { @@ -1416,12 +1596,14 @@ public PutFilterResponse putFilter(PutFilterRequest request) throws IOException /** * Instantiates a filter. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-filter.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutFilterResponse putFilter(Function> fn) @@ -1433,8 +1615,10 @@ public final PutFilterResponse putFilter(FunctionDocumentation + * on elastic.co */ public PutJobResponse putJob(PutJobRequest request) throws IOException { @@ -1443,12 +1627,14 @@ public PutJobResponse putJob(PutJobRequest request) throws IOException { /** * Instantiates an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-put-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutJobResponse putJob(Function> fn) @@ -1460,8 +1646,10 @@ public final PutJobResponse putJob(FunctionDocumentation + * on elastic.co */ public PutTrainedModelResponse putTrainedModel(PutTrainedModelRequest request) throws IOException { @@ -1470,12 +1658,14 @@ public PutTrainedModelResponse putTrainedModel(PutTrainedModelRequest request) t /** * Creates an inference trained model. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutTrainedModelResponse putTrainedModel( @@ -1488,8 +1678,10 @@ public final PutTrainedModelResponse putTrainedModel( /** * Creates a new model alias (or reassigns an existing one) to refer to the * trained model - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models-aliases.html" + * + * @see Documentation + * on elastic.co */ public PutTrainedModelAliasResponse putTrainedModelAlias(PutTrainedModelAliasRequest request) throws IOException { @@ -1499,12 +1691,14 @@ public PutTrainedModelAliasResponse putTrainedModelAlias(PutTrainedModelAliasReq /** * Creates a new model alias (or reassigns an existing one) to refer to the * trained model - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-trained-models-aliases.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutTrainedModelAliasResponse putTrainedModelAlias( @@ -1517,8 +1711,10 @@ public final PutTrainedModelAliasResponse putTrainedModelAlias( /** * Reverts to a specific snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html" + * + * @see Documentation + * on elastic.co */ public RevertModelSnapshotResponse revertModelSnapshot(RevertModelSnapshotRequest request) throws IOException { @@ -1527,12 +1723,14 @@ public RevertModelSnapshotResponse revertModelSnapshot(RevertModelSnapshotReques /** * Reverts to a specific snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-revert-snapshot.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RevertModelSnapshotResponse revertModelSnapshot( @@ -1546,8 +1744,10 @@ public final RevertModelSnapshotResponse revertModelSnapshot( /** * Sets a cluster wide upgrade_mode setting that prepares machine learning * indices for an upgrade. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-set-upgrade-mode.html" + * + * @see Documentation + * on elastic.co */ public SetUpgradeModeResponse setUpgradeMode(SetUpgradeModeRequest request) throws IOException { @@ -1557,12 +1757,14 @@ public SetUpgradeModeResponse setUpgradeMode(SetUpgradeModeRequest request) thro /** * Sets a cluster wide upgrade_mode setting that prepares machine learning * indices for an upgrade. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-set-upgrade-mode.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final SetUpgradeModeResponse setUpgradeMode( @@ -1574,8 +1776,10 @@ public final SetUpgradeModeResponse setUpgradeMode( /** * Starts a data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/start-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public StartDataFrameAnalyticsResponse startDataFrameAnalytics(StartDataFrameAnalyticsRequest request) @@ -1585,12 +1789,14 @@ public StartDataFrameAnalyticsResponse startDataFrameAnalytics(StartDataFrameAna /** * Starts a data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/start-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StartDataFrameAnalyticsResponse startDataFrameAnalytics( @@ -1603,8 +1809,10 @@ public final StartDataFrameAnalyticsResponse startDataFrameAnalytics( /** * Starts one or more datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html" + * + * @see Documentation + * on elastic.co */ public StartDatafeedResponse startDatafeed(StartDatafeedRequest request) throws IOException { @@ -1613,12 +1821,14 @@ public StartDatafeedResponse startDatafeed(StartDatafeedRequest request) throws /** * Starts one or more datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-start-datafeed.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StartDatafeedResponse startDatafeed( @@ -1630,8 +1840,10 @@ public final StartDatafeedResponse startDatafeed( /** * Stops one or more data frame analytics jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public StopDataFrameAnalyticsResponse stopDataFrameAnalytics(StopDataFrameAnalyticsRequest request) @@ -1641,12 +1853,14 @@ public StopDataFrameAnalyticsResponse stopDataFrameAnalytics(StopDataFrameAnalyt /** * Stops one or more data frame analytics jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StopDataFrameAnalyticsResponse stopDataFrameAnalytics( @@ -1659,8 +1873,10 @@ public final StopDataFrameAnalyticsResponse stopDataFrameAnalytics( /** * Stops one or more datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html" + * + * @see Documentation + * on elastic.co */ public StopDatafeedResponse stopDatafeed(StopDatafeedRequest request) throws IOException { @@ -1669,12 +1885,14 @@ public StopDatafeedResponse stopDatafeed(StopDatafeedRequest request) throws IOE /** * Stops one or more datafeeds. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-stop-datafeed.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StopDatafeedResponse stopDatafeed( @@ -1686,8 +1904,10 @@ public final StopDatafeedResponse stopDatafeed( /** * Updates certain properties of a data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html" + * + * @see Documentation + * on elastic.co */ public UpdateDataFrameAnalyticsResponse updateDataFrameAnalytics(UpdateDataFrameAnalyticsRequest request) @@ -1697,12 +1917,14 @@ public UpdateDataFrameAnalyticsResponse updateDataFrameAnalytics(UpdateDataFrame /** * Updates certain properties of a data frame analytics job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/update-dfanalytics.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UpdateDataFrameAnalyticsResponse updateDataFrameAnalytics( @@ -1715,8 +1937,10 @@ public final UpdateDataFrameAnalyticsResponse updateDataFrameAnalytics( /** * Updates the description of a filter, adds items, or removes items. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-filter.html" + * + * @see Documentation + * on elastic.co */ public UpdateFilterResponse updateFilter(UpdateFilterRequest request) throws IOException { @@ -1725,12 +1949,14 @@ public UpdateFilterResponse updateFilter(UpdateFilterRequest request) throws IOE /** * Updates the description of a filter, adds items, or removes items. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-filter.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UpdateFilterResponse updateFilter( @@ -1742,8 +1968,10 @@ public final UpdateFilterResponse updateFilter( /** * Updates certain properties of an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html" + * + * @see Documentation + * on elastic.co */ public UpdateJobResponse updateJob(UpdateJobRequest request) throws IOException { @@ -1752,12 +1980,14 @@ public UpdateJobResponse updateJob(UpdateJobRequest request) throws IOException /** * Updates certain properties of an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UpdateJobResponse updateJob(Function> fn) @@ -1769,8 +1999,10 @@ public final UpdateJobResponse updateJob(FunctionDocumentation + * on elastic.co */ public UpdateModelSnapshotResponse updateModelSnapshot(UpdateModelSnapshotRequest request) throws IOException { @@ -1779,12 +2011,14 @@ public UpdateModelSnapshotResponse updateModelSnapshot(UpdateModelSnapshotReques /** * Updates certain properties of a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-update-snapshot.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UpdateModelSnapshotResponse updateModelSnapshot( @@ -1797,8 +2031,10 @@ public final UpdateModelSnapshotResponse updateModelSnapshot( /** * Upgrades a given job snapshot to the current major version. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-upgrade-job-model-snapshot.html" + * + * @see Documentation + * on elastic.co */ public UpgradeJobSnapshotResponse upgradeJobSnapshot(UpgradeJobSnapshotRequest request) throws IOException { @@ -1807,12 +2043,14 @@ public UpgradeJobSnapshotResponse upgradeJobSnapshot(UpgradeJobSnapshotRequest r /** * Upgrades a given job snapshot to the current major version. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-upgrade-job-model-snapshot.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UpgradeJobSnapshotResponse upgradeJobSnapshot( @@ -1825,8 +2063,10 @@ public final UpgradeJobSnapshotResponse upgradeJobSnapshot( /** * Validates an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html" + * + * @see Documentation + * on elastic.co */ public ValidateJobResponse validate(ValidateJobRequest request) throws IOException { @@ -1835,12 +2075,14 @@ public ValidateJobResponse validate(ValidateJobRequest request) throws IOExcepti /** * Validates an anomaly detection job. - * - * @see "https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ValidateJobResponse validate( @@ -1852,8 +2094,10 @@ public final ValidateJobResponse validate( /** * Validates an anomaly detection detector. - * - * @see "https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html" + * + * @see Documentation + * on elastic.co */ public ValidateDetectorResponse validateDetector(ValidateDetectorRequest request) throws IOException { @@ -1862,12 +2106,14 @@ public ValidateDetectorResponse validateDetector(ValidateDetectorRequest request /** * Validates an anomaly detection detector. - * - * @see "https://www.elastic.co/guide/en/machine-learning/current/ml-jobs.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ValidateDetectorResponse validateDetector( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringAsyncClient.java index 4feb96d25..26e076c1e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringAsyncClient.java @@ -51,8 +51,10 @@ public MonitoringAsyncClient(Transport transport, RequestOptions options) { /** * Used by the monitoring features to send monitoring data. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/monitor-elasticsearch-cluster.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture bulk(BulkRequest request) throws IOException { @@ -61,12 +63,14 @@ public CompletableFuture bulk(BulkRequest request) throws IOExcept /** * Used by the monitoring features to send monitoring data. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/monitor-elasticsearch-cluster.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture bulk(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringClient.java index 0fcc439b6..a695e4595 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringClient.java @@ -50,8 +50,10 @@ public MonitoringClient(Transport transport, RequestOptions options) { /** * Used by the monitoring features to send monitoring data. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/monitor-elasticsearch-cluster.html" + * + * @see Documentation + * on elastic.co */ public BulkResponse bulk(BulkRequest request) throws IOException { @@ -60,12 +62,14 @@ public BulkResponse bulk(BulkRequest request) throws IOException { /** * Used by the monitoring features to send monitoring data. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/monitor-elasticsearch-cluster.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final BulkResponse bulk(Function> fn) throws IOException { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/nodes/NodesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/nodes/NodesAsyncClient.java index bb0bf19ee..2199e136f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/nodes/NodesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/nodes/NodesAsyncClient.java @@ -59,8 +59,10 @@ public NodesAsyncClient(Transport transport, RequestOptions options) { /** * Returns information about hot threads on each node in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture hotThreads(HotThreadsRequest request) throws IOException { @@ -69,12 +71,14 @@ public CompletableFuture hotThreads(HotThreadsRequest reques /** * Returns information about hot threads on each node in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture hotThreads( @@ -86,8 +90,10 @@ public final CompletableFuture hotThreads( /** * Returns information about nodes in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture info(InfoRequest request) throws IOException { @@ -96,12 +102,14 @@ public CompletableFuture info(InfoRequest request) throws IOExcept /** * Returns information about nodes in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture info(Function> fn) @@ -113,8 +121,10 @@ public final CompletableFuture info(FunctionDocumentation + * on elastic.co */ public CompletableFuture reloadSecureSettings(ReloadSecureSettingsRequest request) @@ -124,12 +134,14 @@ public CompletableFuture reloadSecureSettings(Relo /** * Reloads secure settings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/secure-settings.html#reloadable-secure-settings" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture reloadSecureSettings( @@ -142,8 +154,10 @@ public final CompletableFuture reloadSecureSetting /** * Returns statistical information about nodes in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture stats(StatsRequest request) throws IOException { @@ -152,12 +166,14 @@ public CompletableFuture stats(StatsRequest request) throws IOExc /** * Returns statistical information about nodes in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture stats(Function> fn) @@ -169,8 +185,10 @@ public final CompletableFuture stats(FunctionDocumentation + * on elastic.co */ public CompletableFuture usage(UsageRequest request) throws IOException { @@ -179,12 +197,14 @@ public CompletableFuture usage(UsageRequest request) throws IOExc /** * Returns low-level information about REST actions usage on nodes. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture usage(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/nodes/NodesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/nodes/NodesClient.java index f0185d642..45cf9ff7c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/nodes/NodesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/nodes/NodesClient.java @@ -58,8 +58,10 @@ public NodesClient(Transport transport, RequestOptions options) { /** * Returns information about hot threads on each node in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html" + * + * @see Documentation + * on elastic.co */ public HotThreadsResponse hotThreads(HotThreadsRequest request) throws IOException { @@ -68,12 +70,14 @@ public HotThreadsResponse hotThreads(HotThreadsRequest request) throws IOExcepti /** * Returns information about hot threads on each node in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-hot-threads.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final HotThreadsResponse hotThreads(Function> fn) @@ -85,8 +89,10 @@ public final HotThreadsResponse hotThreads(FunctionDocumentation + * on elastic.co */ public InfoResponse info(InfoRequest request) throws IOException { @@ -95,12 +101,14 @@ public InfoResponse info(InfoRequest request) throws IOException { /** * Returns information about nodes in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-info.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final InfoResponse info(Function> fn) throws IOException { @@ -111,8 +119,10 @@ public final InfoResponse info(FunctionDocumentation + * on elastic.co */ public ReloadSecureSettingsResponse reloadSecureSettings(ReloadSecureSettingsRequest request) throws IOException { @@ -121,12 +131,14 @@ public ReloadSecureSettingsResponse reloadSecureSettings(ReloadSecureSettingsReq /** * Reloads secure settings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/secure-settings.html#reloadable-secure-settings" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ReloadSecureSettingsResponse reloadSecureSettings( @@ -139,8 +151,10 @@ public final ReloadSecureSettingsResponse reloadSecureSettings( /** * Returns statistical information about nodes in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html" + * + * @see Documentation + * on elastic.co */ public StatsResponse stats(StatsRequest request) throws IOException { @@ -149,12 +163,14 @@ public StatsResponse stats(StatsRequest request) throws IOException { /** * Returns statistical information about nodes in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StatsResponse stats(Function> fn) @@ -166,8 +182,10 @@ public final StatsResponse stats(FunctionDocumentation + * on elastic.co */ public UsageResponse usage(UsageRequest request) throws IOException { @@ -176,12 +194,14 @@ public UsageResponse usage(UsageRequest request) throws IOException { /** * Returns low-level information about REST actions usage on nodes. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-nodes-usage.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UsageResponse usage(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupAsyncClient.java index b630b349a..62cc283e2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupAsyncClient.java @@ -67,8 +67,10 @@ public RollupAsyncClient(Transport transport, RequestOptions options) { /** * Deletes an existing rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-delete-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteJob(DeleteRollupJobRequest request) throws IOException { @@ -77,12 +79,14 @@ public CompletableFuture deleteJob(DeleteRollupJobReque /** * Deletes an existing rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-delete-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteJob( @@ -94,8 +98,10 @@ public final CompletableFuture deleteJob( /** * Retrieves the configuration, stats, and status of rollup jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getJobs(GetRollupJobRequest request) throws IOException { @@ -104,12 +110,14 @@ public CompletableFuture getJobs(GetRollupJobRequest reque /** * Retrieves the configuration, stats, and status of rollup jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getJobs( @@ -122,8 +130,10 @@ public final CompletableFuture getJobs( /** * Returns the capabilities of any rollup jobs that have been configured for a * specific index or index pattern. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-rollup-caps.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getRollupCaps(GetRollupCapabilitiesRequest request) @@ -134,12 +144,14 @@ public CompletableFuture getRollupCaps(GetRollupC /** * Returns the capabilities of any rollup jobs that have been configured for a * specific index or index pattern. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-rollup-caps.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getRollupCaps( @@ -153,8 +165,10 @@ public final CompletableFuture getRollupCaps( /** * Returns the rollup capabilities of all jobs inside of a rollup index (e.g. * the index where rollup data is stored). - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-rollup-index-caps.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getRollupIndexCaps( @@ -166,12 +180,14 @@ public CompletableFuture getRollupIndexCaps( /** * Returns the rollup capabilities of all jobs inside of a rollup index (e.g. * the index where rollup data is stored). - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-rollup-index-caps.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getRollupIndexCaps( @@ -184,8 +200,10 @@ public final CompletableFuture getRollupInde /** * Creates a rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-put-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putJob(CreateRollupJobRequest request) throws IOException { @@ -194,12 +212,14 @@ public CompletableFuture putJob(CreateRollupJobRequest /** * Creates a rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-put-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putJob( @@ -211,8 +231,10 @@ public final CompletableFuture putJob( /** * Rollup an index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-rollup.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture rollup(RollupRequest request) throws IOException { @@ -221,12 +243,14 @@ public CompletableFuture rollup(RollupRequest request) throws IO /** * Rollup an index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-rollup.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture rollup( @@ -238,8 +262,10 @@ public final CompletableFuture rollup( /** * Enables searching rolled-up data using the standard query DSL. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-search.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> rollupSearch(RollupSearchRequest request, @@ -250,12 +276,14 @@ public CompletableFuture> rollupSear /** * Enables searching rolled-up data using the standard query DSL. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> rollupSearch( @@ -268,8 +296,10 @@ public final CompletableFuture> roll /** * Starts an existing, stopped rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-start-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture startJob(StartRollupJobRequest request) throws IOException { @@ -278,12 +308,14 @@ public CompletableFuture startJob(StartRollupJobRequest /** * Starts an existing, stopped rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-start-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture startJob( @@ -295,8 +327,10 @@ public final CompletableFuture startJob( /** * Stops an existing, started rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-stop-job.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture stopJob(StopRollupJobRequest request) throws IOException { @@ -305,12 +339,14 @@ public CompletableFuture stopJob(StopRollupJobRequest req /** * Stops an existing, started rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-stop-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture stopJob( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupClient.java index f6c5c4d56..6531ff393 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupClient.java @@ -66,8 +66,10 @@ public RollupClient(Transport transport, RequestOptions options) { /** * Deletes an existing rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-delete-job.html" + * + * @see Documentation + * on elastic.co */ public DeleteRollupJobResponse deleteJob(DeleteRollupJobRequest request) throws IOException { @@ -76,12 +78,14 @@ public DeleteRollupJobResponse deleteJob(DeleteRollupJobRequest request) throws /** * Deletes an existing rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-delete-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteRollupJobResponse deleteJob( @@ -93,8 +97,10 @@ public final DeleteRollupJobResponse deleteJob( /** * Retrieves the configuration, stats, and status of rollup jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-job.html" + * + * @see Documentation + * on elastic.co */ public GetRollupJobResponse getJobs(GetRollupJobRequest request) throws IOException { @@ -103,12 +109,14 @@ public GetRollupJobResponse getJobs(GetRollupJobRequest request) throws IOExcept /** * Retrieves the configuration, stats, and status of rollup jobs. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetRollupJobResponse getJobs( @@ -121,8 +129,10 @@ public final GetRollupJobResponse getJobs( /** * Returns the capabilities of any rollup jobs that have been configured for a * specific index or index pattern. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-rollup-caps.html" + * + * @see Documentation + * on elastic.co */ public GetRollupCapabilitiesResponse getRollupCaps(GetRollupCapabilitiesRequest request) throws IOException { @@ -132,12 +142,14 @@ public GetRollupCapabilitiesResponse getRollupCaps(GetRollupCapabilitiesRequest /** * Returns the capabilities of any rollup jobs that have been configured for a * specific index or index pattern. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-rollup-caps.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetRollupCapabilitiesResponse getRollupCaps( @@ -151,8 +163,10 @@ public final GetRollupCapabilitiesResponse getRollupCaps( /** * Returns the rollup capabilities of all jobs inside of a rollup index (e.g. * the index where rollup data is stored). - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-rollup-index-caps.html" + * + * @see Documentation + * on elastic.co */ public GetRollupIndexCapabilitiesResponse getRollupIndexCaps(GetRollupIndexCapabilitiesRequest request) @@ -163,12 +177,14 @@ public GetRollupIndexCapabilitiesResponse getRollupIndexCaps(GetRollupIndexCapab /** * Returns the rollup capabilities of all jobs inside of a rollup index (e.g. * the index where rollup data is stored). - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-get-rollup-index-caps.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetRollupIndexCapabilitiesResponse getRollupIndexCaps( @@ -181,8 +197,10 @@ public final GetRollupIndexCapabilitiesResponse getRollupIndexCaps( /** * Creates a rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-put-job.html" + * + * @see Documentation + * on elastic.co */ public CreateRollupJobResponse putJob(CreateRollupJobRequest request) throws IOException { @@ -191,12 +209,14 @@ public CreateRollupJobResponse putJob(CreateRollupJobRequest request) throws IOE /** * Creates a rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-put-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CreateRollupJobResponse putJob( @@ -208,8 +228,10 @@ public final CreateRollupJobResponse putJob( /** * Rollup an index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-rollup.html" + * + * @see Documentation + * on elastic.co */ public RollupResponse rollup(RollupRequest request) throws IOException { @@ -218,12 +240,14 @@ public RollupResponse rollup(RollupRequest request) throws IOException { /** * Rollup an index - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-rollup.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RollupResponse rollup(Function> fn) @@ -235,8 +259,10 @@ public final RollupResponse rollup(FunctionDocumentation + * on elastic.co */ public RollupSearchResponse rollupSearch(RollupSearchRequest request, @@ -247,12 +273,14 @@ public RollupSearchResponse rollupSearch(RollupSearchRequ /** * Enables searching rolled-up data using the standard query DSL. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-search.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RollupSearchResponse rollupSearch( @@ -265,8 +293,10 @@ public final RollupSearchResponse rollupSearch( /** * Starts an existing, stopped rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-start-job.html" + * + * @see Documentation + * on elastic.co */ public StartRollupJobResponse startJob(StartRollupJobRequest request) throws IOException { @@ -275,12 +305,14 @@ public StartRollupJobResponse startJob(StartRollupJobRequest request) throws IOE /** * Starts an existing, stopped rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-start-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StartRollupJobResponse startJob( @@ -292,8 +324,10 @@ public final StartRollupJobResponse startJob( /** * Stops an existing, started rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-stop-job.html" + * + * @see Documentation + * on elastic.co */ public StopRollupJobResponse stopJob(StopRollupJobRequest request) throws IOException { @@ -302,12 +336,14 @@ public StopRollupJobResponse stopJob(StopRollupJobRequest request) throws IOExce /** * Stops an existing, started rollup job. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-stop-job.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StopRollupJobResponse stopJob( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsAsyncClient.java index cf1c29e34..d65d0ed4e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsAsyncClient.java @@ -57,8 +57,10 @@ public SearchableSnapshotsAsyncClient(Transport transport, RequestOptions option /** * Clear the cache of searchable snapshots. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture clearCache(ClearCacheRequest request) throws IOException { @@ -67,12 +69,14 @@ public CompletableFuture clearCache(ClearCacheRequest reques /** * Clear the cache of searchable snapshots. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture clearCache( @@ -84,8 +88,10 @@ public final CompletableFuture clearCache( /** * Mount a snapshot as a searchable index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-mount-snapshot.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture mount(MountRequest request) throws IOException { @@ -94,12 +100,14 @@ public CompletableFuture mount(MountRequest request) throws IOExc /** * Mount a snapshot as a searchable index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-mount-snapshot.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture mount(Function> fn) @@ -111,8 +119,10 @@ public final CompletableFuture mount(FunctionDocumentation + * on elastic.co */ public CompletableFuture repositoryStats(RepositoryStatsRequest request) @@ -122,12 +132,14 @@ public CompletableFuture repositoryStats(RepositoryStat /** * DEPRECATED: This API is replaced by the Repositories Metering API. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture repositoryStats( @@ -139,8 +151,10 @@ public final CompletableFuture repositoryStats( /** * Retrieve shard-level statistics about searchable snapshots. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture stats(StatsRequest request) throws IOException { @@ -149,12 +163,14 @@ public CompletableFuture stats(StatsRequest request) throws IOExc /** * Retrieve shard-level statistics about searchable snapshots. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture stats(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsClient.java index 65acfdc89..3defa0fb1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsClient.java @@ -56,8 +56,10 @@ public SearchableSnapshotsClient(Transport transport, RequestOptions options) { /** * Clear the cache of searchable snapshots. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html" + * + * @see Documentation + * on elastic.co */ public ClearCacheResponse clearCache(ClearCacheRequest request) throws IOException { @@ -66,12 +68,14 @@ public ClearCacheResponse clearCache(ClearCacheRequest request) throws IOExcepti /** * Clear the cache of searchable snapshots. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ClearCacheResponse clearCache(Function> fn) @@ -83,8 +87,10 @@ public final ClearCacheResponse clearCache(FunctionDocumentation + * on elastic.co */ public MountResponse mount(MountRequest request) throws IOException { @@ -93,12 +99,14 @@ public MountResponse mount(MountRequest request) throws IOException { /** * Mount a snapshot as a searchable index. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-api-mount-snapshot.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final MountResponse mount(Function> fn) @@ -110,8 +118,10 @@ public final MountResponse mount(FunctionDocumentation + * on elastic.co */ public RepositoryStatsResponse repositoryStats(RepositoryStatsRequest request) throws IOException { @@ -120,12 +130,14 @@ public RepositoryStatsResponse repositoryStats(RepositoryStatsRequest request) t /** * DEPRECATED: This API is replaced by the Repositories Metering API. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RepositoryStatsResponse repositoryStats( @@ -137,8 +149,10 @@ public final RepositoryStatsResponse repositoryStats( /** * Retrieve shard-level statistics about searchable snapshots. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html" + * + * @see Documentation + * on elastic.co */ public StatsResponse stats(StatsRequest request) throws IOException { @@ -147,12 +161,14 @@ public StatsResponse stats(StatsRequest request) throws IOException { /** * Retrieve shard-level statistics about searchable snapshots. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/searchable-snapshots-apis.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StatsResponse stats(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/security/SecurityAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/security/SecurityAsyncClient.java index 25fb72c85..57ca151f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/security/SecurityAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/security/SecurityAsyncClient.java @@ -118,8 +118,10 @@ public SecurityAsyncClient(Transport transport, RequestOptions options) { /** * Enables authentication as a user and retrieve information about the * authenticated user. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture authenticate() throws IOException { return this.transport.performRequestAsync(AuthenticateRequest.INSTANCE, AuthenticateRequest.ENDPOINT, @@ -130,8 +132,10 @@ public CompletableFuture authenticate() throws IOException /** * Changes the passwords of users in the native realm and built-in users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture changePassword(ChangePasswordRequest request) throws IOException { @@ -140,12 +144,14 @@ public CompletableFuture changePassword(ChangePasswordRe /** * Changes the passwords of users in the native realm and built-in users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture changePassword( @@ -157,8 +163,10 @@ public final CompletableFuture changePassword( /** * Clear a subset or all entries from the API key cache. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-api-key-cache.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture clearApiKeyCache(ClearApiKeyCacheRequest request) @@ -168,12 +176,14 @@ public CompletableFuture clearApiKeyCache(ClearApiKeyC /** * Clear a subset or all entries from the API key cache. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-api-key-cache.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture clearApiKeyCache( @@ -185,8 +195,10 @@ public final CompletableFuture clearApiKeyCache( /** * Evicts application privileges from the native application privileges cache. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-privilege-cache.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture clearCachedPrivileges(ClearCachedPrivilegesRequest request) @@ -196,12 +208,14 @@ public CompletableFuture clearCachedPrivileges(Cl /** * Evicts application privileges from the native application privileges cache. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-privilege-cache.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture clearCachedPrivileges( @@ -215,8 +229,10 @@ public final CompletableFuture clearCachedPrivile /** * Evicts users from the user cache. Can completely clear the cache or evict * specific users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture clearCachedRealms(ClearCachedRealmsRequest request) @@ -227,12 +243,14 @@ public CompletableFuture clearCachedRealms(ClearCache /** * Evicts users from the user cache. Can completely clear the cache or evict * specific users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture clearCachedRealms( @@ -244,8 +262,10 @@ public final CompletableFuture clearCachedRealms( /** * Evicts roles from the native role cache. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture clearCachedRoles(ClearCachedRolesRequest request) @@ -255,12 +275,14 @@ public CompletableFuture clearCachedRoles(ClearCachedR /** * Evicts roles from the native role cache. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture clearCachedRoles( @@ -272,8 +294,10 @@ public final CompletableFuture clearCachedRoles( /** * Evicts tokens from the service account token caches. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-service-token-caches.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture clearCachedServiceTokens( @@ -284,12 +308,14 @@ public CompletableFuture clearCachedServiceTok /** * Evicts tokens from the service account token caches. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-service-token-caches.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture clearCachedServiceTokens( @@ -302,8 +328,10 @@ public final CompletableFuture clearCachedServ /** * Creates an API key for access without requiring basic authentication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture createApiKey(CreateApiKeyRequest request) throws IOException { @@ -312,12 +340,14 @@ public CompletableFuture createApiKey(CreateApiKeyRequest /** * Creates an API key for access without requiring basic authentication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture createApiKey( @@ -330,8 +360,10 @@ public final CompletableFuture createApiKey( /** * Creates a service account token for access without requiring basic * authentication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture createServiceToken(CreateServiceTokenRequest request) @@ -342,12 +374,14 @@ public CompletableFuture createServiceToken(CreateSe /** * Creates a service account token for access without requiring basic * authentication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture createServiceToken( @@ -360,8 +394,10 @@ public final CompletableFuture createServiceToken( /** * Removes application privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deletePrivileges(DeletePrivilegesRequest request) @@ -371,12 +407,14 @@ public CompletableFuture deletePrivileges(DeletePrivil /** * Removes application privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deletePrivileges( @@ -388,8 +426,10 @@ public final CompletableFuture deletePrivileges( /** * Removes roles in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteRole(DeleteRoleRequest request) throws IOException { @@ -398,12 +438,14 @@ public CompletableFuture deleteRole(DeleteRoleRequest reques /** * Removes roles in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteRole( @@ -415,8 +457,10 @@ public final CompletableFuture deleteRole( /** * Removes role mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteRoleMapping(DeleteRoleMappingRequest request) @@ -426,12 +470,14 @@ public CompletableFuture deleteRoleMapping(DeleteRole /** * Removes role mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteRoleMapping( @@ -443,8 +489,10 @@ public final CompletableFuture deleteRoleMapping( /** * Deletes a service account token. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-service-token.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteServiceToken(DeleteServiceTokenRequest request) @@ -454,12 +502,14 @@ public CompletableFuture deleteServiceToken(DeleteSe /** * Deletes a service account token. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-service-token.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteServiceToken( @@ -472,8 +522,10 @@ public final CompletableFuture deleteServiceToken( /** * Deletes users from the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteUser(DeleteUserRequest request) throws IOException { @@ -482,12 +534,14 @@ public CompletableFuture deleteUser(DeleteUserRequest reques /** * Deletes users from the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteUser( @@ -499,8 +553,10 @@ public final CompletableFuture deleteUser( /** * Disables users in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture disableUser(DisableUserRequest request) throws IOException { @@ -509,12 +565,14 @@ public CompletableFuture disableUser(DisableUserRequest req /** * Disables users in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture disableUser( @@ -526,8 +584,10 @@ public final CompletableFuture disableUser( /** * Enables users in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture enableUser(EnableUserRequest request) throws IOException { @@ -536,12 +596,14 @@ public CompletableFuture enableUser(EnableUserRequest reques /** * Enables users in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture enableUser( @@ -553,8 +615,10 @@ public final CompletableFuture enableUser( /** * Retrieves information for one or more API keys. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getApiKey(GetApiKeyRequest request) throws IOException { @@ -563,12 +627,14 @@ public CompletableFuture getApiKey(GetApiKeyRequest request) /** * Retrieves information for one or more API keys. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getApiKey( @@ -581,8 +647,10 @@ public final CompletableFuture getApiKey( /** * Retrieves the list of cluster privileges and index privileges that are * available in this version of Elasticsearch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-builtin-privileges.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getBuiltinPrivileges() throws IOException { return this.transport.performRequestAsync(GetBuiltinPrivilegesRequest.INSTANCE, @@ -593,8 +661,10 @@ public CompletableFuture getBuiltinPrivileges() th /** * Retrieves application privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-privileges.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getPrivileges(GetPrivilegesRequest request) throws IOException { @@ -603,12 +673,14 @@ public CompletableFuture getPrivileges(GetPrivilegesReque /** * Retrieves application privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-privileges.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getPrivileges( @@ -620,8 +692,10 @@ public final CompletableFuture getPrivileges( /** * Retrieves roles in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getRole(GetRoleRequest request) throws IOException { @@ -630,12 +704,14 @@ public CompletableFuture getRole(GetRoleRequest request) throws /** * Retrieves roles in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getRole( @@ -647,8 +723,10 @@ public final CompletableFuture getRole( /** * Retrieves role mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getRoleMapping(GetRoleMappingRequest request) throws IOException { @@ -657,12 +735,14 @@ public CompletableFuture getRoleMapping(GetRoleMappingRe /** * Retrieves role mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getRoleMapping( @@ -674,8 +754,10 @@ public final CompletableFuture getRoleMapping( /** * Retrieves information about service accounts. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getServiceAccounts(GetServiceAccountsRequest request) @@ -685,12 +767,14 @@ public CompletableFuture getServiceAccounts(GetServi /** * Retrieves information about service accounts. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getServiceAccounts( @@ -703,8 +787,10 @@ public final CompletableFuture getServiceAccounts( /** * Retrieves information of all service credentials for a service account. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-credentials.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getServiceCredentials(GetServiceCredentialsRequest request) @@ -714,12 +800,14 @@ public CompletableFuture getServiceCredentials(Ge /** * Retrieves information of all service credentials for a service account. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-credentials.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getServiceCredentials( @@ -732,8 +820,10 @@ public final CompletableFuture getServiceCredenti /** * Creates a bearer token for access without requiring basic authentication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getToken(GetTokenRequest request) throws IOException { @@ -742,12 +832,14 @@ public CompletableFuture getToken(GetTokenRequest request) thr /** * Creates a bearer token for access without requiring basic authentication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getToken( @@ -759,8 +851,10 @@ public final CompletableFuture getToken( /** * Retrieves information about users in the native realm and built-in users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getUser(GetUserRequest request) throws IOException { @@ -769,12 +863,14 @@ public CompletableFuture getUser(GetUserRequest request) throws /** * Retrieves information about users in the native realm and built-in users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getUser( @@ -786,8 +882,10 @@ public final CompletableFuture getUser( /** * Retrieves security privileges for the logged in user. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getUserPrivileges(GetUserPrivilegesRequest request) @@ -797,12 +895,14 @@ public CompletableFuture getUserPrivileges(GetUserPri /** * Retrieves security privileges for the logged in user. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getUserPrivileges( @@ -814,8 +914,10 @@ public final CompletableFuture getUserPrivileges( /** * Creates an API key on behalf of another user. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-grant-api-key.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture grantApiKey(GrantApiKeyRequest request) throws IOException { @@ -824,12 +926,14 @@ public CompletableFuture grantApiKey(GrantApiKeyRequest req /** * Creates an API key on behalf of another user. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-grant-api-key.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture grantApiKey( @@ -841,8 +945,10 @@ public final CompletableFuture grantApiKey( /** * Determines whether the specified user has a specified list of privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture hasPrivileges(HasPrivilegesRequest request) throws IOException { @@ -851,12 +957,14 @@ public CompletableFuture hasPrivileges(HasPrivilegesReque /** * Determines whether the specified user has a specified list of privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture hasPrivileges( @@ -868,8 +976,10 @@ public final CompletableFuture hasPrivileges( /** * Invalidates one or more API keys. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture invalidateApiKey(InvalidateApiKeyRequest request) @@ -879,12 +989,14 @@ public CompletableFuture invalidateApiKey(InvalidateAp /** * Invalidates one or more API keys. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture invalidateApiKey( @@ -896,8 +1008,10 @@ public final CompletableFuture invalidateApiKey( /** * Invalidates one or more access tokens or refresh tokens. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture invalidateToken(InvalidateTokenRequest request) @@ -907,12 +1021,14 @@ public CompletableFuture invalidateToken(InvalidateToke /** * Invalidates one or more access tokens or refresh tokens. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture invalidateToken( @@ -924,8 +1040,10 @@ public final CompletableFuture invalidateToken( /** * Adds or updates application privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putPrivileges(PutPrivilegesRequest request) throws IOException { @@ -934,12 +1052,14 @@ public CompletableFuture putPrivileges(PutPrivilegesReque /** * Adds or updates application privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putPrivileges( @@ -951,8 +1071,10 @@ public final CompletableFuture putPrivileges( /** * Adds and updates roles in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putRole(PutRoleRequest request) throws IOException { @@ -961,12 +1083,14 @@ public CompletableFuture putRole(PutRoleRequest request) throws /** * Adds and updates roles in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putRole( @@ -978,8 +1102,10 @@ public final CompletableFuture putRole( /** * Creates and updates role mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putRoleMapping(PutRoleMappingRequest request) throws IOException { @@ -988,12 +1114,14 @@ public CompletableFuture putRoleMapping(PutRoleMappingRe /** * Creates and updates role mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putRoleMapping( @@ -1006,8 +1134,10 @@ public final CompletableFuture putRoleMapping( /** * Adds and updates users in the native realm. These users are commonly referred * to as native users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putUser(PutUserRequest request) throws IOException { @@ -1017,12 +1147,14 @@ public CompletableFuture putUser(PutUserRequest request) throws /** * Adds and updates users in the native realm. These users are commonly referred * to as native users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putUser( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/security/SecurityClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/security/SecurityClient.java index 2e474f805..fcb01a215 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/security/SecurityClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/security/SecurityClient.java @@ -117,8 +117,10 @@ public SecurityClient(Transport transport, RequestOptions options) { /** * Enables authentication as a user and retrieve information about the * authenticated user. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-authenticate.html" + * + * @see Documentation + * on elastic.co */ public AuthenticateResponse authenticate() throws IOException { return this.transport.performRequest(AuthenticateRequest.INSTANCE, AuthenticateRequest.ENDPOINT, @@ -129,8 +131,10 @@ public AuthenticateResponse authenticate() throws IOException { /** * Changes the passwords of users in the native realm and built-in users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html" + * + * @see Documentation + * on elastic.co */ public ChangePasswordResponse changePassword(ChangePasswordRequest request) throws IOException { @@ -139,12 +143,14 @@ public ChangePasswordResponse changePassword(ChangePasswordRequest request) thro /** * Changes the passwords of users in the native realm and built-in users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ChangePasswordResponse changePassword( @@ -156,8 +162,10 @@ public final ChangePasswordResponse changePassword( /** * Clear a subset or all entries from the API key cache. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-api-key-cache.html" + * + * @see Documentation + * on elastic.co */ public ClearApiKeyCacheResponse clearApiKeyCache(ClearApiKeyCacheRequest request) throws IOException { @@ -166,12 +174,14 @@ public ClearApiKeyCacheResponse clearApiKeyCache(ClearApiKeyCacheRequest request /** * Clear a subset or all entries from the API key cache. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-api-key-cache.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ClearApiKeyCacheResponse clearApiKeyCache( @@ -183,8 +193,10 @@ public final ClearApiKeyCacheResponse clearApiKeyCache( /** * Evicts application privileges from the native application privileges cache. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-privilege-cache.html" + * + * @see Documentation + * on elastic.co */ public ClearCachedPrivilegesResponse clearCachedPrivileges(ClearCachedPrivilegesRequest request) @@ -194,12 +206,14 @@ public ClearCachedPrivilegesResponse clearCachedPrivileges(ClearCachedPrivileges /** * Evicts application privileges from the native application privileges cache. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-privilege-cache.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ClearCachedPrivilegesResponse clearCachedPrivileges( @@ -213,8 +227,10 @@ public final ClearCachedPrivilegesResponse clearCachedPrivileges( /** * Evicts users from the user cache. Can completely clear the cache or evict * specific users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html" + * + * @see Documentation + * on elastic.co */ public ClearCachedRealmsResponse clearCachedRealms(ClearCachedRealmsRequest request) throws IOException { @@ -224,12 +240,14 @@ public ClearCachedRealmsResponse clearCachedRealms(ClearCachedRealmsRequest requ /** * Evicts users from the user cache. Can completely clear the cache or evict * specific users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-cache.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ClearCachedRealmsResponse clearCachedRealms( @@ -241,8 +259,10 @@ public final ClearCachedRealmsResponse clearCachedRealms( /** * Evicts roles from the native role cache. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html" + * + * @see Documentation + * on elastic.co */ public ClearCachedRolesResponse clearCachedRoles(ClearCachedRolesRequest request) throws IOException { @@ -251,12 +271,14 @@ public ClearCachedRolesResponse clearCachedRoles(ClearCachedRolesRequest request /** * Evicts roles from the native role cache. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-role-cache.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ClearCachedRolesResponse clearCachedRoles( @@ -268,8 +290,10 @@ public final ClearCachedRolesResponse clearCachedRoles( /** * Evicts tokens from the service account token caches. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-service-token-caches.html" + * + * @see Documentation + * on elastic.co */ public ClearCachedServiceTokensResponse clearCachedServiceTokens(ClearCachedServiceTokensRequest request) @@ -279,12 +303,14 @@ public ClearCachedServiceTokensResponse clearCachedServiceTokens(ClearCachedServ /** * Evicts tokens from the service account token caches. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-clear-service-token-caches.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ClearCachedServiceTokensResponse clearCachedServiceTokens( @@ -297,8 +323,10 @@ public final ClearCachedServiceTokensResponse clearCachedServiceTokens( /** * Creates an API key for access without requiring basic authentication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html" + * + * @see Documentation + * on elastic.co */ public CreateApiKeyResponse createApiKey(CreateApiKeyRequest request) throws IOException { @@ -307,12 +335,14 @@ public CreateApiKeyResponse createApiKey(CreateApiKeyRequest request) throws IOE /** * Creates an API key for access without requiring basic authentication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-api-key.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CreateApiKeyResponse createApiKey( @@ -325,8 +355,10 @@ public final CreateApiKeyResponse createApiKey( /** * Creates a service account token for access without requiring basic * authentication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html" + * + * @see Documentation + * on elastic.co */ public CreateServiceTokenResponse createServiceToken(CreateServiceTokenRequest request) throws IOException { @@ -336,12 +368,14 @@ public CreateServiceTokenResponse createServiceToken(CreateServiceTokenRequest r /** * Creates a service account token for access without requiring basic * authentication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-create-service-token.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CreateServiceTokenResponse createServiceToken( @@ -354,8 +388,10 @@ public final CreateServiceTokenResponse createServiceToken( /** * Removes application privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html" + * + * @see Documentation + * on elastic.co */ public DeletePrivilegesResponse deletePrivileges(DeletePrivilegesRequest request) throws IOException { @@ -364,12 +400,14 @@ public DeletePrivilegesResponse deletePrivileges(DeletePrivilegesRequest request /** * Removes application privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-privilege.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeletePrivilegesResponse deletePrivileges( @@ -381,8 +419,10 @@ public final DeletePrivilegesResponse deletePrivileges( /** * Removes roles in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html" + * + * @see Documentation + * on elastic.co */ public DeleteRoleResponse deleteRole(DeleteRoleRequest request) throws IOException { @@ -391,12 +431,14 @@ public DeleteRoleResponse deleteRole(DeleteRoleRequest request) throws IOExcepti /** * Removes roles in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteRoleResponse deleteRole(Function> fn) @@ -408,8 +450,10 @@ public final DeleteRoleResponse deleteRole(FunctionDocumentation + * on elastic.co */ public DeleteRoleMappingResponse deleteRoleMapping(DeleteRoleMappingRequest request) throws IOException { @@ -418,12 +462,14 @@ public DeleteRoleMappingResponse deleteRoleMapping(DeleteRoleMappingRequest requ /** * Removes role mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-role-mapping.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteRoleMappingResponse deleteRoleMapping( @@ -435,8 +481,10 @@ public final DeleteRoleMappingResponse deleteRoleMapping( /** * Deletes a service account token. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-service-token.html" + * + * @see Documentation + * on elastic.co */ public DeleteServiceTokenResponse deleteServiceToken(DeleteServiceTokenRequest request) throws IOException { @@ -445,12 +493,14 @@ public DeleteServiceTokenResponse deleteServiceToken(DeleteServiceTokenRequest r /** * Deletes a service account token. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-service-token.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteServiceTokenResponse deleteServiceToken( @@ -463,8 +513,10 @@ public final DeleteServiceTokenResponse deleteServiceToken( /** * Deletes users from the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html" + * + * @see Documentation + * on elastic.co */ public DeleteUserResponse deleteUser(DeleteUserRequest request) throws IOException { @@ -473,12 +525,14 @@ public DeleteUserResponse deleteUser(DeleteUserRequest request) throws IOExcepti /** * Deletes users from the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-delete-user.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteUserResponse deleteUser(Function> fn) @@ -490,8 +544,10 @@ public final DeleteUserResponse deleteUser(FunctionDocumentation + * on elastic.co */ public DisableUserResponse disableUser(DisableUserRequest request) throws IOException { @@ -500,12 +556,14 @@ public DisableUserResponse disableUser(DisableUserRequest request) throws IOExce /** * Disables users in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-disable-user.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DisableUserResponse disableUser( @@ -517,8 +575,10 @@ public final DisableUserResponse disableUser( /** * Enables users in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html" + * + * @see Documentation + * on elastic.co */ public EnableUserResponse enableUser(EnableUserRequest request) throws IOException { @@ -527,12 +587,14 @@ public EnableUserResponse enableUser(EnableUserRequest request) throws IOExcepti /** * Enables users in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-enable-user.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final EnableUserResponse enableUser(Function> fn) @@ -544,8 +606,10 @@ public final EnableUserResponse enableUser(FunctionDocumentation + * on elastic.co */ public GetApiKeyResponse getApiKey(GetApiKeyRequest request) throws IOException { @@ -554,12 +618,14 @@ public GetApiKeyResponse getApiKey(GetApiKeyRequest request) throws IOException /** * Retrieves information for one or more API keys. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-api-key.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetApiKeyResponse getApiKey(Function> fn) @@ -572,8 +638,10 @@ public final GetApiKeyResponse getApiKey(FunctionDocumentation + * on elastic.co */ public GetBuiltinPrivilegesResponse getBuiltinPrivileges() throws IOException { return this.transport.performRequest(GetBuiltinPrivilegesRequest.INSTANCE, GetBuiltinPrivilegesRequest.ENDPOINT, @@ -584,8 +652,10 @@ public GetBuiltinPrivilegesResponse getBuiltinPrivileges() throws IOException { /** * Retrieves application privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-privileges.html" + * + * @see Documentation + * on elastic.co */ public GetPrivilegesResponse getPrivileges(GetPrivilegesRequest request) throws IOException { @@ -594,12 +664,14 @@ public GetPrivilegesResponse getPrivileges(GetPrivilegesRequest request) throws /** * Retrieves application privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-privileges.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetPrivilegesResponse getPrivileges( @@ -611,8 +683,10 @@ public final GetPrivilegesResponse getPrivileges( /** * Retrieves roles in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html" + * + * @see Documentation + * on elastic.co */ public GetRoleResponse getRole(GetRoleRequest request) throws IOException { @@ -621,12 +695,14 @@ public GetRoleResponse getRole(GetRoleRequest request) throws IOException { /** * Retrieves roles in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetRoleResponse getRole(Function> fn) @@ -638,8 +714,10 @@ public final GetRoleResponse getRole(FunctionDocumentation + * on elastic.co */ public GetRoleMappingResponse getRoleMapping(GetRoleMappingRequest request) throws IOException { @@ -648,12 +726,14 @@ public GetRoleMappingResponse getRoleMapping(GetRoleMappingRequest request) thro /** * Retrieves role mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-role-mapping.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetRoleMappingResponse getRoleMapping( @@ -665,8 +745,10 @@ public final GetRoleMappingResponse getRoleMapping( /** * Retrieves information about service accounts. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html" + * + * @see Documentation + * on elastic.co */ public GetServiceAccountsResponse getServiceAccounts(GetServiceAccountsRequest request) throws IOException { @@ -675,12 +757,14 @@ public GetServiceAccountsResponse getServiceAccounts(GetServiceAccountsRequest r /** * Retrieves information about service accounts. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-accounts.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetServiceAccountsResponse getServiceAccounts( @@ -693,8 +777,10 @@ public final GetServiceAccountsResponse getServiceAccounts( /** * Retrieves information of all service credentials for a service account. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-credentials.html" + * + * @see Documentation + * on elastic.co */ public GetServiceCredentialsResponse getServiceCredentials(GetServiceCredentialsRequest request) @@ -704,12 +790,14 @@ public GetServiceCredentialsResponse getServiceCredentials(GetServiceCredentials /** * Retrieves information of all service credentials for a service account. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-service-credentials.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetServiceCredentialsResponse getServiceCredentials( @@ -722,8 +810,10 @@ public final GetServiceCredentialsResponse getServiceCredentials( /** * Creates a bearer token for access without requiring basic authentication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html" + * + * @see Documentation + * on elastic.co */ public GetTokenResponse getToken(GetTokenRequest request) throws IOException { @@ -732,12 +822,14 @@ public GetTokenResponse getToken(GetTokenRequest request) throws IOException { /** * Creates a bearer token for access without requiring basic authentication. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-token.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetTokenResponse getToken(Function> fn) @@ -749,8 +841,10 @@ public final GetTokenResponse getToken(FunctionDocumentation + * on elastic.co */ public GetUserResponse getUser(GetUserRequest request) throws IOException { @@ -759,12 +853,14 @@ public GetUserResponse getUser(GetUserRequest request) throws IOException { /** * Retrieves information about users in the native realm and built-in users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetUserResponse getUser(Function> fn) @@ -776,8 +872,10 @@ public final GetUserResponse getUser(FunctionDocumentation + * on elastic.co */ public GetUserPrivilegesResponse getUserPrivileges(GetUserPrivilegesRequest request) throws IOException { @@ -786,12 +884,14 @@ public GetUserPrivilegesResponse getUserPrivileges(GetUserPrivilegesRequest requ /** * Retrieves security privileges for the logged in user. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-user-privileges.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetUserPrivilegesResponse getUserPrivileges( @@ -803,8 +903,10 @@ public final GetUserPrivilegesResponse getUserPrivileges( /** * Creates an API key on behalf of another user. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-grant-api-key.html" + * + * @see Documentation + * on elastic.co */ public GrantApiKeyResponse grantApiKey(GrantApiKeyRequest request) throws IOException { @@ -813,12 +915,14 @@ public GrantApiKeyResponse grantApiKey(GrantApiKeyRequest request) throws IOExce /** * Creates an API key on behalf of another user. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-grant-api-key.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GrantApiKeyResponse grantApiKey( @@ -830,8 +934,10 @@ public final GrantApiKeyResponse grantApiKey( /** * Determines whether the specified user has a specified list of privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html" + * + * @see Documentation + * on elastic.co */ public HasPrivilegesResponse hasPrivileges(HasPrivilegesRequest request) throws IOException { @@ -840,12 +946,14 @@ public HasPrivilegesResponse hasPrivileges(HasPrivilegesRequest request) throws /** * Determines whether the specified user has a specified list of privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final HasPrivilegesResponse hasPrivileges( @@ -857,8 +965,10 @@ public final HasPrivilegesResponse hasPrivileges( /** * Invalidates one or more API keys. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html" + * + * @see Documentation + * on elastic.co */ public InvalidateApiKeyResponse invalidateApiKey(InvalidateApiKeyRequest request) throws IOException { @@ -867,12 +977,14 @@ public InvalidateApiKeyResponse invalidateApiKey(InvalidateApiKeyRequest request /** * Invalidates one or more API keys. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-api-key.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final InvalidateApiKeyResponse invalidateApiKey( @@ -884,8 +996,10 @@ public final InvalidateApiKeyResponse invalidateApiKey( /** * Invalidates one or more access tokens or refresh tokens. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html" + * + * @see Documentation + * on elastic.co */ public InvalidateTokenResponse invalidateToken(InvalidateTokenRequest request) throws IOException { @@ -894,12 +1008,14 @@ public InvalidateTokenResponse invalidateToken(InvalidateTokenRequest request) t /** * Invalidates one or more access tokens or refresh tokens. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-invalidate-token.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final InvalidateTokenResponse invalidateToken( @@ -911,8 +1027,10 @@ public final InvalidateTokenResponse invalidateToken( /** * Adds or updates application privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html" + * + * @see Documentation + * on elastic.co */ public PutPrivilegesResponse putPrivileges(PutPrivilegesRequest request) throws IOException { @@ -921,12 +1039,14 @@ public PutPrivilegesResponse putPrivileges(PutPrivilegesRequest request) throws /** * Adds or updates application privileges. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-privileges.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutPrivilegesResponse putPrivileges( @@ -938,8 +1058,10 @@ public final PutPrivilegesResponse putPrivileges( /** * Adds and updates roles in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html" + * + * @see Documentation + * on elastic.co */ public PutRoleResponse putRole(PutRoleRequest request) throws IOException { @@ -948,12 +1070,14 @@ public PutRoleResponse putRole(PutRoleRequest request) throws IOException { /** * Adds and updates roles in the native realm. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutRoleResponse putRole(Function> fn) @@ -965,8 +1089,10 @@ public final PutRoleResponse putRole(FunctionDocumentation + * on elastic.co */ public PutRoleMappingResponse putRoleMapping(PutRoleMappingRequest request) throws IOException { @@ -975,12 +1101,14 @@ public PutRoleMappingResponse putRoleMapping(PutRoleMappingRequest request) thro /** * Creates and updates role mappings. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-role-mapping.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutRoleMappingResponse putRoleMapping( @@ -993,8 +1121,10 @@ public final PutRoleMappingResponse putRoleMapping( /** * Adds and updates users in the native realm. These users are commonly referred * to as native users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html" + * + * @see Documentation + * on elastic.co */ public PutUserResponse putUser(PutUserRequest request) throws IOException { @@ -1004,12 +1134,14 @@ public PutUserResponse putUser(PutUserRequest request) throws IOException { /** * Adds and updates users in the native realm. These users are commonly referred * to as native users. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-put-user.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutUserResponse putUser(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/shutdown/ShutdownAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/shutdown/ShutdownAsyncClient.java index a116cc074..90d1c2a95 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/shutdown/ShutdownAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/shutdown/ShutdownAsyncClient.java @@ -55,8 +55,10 @@ public ShutdownAsyncClient(Transport transport, RequestOptions options) { /** * Removes a node from the shutdown list - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteNode(DeleteNodeRequest request) throws IOException { @@ -65,12 +67,14 @@ public CompletableFuture deleteNode(DeleteNodeRequest reques /** * Removes a node from the shutdown list - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteNode( @@ -82,8 +86,10 @@ public final CompletableFuture deleteNode( /** * Retrieve status of a node or nodes that are currently marked as shutting down - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getNode(GetNodeRequest request) throws IOException { @@ -92,12 +98,14 @@ public CompletableFuture getNode(GetNodeRequest request) throws /** * Retrieve status of a node or nodes that are currently marked as shutting down - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getNode( @@ -109,8 +117,10 @@ public final CompletableFuture getNode( /** * Adds a node to be shut down - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putNode(PutNodeRequest request) throws IOException { @@ -119,12 +129,14 @@ public CompletableFuture putNode(PutNodeRequest request) throws /** * Adds a node to be shut down - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putNode( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/shutdown/ShutdownClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/shutdown/ShutdownClient.java index 00466ddf2..7822f7f3d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/shutdown/ShutdownClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/shutdown/ShutdownClient.java @@ -54,8 +54,10 @@ public ShutdownClient(Transport transport, RequestOptions options) { /** * Removes a node from the shutdown list - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current" + * + * @see Documentation + * on elastic.co */ public DeleteNodeResponse deleteNode(DeleteNodeRequest request) throws IOException { @@ -64,12 +66,14 @@ public DeleteNodeResponse deleteNode(DeleteNodeRequest request) throws IOExcepti /** * Removes a node from the shutdown list - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteNodeResponse deleteNode(Function> fn) @@ -81,8 +85,10 @@ public final DeleteNodeResponse deleteNode(FunctionDocumentation + * on elastic.co */ public GetNodeResponse getNode(GetNodeRequest request) throws IOException { @@ -91,12 +97,14 @@ public GetNodeResponse getNode(GetNodeRequest request) throws IOException { /** * Retrieve status of a node or nodes that are currently marked as shutting down - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetNodeResponse getNode(Function> fn) @@ -108,8 +116,10 @@ public final GetNodeResponse getNode(FunctionDocumentation + * on elastic.co */ public PutNodeResponse putNode(PutNodeRequest request) throws IOException { @@ -118,12 +128,14 @@ public PutNodeResponse putNode(PutNodeRequest request) throws IOException { /** * Adds a node to be shut down - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutNodeResponse putNode(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/slm/SlmAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/slm/SlmAsyncClient.java index 293ba4965..104c815f1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/slm/SlmAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/slm/SlmAsyncClient.java @@ -67,8 +67,10 @@ public SlmAsyncClient(Transport transport, RequestOptions options) { /** * Deletes an existing snapshot lifecycle policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete-policy.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteLifecycle(DeleteLifecycleRequest request) @@ -78,12 +80,14 @@ public CompletableFuture deleteLifecycle(DeleteLifecycl /** * Deletes an existing snapshot lifecycle policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteLifecycle( @@ -96,8 +100,10 @@ public final CompletableFuture deleteLifecycle( /** * Immediately creates a snapshot according to the lifecycle policy, without * waiting for the scheduled time. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture executeLifecycle(ExecuteLifecycleRequest request) @@ -108,12 +114,14 @@ public CompletableFuture executeLifecycle(ExecuteLifec /** * Immediately creates a snapshot according to the lifecycle policy, without * waiting for the scheduled time. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture executeLifecycle( @@ -126,8 +134,10 @@ public final CompletableFuture executeLifecycle( /** * Deletes any snapshots that are expired according to the policy's retention * rules. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-retention.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture executeRetention() throws IOException { return this.transport.performRequestAsync(ExecuteRetentionRequest.INSTANCE, ExecuteRetentionRequest.ENDPOINT, @@ -139,8 +149,10 @@ public CompletableFuture executeRetention() throws IOE /** * Retrieves one or more snapshot lifecycle policy definitions and information * about the latest snapshot attempts. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-policy.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getLifecycle(GetLifecycleRequest request) throws IOException { @@ -150,12 +162,14 @@ public CompletableFuture getLifecycle(GetLifecycleRequest /** * Retrieves one or more snapshot lifecycle policy definitions and information * about the latest snapshot attempts. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getLifecycle( @@ -168,8 +182,10 @@ public final CompletableFuture getLifecycle( /** * Returns global and policy-level statistics about actions taken by snapshot * lifecycle management. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-api-get-stats.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getStats() throws IOException { return this.transport.performRequestAsync(GetStatsRequest.INSTANCE, GetStatsRequest.ENDPOINT, @@ -180,8 +196,10 @@ public CompletableFuture getStats() throws IOException { /** * Retrieves the status of snapshot lifecycle management (SLM). - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getStatus() throws IOException { return this.transport.performRequestAsync(GetStatusRequest.INSTANCE, GetStatusRequest.ENDPOINT, @@ -192,8 +210,10 @@ public CompletableFuture getStatus() throws IOException { /** * Creates or updates a snapshot lifecycle policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put-policy.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putLifecycle(PutLifecycleRequest request) throws IOException { @@ -202,12 +222,14 @@ public CompletableFuture putLifecycle(PutLifecycleRequest /** * Creates or updates a snapshot lifecycle policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putLifecycle( @@ -219,8 +241,10 @@ public final CompletableFuture putLifecycle( /** * Turns on snapshot lifecycle management (SLM). - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture start() throws IOException { return this.transport.performRequestAsync(StartRequest.INSTANCE, StartRequest.ENDPOINT, this.requestOptions); @@ -230,8 +254,10 @@ public CompletableFuture start() throws IOException { /** * Turns off snapshot lifecycle management (SLM). - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture stop() throws IOException { return this.transport.performRequestAsync(StopRequest.INSTANCE, StopRequest.ENDPOINT, this.requestOptions); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/slm/SlmClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/slm/SlmClient.java index 20a37d520..6c32ae634 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/slm/SlmClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/slm/SlmClient.java @@ -66,8 +66,10 @@ public SlmClient(Transport transport, RequestOptions options) { /** * Deletes an existing snapshot lifecycle policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete-policy.html" + * + * @see Documentation + * on elastic.co */ public DeleteLifecycleResponse deleteLifecycle(DeleteLifecycleRequest request) throws IOException { @@ -76,12 +78,14 @@ public DeleteLifecycleResponse deleteLifecycle(DeleteLifecycleRequest request) t /** * Deletes an existing snapshot lifecycle policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-delete-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteLifecycleResponse deleteLifecycle( @@ -94,8 +98,10 @@ public final DeleteLifecycleResponse deleteLifecycle( /** * Immediately creates a snapshot according to the lifecycle policy, without * waiting for the scheduled time. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html" + * + * @see Documentation + * on elastic.co */ public ExecuteLifecycleResponse executeLifecycle(ExecuteLifecycleRequest request) throws IOException { @@ -105,12 +111,14 @@ public ExecuteLifecycleResponse executeLifecycle(ExecuteLifecycleRequest request /** * Immediately creates a snapshot according to the lifecycle policy, without * waiting for the scheduled time. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-lifecycle.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ExecuteLifecycleResponse executeLifecycle( @@ -123,8 +131,10 @@ public final ExecuteLifecycleResponse executeLifecycle( /** * Deletes any snapshots that are expired according to the policy's retention * rules. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-execute-retention.html" + * + * @see Documentation + * on elastic.co */ public ExecuteRetentionResponse executeRetention() throws IOException { return this.transport.performRequest(ExecuteRetentionRequest.INSTANCE, ExecuteRetentionRequest.ENDPOINT, @@ -136,8 +146,10 @@ public ExecuteRetentionResponse executeRetention() throws IOException { /** * Retrieves one or more snapshot lifecycle policy definitions and information * about the latest snapshot attempts. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-policy.html" + * + * @see Documentation + * on elastic.co */ public GetLifecycleResponse getLifecycle(GetLifecycleRequest request) throws IOException { @@ -147,12 +159,14 @@ public GetLifecycleResponse getLifecycle(GetLifecycleRequest request) throws IOE /** * Retrieves one or more snapshot lifecycle policy definitions and information * about the latest snapshot attempts. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetLifecycleResponse getLifecycle( @@ -165,8 +179,10 @@ public final GetLifecycleResponse getLifecycle( /** * Returns global and policy-level statistics about actions taken by snapshot * lifecycle management. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/slm-api-get-stats.html" + * + * @see Documentation + * on elastic.co */ public GetStatsResponse getStats() throws IOException { return this.transport.performRequest(GetStatsRequest.INSTANCE, GetStatsRequest.ENDPOINT, this.requestOptions); @@ -176,8 +192,10 @@ public GetStatsResponse getStats() throws IOException { /** * Retrieves the status of snapshot lifecycle management (SLM). - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-get-status.html" + * + * @see Documentation + * on elastic.co */ public GetStatusResponse getStatus() throws IOException { return this.transport.performRequest(GetStatusRequest.INSTANCE, GetStatusRequest.ENDPOINT, this.requestOptions); @@ -187,8 +205,10 @@ public GetStatusResponse getStatus() throws IOException { /** * Creates or updates a snapshot lifecycle policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put-policy.html" + * + * @see Documentation + * on elastic.co */ public PutLifecycleResponse putLifecycle(PutLifecycleRequest request) throws IOException { @@ -197,12 +217,14 @@ public PutLifecycleResponse putLifecycle(PutLifecycleRequest request) throws IOE /** * Creates or updates a snapshot lifecycle policy. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-put-policy.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutLifecycleResponse putLifecycle( @@ -214,8 +236,10 @@ public final PutLifecycleResponse putLifecycle( /** * Turns on snapshot lifecycle management (SLM). - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-start.html" + * + * @see Documentation + * on elastic.co */ public StartResponse start() throws IOException { return this.transport.performRequest(StartRequest.INSTANCE, StartRequest.ENDPOINT, this.requestOptions); @@ -225,8 +249,10 @@ public StartResponse start() throws IOException { /** * Turns off snapshot lifecycle management (SLM). - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api-stop.html" + * + * @see Documentation + * on elastic.co */ public StopResponse stop() throws IOException { return this.transport.performRequest(StopRequest.INSTANCE, StopRequest.ENDPOINT, this.requestOptions); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotAsyncClient.java index 443476b66..d9be57fb6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotAsyncClient.java @@ -71,8 +71,10 @@ public SnapshotAsyncClient(Transport transport, RequestOptions options) { /** * Removes stale data from repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/clean-up-snapshot-repo-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture cleanupRepository(CleanupRepositoryRequest request) @@ -82,12 +84,14 @@ public CompletableFuture cleanupRepository(CleanupRep /** * Removes stale data from repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/clean-up-snapshot-repo-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture cleanupRepository( @@ -100,8 +104,10 @@ public final CompletableFuture cleanupRepository( /** * Clones indices from one snapshot into another snapshot in the same * repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture clone(CloneRequest request) throws IOException { @@ -111,12 +117,14 @@ public CompletableFuture clone(CloneRequest request) throws IOExc /** * Clones indices from one snapshot into another snapshot in the same * repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture clone(Function> fn) @@ -128,8 +136,10 @@ public final CompletableFuture clone(FunctionDocumentation + * on elastic.co */ public CompletableFuture create(CreateRequest request) throws IOException { @@ -138,12 +148,14 @@ public CompletableFuture create(CreateRequest request) throws IO /** * Creates a snapshot in a repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture create( @@ -155,8 +167,10 @@ public final CompletableFuture create( /** * Creates a repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture createRepository(CreateRepositoryRequest request) @@ -166,12 +180,14 @@ public CompletableFuture createRepository(CreateReposi /** * Creates a repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture createRepository( @@ -183,8 +199,10 @@ public final CompletableFuture createRepository( /** * Deletes a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture delete(DeleteRequest request) throws IOException { @@ -193,12 +211,14 @@ public CompletableFuture delete(DeleteRequest request) throws IO /** * Deletes a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture delete( @@ -210,8 +230,10 @@ public final CompletableFuture delete( /** * Deletes a repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteRepository(DeleteRepositoryRequest request) @@ -221,12 +243,14 @@ public CompletableFuture deleteRepository(DeleteReposi /** * Deletes a repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteRepository( @@ -238,8 +262,10 @@ public final CompletableFuture deleteRepository( /** * Returns information about a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture get(GetRequest request) throws IOException { @@ -248,12 +274,14 @@ public CompletableFuture get(GetRequest request) throws IOException /** * Returns information about a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture get(Function> fn) @@ -265,8 +293,10 @@ public final CompletableFuture get(FunctionDocumentation + * on elastic.co */ public CompletableFuture getRepository(GetRepositoryRequest request) throws IOException { @@ -275,12 +305,14 @@ public CompletableFuture getRepository(GetRepositoryReque /** * Returns information about a repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getRepository( @@ -292,8 +324,10 @@ public final CompletableFuture getRepository( /** * Restores a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture restore(RestoreRequest request) throws IOException { @@ -302,12 +336,14 @@ public CompletableFuture restore(RestoreRequest request) throws /** * Restores a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture restore( @@ -319,8 +355,10 @@ public final CompletableFuture restore( /** * Returns information about the status of a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture status(StatusRequest request) throws IOException { @@ -329,12 +367,14 @@ public CompletableFuture status(StatusRequest request) throws IO /** * Returns information about the status of a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture status( @@ -346,8 +386,10 @@ public final CompletableFuture status( /** * Verifies a repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture verifyRepository(VerifyRepositoryRequest request) @@ -357,12 +399,14 @@ public CompletableFuture verifyRepository(VerifyReposi /** * Verifies a repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture verifyRepository( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotClient.java index b6890a333..3aec6736f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotClient.java @@ -70,8 +70,10 @@ public SnapshotClient(Transport transport, RequestOptions options) { /** * Removes stale data from repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/clean-up-snapshot-repo-api.html" + * + * @see Documentation + * on elastic.co */ public CleanupRepositoryResponse cleanupRepository(CleanupRepositoryRequest request) throws IOException { @@ -80,12 +82,14 @@ public CleanupRepositoryResponse cleanupRepository(CleanupRepositoryRequest requ /** * Removes stale data from repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/clean-up-snapshot-repo-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CleanupRepositoryResponse cleanupRepository( @@ -98,8 +102,10 @@ public final CleanupRepositoryResponse cleanupRepository( /** * Clones indices from one snapshot into another snapshot in the same * repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public CloneResponse clone(CloneRequest request) throws IOException { @@ -109,12 +115,14 @@ public CloneResponse clone(CloneRequest request) throws IOException { /** * Clones indices from one snapshot into another snapshot in the same * repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CloneResponse clone(Function> fn) @@ -126,8 +134,10 @@ public final CloneResponse clone(FunctionDocumentation + * on elastic.co */ public CreateResponse create(CreateRequest request) throws IOException { @@ -136,12 +146,14 @@ public CreateResponse create(CreateRequest request) throws IOException { /** * Creates a snapshot in a repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CreateResponse create(Function> fn) @@ -153,8 +165,10 @@ public final CreateResponse create(FunctionDocumentation + * on elastic.co */ public CreateRepositoryResponse createRepository(CreateRepositoryRequest request) throws IOException { @@ -163,12 +177,14 @@ public CreateRepositoryResponse createRepository(CreateRepositoryRequest request /** * Creates a repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CreateRepositoryResponse createRepository( @@ -180,8 +196,10 @@ public final CreateRepositoryResponse createRepository( /** * Deletes a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public DeleteResponse delete(DeleteRequest request) throws IOException { @@ -190,12 +208,14 @@ public DeleteResponse delete(DeleteRequest request) throws IOException { /** * Deletes a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteResponse delete(Function> fn) @@ -207,8 +227,10 @@ public final DeleteResponse delete(FunctionDocumentation + * on elastic.co */ public DeleteRepositoryResponse deleteRepository(DeleteRepositoryRequest request) throws IOException { @@ -217,12 +239,14 @@ public DeleteRepositoryResponse deleteRepository(DeleteRepositoryRequest request /** * Deletes a repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteRepositoryResponse deleteRepository( @@ -234,8 +258,10 @@ public final DeleteRepositoryResponse deleteRepository( /** * Returns information about a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public GetResponse get(GetRequest request) throws IOException { @@ -244,12 +270,14 @@ public GetResponse get(GetRequest request) throws IOException { /** * Returns information about a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetResponse get(Function> fn) throws IOException { @@ -260,8 +288,10 @@ public final GetResponse get(FunctionDocumentation + * on elastic.co */ public GetRepositoryResponse getRepository(GetRepositoryRequest request) throws IOException { @@ -270,12 +300,14 @@ public GetRepositoryResponse getRepository(GetRepositoryRequest request) throws /** * Returns information about a repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetRepositoryResponse getRepository( @@ -287,8 +319,10 @@ public final GetRepositoryResponse getRepository( /** * Restores a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * + * @see Documentation + * on elastic.co */ public RestoreResponse restore(RestoreRequest request) throws IOException { @@ -297,12 +331,14 @@ public RestoreResponse restore(RestoreRequest request) throws IOException { /** * Restores a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final RestoreResponse restore(Function> fn) @@ -314,8 +350,10 @@ public final RestoreResponse restore(FunctionDocumentation + * on elastic.co */ public StatusResponse status(StatusRequest request) throws IOException { @@ -324,12 +362,14 @@ public StatusResponse status(StatusRequest request) throws IOException { /** * Returns information about the status of a snapshot. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StatusResponse status(Function> fn) @@ -341,8 +381,10 @@ public final StatusResponse status(FunctionDocumentation + * on elastic.co */ public VerifyRepositoryResponse verifyRepository(VerifyRepositoryRequest request) throws IOException { @@ -351,12 +393,14 @@ public VerifyRepositoryResponse verifyRepository(VerifyRepositoryRequest request /** * Verifies a repository. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final VerifyRepositoryResponse verifyRepository( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlAsyncClient.java index da13afa51..976898982 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlAsyncClient.java @@ -55,8 +55,10 @@ public SqlAsyncClient(Transport transport, RequestOptions options) { /** * Clears the SQL cursor - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-pagination.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture clearCursor(ClearCursorRequest request) throws IOException { @@ -65,12 +67,14 @@ public CompletableFuture clearCursor(ClearCursorRequest req /** * Clears the SQL cursor - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-pagination.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture clearCursor( @@ -82,8 +86,10 @@ public final CompletableFuture clearCursor( /** * Executes a SQL request - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture query(QueryRequest request) throws IOException { @@ -92,12 +98,14 @@ public CompletableFuture query(QueryRequest request) throws IOExc /** * Executes a SQL request - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture query(Function> fn) @@ -109,8 +117,10 @@ public final CompletableFuture query(FunctionDocumentation + * on elastic.co */ public CompletableFuture translate(TranslateRequest request) throws IOException { @@ -119,12 +129,14 @@ public CompletableFuture translate(TranslateRequest request) /** * Translates SQL into Elasticsearch queries - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-translate.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture translate( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlClient.java index ec4dcdfd4..421cc6aad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlClient.java @@ -54,8 +54,10 @@ public SqlClient(Transport transport, RequestOptions options) { /** * Clears the SQL cursor - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-pagination.html" + * + * @see Documentation + * on elastic.co */ public ClearCursorResponse clearCursor(ClearCursorRequest request) throws IOException { @@ -64,12 +66,14 @@ public ClearCursorResponse clearCursor(ClearCursorRequest request) throws IOExce /** * Clears the SQL cursor - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-pagination.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ClearCursorResponse clearCursor( @@ -81,8 +85,10 @@ public final ClearCursorResponse clearCursor( /** * Executes a SQL request - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html" + * + * @see Documentation + * on elastic.co */ public QueryResponse query(QueryRequest request) throws IOException { @@ -91,12 +97,14 @@ public QueryResponse query(QueryRequest request) throws IOException { /** * Executes a SQL request - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final QueryResponse query(Function> fn) @@ -108,8 +116,10 @@ public final QueryResponse query(FunctionDocumentation + * on elastic.co */ public TranslateResponse translate(TranslateRequest request) throws IOException { @@ -118,12 +128,14 @@ public TranslateResponse translate(TranslateRequest request) throws IOException /** * Translates SQL into Elasticsearch queries - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-translate.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final TranslateResponse translate(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslAsyncClient.java index cafb05ec9..b1bafc8d4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslAsyncClient.java @@ -52,8 +52,10 @@ public SslAsyncClient(Transport transport, RequestOptions options) { /** * Retrieves information about the X.509 certificates used to encrypt * communications in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture certificates() throws IOException { return this.transport.performRequestAsync(GetCertificatesRequest.INSTANCE, GetCertificatesRequest.ENDPOINT, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslClient.java index eeaa611ca..fa3e06e33 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslClient.java @@ -51,8 +51,10 @@ public SslClient(Transport transport, RequestOptions options) { /** * Retrieves information about the X.509 certificates used to encrypt * communications in the cluster. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html" + * + * @see Documentation + * on elastic.co */ public GetCertificatesResponse certificates() throws IOException { return this.transport.performRequest(GetCertificatesRequest.INSTANCE, GetCertificatesRequest.ENDPOINT, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksAsyncClient.java index 03269509b..2f71a490d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksAsyncClient.java @@ -55,8 +55,10 @@ public TasksAsyncClient(Transport transport, RequestOptions options) { /** * Cancels a task, if it can be cancelled through an API. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture cancel(CancelRequest request) throws IOException { @@ -65,12 +67,14 @@ public CompletableFuture cancel(CancelRequest request) throws IO /** * Cancels a task, if it can be cancelled through an API. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture cancel( @@ -82,8 +86,10 @@ public final CompletableFuture cancel( /** * Returns information about a task. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture get(GetRequest request) throws IOException { @@ -92,12 +98,14 @@ public CompletableFuture get(GetRequest request) throws IOException /** * Returns information about a task. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture get(Function> fn) @@ -109,8 +117,10 @@ public final CompletableFuture get(FunctionDocumentation + * on elastic.co */ public CompletableFuture list(ListRequest request) throws IOException { @@ -119,12 +129,14 @@ public CompletableFuture list(ListRequest request) throws IOExcept /** * Returns a list of tasks. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture list(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksClient.java index 268fbd529..b1ffbc6c0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksClient.java @@ -54,8 +54,10 @@ public TasksClient(Transport transport, RequestOptions options) { /** * Cancels a task, if it can be cancelled through an API. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html" + * + * @see Documentation + * on elastic.co */ public CancelResponse cancel(CancelRequest request) throws IOException { @@ -64,12 +66,14 @@ public CancelResponse cancel(CancelRequest request) throws IOException { /** * Cancels a task, if it can be cancelled through an API. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CancelResponse cancel(Function> fn) @@ -81,8 +85,10 @@ public final CancelResponse cancel(FunctionDocumentation + * on elastic.co */ public GetResponse get(GetRequest request) throws IOException { @@ -91,12 +97,14 @@ public GetResponse get(GetRequest request) throws IOException { /** * Returns information about a task. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetResponse get(Function> fn) throws IOException { @@ -107,8 +115,10 @@ public final GetResponse get(FunctionDocumentation + * on elastic.co */ public ListResponse list(ListRequest request) throws IOException { @@ -117,12 +127,14 @@ public ListResponse list(ListRequest request) throws IOException { /** * Returns a list of tasks. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/master/tasks.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ListResponse list(Function> fn) throws IOException { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/text_structure/TextStructureAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/text_structure/TextStructureAsyncClient.java index afe5d263b..09eb8fd90 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/text_structure/TextStructureAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/text_structure/TextStructureAsyncClient.java @@ -52,8 +52,10 @@ public TextStructureAsyncClient(Transport transport, RequestOptions options) { /** * Finds the structure of a text file. The text file must contain data that is * suitable to be ingested into Elasticsearch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture findStructure( @@ -64,12 +66,14 @@ public CompletableFuture findStructure( /** * Finds the structure of a text file. The text file must contain data that is * suitable to be ingested into Elasticsearch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture findStructure( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/text_structure/TextStructureClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/text_structure/TextStructureClient.java index 8b4ba7f72..9f630fd69 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/text_structure/TextStructureClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/text_structure/TextStructureClient.java @@ -51,8 +51,10 @@ public TextStructureClient(Transport transport, RequestOptions options) { /** * Finds the structure of a text file. The text file must contain data that is * suitable to be ingested into Elasticsearch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html" + * + * @see Documentation + * on elastic.co */ public FindStructureResponse findStructure(FindStructureRequest request) @@ -63,12 +65,14 @@ public FindStructureResponse findStructure(FindStructureRequest< /** * Finds the structure of a text file. The text file must contain data that is * suitable to be ingested into Elasticsearch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/find-structure.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final FindStructureResponse findStructure( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/transform/TransformAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/transform/TransformAsyncClient.java index 1a1416e45..fab1a5446 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/transform/TransformAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/transform/TransformAsyncClient.java @@ -65,8 +65,10 @@ public TransformAsyncClient(Transport transport, RequestOptions options) { /** * Deletes an existing transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteTransform(DeleteTransformRequest request) @@ -76,12 +78,14 @@ public CompletableFuture deleteTransform(DeleteTransfor /** * Deletes an existing transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteTransform( @@ -93,8 +97,10 @@ public final CompletableFuture deleteTransform( /** * Retrieves configuration information for transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getTransform(GetTransformRequest request) throws IOException { @@ -103,12 +109,14 @@ public CompletableFuture getTransform(GetTransformRequest /** * Retrieves configuration information for transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getTransform( @@ -120,8 +128,10 @@ public final CompletableFuture getTransform( /** * Retrieves usage information for transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getTransformStats(GetTransformStatsRequest request) @@ -131,12 +141,14 @@ public CompletableFuture getTransformStats(GetTransfo /** * Retrieves usage information for transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getTransformStats( @@ -148,8 +160,10 @@ public final CompletableFuture getTransformStats( /** * Previews a transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture> previewTransform( @@ -161,12 +175,14 @@ public CompletableFuture> prev /** * Previews a transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture> previewTransform( @@ -179,8 +195,10 @@ public final CompletableFuture /** * Instantiates a transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putTransform(PutTransformRequest request) throws IOException { @@ -189,12 +207,14 @@ public CompletableFuture putTransform(PutTransformRequest /** * Instantiates a transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putTransform( @@ -206,8 +226,10 @@ public final CompletableFuture putTransform( /** * Starts one or more transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture startTransform(StartTransformRequest request) throws IOException { @@ -216,12 +238,14 @@ public CompletableFuture startTransform(StartTransformRe /** * Starts one or more transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture startTransform( @@ -233,8 +257,10 @@ public final CompletableFuture startTransform( /** * Stops one or more transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture stopTransform(StopTransformRequest request) throws IOException { @@ -243,12 +269,14 @@ public CompletableFuture stopTransform(StopTransformReque /** * Stops one or more transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture stopTransform( @@ -260,8 +288,10 @@ public final CompletableFuture stopTransform( /** * Updates certain properties of a transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture updateTransform(UpdateTransformRequest request) @@ -271,12 +301,14 @@ public CompletableFuture updateTransform(UpdateTransfor /** * Updates certain properties of a transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture updateTransform( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/transform/TransformClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/transform/TransformClient.java index 7681a4217..b68ac058d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/transform/TransformClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/transform/TransformClient.java @@ -64,8 +64,10 @@ public TransformClient(Transport transport, RequestOptions options) { /** * Deletes an existing transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html" + * + * @see Documentation + * on elastic.co */ public DeleteTransformResponse deleteTransform(DeleteTransformRequest request) throws IOException { @@ -74,12 +76,14 @@ public DeleteTransformResponse deleteTransform(DeleteTransformRequest request) t /** * Deletes an existing transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteTransformResponse deleteTransform( @@ -91,8 +95,10 @@ public final DeleteTransformResponse deleteTransform( /** * Retrieves configuration information for transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html" + * + * @see Documentation + * on elastic.co */ public GetTransformResponse getTransform(GetTransformRequest request) throws IOException { @@ -101,12 +107,14 @@ public GetTransformResponse getTransform(GetTransformRequest request) throws IOE /** * Retrieves configuration information for transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetTransformResponse getTransform( @@ -118,8 +126,10 @@ public final GetTransformResponse getTransform( /** * Retrieves usage information for transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html" + * + * @see Documentation + * on elastic.co */ public GetTransformStatsResponse getTransformStats(GetTransformStatsRequest request) throws IOException { @@ -128,12 +138,14 @@ public GetTransformStatsResponse getTransformStats(GetTransformStatsRequest requ /** * Retrieves usage information for transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/get-transform-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetTransformStatsResponse getTransformStats( @@ -145,8 +157,10 @@ public final GetTransformStatsResponse getTransformStats( /** * Previews a transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html" + * + * @see Documentation + * on elastic.co */ public PreviewTransformResponse previewTransform(PreviewTransformRequest request, @@ -158,12 +172,14 @@ public PreviewTransformResponse previewTransform(Previe /** * Previews a transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PreviewTransformResponse previewTransform( @@ -176,8 +192,10 @@ public final PreviewTransformResponse previewTransform( /** * Instantiates a transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html" + * + * @see Documentation + * on elastic.co */ public PutTransformResponse putTransform(PutTransformRequest request) throws IOException { @@ -186,12 +204,14 @@ public PutTransformResponse putTransform(PutTransformRequest request) throws IOE /** * Instantiates a transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/put-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutTransformResponse putTransform( @@ -203,8 +223,10 @@ public final PutTransformResponse putTransform( /** * Starts one or more transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html" + * + * @see Documentation + * on elastic.co */ public StartTransformResponse startTransform(StartTransformRequest request) throws IOException { @@ -213,12 +235,14 @@ public StartTransformResponse startTransform(StartTransformRequest request) thro /** * Starts one or more transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/start-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StartTransformResponse startTransform( @@ -230,8 +254,10 @@ public final StartTransformResponse startTransform( /** * Stops one or more transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html" + * + * @see Documentation + * on elastic.co */ public StopTransformResponse stopTransform(StopTransformRequest request) throws IOException { @@ -240,12 +266,14 @@ public StopTransformResponse stopTransform(StopTransformRequest request) throws /** * Stops one or more transforms. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/stop-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StopTransformResponse stopTransform( @@ -257,8 +285,10 @@ public final StopTransformResponse stopTransform( /** * Updates certain properties of a transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html" + * + * @see Documentation + * on elastic.co */ public UpdateTransformResponse updateTransform(UpdateTransformRequest request) throws IOException { @@ -267,12 +297,14 @@ public UpdateTransformResponse updateTransform(UpdateTransformRequest request) t /** * Updates certain properties of a transform. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/update-transform.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UpdateTransformResponse updateTransform( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/watcher/WatcherAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/watcher/WatcherAsyncClient.java index b1582c6d4..75e83b11c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/watcher/WatcherAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/watcher/WatcherAsyncClient.java @@ -72,8 +72,10 @@ public WatcherAsyncClient(Transport transport, RequestOptions options) { /** * Acknowledges a watch, manually throttling the execution of the watch's * actions. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture ackWatch(AckWatchRequest request) throws IOException { @@ -83,12 +85,14 @@ public CompletableFuture ackWatch(AckWatchRequest request) thr /** * Acknowledges a watch, manually throttling the execution of the watch's * actions. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture ackWatch( @@ -100,8 +104,10 @@ public final CompletableFuture ackWatch( /** * Activates a currently inactive watch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture activateWatch(ActivateWatchRequest request) throws IOException { @@ -110,12 +116,14 @@ public CompletableFuture activateWatch(ActivateWatchReque /** * Activates a currently inactive watch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture activateWatch( @@ -127,8 +135,10 @@ public final CompletableFuture activateWatch( /** * Deactivates a currently active watch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deactivateWatch(DeactivateWatchRequest request) @@ -138,12 +148,14 @@ public CompletableFuture deactivateWatch(DeactivateWatc /** * Deactivates a currently active watch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deactivateWatch( @@ -155,8 +167,10 @@ public final CompletableFuture deactivateWatch( /** * Removes a watch from Watcher. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture deleteWatch(DeleteWatchRequest request) throws IOException { @@ -165,12 +179,14 @@ public CompletableFuture deleteWatch(DeleteWatchRequest req /** * Removes a watch from Watcher. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture deleteWatch( @@ -182,8 +198,10 @@ public final CompletableFuture deleteWatch( /** * Forces the execution of a stored watch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture executeWatch(ExecuteWatchRequest request) throws IOException { @@ -192,12 +210,14 @@ public CompletableFuture executeWatch(ExecuteWatchRequest /** * Forces the execution of a stored watch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture executeWatch( @@ -209,8 +229,10 @@ public final CompletableFuture executeWatch( /** * Retrieves a watch by its ID. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture getWatch(GetWatchRequest request) throws IOException { @@ -219,12 +241,14 @@ public CompletableFuture getWatch(GetWatchRequest request) thr /** * Retrieves a watch by its ID. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture getWatch( @@ -236,8 +260,10 @@ public final CompletableFuture getWatch( /** * Creates a new watch, or updates an existing one. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture putWatch(PutWatchRequest request) throws IOException { @@ -246,12 +272,14 @@ public CompletableFuture putWatch(PutWatchRequest request) thr /** * Creates a new watch, or updates an existing one. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture putWatch( @@ -263,8 +291,10 @@ public final CompletableFuture putWatch( /** * Retrieves stored watches. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-query-watches.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture queryWatches(QueryWatchesRequest request) throws IOException { @@ -273,12 +303,14 @@ public CompletableFuture queryWatches(QueryWatchesRequest /** * Retrieves stored watches. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-query-watches.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture queryWatches( @@ -290,8 +322,10 @@ public final CompletableFuture queryWatches( /** * Starts Watcher if it is not already running. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture start() throws IOException { return this.transport.performRequestAsync(StartRequest.INSTANCE, StartRequest.ENDPOINT, this.requestOptions); @@ -301,8 +335,10 @@ public CompletableFuture start() throws IOException { /** * Retrieves the current Watcher metrics. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture stats(StatsRequest request) throws IOException { @@ -311,12 +347,14 @@ public CompletableFuture stats(StatsRequest request) throws IOExc /** * Retrieves the current Watcher metrics. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture stats(Function> fn) @@ -328,8 +366,10 @@ public final CompletableFuture stats(FunctionDocumentation + * on elastic.co */ public CompletableFuture stop() throws IOException { return this.transport.performRequestAsync(StopRequest.INSTANCE, StopRequest.ENDPOINT, this.requestOptions); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/watcher/WatcherClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/watcher/WatcherClient.java index 4ea86fb7f..906f5de3a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/watcher/WatcherClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/watcher/WatcherClient.java @@ -71,8 +71,10 @@ public WatcherClient(Transport transport, RequestOptions options) { /** * Acknowledges a watch, manually throttling the execution of the watch's * actions. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html" + * + * @see Documentation + * on elastic.co */ public AckWatchResponse ackWatch(AckWatchRequest request) throws IOException { @@ -82,12 +84,14 @@ public AckWatchResponse ackWatch(AckWatchRequest request) throws IOException { /** * Acknowledges a watch, manually throttling the execution of the watch's * actions. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final AckWatchResponse ackWatch(Function> fn) @@ -99,8 +103,10 @@ public final AckWatchResponse ackWatch(FunctionDocumentation + * on elastic.co */ public ActivateWatchResponse activateWatch(ActivateWatchRequest request) throws IOException { @@ -109,12 +115,14 @@ public ActivateWatchResponse activateWatch(ActivateWatchRequest request) throws /** * Activates a currently inactive watch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ActivateWatchResponse activateWatch( @@ -126,8 +134,10 @@ public final ActivateWatchResponse activateWatch( /** * Deactivates a currently active watch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html" + * + * @see Documentation + * on elastic.co */ public DeactivateWatchResponse deactivateWatch(DeactivateWatchRequest request) throws IOException { @@ -136,12 +146,14 @@ public DeactivateWatchResponse deactivateWatch(DeactivateWatchRequest request) t /** * Deactivates a currently active watch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeactivateWatchResponse deactivateWatch( @@ -153,8 +165,10 @@ public final DeactivateWatchResponse deactivateWatch( /** * Removes a watch from Watcher. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html" + * + * @see Documentation + * on elastic.co */ public DeleteWatchResponse deleteWatch(DeleteWatchRequest request) throws IOException { @@ -163,12 +177,14 @@ public DeleteWatchResponse deleteWatch(DeleteWatchRequest request) throws IOExce /** * Removes a watch from Watcher. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final DeleteWatchResponse deleteWatch( @@ -180,8 +196,10 @@ public final DeleteWatchResponse deleteWatch( /** * Forces the execution of a stored watch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html" + * + * @see Documentation + * on elastic.co */ public ExecuteWatchResponse executeWatch(ExecuteWatchRequest request) throws IOException { @@ -190,12 +208,14 @@ public ExecuteWatchResponse executeWatch(ExecuteWatchRequest request) throws IOE /** * Forces the execution of a stored watch. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final ExecuteWatchResponse executeWatch( @@ -207,8 +227,10 @@ public final ExecuteWatchResponse executeWatch( /** * Retrieves a watch by its ID. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html" + * + * @see Documentation + * on elastic.co */ public GetWatchResponse getWatch(GetWatchRequest request) throws IOException { @@ -217,12 +239,14 @@ public GetWatchResponse getWatch(GetWatchRequest request) throws IOException { /** * Retrieves a watch by its ID. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final GetWatchResponse getWatch(Function> fn) @@ -234,8 +258,10 @@ public final GetWatchResponse getWatch(FunctionDocumentation + * on elastic.co */ public PutWatchResponse putWatch(PutWatchRequest request) throws IOException { @@ -244,12 +270,14 @@ public PutWatchResponse putWatch(PutWatchRequest request) throws IOException { /** * Creates a new watch, or updates an existing one. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final PutWatchResponse putWatch(Function> fn) @@ -261,8 +289,10 @@ public final PutWatchResponse putWatch(FunctionDocumentation + * on elastic.co */ public QueryWatchesResponse queryWatches(QueryWatchesRequest request) throws IOException { @@ -271,12 +301,14 @@ public QueryWatchesResponse queryWatches(QueryWatchesRequest request) throws IOE /** * Retrieves stored watches. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-query-watches.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final QueryWatchesResponse queryWatches( @@ -288,8 +320,10 @@ public final QueryWatchesResponse queryWatches( /** * Starts Watcher if it is not already running. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html" + * + * @see Documentation + * on elastic.co */ public StartResponse start() throws IOException { return this.transport.performRequest(StartRequest.INSTANCE, StartRequest.ENDPOINT, this.requestOptions); @@ -299,8 +333,10 @@ public StartResponse start() throws IOException { /** * Retrieves the current Watcher metrics. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html" + * + * @see Documentation + * on elastic.co */ public StatsResponse stats(StatsRequest request) throws IOException { @@ -309,12 +345,14 @@ public StatsResponse stats(StatsRequest request) throws IOException { /** * Retrieves the current Watcher metrics. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-stats.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final StatsResponse stats(Function> fn) @@ -326,8 +364,10 @@ public final StatsResponse stats(FunctionDocumentation + * on elastic.co */ public StopResponse stop() throws IOException { return this.transport.performRequest(StopRequest.INSTANCE, StopRequest.ENDPOINT, this.requestOptions); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/xpack/XpackAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/xpack/XpackAsyncClient.java index 27be4343a..e023dddd1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/xpack/XpackAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/xpack/XpackAsyncClient.java @@ -53,8 +53,10 @@ public XpackAsyncClient(Transport transport, RequestOptions options) { /** * Retrieves information about the installed X-Pack features. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html" + * + * @see Documentation + * on elastic.co */ public CompletableFuture info(InfoRequest request) throws IOException { @@ -63,12 +65,14 @@ public CompletableFuture info(InfoRequest request) throws IOExcept /** * Retrieves information about the installed X-Pack features. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture info(Function> fn) @@ -80,8 +84,10 @@ public final CompletableFuture info(FunctionDocumentation + * on elastic.co */ public CompletableFuture usage(UsageRequest request) throws IOException { @@ -90,12 +96,14 @@ public CompletableFuture usage(UsageRequest request) throws IOExc /** * Retrieves usage information about the installed X-Pack features. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final CompletableFuture usage(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/xpack/XpackClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/xpack/XpackClient.java index 4c4db1d50..af912d314 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/xpack/XpackClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/xpack/XpackClient.java @@ -52,8 +52,10 @@ public XpackClient(Transport transport, RequestOptions options) { /** * Retrieves information about the installed X-Pack features. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html" + * + * @see Documentation + * on elastic.co */ public InfoResponse info(InfoRequest request) throws IOException { @@ -62,12 +64,14 @@ public InfoResponse info(InfoRequest request) throws IOException { /** * Retrieves information about the installed X-Pack features. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/info-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final InfoResponse info(Function> fn) throws IOException { @@ -78,8 +82,10 @@ public final InfoResponse info(FunctionDocumentation + * on elastic.co */ public UsageResponse usage(UsageRequest request) throws IOException { @@ -88,12 +94,14 @@ public UsageResponse usage(UsageRequest request) throws IOException { /** * Retrieves usage information about the installed X-Pack features. - * - * @see "https://www.elastic.co/guide/en/elasticsearch/reference/current/usage-api.html" + * * @param fn * a function that initializes a freshly created builder. This * function can either return its builder argument after having set * its properties or return another builder. + * @see Documentation + * on elastic.co */ public final UsageResponse usage(Function> fn) diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearch.java index 9cfe9350a..e43c6bfa2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearch.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearch.java @@ -557,7 +557,6 @@ public Builder took(Number value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchDocumentResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchDocumentResponseBase.java index 7cc2ea4de..c667fe0d1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchDocumentResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/AsyncSearchDocumentResponseBase.java @@ -92,7 +92,6 @@ public BuilderT response(Function, ObjectBuilder< /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public BuilderT tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetResponse.java index 1cf799730..d0b0213d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetResponse.java @@ -62,7 +62,6 @@ public static class Builder /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/StatusResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/StatusResponse.java index 121af84e4..0bbad594a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/StatusResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/StatusResponse.java @@ -123,7 +123,6 @@ public Builder completionStatus(Number value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitResponse.java index 9f66b1314..87f09c051 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitResponse.java @@ -62,7 +62,6 @@ public static class Builder /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PolicyDeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PolicyDeleteRequest.java index 725b27a7f..43979c370 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PolicyDeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PolicyDeleteRequest.java @@ -71,7 +71,7 @@ public String stubA() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code name} */ @Nullable @@ -134,7 +134,7 @@ public Builder stubA(String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code name} */ public Builder name(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PolicyGetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PolicyGetRequest.java index 5cbda8c18..bd5b84ec5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PolicyGetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PolicyGetRequest.java @@ -71,7 +71,7 @@ public String stubA() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code name} */ @Nullable @@ -134,7 +134,7 @@ public Builder stubA(String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code name} */ public Builder name(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PolicyPutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PolicyPutRequest.java index d347d321b..a82f834aa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PolicyPutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PolicyPutRequest.java @@ -71,7 +71,7 @@ public String stubA() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code name} */ @Nullable @@ -134,7 +134,7 @@ public Builder stubA(String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code name} */ public Builder name(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesResponse.java index a20fe5385..299d981db 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesResponse.java @@ -53,7 +53,7 @@ protected AliasesResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(AliasesRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationResponse.java index 4596e1ec4..38f7deff5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationResponse.java @@ -53,7 +53,7 @@ protected AllocationResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(AllocationRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountResponse.java index 6fd0901e9..bd3c6a777 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountResponse.java @@ -53,7 +53,7 @@ protected CountResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(CountRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/DataFrameAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/DataFrameAnalyticsResponse.java index 250e1fd3d..a1fa43ed8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/DataFrameAnalyticsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/DataFrameAnalyticsResponse.java @@ -53,7 +53,7 @@ protected DataFrameAnalyticsResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(DataFrameAnalyticsRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/DatafeedsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/DatafeedsResponse.java index 8c85c19e4..9b6dc2756 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/DatafeedsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/DatafeedsResponse.java @@ -53,7 +53,7 @@ protected DatafeedsResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(DatafeedsRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataResponse.java index 30e4f170f..55714f569 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataResponse.java @@ -53,7 +53,7 @@ protected FielddataResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(FielddataRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthResponse.java index 58bb24ff3..da26a98c9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthResponse.java @@ -53,7 +53,7 @@ protected HealthResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(HealthRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpResponse.java index 662ead3e4..03e78e565 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HelpResponse.java @@ -53,7 +53,7 @@ protected HelpResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(HelpRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesResponse.java index 4ad109d79..0db62dcf1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesResponse.java @@ -53,7 +53,7 @@ protected IndicesResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(IndicesRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/JobsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/JobsResponse.java index 5efa1480a..935d62e59 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/JobsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/JobsResponse.java @@ -53,7 +53,7 @@ protected JobsResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(JobsRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterResponse.java index 1de8493bb..f795afc2a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MasterResponse.java @@ -53,7 +53,7 @@ protected MasterResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(MasterRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeAttributesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeAttributesResponse.java index 4dcbce0a0..8903f4849 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeAttributesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeAttributesResponse.java @@ -53,7 +53,7 @@ protected NodeAttributesResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(NodeAttributesRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesResponse.java index 2797b9bd3..87c73b784 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesResponse.java @@ -53,7 +53,7 @@ protected NodesResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(NodesRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksResponse.java index 1b5b0012c..3284cda1c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PendingTasksResponse.java @@ -53,7 +53,7 @@ protected PendingTasksResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(PendingTasksRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsResponse.java index aa9aa2bc7..76bc2da1e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/PluginsResponse.java @@ -53,7 +53,7 @@ protected PluginsResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(PluginsRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryResponse.java index b5becda5d..d1a8b27da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryResponse.java @@ -53,7 +53,7 @@ protected RecoveryResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(RecoveryRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesResponse.java index 3bb3bbd30..ba25a6a1a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RepositoriesResponse.java @@ -53,7 +53,7 @@ protected RepositoriesResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(RepositoriesRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsResponse.java index 7702e010d..733d3d109 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsResponse.java @@ -53,7 +53,7 @@ protected SegmentsResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(SegmentsRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsResponse.java index 6f9506538..f8dd6491e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsResponse.java @@ -53,7 +53,7 @@ protected ShardsResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(ShardsRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsResponse.java index 6695ed6ee..509bac261 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsResponse.java @@ -53,7 +53,7 @@ protected SnapshotsResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(SnapshotsRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksResponse.java index ea40407a1..cdfcf1b2c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksResponse.java @@ -53,7 +53,7 @@ protected TasksResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(TasksRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesResponse.java index 606a6a566..de30f9540 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesResponse.java @@ -53,7 +53,7 @@ protected TemplatesResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(TemplatesRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolResponse.java index 70211dbb0..03f89f34e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolResponse.java @@ -53,7 +53,7 @@ protected ThreadPoolResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(ThreadPoolRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TrainedModelsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TrainedModelsResponse.java index aa6d59bb6..6d573137f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TrainedModelsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TrainedModelsResponse.java @@ -53,7 +53,7 @@ protected TrainedModelsResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(TrainedModelsRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsResponse.java index 227476584..41b7cfd9f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsResponse.java @@ -53,7 +53,7 @@ protected TransformsResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(TransformsRecord... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/aliases/AliasesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/aliases/AliasesRecord.java index 444eb1b48..4825e46b4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/aliases/AliasesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/aliases/AliasesRecord.java @@ -69,7 +69,7 @@ protected AliasesRecord(Builder builder) { /** * alias name - * + *

* API name: {@code alias} */ @Nullable @@ -79,7 +79,7 @@ public String alias() { /** * index alias points to - * + *

* API name: {@code index} */ @Nullable @@ -89,7 +89,7 @@ public String index() { /** * filter - * + *

* API name: {@code filter} */ @Nullable @@ -99,7 +99,7 @@ public String filter() { /** * index routing - * + *

* API name: {@code routing.index} */ @Nullable @@ -109,7 +109,7 @@ public String routing_index() { /** * search routing - * + *

* API name: {@code routing.search} */ @Nullable @@ -119,7 +119,7 @@ public String routing_search() { /** * write index - * + *

* API name: {@code is_write_index} */ @Nullable @@ -203,7 +203,7 @@ public static class Builder implements ObjectBuilder { /** * alias name - * + *

* API name: {@code alias} */ public Builder alias(@Nullable String value) { @@ -213,7 +213,7 @@ public Builder alias(@Nullable String value) { /** * index alias points to - * + *

* API name: {@code index} */ public Builder index(@Nullable String value) { @@ -223,7 +223,7 @@ public Builder index(@Nullable String value) { /** * filter - * + *

* API name: {@code filter} */ public Builder filter(@Nullable String value) { @@ -233,7 +233,7 @@ public Builder filter(@Nullable String value) { /** * index routing - * + *

* API name: {@code routing.index} */ public Builder routing_index(@Nullable String value) { @@ -243,7 +243,7 @@ public Builder routing_index(@Nullable String value) { /** * search routing - * + *

* API name: {@code routing.search} */ public Builder routing_search(@Nullable String value) { @@ -253,7 +253,7 @@ public Builder routing_search(@Nullable String value) { /** * write index - * + *

* API name: {@code is_write_index} */ public Builder isWriteIndex(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/allocation/AllocationRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/allocation/AllocationRecord.java index dc36c7fe3..ef9083323 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/allocation/AllocationRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/allocation/AllocationRecord.java @@ -82,7 +82,7 @@ protected AllocationRecord(Builder builder) { /** * number of shards on node - * + *

* API name: {@code shards} */ @Nullable @@ -92,7 +92,7 @@ public String shards() { /** * disk used by ES indices - * + *

* API name: {@code disk.indices} */ @Nullable @@ -102,7 +102,7 @@ public JsonValue disk_indices() { /** * disk used (total, not just ES) - * + *

* API name: {@code disk.used} */ @Nullable @@ -112,7 +112,7 @@ public JsonValue disk_used() { /** * disk available - * + *

* API name: {@code disk.avail} */ @Nullable @@ -122,7 +122,7 @@ public JsonValue disk_avail() { /** * total capacity of all volumes - * + *

* API name: {@code disk.total} */ @Nullable @@ -132,7 +132,7 @@ public JsonValue disk_total() { /** * percent disk used - * + *

* API name: {@code disk.percent} */ @Nullable @@ -142,7 +142,7 @@ public JsonValue disk_percent() { /** * host of node - * + *

* API name: {@code host} */ @Nullable @@ -152,7 +152,7 @@ public String host() { /** * ip of node - * + *

* API name: {@code ip} */ @Nullable @@ -162,7 +162,7 @@ public String ip() { /** * name of node - * + *

* API name: {@code node} */ @Nullable @@ -273,7 +273,7 @@ public static class Builder implements ObjectBuilder { /** * number of shards on node - * + *

* API name: {@code shards} */ public Builder shards(@Nullable String value) { @@ -283,7 +283,7 @@ public Builder shards(@Nullable String value) { /** * disk used by ES indices - * + *

* API name: {@code disk.indices} */ public Builder disk_indices(@Nullable JsonValue value) { @@ -293,7 +293,7 @@ public Builder disk_indices(@Nullable JsonValue value) { /** * disk used (total, not just ES) - * + *

* API name: {@code disk.used} */ public Builder disk_used(@Nullable JsonValue value) { @@ -303,7 +303,7 @@ public Builder disk_used(@Nullable JsonValue value) { /** * disk available - * + *

* API name: {@code disk.avail} */ public Builder disk_avail(@Nullable JsonValue value) { @@ -313,7 +313,7 @@ public Builder disk_avail(@Nullable JsonValue value) { /** * total capacity of all volumes - * + *

* API name: {@code disk.total} */ public Builder disk_total(@Nullable JsonValue value) { @@ -323,7 +323,7 @@ public Builder disk_total(@Nullable JsonValue value) { /** * percent disk used - * + *

* API name: {@code disk.percent} */ public Builder disk_percent(@Nullable JsonValue value) { @@ -333,7 +333,7 @@ public Builder disk_percent(@Nullable JsonValue value) { /** * host of node - * + *

* API name: {@code host} */ public Builder host(@Nullable String value) { @@ -343,7 +343,7 @@ public Builder host(@Nullable String value) { /** * ip of node - * + *

* API name: {@code ip} */ public Builder ip(@Nullable String value) { @@ -353,7 +353,7 @@ public Builder ip(@Nullable String value) { /** * name of node - * + *

* API name: {@code node} */ public Builder node(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/count/CountRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/count/CountRecord.java index ac612bce6..a689dd563 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/count/CountRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/count/CountRecord.java @@ -58,7 +58,7 @@ protected CountRecord(Builder builder) { /** * seconds since 1969-01-01 00:00:00 - * + *

* API name: {@code epoch} */ @Nullable @@ -68,7 +68,7 @@ public JsonValue epoch() { /** * time in HH:MM:SS - * + *

* API name: {@code timestamp} */ @Nullable @@ -78,7 +78,7 @@ public String timestamp() { /** * the document count - * + *

* API name: {@code count} */ @Nullable @@ -135,7 +135,7 @@ public static class Builder implements ObjectBuilder { /** * seconds since 1969-01-01 00:00:00 - * + *

* API name: {@code epoch} */ public Builder epoch(@Nullable JsonValue value) { @@ -145,7 +145,7 @@ public Builder epoch(@Nullable JsonValue value) { /** * time in HH:MM:SS - * + *

* API name: {@code timestamp} */ public Builder timestamp(@Nullable String value) { @@ -155,7 +155,7 @@ public Builder timestamp(@Nullable String value) { /** * the document count - * + *

* API name: {@code count} */ public Builder count(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/data_frame_analytics/DataFrameAnalyticsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/data_frame_analytics/DataFrameAnalyticsRecord.java index ab6eecbcd..a188d3d6c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/data_frame_analytics/DataFrameAnalyticsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/data_frame_analytics/DataFrameAnalyticsRecord.java @@ -109,7 +109,7 @@ protected DataFrameAnalyticsRecord(Builder builder) { /** * the id - * + *

* API name: {@code id} */ @Nullable @@ -119,7 +119,7 @@ public String id() { /** * analysis type - * + *

* API name: {@code type} */ @Nullable @@ -129,7 +129,7 @@ public String type() { /** * job creation time - * + *

* API name: {@code create_time} */ @Nullable @@ -139,7 +139,7 @@ public String createTime() { /** * the version of Elasticsearch when the analytics was created - * + *

* API name: {@code version} */ @Nullable @@ -149,7 +149,7 @@ public String version() { /** * source index - * + *

* API name: {@code source_index} */ @Nullable @@ -159,7 +159,7 @@ public String sourceIndex() { /** * destination index - * + *

* API name: {@code dest_index} */ @Nullable @@ -169,7 +169,7 @@ public String destIndex() { /** * description - * + *

* API name: {@code description} */ @Nullable @@ -179,7 +179,7 @@ public String description() { /** * model memory limit - * + *

* API name: {@code model_memory_limit} */ @Nullable @@ -189,7 +189,7 @@ public String modelMemoryLimit() { /** * job state - * + *

* API name: {@code state} */ @Nullable @@ -199,7 +199,7 @@ public String state() { /** * failure reason - * + *

* API name: {@code failure_reason} */ @Nullable @@ -209,7 +209,7 @@ public String failureReason() { /** * progress - * + *

* API name: {@code progress} */ @Nullable @@ -219,7 +219,7 @@ public String progress() { /** * why the job is or is not assigned to a node - * + *

* API name: {@code assignment_explanation} */ @Nullable @@ -229,7 +229,7 @@ public String assignmentExplanation() { /** * id of the assigned node - * + *

* API name: {@code node.id} */ @Nullable @@ -239,7 +239,7 @@ public String node_id() { /** * name of the assigned node - * + *

* API name: {@code node.name} */ @Nullable @@ -249,7 +249,7 @@ public String node_name() { /** * ephemeral id of the assigned node - * + *

* API name: {@code node.ephemeral_id} */ @Nullable @@ -259,7 +259,7 @@ public String node_ephemeralId() { /** * network address of the assigned node - * + *

* API name: {@code node.address} */ @Nullable @@ -433,7 +433,7 @@ public static class Builder implements ObjectBuilder { /** * the id - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -443,7 +443,7 @@ public Builder id(@Nullable String value) { /** * analysis type - * + *

* API name: {@code type} */ public Builder type(@Nullable String value) { @@ -453,7 +453,7 @@ public Builder type(@Nullable String value) { /** * job creation time - * + *

* API name: {@code create_time} */ public Builder createTime(@Nullable String value) { @@ -463,7 +463,7 @@ public Builder createTime(@Nullable String value) { /** * the version of Elasticsearch when the analytics was created - * + *

* API name: {@code version} */ public Builder version(@Nullable String value) { @@ -473,7 +473,7 @@ public Builder version(@Nullable String value) { /** * source index - * + *

* API name: {@code source_index} */ public Builder sourceIndex(@Nullable String value) { @@ -483,7 +483,7 @@ public Builder sourceIndex(@Nullable String value) { /** * destination index - * + *

* API name: {@code dest_index} */ public Builder destIndex(@Nullable String value) { @@ -493,7 +493,7 @@ public Builder destIndex(@Nullable String value) { /** * description - * + *

* API name: {@code description} */ public Builder description(@Nullable String value) { @@ -503,7 +503,7 @@ public Builder description(@Nullable String value) { /** * model memory limit - * + *

* API name: {@code model_memory_limit} */ public Builder modelMemoryLimit(@Nullable String value) { @@ -513,7 +513,7 @@ public Builder modelMemoryLimit(@Nullable String value) { /** * job state - * + *

* API name: {@code state} */ public Builder state(@Nullable String value) { @@ -523,7 +523,7 @@ public Builder state(@Nullable String value) { /** * failure reason - * + *

* API name: {@code failure_reason} */ public Builder failureReason(@Nullable String value) { @@ -533,7 +533,7 @@ public Builder failureReason(@Nullable String value) { /** * progress - * + *

* API name: {@code progress} */ public Builder progress(@Nullable String value) { @@ -543,7 +543,7 @@ public Builder progress(@Nullable String value) { /** * why the job is or is not assigned to a node - * + *

* API name: {@code assignment_explanation} */ public Builder assignmentExplanation(@Nullable String value) { @@ -553,7 +553,7 @@ public Builder assignmentExplanation(@Nullable String value) { /** * id of the assigned node - * + *

* API name: {@code node.id} */ public Builder node_id(@Nullable String value) { @@ -563,7 +563,7 @@ public Builder node_id(@Nullable String value) { /** * name of the assigned node - * + *

* API name: {@code node.name} */ public Builder node_name(@Nullable String value) { @@ -573,7 +573,7 @@ public Builder node_name(@Nullable String value) { /** * ephemeral id of the assigned node - * + *

* API name: {@code node.ephemeral_id} */ public Builder node_ephemeralId(@Nullable String value) { @@ -583,7 +583,7 @@ public Builder node_ephemeralId(@Nullable String value) { /** * network address of the assigned node - * + *

* API name: {@code node.address} */ public Builder node_address(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/datafeeds/DatafeedsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/datafeeds/DatafeedsRecord.java index 5c4cf3979..43ef8b1a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/datafeeds/DatafeedsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/datafeeds/DatafeedsRecord.java @@ -94,7 +94,7 @@ protected DatafeedsRecord(Builder builder) { /** * the datafeed_id - * + *

* API name: {@code id} */ @Nullable @@ -104,7 +104,7 @@ public String id() { /** * the datafeed state - * + *

* API name: {@code state} */ @Nullable @@ -114,7 +114,7 @@ public JsonValue state() { /** * why the datafeed is or is not assigned to a node - * + *

* API name: {@code assignment_explanation} */ @Nullable @@ -124,7 +124,7 @@ public String assignmentExplanation() { /** * bucket count - * + *

* API name: {@code buckets.count} */ @Nullable @@ -134,7 +134,7 @@ public String buckets_count() { /** * number of searches ran by the datafeed - * + *

* API name: {@code search.count} */ @Nullable @@ -144,7 +144,7 @@ public String search_count() { /** * the total search time - * + *

* API name: {@code search.time} */ @Nullable @@ -154,7 +154,7 @@ public String search_time() { /** * the average search time per bucket (millisecond) - * + *

* API name: {@code search.bucket_avg} */ @Nullable @@ -164,7 +164,7 @@ public String search_bucketAvg() { /** * the exponential average search time per hour (millisecond) - * + *

* API name: {@code search.exp_avg_hour} */ @Nullable @@ -174,7 +174,7 @@ public String search_expAvgHour() { /** * id of the assigned node - * + *

* API name: {@code node.id} */ @Nullable @@ -184,7 +184,7 @@ public String node_id() { /** * name of the assigned node - * + *

* API name: {@code node.name} */ @Nullable @@ -194,7 +194,7 @@ public String node_name() { /** * ephemeral id of the assigned node - * + *

* API name: {@code node.ephemeral_id} */ @Nullable @@ -204,7 +204,7 @@ public String node_ephemeralId() { /** * network address of the assigned node - * + *

* API name: {@code node.address} */ @Nullable @@ -342,7 +342,7 @@ public static class Builder implements ObjectBuilder { /** * the datafeed_id - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -352,7 +352,7 @@ public Builder id(@Nullable String value) { /** * the datafeed state - * + *

* API name: {@code state} */ public Builder state(@Nullable JsonValue value) { @@ -362,7 +362,7 @@ public Builder state(@Nullable JsonValue value) { /** * why the datafeed is or is not assigned to a node - * + *

* API name: {@code assignment_explanation} */ public Builder assignmentExplanation(@Nullable String value) { @@ -372,7 +372,7 @@ public Builder assignmentExplanation(@Nullable String value) { /** * bucket count - * + *

* API name: {@code buckets.count} */ public Builder buckets_count(@Nullable String value) { @@ -382,7 +382,7 @@ public Builder buckets_count(@Nullable String value) { /** * number of searches ran by the datafeed - * + *

* API name: {@code search.count} */ public Builder search_count(@Nullable String value) { @@ -392,7 +392,7 @@ public Builder search_count(@Nullable String value) { /** * the total search time - * + *

* API name: {@code search.time} */ public Builder search_time(@Nullable String value) { @@ -402,7 +402,7 @@ public Builder search_time(@Nullable String value) { /** * the average search time per bucket (millisecond) - * + *

* API name: {@code search.bucket_avg} */ public Builder search_bucketAvg(@Nullable String value) { @@ -412,7 +412,7 @@ public Builder search_bucketAvg(@Nullable String value) { /** * the exponential average search time per hour (millisecond) - * + *

* API name: {@code search.exp_avg_hour} */ public Builder search_expAvgHour(@Nullable String value) { @@ -422,7 +422,7 @@ public Builder search_expAvgHour(@Nullable String value) { /** * id of the assigned node - * + *

* API name: {@code node.id} */ public Builder node_id(@Nullable String value) { @@ -432,7 +432,7 @@ public Builder node_id(@Nullable String value) { /** * name of the assigned node - * + *

* API name: {@code node.name} */ public Builder node_name(@Nullable String value) { @@ -442,7 +442,7 @@ public Builder node_name(@Nullable String value) { /** * ephemeral id of the assigned node - * + *

* API name: {@code node.ephemeral_id} */ public Builder node_ephemeralId(@Nullable String value) { @@ -452,7 +452,7 @@ public Builder node_ephemeralId(@Nullable String value) { /** * network address of the assigned node - * + *

* API name: {@code node.address} */ public Builder node_address(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/fielddata/FielddataRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/fielddata/FielddataRecord.java index 155a9f9ec..1cb04e2a1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/fielddata/FielddataRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/fielddata/FielddataRecord.java @@ -69,7 +69,7 @@ protected FielddataRecord(Builder builder) { /** * node id - * + *

* API name: {@code id} */ @Nullable @@ -79,7 +79,7 @@ public String id() { /** * host name - * + *

* API name: {@code host} */ @Nullable @@ -89,7 +89,7 @@ public String host() { /** * ip address - * + *

* API name: {@code ip} */ @Nullable @@ -99,7 +99,7 @@ public String ip() { /** * node name - * + *

* API name: {@code node} */ @Nullable @@ -109,7 +109,7 @@ public String node() { /** * field name - * + *

* API name: {@code field} */ @Nullable @@ -119,7 +119,7 @@ public String field() { /** * field data usage - * + *

* API name: {@code size} */ @Nullable @@ -203,7 +203,7 @@ public static class Builder implements ObjectBuilder { /** * node id - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -213,7 +213,7 @@ public Builder id(@Nullable String value) { /** * host name - * + *

* API name: {@code host} */ public Builder host(@Nullable String value) { @@ -223,7 +223,7 @@ public Builder host(@Nullable String value) { /** * ip address - * + *

* API name: {@code ip} */ public Builder ip(@Nullable String value) { @@ -233,7 +233,7 @@ public Builder ip(@Nullable String value) { /** * node name - * + *

* API name: {@code node} */ public Builder node(@Nullable String value) { @@ -243,7 +243,7 @@ public Builder node(@Nullable String value) { /** * field name - * + *

* API name: {@code field} */ public Builder field(@Nullable String value) { @@ -253,7 +253,7 @@ public Builder field(@Nullable String value) { /** * field data usage - * + *

* API name: {@code size} */ public Builder size(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/health/HealthRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/health/HealthRecord.java index 4a6f09849..b8b72f188 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/health/HealthRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/health/HealthRecord.java @@ -102,7 +102,7 @@ protected HealthRecord(Builder builder) { /** * seconds since 1969-01-01 00:00:00 - * + *

* API name: {@code epoch} */ @Nullable @@ -112,7 +112,7 @@ public JsonValue epoch() { /** * time in HH:MM:SS - * + *

* API name: {@code timestamp} */ @Nullable @@ -122,7 +122,7 @@ public String timestamp() { /** * cluster name - * + *

* API name: {@code cluster} */ @Nullable @@ -132,7 +132,7 @@ public String cluster() { /** * health status - * + *

* API name: {@code status} */ @Nullable @@ -142,7 +142,7 @@ public String status() { /** * total number of nodes - * + *

* API name: {@code node.total} */ @Nullable @@ -152,7 +152,7 @@ public String node_total() { /** * number of nodes that can store data - * + *

* API name: {@code node.data} */ @Nullable @@ -162,7 +162,7 @@ public String node_data() { /** * total number of shards - * + *

* API name: {@code shards} */ @Nullable @@ -172,7 +172,7 @@ public String shards() { /** * number of primary shards - * + *

* API name: {@code pri} */ @Nullable @@ -182,7 +182,7 @@ public String pri() { /** * number of relocating nodes - * + *

* API name: {@code relo} */ @Nullable @@ -192,7 +192,7 @@ public String relo() { /** * number of initializing nodes - * + *

* API name: {@code init} */ @Nullable @@ -202,7 +202,7 @@ public String init() { /** * number of unassigned shards - * + *

* API name: {@code unassign} */ @Nullable @@ -212,7 +212,7 @@ public String unassign() { /** * number of pending tasks - * + *

* API name: {@code pending_tasks} */ @Nullable @@ -222,7 +222,7 @@ public String pendingTasks() { /** * wait time of longest task pending - * + *

* API name: {@code max_task_wait_time} */ @Nullable @@ -232,7 +232,7 @@ public String maxTaskWaitTime() { /** * active number of shards in percent - * + *

* API name: {@code active_shards_percent} */ @Nullable @@ -388,7 +388,7 @@ public static class Builder implements ObjectBuilder { /** * seconds since 1969-01-01 00:00:00 - * + *

* API name: {@code epoch} */ public Builder epoch(@Nullable JsonValue value) { @@ -398,7 +398,7 @@ public Builder epoch(@Nullable JsonValue value) { /** * time in HH:MM:SS - * + *

* API name: {@code timestamp} */ public Builder timestamp(@Nullable String value) { @@ -408,7 +408,7 @@ public Builder timestamp(@Nullable String value) { /** * cluster name - * + *

* API name: {@code cluster} */ public Builder cluster(@Nullable String value) { @@ -418,7 +418,7 @@ public Builder cluster(@Nullable String value) { /** * health status - * + *

* API name: {@code status} */ public Builder status(@Nullable String value) { @@ -428,7 +428,7 @@ public Builder status(@Nullable String value) { /** * total number of nodes - * + *

* API name: {@code node.total} */ public Builder node_total(@Nullable String value) { @@ -438,7 +438,7 @@ public Builder node_total(@Nullable String value) { /** * number of nodes that can store data - * + *

* API name: {@code node.data} */ public Builder node_data(@Nullable String value) { @@ -448,7 +448,7 @@ public Builder node_data(@Nullable String value) { /** * total number of shards - * + *

* API name: {@code shards} */ public Builder shards(@Nullable String value) { @@ -458,7 +458,7 @@ public Builder shards(@Nullable String value) { /** * number of primary shards - * + *

* API name: {@code pri} */ public Builder pri(@Nullable String value) { @@ -468,7 +468,7 @@ public Builder pri(@Nullable String value) { /** * number of relocating nodes - * + *

* API name: {@code relo} */ public Builder relo(@Nullable String value) { @@ -478,7 +478,7 @@ public Builder relo(@Nullable String value) { /** * number of initializing nodes - * + *

* API name: {@code init} */ public Builder init(@Nullable String value) { @@ -488,7 +488,7 @@ public Builder init(@Nullable String value) { /** * number of unassigned shards - * + *

* API name: {@code unassign} */ public Builder unassign(@Nullable String value) { @@ -498,7 +498,7 @@ public Builder unassign(@Nullable String value) { /** * number of pending tasks - * + *

* API name: {@code pending_tasks} */ public Builder pendingTasks(@Nullable String value) { @@ -508,7 +508,7 @@ public Builder pendingTasks(@Nullable String value) { /** * wait time of longest task pending - * + *

* API name: {@code max_task_wait_time} */ public Builder maxTaskWaitTime(@Nullable String value) { @@ -518,7 +518,7 @@ public Builder maxTaskWaitTime(@Nullable String value) { /** * active number of shards in percent - * + *

* API name: {@code active_shards_percent} */ public Builder activeShardsPercent(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java index 2580e81be..2476d1db5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/indices/IndicesRecord.java @@ -609,7 +609,7 @@ protected IndicesRecord(Builder builder) { /** * current health status - * + *

* API name: {@code health} */ @Nullable @@ -619,7 +619,7 @@ public String health() { /** * open/close status - * + *

* API name: {@code status} */ @Nullable @@ -629,7 +629,7 @@ public String status() { /** * index name - * + *

* API name: {@code index} */ @Nullable @@ -639,7 +639,7 @@ public String index() { /** * index uuid - * + *

* API name: {@code uuid} */ @Nullable @@ -649,7 +649,7 @@ public String uuid() { /** * number of primary shards - * + *

* API name: {@code pri} */ @Nullable @@ -659,7 +659,7 @@ public String pri() { /** * number of replica shards - * + *

* API name: {@code rep} */ @Nullable @@ -669,7 +669,7 @@ public String rep() { /** * available docs - * + *

* API name: {@code docs.count} */ @Nullable @@ -679,7 +679,7 @@ public String docs_count() { /** * deleted docs - * + *

* API name: {@code docs.deleted} */ @Nullable @@ -689,7 +689,7 @@ public String docs_deleted() { /** * index creation date (millisecond value) - * + *

* API name: {@code creation.date} */ @Nullable @@ -699,7 +699,7 @@ public String creation_date() { /** * index creation date (as string) - * + *

* API name: {@code creation.date.string} */ @Nullable @@ -709,7 +709,7 @@ public String creation_date_string() { /** * store size of primaries & replicas - * + *

* API name: {@code store.size} */ @Nullable @@ -719,7 +719,7 @@ public String store_size() { /** * store size of primaries - * + *

* API name: {@code pri.store.size} */ @Nullable @@ -729,7 +729,7 @@ public String pri_store_size() { /** * size of completion - * + *

* API name: {@code completion.size} */ @Nullable @@ -739,7 +739,7 @@ public String completion_size() { /** * size of completion - * + *

* API name: {@code pri.completion.size} */ @Nullable @@ -749,7 +749,7 @@ public String pri_completion_size() { /** * used fielddata cache - * + *

* API name: {@code fielddata.memory_size} */ @Nullable @@ -759,7 +759,7 @@ public String fielddata_memorySize() { /** * used fielddata cache - * + *

* API name: {@code pri.fielddata.memory_size} */ @Nullable @@ -769,7 +769,7 @@ public String pri_fielddata_memorySize() { /** * fielddata evictions - * + *

* API name: {@code fielddata.evictions} */ @Nullable @@ -779,7 +779,7 @@ public String fielddata_evictions() { /** * fielddata evictions - * + *

* API name: {@code pri.fielddata.evictions} */ @Nullable @@ -789,7 +789,7 @@ public String pri_fielddata_evictions() { /** * used query cache - * + *

* API name: {@code query_cache.memory_size} */ @Nullable @@ -799,7 +799,7 @@ public String queryCache_memorySize() { /** * used query cache - * + *

* API name: {@code pri.query_cache.memory_size} */ @Nullable @@ -809,7 +809,7 @@ public String pri_queryCache_memorySize() { /** * query cache evictions - * + *

* API name: {@code query_cache.evictions} */ @Nullable @@ -819,7 +819,7 @@ public String queryCache_evictions() { /** * query cache evictions - * + *

* API name: {@code pri.query_cache.evictions} */ @Nullable @@ -829,7 +829,7 @@ public String pri_queryCache_evictions() { /** * used request cache - * + *

* API name: {@code request_cache.memory_size} */ @Nullable @@ -839,7 +839,7 @@ public String requestCache_memorySize() { /** * used request cache - * + *

* API name: {@code pri.request_cache.memory_size} */ @Nullable @@ -849,7 +849,7 @@ public String pri_requestCache_memorySize() { /** * request cache evictions - * + *

* API name: {@code request_cache.evictions} */ @Nullable @@ -859,7 +859,7 @@ public String requestCache_evictions() { /** * request cache evictions - * + *

* API name: {@code pri.request_cache.evictions} */ @Nullable @@ -869,7 +869,7 @@ public String pri_requestCache_evictions() { /** * request cache hit count - * + *

* API name: {@code request_cache.hit_count} */ @Nullable @@ -879,7 +879,7 @@ public String requestCache_hitCount() { /** * request cache hit count - * + *

* API name: {@code pri.request_cache.hit_count} */ @Nullable @@ -889,7 +889,7 @@ public String pri_requestCache_hitCount() { /** * request cache miss count - * + *

* API name: {@code request_cache.miss_count} */ @Nullable @@ -899,7 +899,7 @@ public String requestCache_missCount() { /** * request cache miss count - * + *

* API name: {@code pri.request_cache.miss_count} */ @Nullable @@ -909,7 +909,7 @@ public String pri_requestCache_missCount() { /** * number of flushes - * + *

* API name: {@code flush.total} */ @Nullable @@ -919,7 +919,7 @@ public String flush_total() { /** * number of flushes - * + *

* API name: {@code pri.flush.total} */ @Nullable @@ -929,7 +929,7 @@ public String pri_flush_total() { /** * time spent in flush - * + *

* API name: {@code flush.total_time} */ @Nullable @@ -939,7 +939,7 @@ public String flush_totalTime() { /** * time spent in flush - * + *

* API name: {@code pri.flush.total_time} */ @Nullable @@ -949,7 +949,7 @@ public String pri_flush_totalTime() { /** * number of current get ops - * + *

* API name: {@code get.current} */ @Nullable @@ -959,7 +959,7 @@ public String get_current() { /** * number of current get ops - * + *

* API name: {@code pri.get.current} */ @Nullable @@ -969,7 +969,7 @@ public String pri_get_current() { /** * time spent in get - * + *

* API name: {@code get.time} */ @Nullable @@ -979,7 +979,7 @@ public String get_time() { /** * time spent in get - * + *

* API name: {@code pri.get.time} */ @Nullable @@ -989,7 +989,7 @@ public String pri_get_time() { /** * number of get ops - * + *

* API name: {@code get.total} */ @Nullable @@ -999,7 +999,7 @@ public String get_total() { /** * number of get ops - * + *

* API name: {@code pri.get.total} */ @Nullable @@ -1009,7 +1009,7 @@ public String pri_get_total() { /** * time spent in successful gets - * + *

* API name: {@code get.exists_time} */ @Nullable @@ -1019,7 +1019,7 @@ public String get_existsTime() { /** * time spent in successful gets - * + *

* API name: {@code pri.get.exists_time} */ @Nullable @@ -1029,7 +1029,7 @@ public String pri_get_existsTime() { /** * number of successful gets - * + *

* API name: {@code get.exists_total} */ @Nullable @@ -1039,7 +1039,7 @@ public String get_existsTotal() { /** * number of successful gets - * + *

* API name: {@code pri.get.exists_total} */ @Nullable @@ -1049,7 +1049,7 @@ public String pri_get_existsTotal() { /** * time spent in failed gets - * + *

* API name: {@code get.missing_time} */ @Nullable @@ -1059,7 +1059,7 @@ public String get_missingTime() { /** * time spent in failed gets - * + *

* API name: {@code pri.get.missing_time} */ @Nullable @@ -1069,7 +1069,7 @@ public String pri_get_missingTime() { /** * number of failed gets - * + *

* API name: {@code get.missing_total} */ @Nullable @@ -1079,7 +1079,7 @@ public String get_missingTotal() { /** * number of failed gets - * + *

* API name: {@code pri.get.missing_total} */ @Nullable @@ -1089,7 +1089,7 @@ public String pri_get_missingTotal() { /** * number of current deletions - * + *

* API name: {@code indexing.delete_current} */ @Nullable @@ -1099,7 +1099,7 @@ public String indexing_deleteCurrent() { /** * number of current deletions - * + *

* API name: {@code pri.indexing.delete_current} */ @Nullable @@ -1109,7 +1109,7 @@ public String pri_indexing_deleteCurrent() { /** * time spent in deletions - * + *

* API name: {@code indexing.delete_time} */ @Nullable @@ -1119,7 +1119,7 @@ public String indexing_deleteTime() { /** * time spent in deletions - * + *

* API name: {@code pri.indexing.delete_time} */ @Nullable @@ -1129,7 +1129,7 @@ public String pri_indexing_deleteTime() { /** * number of delete ops - * + *

* API name: {@code indexing.delete_total} */ @Nullable @@ -1139,7 +1139,7 @@ public String indexing_deleteTotal() { /** * number of delete ops - * + *

* API name: {@code pri.indexing.delete_total} */ @Nullable @@ -1149,7 +1149,7 @@ public String pri_indexing_deleteTotal() { /** * number of current indexing ops - * + *

* API name: {@code indexing.index_current} */ @Nullable @@ -1159,7 +1159,7 @@ public String indexing_indexCurrent() { /** * number of current indexing ops - * + *

* API name: {@code pri.indexing.index_current} */ @Nullable @@ -1169,7 +1169,7 @@ public String pri_indexing_indexCurrent() { /** * time spent in indexing - * + *

* API name: {@code indexing.index_time} */ @Nullable @@ -1179,7 +1179,7 @@ public String indexing_indexTime() { /** * time spent in indexing - * + *

* API name: {@code pri.indexing.index_time} */ @Nullable @@ -1189,7 +1189,7 @@ public String pri_indexing_indexTime() { /** * number of indexing ops - * + *

* API name: {@code indexing.index_total} */ @Nullable @@ -1199,7 +1199,7 @@ public String indexing_indexTotal() { /** * number of indexing ops - * + *

* API name: {@code pri.indexing.index_total} */ @Nullable @@ -1209,7 +1209,7 @@ public String pri_indexing_indexTotal() { /** * number of failed indexing ops - * + *

* API name: {@code indexing.index_failed} */ @Nullable @@ -1219,7 +1219,7 @@ public String indexing_indexFailed() { /** * number of failed indexing ops - * + *

* API name: {@code pri.indexing.index_failed} */ @Nullable @@ -1229,7 +1229,7 @@ public String pri_indexing_indexFailed() { /** * number of current merges - * + *

* API name: {@code merges.current} */ @Nullable @@ -1239,7 +1239,7 @@ public String merges_current() { /** * number of current merges - * + *

* API name: {@code pri.merges.current} */ @Nullable @@ -1249,7 +1249,7 @@ public String pri_merges_current() { /** * number of current merging docs - * + *

* API name: {@code merges.current_docs} */ @Nullable @@ -1259,7 +1259,7 @@ public String merges_currentDocs() { /** * number of current merging docs - * + *

* API name: {@code pri.merges.current_docs} */ @Nullable @@ -1269,7 +1269,7 @@ public String pri_merges_currentDocs() { /** * size of current merges - * + *

* API name: {@code merges.current_size} */ @Nullable @@ -1279,7 +1279,7 @@ public String merges_currentSize() { /** * size of current merges - * + *

* API name: {@code pri.merges.current_size} */ @Nullable @@ -1289,7 +1289,7 @@ public String pri_merges_currentSize() { /** * number of completed merge ops - * + *

* API name: {@code merges.total} */ @Nullable @@ -1299,7 +1299,7 @@ public String merges_total() { /** * number of completed merge ops - * + *

* API name: {@code pri.merges.total} */ @Nullable @@ -1309,7 +1309,7 @@ public String pri_merges_total() { /** * docs merged - * + *

* API name: {@code merges.total_docs} */ @Nullable @@ -1319,7 +1319,7 @@ public String merges_totalDocs() { /** * docs merged - * + *

* API name: {@code pri.merges.total_docs} */ @Nullable @@ -1329,7 +1329,7 @@ public String pri_merges_totalDocs() { /** * size merged - * + *

* API name: {@code merges.total_size} */ @Nullable @@ -1339,7 +1339,7 @@ public String merges_totalSize() { /** * size merged - * + *

* API name: {@code pri.merges.total_size} */ @Nullable @@ -1349,7 +1349,7 @@ public String pri_merges_totalSize() { /** * time spent in merges - * + *

* API name: {@code merges.total_time} */ @Nullable @@ -1359,7 +1359,7 @@ public String merges_totalTime() { /** * time spent in merges - * + *

* API name: {@code pri.merges.total_time} */ @Nullable @@ -1369,7 +1369,7 @@ public String pri_merges_totalTime() { /** * total refreshes - * + *

* API name: {@code refresh.total} */ @Nullable @@ -1379,7 +1379,7 @@ public String refresh_total() { /** * total refreshes - * + *

* API name: {@code pri.refresh.total} */ @Nullable @@ -1389,7 +1389,7 @@ public String pri_refresh_total() { /** * time spent in refreshes - * + *

* API name: {@code refresh.time} */ @Nullable @@ -1399,7 +1399,7 @@ public String refresh_time() { /** * time spent in refreshes - * + *

* API name: {@code pri.refresh.time} */ @Nullable @@ -1409,7 +1409,7 @@ public String pri_refresh_time() { /** * total external refreshes - * + *

* API name: {@code refresh.external_total} */ @Nullable @@ -1419,7 +1419,7 @@ public String refresh_externalTotal() { /** * total external refreshes - * + *

* API name: {@code pri.refresh.external_total} */ @Nullable @@ -1429,7 +1429,7 @@ public String pri_refresh_externalTotal() { /** * time spent in external refreshes - * + *

* API name: {@code refresh.external_time} */ @Nullable @@ -1439,7 +1439,7 @@ public String refresh_externalTime() { /** * time spent in external refreshes - * + *

* API name: {@code pri.refresh.external_time} */ @Nullable @@ -1449,7 +1449,7 @@ public String pri_refresh_externalTime() { /** * number of pending refresh listeners - * + *

* API name: {@code refresh.listeners} */ @Nullable @@ -1459,7 +1459,7 @@ public String refresh_listeners() { /** * number of pending refresh listeners - * + *

* API name: {@code pri.refresh.listeners} */ @Nullable @@ -1469,7 +1469,7 @@ public String pri_refresh_listeners() { /** * current fetch phase ops - * + *

* API name: {@code search.fetch_current} */ @Nullable @@ -1479,7 +1479,7 @@ public String search_fetchCurrent() { /** * current fetch phase ops - * + *

* API name: {@code pri.search.fetch_current} */ @Nullable @@ -1489,7 +1489,7 @@ public String pri_search_fetchCurrent() { /** * time spent in fetch phase - * + *

* API name: {@code search.fetch_time} */ @Nullable @@ -1499,7 +1499,7 @@ public String search_fetchTime() { /** * time spent in fetch phase - * + *

* API name: {@code pri.search.fetch_time} */ @Nullable @@ -1509,7 +1509,7 @@ public String pri_search_fetchTime() { /** * total fetch ops - * + *

* API name: {@code search.fetch_total} */ @Nullable @@ -1519,7 +1519,7 @@ public String search_fetchTotal() { /** * total fetch ops - * + *

* API name: {@code pri.search.fetch_total} */ @Nullable @@ -1529,7 +1529,7 @@ public String pri_search_fetchTotal() { /** * open search contexts - * + *

* API name: {@code search.open_contexts} */ @Nullable @@ -1539,7 +1539,7 @@ public String search_openContexts() { /** * open search contexts - * + *

* API name: {@code pri.search.open_contexts} */ @Nullable @@ -1549,7 +1549,7 @@ public String pri_search_openContexts() { /** * current query phase ops - * + *

* API name: {@code search.query_current} */ @Nullable @@ -1559,7 +1559,7 @@ public String search_queryCurrent() { /** * current query phase ops - * + *

* API name: {@code pri.search.query_current} */ @Nullable @@ -1569,7 +1569,7 @@ public String pri_search_queryCurrent() { /** * time spent in query phase - * + *

* API name: {@code search.query_time} */ @Nullable @@ -1579,7 +1579,7 @@ public String search_queryTime() { /** * time spent in query phase - * + *

* API name: {@code pri.search.query_time} */ @Nullable @@ -1589,7 +1589,7 @@ public String pri_search_queryTime() { /** * total query phase ops - * + *

* API name: {@code search.query_total} */ @Nullable @@ -1599,7 +1599,7 @@ public String search_queryTotal() { /** * total query phase ops - * + *

* API name: {@code pri.search.query_total} */ @Nullable @@ -1609,7 +1609,7 @@ public String pri_search_queryTotal() { /** * open scroll contexts - * + *

* API name: {@code search.scroll_current} */ @Nullable @@ -1619,7 +1619,7 @@ public String search_scrollCurrent() { /** * open scroll contexts - * + *

* API name: {@code pri.search.scroll_current} */ @Nullable @@ -1629,7 +1629,7 @@ public String pri_search_scrollCurrent() { /** * time scroll contexts held open - * + *

* API name: {@code search.scroll_time} */ @Nullable @@ -1639,7 +1639,7 @@ public String search_scrollTime() { /** * time scroll contexts held open - * + *

* API name: {@code pri.search.scroll_time} */ @Nullable @@ -1649,7 +1649,7 @@ public String pri_search_scrollTime() { /** * completed scroll contexts - * + *

* API name: {@code search.scroll_total} */ @Nullable @@ -1659,7 +1659,7 @@ public String search_scrollTotal() { /** * completed scroll contexts - * + *

* API name: {@code pri.search.scroll_total} */ @Nullable @@ -1669,7 +1669,7 @@ public String pri_search_scrollTotal() { /** * number of segments - * + *

* API name: {@code segments.count} */ @Nullable @@ -1679,7 +1679,7 @@ public String segments_count() { /** * number of segments - * + *

* API name: {@code pri.segments.count} */ @Nullable @@ -1689,7 +1689,7 @@ public String pri_segments_count() { /** * memory used by segments - * + *

* API name: {@code segments.memory} */ @Nullable @@ -1699,7 +1699,7 @@ public String segments_memory() { /** * memory used by segments - * + *

* API name: {@code pri.segments.memory} */ @Nullable @@ -1709,7 +1709,7 @@ public String pri_segments_memory() { /** * memory used by index writer - * + *

* API name: {@code segments.index_writer_memory} */ @Nullable @@ -1719,7 +1719,7 @@ public String segments_indexWriterMemory() { /** * memory used by index writer - * + *

* API name: {@code pri.segments.index_writer_memory} */ @Nullable @@ -1729,7 +1729,7 @@ public String pri_segments_indexWriterMemory() { /** * memory used by version map - * + *

* API name: {@code segments.version_map_memory} */ @Nullable @@ -1739,7 +1739,7 @@ public String segments_versionMapMemory() { /** * memory used by version map - * + *

* API name: {@code pri.segments.version_map_memory} */ @Nullable @@ -1750,7 +1750,7 @@ public String pri_segments_versionMapMemory() { /** * memory used by fixed bit sets for nested object field types and export type * filters for types referred in _parent fields - * + *

* API name: {@code segments.fixed_bitset_memory} */ @Nullable @@ -1761,7 +1761,7 @@ public String segments_fixedBitsetMemory() { /** * memory used by fixed bit sets for nested object field types and export type * filters for types referred in _parent fields - * + *

* API name: {@code pri.segments.fixed_bitset_memory} */ @Nullable @@ -1771,7 +1771,7 @@ public String pri_segments_fixedBitsetMemory() { /** * current warmer ops - * + *

* API name: {@code warmer.current} */ @Nullable @@ -1781,7 +1781,7 @@ public String warmer_current() { /** * current warmer ops - * + *

* API name: {@code pri.warmer.current} */ @Nullable @@ -1791,7 +1791,7 @@ public String pri_warmer_current() { /** * total warmer ops - * + *

* API name: {@code warmer.total} */ @Nullable @@ -1801,7 +1801,7 @@ public String warmer_total() { /** * total warmer ops - * + *

* API name: {@code pri.warmer.total} */ @Nullable @@ -1811,7 +1811,7 @@ public String pri_warmer_total() { /** * time spent in warmers - * + *

* API name: {@code warmer.total_time} */ @Nullable @@ -1821,7 +1821,7 @@ public String warmer_totalTime() { /** * time spent in warmers - * + *

* API name: {@code pri.warmer.total_time} */ @Nullable @@ -1831,7 +1831,7 @@ public String pri_warmer_totalTime() { /** * number of current suggest ops - * + *

* API name: {@code suggest.current} */ @Nullable @@ -1841,7 +1841,7 @@ public String suggest_current() { /** * number of current suggest ops - * + *

* API name: {@code pri.suggest.current} */ @Nullable @@ -1851,7 +1851,7 @@ public String pri_suggest_current() { /** * time spend in suggest - * + *

* API name: {@code suggest.time} */ @Nullable @@ -1861,7 +1861,7 @@ public String suggest_time() { /** * time spend in suggest - * + *

* API name: {@code pri.suggest.time} */ @Nullable @@ -1871,7 +1871,7 @@ public String pri_suggest_time() { /** * number of suggest ops - * + *

* API name: {@code suggest.total} */ @Nullable @@ -1881,7 +1881,7 @@ public String suggest_total() { /** * number of suggest ops - * + *

* API name: {@code pri.suggest.total} */ @Nullable @@ -1891,7 +1891,7 @@ public String pri_suggest_total() { /** * total used memory - * + *

* API name: {@code memory.total} */ @Nullable @@ -1901,7 +1901,7 @@ public String memory_total() { /** * total user memory - * + *

* API name: {@code pri.memory.total} */ @Nullable @@ -1911,7 +1911,7 @@ public String pri_memory_total() { /** * indicates if the index is search throttled - * + *

* API name: {@code search.throttled} */ @Nullable @@ -1921,7 +1921,7 @@ public String search_throttled() { /** * number of bulk shard ops - * + *

* API name: {@code bulk.total_operations} */ @Nullable @@ -1931,7 +1931,7 @@ public String bulk_totalOperations() { /** * number of bulk shard ops - * + *

* API name: {@code pri.bulk.total_operations} */ @Nullable @@ -1941,7 +1941,7 @@ public String pri_bulk_totalOperations() { /** * time spend in shard bulk - * + *

* API name: {@code bulk.total_time} */ @Nullable @@ -1951,7 +1951,7 @@ public String bulk_totalTime() { /** * time spend in shard bulk - * + *

* API name: {@code pri.bulk.total_time} */ @Nullable @@ -1961,7 +1961,7 @@ public String pri_bulk_totalTime() { /** * total size in bytes of shard bulk - * + *

* API name: {@code bulk.total_size_in_bytes} */ @Nullable @@ -1971,7 +1971,7 @@ public String bulk_totalSizeInBytes() { /** * total size in bytes of shard bulk - * + *

* API name: {@code pri.bulk.total_size_in_bytes} */ @Nullable @@ -1981,7 +1981,7 @@ public String pri_bulk_totalSizeInBytes() { /** * average time spend in shard bulk - * + *

* API name: {@code bulk.avg_time} */ @Nullable @@ -1991,7 +1991,7 @@ public String bulk_avgTime() { /** * average time spend in shard bulk - * + *

* API name: {@code pri.bulk.avg_time} */ @Nullable @@ -2001,7 +2001,7 @@ public String pri_bulk_avgTime() { /** * average size in bytes of shard bulk - * + *

* API name: {@code bulk.avg_size_in_bytes} */ @Nullable @@ -2011,7 +2011,7 @@ public String bulk_avgSizeInBytes() { /** * average size in bytes of shard bulk - * + *

* API name: {@code pri.bulk.avg_size_in_bytes} */ @Nullable @@ -3310,7 +3310,7 @@ public static class Builder implements ObjectBuilder { /** * current health status - * + *

* API name: {@code health} */ public Builder health(@Nullable String value) { @@ -3320,7 +3320,7 @@ public Builder health(@Nullable String value) { /** * open/close status - * + *

* API name: {@code status} */ public Builder status(@Nullable String value) { @@ -3330,7 +3330,7 @@ public Builder status(@Nullable String value) { /** * index name - * + *

* API name: {@code index} */ public Builder index(@Nullable String value) { @@ -3340,7 +3340,7 @@ public Builder index(@Nullable String value) { /** * index uuid - * + *

* API name: {@code uuid} */ public Builder uuid(@Nullable String value) { @@ -3350,7 +3350,7 @@ public Builder uuid(@Nullable String value) { /** * number of primary shards - * + *

* API name: {@code pri} */ public Builder pri(@Nullable String value) { @@ -3360,7 +3360,7 @@ public Builder pri(@Nullable String value) { /** * number of replica shards - * + *

* API name: {@code rep} */ public Builder rep(@Nullable String value) { @@ -3370,7 +3370,7 @@ public Builder rep(@Nullable String value) { /** * available docs - * + *

* API name: {@code docs.count} */ public Builder docs_count(@Nullable String value) { @@ -3380,7 +3380,7 @@ public Builder docs_count(@Nullable String value) { /** * deleted docs - * + *

* API name: {@code docs.deleted} */ public Builder docs_deleted(@Nullable String value) { @@ -3390,7 +3390,7 @@ public Builder docs_deleted(@Nullable String value) { /** * index creation date (millisecond value) - * + *

* API name: {@code creation.date} */ public Builder creation_date(@Nullable String value) { @@ -3400,7 +3400,7 @@ public Builder creation_date(@Nullable String value) { /** * index creation date (as string) - * + *

* API name: {@code creation.date.string} */ public Builder creation_date_string(@Nullable String value) { @@ -3410,7 +3410,7 @@ public Builder creation_date_string(@Nullable String value) { /** * store size of primaries & replicas - * + *

* API name: {@code store.size} */ public Builder store_size(@Nullable String value) { @@ -3420,7 +3420,7 @@ public Builder store_size(@Nullable String value) { /** * store size of primaries - * + *

* API name: {@code pri.store.size} */ public Builder pri_store_size(@Nullable String value) { @@ -3430,7 +3430,7 @@ public Builder pri_store_size(@Nullable String value) { /** * size of completion - * + *

* API name: {@code completion.size} */ public Builder completion_size(@Nullable String value) { @@ -3440,7 +3440,7 @@ public Builder completion_size(@Nullable String value) { /** * size of completion - * + *

* API name: {@code pri.completion.size} */ public Builder pri_completion_size(@Nullable String value) { @@ -3450,7 +3450,7 @@ public Builder pri_completion_size(@Nullable String value) { /** * used fielddata cache - * + *

* API name: {@code fielddata.memory_size} */ public Builder fielddata_memorySize(@Nullable String value) { @@ -3460,7 +3460,7 @@ public Builder fielddata_memorySize(@Nullable String value) { /** * used fielddata cache - * + *

* API name: {@code pri.fielddata.memory_size} */ public Builder pri_fielddata_memorySize(@Nullable String value) { @@ -3470,7 +3470,7 @@ public Builder pri_fielddata_memorySize(@Nullable String value) { /** * fielddata evictions - * + *

* API name: {@code fielddata.evictions} */ public Builder fielddata_evictions(@Nullable String value) { @@ -3480,7 +3480,7 @@ public Builder fielddata_evictions(@Nullable String value) { /** * fielddata evictions - * + *

* API name: {@code pri.fielddata.evictions} */ public Builder pri_fielddata_evictions(@Nullable String value) { @@ -3490,7 +3490,7 @@ public Builder pri_fielddata_evictions(@Nullable String value) { /** * used query cache - * + *

* API name: {@code query_cache.memory_size} */ public Builder queryCache_memorySize(@Nullable String value) { @@ -3500,7 +3500,7 @@ public Builder queryCache_memorySize(@Nullable String value) { /** * used query cache - * + *

* API name: {@code pri.query_cache.memory_size} */ public Builder pri_queryCache_memorySize(@Nullable String value) { @@ -3510,7 +3510,7 @@ public Builder pri_queryCache_memorySize(@Nullable String value) { /** * query cache evictions - * + *

* API name: {@code query_cache.evictions} */ public Builder queryCache_evictions(@Nullable String value) { @@ -3520,7 +3520,7 @@ public Builder queryCache_evictions(@Nullable String value) { /** * query cache evictions - * + *

* API name: {@code pri.query_cache.evictions} */ public Builder pri_queryCache_evictions(@Nullable String value) { @@ -3530,7 +3530,7 @@ public Builder pri_queryCache_evictions(@Nullable String value) { /** * used request cache - * + *

* API name: {@code request_cache.memory_size} */ public Builder requestCache_memorySize(@Nullable String value) { @@ -3540,7 +3540,7 @@ public Builder requestCache_memorySize(@Nullable String value) { /** * used request cache - * + *

* API name: {@code pri.request_cache.memory_size} */ public Builder pri_requestCache_memorySize(@Nullable String value) { @@ -3550,7 +3550,7 @@ public Builder pri_requestCache_memorySize(@Nullable String value) { /** * request cache evictions - * + *

* API name: {@code request_cache.evictions} */ public Builder requestCache_evictions(@Nullable String value) { @@ -3560,7 +3560,7 @@ public Builder requestCache_evictions(@Nullable String value) { /** * request cache evictions - * + *

* API name: {@code pri.request_cache.evictions} */ public Builder pri_requestCache_evictions(@Nullable String value) { @@ -3570,7 +3570,7 @@ public Builder pri_requestCache_evictions(@Nullable String value) { /** * request cache hit count - * + *

* API name: {@code request_cache.hit_count} */ public Builder requestCache_hitCount(@Nullable String value) { @@ -3580,7 +3580,7 @@ public Builder requestCache_hitCount(@Nullable String value) { /** * request cache hit count - * + *

* API name: {@code pri.request_cache.hit_count} */ public Builder pri_requestCache_hitCount(@Nullable String value) { @@ -3590,7 +3590,7 @@ public Builder pri_requestCache_hitCount(@Nullable String value) { /** * request cache miss count - * + *

* API name: {@code request_cache.miss_count} */ public Builder requestCache_missCount(@Nullable String value) { @@ -3600,7 +3600,7 @@ public Builder requestCache_missCount(@Nullable String value) { /** * request cache miss count - * + *

* API name: {@code pri.request_cache.miss_count} */ public Builder pri_requestCache_missCount(@Nullable String value) { @@ -3610,7 +3610,7 @@ public Builder pri_requestCache_missCount(@Nullable String value) { /** * number of flushes - * + *

* API name: {@code flush.total} */ public Builder flush_total(@Nullable String value) { @@ -3620,7 +3620,7 @@ public Builder flush_total(@Nullable String value) { /** * number of flushes - * + *

* API name: {@code pri.flush.total} */ public Builder pri_flush_total(@Nullable String value) { @@ -3630,7 +3630,7 @@ public Builder pri_flush_total(@Nullable String value) { /** * time spent in flush - * + *

* API name: {@code flush.total_time} */ public Builder flush_totalTime(@Nullable String value) { @@ -3640,7 +3640,7 @@ public Builder flush_totalTime(@Nullable String value) { /** * time spent in flush - * + *

* API name: {@code pri.flush.total_time} */ public Builder pri_flush_totalTime(@Nullable String value) { @@ -3650,7 +3650,7 @@ public Builder pri_flush_totalTime(@Nullable String value) { /** * number of current get ops - * + *

* API name: {@code get.current} */ public Builder get_current(@Nullable String value) { @@ -3660,7 +3660,7 @@ public Builder get_current(@Nullable String value) { /** * number of current get ops - * + *

* API name: {@code pri.get.current} */ public Builder pri_get_current(@Nullable String value) { @@ -3670,7 +3670,7 @@ public Builder pri_get_current(@Nullable String value) { /** * time spent in get - * + *

* API name: {@code get.time} */ public Builder get_time(@Nullable String value) { @@ -3680,7 +3680,7 @@ public Builder get_time(@Nullable String value) { /** * time spent in get - * + *

* API name: {@code pri.get.time} */ public Builder pri_get_time(@Nullable String value) { @@ -3690,7 +3690,7 @@ public Builder pri_get_time(@Nullable String value) { /** * number of get ops - * + *

* API name: {@code get.total} */ public Builder get_total(@Nullable String value) { @@ -3700,7 +3700,7 @@ public Builder get_total(@Nullable String value) { /** * number of get ops - * + *

* API name: {@code pri.get.total} */ public Builder pri_get_total(@Nullable String value) { @@ -3710,7 +3710,7 @@ public Builder pri_get_total(@Nullable String value) { /** * time spent in successful gets - * + *

* API name: {@code get.exists_time} */ public Builder get_existsTime(@Nullable String value) { @@ -3720,7 +3720,7 @@ public Builder get_existsTime(@Nullable String value) { /** * time spent in successful gets - * + *

* API name: {@code pri.get.exists_time} */ public Builder pri_get_existsTime(@Nullable String value) { @@ -3730,7 +3730,7 @@ public Builder pri_get_existsTime(@Nullable String value) { /** * number of successful gets - * + *

* API name: {@code get.exists_total} */ public Builder get_existsTotal(@Nullable String value) { @@ -3740,7 +3740,7 @@ public Builder get_existsTotal(@Nullable String value) { /** * number of successful gets - * + *

* API name: {@code pri.get.exists_total} */ public Builder pri_get_existsTotal(@Nullable String value) { @@ -3750,7 +3750,7 @@ public Builder pri_get_existsTotal(@Nullable String value) { /** * time spent in failed gets - * + *

* API name: {@code get.missing_time} */ public Builder get_missingTime(@Nullable String value) { @@ -3760,7 +3760,7 @@ public Builder get_missingTime(@Nullable String value) { /** * time spent in failed gets - * + *

* API name: {@code pri.get.missing_time} */ public Builder pri_get_missingTime(@Nullable String value) { @@ -3770,7 +3770,7 @@ public Builder pri_get_missingTime(@Nullable String value) { /** * number of failed gets - * + *

* API name: {@code get.missing_total} */ public Builder get_missingTotal(@Nullable String value) { @@ -3780,7 +3780,7 @@ public Builder get_missingTotal(@Nullable String value) { /** * number of failed gets - * + *

* API name: {@code pri.get.missing_total} */ public Builder pri_get_missingTotal(@Nullable String value) { @@ -3790,7 +3790,7 @@ public Builder pri_get_missingTotal(@Nullable String value) { /** * number of current deletions - * + *

* API name: {@code indexing.delete_current} */ public Builder indexing_deleteCurrent(@Nullable String value) { @@ -3800,7 +3800,7 @@ public Builder indexing_deleteCurrent(@Nullable String value) { /** * number of current deletions - * + *

* API name: {@code pri.indexing.delete_current} */ public Builder pri_indexing_deleteCurrent(@Nullable String value) { @@ -3810,7 +3810,7 @@ public Builder pri_indexing_deleteCurrent(@Nullable String value) { /** * time spent in deletions - * + *

* API name: {@code indexing.delete_time} */ public Builder indexing_deleteTime(@Nullable String value) { @@ -3820,7 +3820,7 @@ public Builder indexing_deleteTime(@Nullable String value) { /** * time spent in deletions - * + *

* API name: {@code pri.indexing.delete_time} */ public Builder pri_indexing_deleteTime(@Nullable String value) { @@ -3830,7 +3830,7 @@ public Builder pri_indexing_deleteTime(@Nullable String value) { /** * number of delete ops - * + *

* API name: {@code indexing.delete_total} */ public Builder indexing_deleteTotal(@Nullable String value) { @@ -3840,7 +3840,7 @@ public Builder indexing_deleteTotal(@Nullable String value) { /** * number of delete ops - * + *

* API name: {@code pri.indexing.delete_total} */ public Builder pri_indexing_deleteTotal(@Nullable String value) { @@ -3850,7 +3850,7 @@ public Builder pri_indexing_deleteTotal(@Nullable String value) { /** * number of current indexing ops - * + *

* API name: {@code indexing.index_current} */ public Builder indexing_indexCurrent(@Nullable String value) { @@ -3860,7 +3860,7 @@ public Builder indexing_indexCurrent(@Nullable String value) { /** * number of current indexing ops - * + *

* API name: {@code pri.indexing.index_current} */ public Builder pri_indexing_indexCurrent(@Nullable String value) { @@ -3870,7 +3870,7 @@ public Builder pri_indexing_indexCurrent(@Nullable String value) { /** * time spent in indexing - * + *

* API name: {@code indexing.index_time} */ public Builder indexing_indexTime(@Nullable String value) { @@ -3880,7 +3880,7 @@ public Builder indexing_indexTime(@Nullable String value) { /** * time spent in indexing - * + *

* API name: {@code pri.indexing.index_time} */ public Builder pri_indexing_indexTime(@Nullable String value) { @@ -3890,7 +3890,7 @@ public Builder pri_indexing_indexTime(@Nullable String value) { /** * number of indexing ops - * + *

* API name: {@code indexing.index_total} */ public Builder indexing_indexTotal(@Nullable String value) { @@ -3900,7 +3900,7 @@ public Builder indexing_indexTotal(@Nullable String value) { /** * number of indexing ops - * + *

* API name: {@code pri.indexing.index_total} */ public Builder pri_indexing_indexTotal(@Nullable String value) { @@ -3910,7 +3910,7 @@ public Builder pri_indexing_indexTotal(@Nullable String value) { /** * number of failed indexing ops - * + *

* API name: {@code indexing.index_failed} */ public Builder indexing_indexFailed(@Nullable String value) { @@ -3920,7 +3920,7 @@ public Builder indexing_indexFailed(@Nullable String value) { /** * number of failed indexing ops - * + *

* API name: {@code pri.indexing.index_failed} */ public Builder pri_indexing_indexFailed(@Nullable String value) { @@ -3930,7 +3930,7 @@ public Builder pri_indexing_indexFailed(@Nullable String value) { /** * number of current merges - * + *

* API name: {@code merges.current} */ public Builder merges_current(@Nullable String value) { @@ -3940,7 +3940,7 @@ public Builder merges_current(@Nullable String value) { /** * number of current merges - * + *

* API name: {@code pri.merges.current} */ public Builder pri_merges_current(@Nullable String value) { @@ -3950,7 +3950,7 @@ public Builder pri_merges_current(@Nullable String value) { /** * number of current merging docs - * + *

* API name: {@code merges.current_docs} */ public Builder merges_currentDocs(@Nullable String value) { @@ -3960,7 +3960,7 @@ public Builder merges_currentDocs(@Nullable String value) { /** * number of current merging docs - * + *

* API name: {@code pri.merges.current_docs} */ public Builder pri_merges_currentDocs(@Nullable String value) { @@ -3970,7 +3970,7 @@ public Builder pri_merges_currentDocs(@Nullable String value) { /** * size of current merges - * + *

* API name: {@code merges.current_size} */ public Builder merges_currentSize(@Nullable String value) { @@ -3980,7 +3980,7 @@ public Builder merges_currentSize(@Nullable String value) { /** * size of current merges - * + *

* API name: {@code pri.merges.current_size} */ public Builder pri_merges_currentSize(@Nullable String value) { @@ -3990,7 +3990,7 @@ public Builder pri_merges_currentSize(@Nullable String value) { /** * number of completed merge ops - * + *

* API name: {@code merges.total} */ public Builder merges_total(@Nullable String value) { @@ -4000,7 +4000,7 @@ public Builder merges_total(@Nullable String value) { /** * number of completed merge ops - * + *

* API name: {@code pri.merges.total} */ public Builder pri_merges_total(@Nullable String value) { @@ -4010,7 +4010,7 @@ public Builder pri_merges_total(@Nullable String value) { /** * docs merged - * + *

* API name: {@code merges.total_docs} */ public Builder merges_totalDocs(@Nullable String value) { @@ -4020,7 +4020,7 @@ public Builder merges_totalDocs(@Nullable String value) { /** * docs merged - * + *

* API name: {@code pri.merges.total_docs} */ public Builder pri_merges_totalDocs(@Nullable String value) { @@ -4030,7 +4030,7 @@ public Builder pri_merges_totalDocs(@Nullable String value) { /** * size merged - * + *

* API name: {@code merges.total_size} */ public Builder merges_totalSize(@Nullable String value) { @@ -4040,7 +4040,7 @@ public Builder merges_totalSize(@Nullable String value) { /** * size merged - * + *

* API name: {@code pri.merges.total_size} */ public Builder pri_merges_totalSize(@Nullable String value) { @@ -4050,7 +4050,7 @@ public Builder pri_merges_totalSize(@Nullable String value) { /** * time spent in merges - * + *

* API name: {@code merges.total_time} */ public Builder merges_totalTime(@Nullable String value) { @@ -4060,7 +4060,7 @@ public Builder merges_totalTime(@Nullable String value) { /** * time spent in merges - * + *

* API name: {@code pri.merges.total_time} */ public Builder pri_merges_totalTime(@Nullable String value) { @@ -4070,7 +4070,7 @@ public Builder pri_merges_totalTime(@Nullable String value) { /** * total refreshes - * + *

* API name: {@code refresh.total} */ public Builder refresh_total(@Nullable String value) { @@ -4080,7 +4080,7 @@ public Builder refresh_total(@Nullable String value) { /** * total refreshes - * + *

* API name: {@code pri.refresh.total} */ public Builder pri_refresh_total(@Nullable String value) { @@ -4090,7 +4090,7 @@ public Builder pri_refresh_total(@Nullable String value) { /** * time spent in refreshes - * + *

* API name: {@code refresh.time} */ public Builder refresh_time(@Nullable String value) { @@ -4100,7 +4100,7 @@ public Builder refresh_time(@Nullable String value) { /** * time spent in refreshes - * + *

* API name: {@code pri.refresh.time} */ public Builder pri_refresh_time(@Nullable String value) { @@ -4110,7 +4110,7 @@ public Builder pri_refresh_time(@Nullable String value) { /** * total external refreshes - * + *

* API name: {@code refresh.external_total} */ public Builder refresh_externalTotal(@Nullable String value) { @@ -4120,7 +4120,7 @@ public Builder refresh_externalTotal(@Nullable String value) { /** * total external refreshes - * + *

* API name: {@code pri.refresh.external_total} */ public Builder pri_refresh_externalTotal(@Nullable String value) { @@ -4130,7 +4130,7 @@ public Builder pri_refresh_externalTotal(@Nullable String value) { /** * time spent in external refreshes - * + *

* API name: {@code refresh.external_time} */ public Builder refresh_externalTime(@Nullable String value) { @@ -4140,7 +4140,7 @@ public Builder refresh_externalTime(@Nullable String value) { /** * time spent in external refreshes - * + *

* API name: {@code pri.refresh.external_time} */ public Builder pri_refresh_externalTime(@Nullable String value) { @@ -4150,7 +4150,7 @@ public Builder pri_refresh_externalTime(@Nullable String value) { /** * number of pending refresh listeners - * + *

* API name: {@code refresh.listeners} */ public Builder refresh_listeners(@Nullable String value) { @@ -4160,7 +4160,7 @@ public Builder refresh_listeners(@Nullable String value) { /** * number of pending refresh listeners - * + *

* API name: {@code pri.refresh.listeners} */ public Builder pri_refresh_listeners(@Nullable String value) { @@ -4170,7 +4170,7 @@ public Builder pri_refresh_listeners(@Nullable String value) { /** * current fetch phase ops - * + *

* API name: {@code search.fetch_current} */ public Builder search_fetchCurrent(@Nullable String value) { @@ -4180,7 +4180,7 @@ public Builder search_fetchCurrent(@Nullable String value) { /** * current fetch phase ops - * + *

* API name: {@code pri.search.fetch_current} */ public Builder pri_search_fetchCurrent(@Nullable String value) { @@ -4190,7 +4190,7 @@ public Builder pri_search_fetchCurrent(@Nullable String value) { /** * time spent in fetch phase - * + *

* API name: {@code search.fetch_time} */ public Builder search_fetchTime(@Nullable String value) { @@ -4200,7 +4200,7 @@ public Builder search_fetchTime(@Nullable String value) { /** * time spent in fetch phase - * + *

* API name: {@code pri.search.fetch_time} */ public Builder pri_search_fetchTime(@Nullable String value) { @@ -4210,7 +4210,7 @@ public Builder pri_search_fetchTime(@Nullable String value) { /** * total fetch ops - * + *

* API name: {@code search.fetch_total} */ public Builder search_fetchTotal(@Nullable String value) { @@ -4220,7 +4220,7 @@ public Builder search_fetchTotal(@Nullable String value) { /** * total fetch ops - * + *

* API name: {@code pri.search.fetch_total} */ public Builder pri_search_fetchTotal(@Nullable String value) { @@ -4230,7 +4230,7 @@ public Builder pri_search_fetchTotal(@Nullable String value) { /** * open search contexts - * + *

* API name: {@code search.open_contexts} */ public Builder search_openContexts(@Nullable String value) { @@ -4240,7 +4240,7 @@ public Builder search_openContexts(@Nullable String value) { /** * open search contexts - * + *

* API name: {@code pri.search.open_contexts} */ public Builder pri_search_openContexts(@Nullable String value) { @@ -4250,7 +4250,7 @@ public Builder pri_search_openContexts(@Nullable String value) { /** * current query phase ops - * + *

* API name: {@code search.query_current} */ public Builder search_queryCurrent(@Nullable String value) { @@ -4260,7 +4260,7 @@ public Builder search_queryCurrent(@Nullable String value) { /** * current query phase ops - * + *

* API name: {@code pri.search.query_current} */ public Builder pri_search_queryCurrent(@Nullable String value) { @@ -4270,7 +4270,7 @@ public Builder pri_search_queryCurrent(@Nullable String value) { /** * time spent in query phase - * + *

* API name: {@code search.query_time} */ public Builder search_queryTime(@Nullable String value) { @@ -4280,7 +4280,7 @@ public Builder search_queryTime(@Nullable String value) { /** * time spent in query phase - * + *

* API name: {@code pri.search.query_time} */ public Builder pri_search_queryTime(@Nullable String value) { @@ -4290,7 +4290,7 @@ public Builder pri_search_queryTime(@Nullable String value) { /** * total query phase ops - * + *

* API name: {@code search.query_total} */ public Builder search_queryTotal(@Nullable String value) { @@ -4300,7 +4300,7 @@ public Builder search_queryTotal(@Nullable String value) { /** * total query phase ops - * + *

* API name: {@code pri.search.query_total} */ public Builder pri_search_queryTotal(@Nullable String value) { @@ -4310,7 +4310,7 @@ public Builder pri_search_queryTotal(@Nullable String value) { /** * open scroll contexts - * + *

* API name: {@code search.scroll_current} */ public Builder search_scrollCurrent(@Nullable String value) { @@ -4320,7 +4320,7 @@ public Builder search_scrollCurrent(@Nullable String value) { /** * open scroll contexts - * + *

* API name: {@code pri.search.scroll_current} */ public Builder pri_search_scrollCurrent(@Nullable String value) { @@ -4330,7 +4330,7 @@ public Builder pri_search_scrollCurrent(@Nullable String value) { /** * time scroll contexts held open - * + *

* API name: {@code search.scroll_time} */ public Builder search_scrollTime(@Nullable String value) { @@ -4340,7 +4340,7 @@ public Builder search_scrollTime(@Nullable String value) { /** * time scroll contexts held open - * + *

* API name: {@code pri.search.scroll_time} */ public Builder pri_search_scrollTime(@Nullable String value) { @@ -4350,7 +4350,7 @@ public Builder pri_search_scrollTime(@Nullable String value) { /** * completed scroll contexts - * + *

* API name: {@code search.scroll_total} */ public Builder search_scrollTotal(@Nullable String value) { @@ -4360,7 +4360,7 @@ public Builder search_scrollTotal(@Nullable String value) { /** * completed scroll contexts - * + *

* API name: {@code pri.search.scroll_total} */ public Builder pri_search_scrollTotal(@Nullable String value) { @@ -4370,7 +4370,7 @@ public Builder pri_search_scrollTotal(@Nullable String value) { /** * number of segments - * + *

* API name: {@code segments.count} */ public Builder segments_count(@Nullable String value) { @@ -4380,7 +4380,7 @@ public Builder segments_count(@Nullable String value) { /** * number of segments - * + *

* API name: {@code pri.segments.count} */ public Builder pri_segments_count(@Nullable String value) { @@ -4390,7 +4390,7 @@ public Builder pri_segments_count(@Nullable String value) { /** * memory used by segments - * + *

* API name: {@code segments.memory} */ public Builder segments_memory(@Nullable String value) { @@ -4400,7 +4400,7 @@ public Builder segments_memory(@Nullable String value) { /** * memory used by segments - * + *

* API name: {@code pri.segments.memory} */ public Builder pri_segments_memory(@Nullable String value) { @@ -4410,7 +4410,7 @@ public Builder pri_segments_memory(@Nullable String value) { /** * memory used by index writer - * + *

* API name: {@code segments.index_writer_memory} */ public Builder segments_indexWriterMemory(@Nullable String value) { @@ -4420,7 +4420,7 @@ public Builder segments_indexWriterMemory(@Nullable String value) { /** * memory used by index writer - * + *

* API name: {@code pri.segments.index_writer_memory} */ public Builder pri_segments_indexWriterMemory(@Nullable String value) { @@ -4430,7 +4430,7 @@ public Builder pri_segments_indexWriterMemory(@Nullable String value) { /** * memory used by version map - * + *

* API name: {@code segments.version_map_memory} */ public Builder segments_versionMapMemory(@Nullable String value) { @@ -4440,7 +4440,7 @@ public Builder segments_versionMapMemory(@Nullable String value) { /** * memory used by version map - * + *

* API name: {@code pri.segments.version_map_memory} */ public Builder pri_segments_versionMapMemory(@Nullable String value) { @@ -4451,7 +4451,7 @@ public Builder pri_segments_versionMapMemory(@Nullable String value) { /** * memory used by fixed bit sets for nested object field types and export type * filters for types referred in _parent fields - * + *

* API name: {@code segments.fixed_bitset_memory} */ public Builder segments_fixedBitsetMemory(@Nullable String value) { @@ -4462,7 +4462,7 @@ public Builder segments_fixedBitsetMemory(@Nullable String value) { /** * memory used by fixed bit sets for nested object field types and export type * filters for types referred in _parent fields - * + *

* API name: {@code pri.segments.fixed_bitset_memory} */ public Builder pri_segments_fixedBitsetMemory(@Nullable String value) { @@ -4472,7 +4472,7 @@ public Builder pri_segments_fixedBitsetMemory(@Nullable String value) { /** * current warmer ops - * + *

* API name: {@code warmer.current} */ public Builder warmer_current(@Nullable String value) { @@ -4482,7 +4482,7 @@ public Builder warmer_current(@Nullable String value) { /** * current warmer ops - * + *

* API name: {@code pri.warmer.current} */ public Builder pri_warmer_current(@Nullable String value) { @@ -4492,7 +4492,7 @@ public Builder pri_warmer_current(@Nullable String value) { /** * total warmer ops - * + *

* API name: {@code warmer.total} */ public Builder warmer_total(@Nullable String value) { @@ -4502,7 +4502,7 @@ public Builder warmer_total(@Nullable String value) { /** * total warmer ops - * + *

* API name: {@code pri.warmer.total} */ public Builder pri_warmer_total(@Nullable String value) { @@ -4512,7 +4512,7 @@ public Builder pri_warmer_total(@Nullable String value) { /** * time spent in warmers - * + *

* API name: {@code warmer.total_time} */ public Builder warmer_totalTime(@Nullable String value) { @@ -4522,7 +4522,7 @@ public Builder warmer_totalTime(@Nullable String value) { /** * time spent in warmers - * + *

* API name: {@code pri.warmer.total_time} */ public Builder pri_warmer_totalTime(@Nullable String value) { @@ -4532,7 +4532,7 @@ public Builder pri_warmer_totalTime(@Nullable String value) { /** * number of current suggest ops - * + *

* API name: {@code suggest.current} */ public Builder suggest_current(@Nullable String value) { @@ -4542,7 +4542,7 @@ public Builder suggest_current(@Nullable String value) { /** * number of current suggest ops - * + *

* API name: {@code pri.suggest.current} */ public Builder pri_suggest_current(@Nullable String value) { @@ -4552,7 +4552,7 @@ public Builder pri_suggest_current(@Nullable String value) { /** * time spend in suggest - * + *

* API name: {@code suggest.time} */ public Builder suggest_time(@Nullable String value) { @@ -4562,7 +4562,7 @@ public Builder suggest_time(@Nullable String value) { /** * time spend in suggest - * + *

* API name: {@code pri.suggest.time} */ public Builder pri_suggest_time(@Nullable String value) { @@ -4572,7 +4572,7 @@ public Builder pri_suggest_time(@Nullable String value) { /** * number of suggest ops - * + *

* API name: {@code suggest.total} */ public Builder suggest_total(@Nullable String value) { @@ -4582,7 +4582,7 @@ public Builder suggest_total(@Nullable String value) { /** * number of suggest ops - * + *

* API name: {@code pri.suggest.total} */ public Builder pri_suggest_total(@Nullable String value) { @@ -4592,7 +4592,7 @@ public Builder pri_suggest_total(@Nullable String value) { /** * total used memory - * + *

* API name: {@code memory.total} */ public Builder memory_total(@Nullable String value) { @@ -4602,7 +4602,7 @@ public Builder memory_total(@Nullable String value) { /** * total user memory - * + *

* API name: {@code pri.memory.total} */ public Builder pri_memory_total(@Nullable String value) { @@ -4612,7 +4612,7 @@ public Builder pri_memory_total(@Nullable String value) { /** * indicates if the index is search throttled - * + *

* API name: {@code search.throttled} */ public Builder search_throttled(@Nullable String value) { @@ -4622,7 +4622,7 @@ public Builder search_throttled(@Nullable String value) { /** * number of bulk shard ops - * + *

* API name: {@code bulk.total_operations} */ public Builder bulk_totalOperations(@Nullable String value) { @@ -4632,7 +4632,7 @@ public Builder bulk_totalOperations(@Nullable String value) { /** * number of bulk shard ops - * + *

* API name: {@code pri.bulk.total_operations} */ public Builder pri_bulk_totalOperations(@Nullable String value) { @@ -4642,7 +4642,7 @@ public Builder pri_bulk_totalOperations(@Nullable String value) { /** * time spend in shard bulk - * + *

* API name: {@code bulk.total_time} */ public Builder bulk_totalTime(@Nullable String value) { @@ -4652,7 +4652,7 @@ public Builder bulk_totalTime(@Nullable String value) { /** * time spend in shard bulk - * + *

* API name: {@code pri.bulk.total_time} */ public Builder pri_bulk_totalTime(@Nullable String value) { @@ -4662,7 +4662,7 @@ public Builder pri_bulk_totalTime(@Nullable String value) { /** * total size in bytes of shard bulk - * + *

* API name: {@code bulk.total_size_in_bytes} */ public Builder bulk_totalSizeInBytes(@Nullable String value) { @@ -4672,7 +4672,7 @@ public Builder bulk_totalSizeInBytes(@Nullable String value) { /** * total size in bytes of shard bulk - * + *

* API name: {@code pri.bulk.total_size_in_bytes} */ public Builder pri_bulk_totalSizeInBytes(@Nullable String value) { @@ -4682,7 +4682,7 @@ public Builder pri_bulk_totalSizeInBytes(@Nullable String value) { /** * average time spend in shard bulk - * + *

* API name: {@code bulk.avg_time} */ public Builder bulk_avgTime(@Nullable String value) { @@ -4692,7 +4692,7 @@ public Builder bulk_avgTime(@Nullable String value) { /** * average time spend in shard bulk - * + *

* API name: {@code pri.bulk.avg_time} */ public Builder pri_bulk_avgTime(@Nullable String value) { @@ -4702,7 +4702,7 @@ public Builder pri_bulk_avgTime(@Nullable String value) { /** * average size in bytes of shard bulk - * + *

* API name: {@code bulk.avg_size_in_bytes} */ public Builder bulk_avgSizeInBytes(@Nullable String value) { @@ -4712,7 +4712,7 @@ public Builder bulk_avgSizeInBytes(@Nullable String value) { /** * average size in bytes of shard bulk - * + *

* API name: {@code pri.bulk.avg_size_in_bytes} */ public Builder pri_bulk_avgSizeInBytes(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/jobs/JobsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/jobs/JobsRecord.java index 031f9c5fd..82b74269b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/jobs/JobsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/jobs/JobsRecord.java @@ -286,7 +286,7 @@ protected JobsRecord(Builder builder) { /** * the job_id - * + *

* API name: {@code id} */ @Nullable @@ -296,7 +296,7 @@ public String id() { /** * the job state - * + *

* API name: {@code state} */ @Nullable @@ -306,7 +306,7 @@ public JsonValue state() { /** * the amount of time the job has been opened - * + *

* API name: {@code opened_time} */ @Nullable @@ -316,7 +316,7 @@ public String openedTime() { /** * why the job is or is not assigned to a node - * + *

* API name: {@code assignment_explanation} */ @Nullable @@ -326,7 +326,7 @@ public String assignmentExplanation() { /** * number of processed records - * + *

* API name: {@code data.processed_records} */ @Nullable @@ -336,7 +336,7 @@ public String data_processedRecords() { /** * number of processed fields - * + *

* API name: {@code data.processed_fields} */ @Nullable @@ -346,7 +346,7 @@ public String data_processedFields() { /** * total input bytes - * + *

* API name: {@code data.input_bytes} */ @Nullable @@ -356,7 +356,7 @@ public JsonValue data_inputBytes() { /** * total record count - * + *

* API name: {@code data.input_records} */ @Nullable @@ -366,7 +366,7 @@ public String data_inputRecords() { /** * total field count - * + *

* API name: {@code data.input_fields} */ @Nullable @@ -376,7 +376,7 @@ public String data_inputFields() { /** * number of records with invalid dates - * + *

* API name: {@code data.invalid_dates} */ @Nullable @@ -386,7 +386,7 @@ public String data_invalidDates() { /** * number of records with missing fields - * + *

* API name: {@code data.missing_fields} */ @Nullable @@ -396,7 +396,7 @@ public String data_missingFields() { /** * number of records handled out of order - * + *

* API name: {@code data.out_of_order_timestamps} */ @Nullable @@ -406,7 +406,7 @@ public String data_outOfOrderTimestamps() { /** * number of empty buckets - * + *

* API name: {@code data.empty_buckets} */ @Nullable @@ -416,7 +416,7 @@ public String data_emptyBuckets() { /** * number of sparse buckets - * + *

* API name: {@code data.sparse_buckets} */ @Nullable @@ -426,7 +426,7 @@ public String data_sparseBuckets() { /** * total bucket count - * + *

* API name: {@code data.buckets} */ @Nullable @@ -436,7 +436,7 @@ public String data_buckets() { /** * earliest record time - * + *

* API name: {@code data.earliest_record} */ @Nullable @@ -446,7 +446,7 @@ public String data_earliestRecord() { /** * latest record time - * + *

* API name: {@code data.latest_record} */ @Nullable @@ -456,7 +456,7 @@ public String data_latestRecord() { /** * last time data was seen - * + *

* API name: {@code data.last} */ @Nullable @@ -466,7 +466,7 @@ public String data_last() { /** * last time an empty bucket occurred - * + *

* API name: {@code data.last_empty_bucket} */ @Nullable @@ -476,7 +476,7 @@ public String data_lastEmptyBucket() { /** * last time a sparse bucket occurred - * + *

* API name: {@code data.last_sparse_bucket} */ @Nullable @@ -486,7 +486,7 @@ public String data_lastSparseBucket() { /** * model size - * + *

* API name: {@code model.bytes} */ @Nullable @@ -496,7 +496,7 @@ public JsonValue model_bytes() { /** * current memory status - * + *

* API name: {@code model.memory_status} */ @Nullable @@ -506,7 +506,7 @@ public JsonValue model_memoryStatus() { /** * how much the model has exceeded the limit - * + *

* API name: {@code model.bytes_exceeded} */ @Nullable @@ -516,7 +516,7 @@ public JsonValue model_bytesExceeded() { /** * model memory limit - * + *

* API name: {@code model.memory_limit} */ @Nullable @@ -526,7 +526,7 @@ public String model_memoryLimit() { /** * count of 'by' fields - * + *

* API name: {@code model.by_fields} */ @Nullable @@ -536,7 +536,7 @@ public String model_byFields() { /** * count of 'over' fields - * + *

* API name: {@code model.over_fields} */ @Nullable @@ -546,7 +546,7 @@ public String model_overFields() { /** * count of 'partition' fields - * + *

* API name: {@code model.partition_fields} */ @Nullable @@ -556,7 +556,7 @@ public String model_partitionFields() { /** * number of bucket allocation failures - * + *

* API name: {@code model.bucket_allocation_failures} */ @Nullable @@ -566,7 +566,7 @@ public String model_bucketAllocationFailures() { /** * current categorization status - * + *

* API name: {@code model.categorization_status} */ @Nullable @@ -576,7 +576,7 @@ public JsonValue model_categorizationStatus() { /** * count of categorized documents - * + *

* API name: {@code model.categorized_doc_count} */ @Nullable @@ -586,7 +586,7 @@ public String model_categorizedDocCount() { /** * count of categories - * + *

* API name: {@code model.total_category_count} */ @Nullable @@ -596,7 +596,7 @@ public String model_totalCategoryCount() { /** * count of frequent categories - * + *

* API name: {@code model.frequent_category_count} */ @Nullable @@ -606,7 +606,7 @@ public String model_frequentCategoryCount() { /** * count of rare categories - * + *

* API name: {@code model.rare_category_count} */ @Nullable @@ -616,7 +616,7 @@ public String model_rareCategoryCount() { /** * count of dead categories - * + *

* API name: {@code model.dead_category_count} */ @Nullable @@ -626,7 +626,7 @@ public String model_deadCategoryCount() { /** * count of failed categories - * + *

* API name: {@code model.failed_category_count} */ @Nullable @@ -636,7 +636,7 @@ public String model_failedCategoryCount() { /** * when the model stats were gathered - * + *

* API name: {@code model.log_time} */ @Nullable @@ -646,7 +646,7 @@ public String model_logTime() { /** * the time of the last record when the model stats were gathered - * + *

* API name: {@code model.timestamp} */ @Nullable @@ -656,7 +656,7 @@ public String model_timestamp() { /** * total number of forecasts - * + *

* API name: {@code forecasts.total} */ @Nullable @@ -666,7 +666,7 @@ public String forecasts_total() { /** * minimum memory used by forecasts - * + *

* API name: {@code forecasts.memory.min} */ @Nullable @@ -676,7 +676,7 @@ public String forecasts_memory_min() { /** * maximum memory used by forecasts - * + *

* API name: {@code forecasts.memory.max} */ @Nullable @@ -686,7 +686,7 @@ public String forecasts_memory_max() { /** * average memory used by forecasts - * + *

* API name: {@code forecasts.memory.avg} */ @Nullable @@ -696,7 +696,7 @@ public String forecasts_memory_avg() { /** * total memory used by all forecasts - * + *

* API name: {@code forecasts.memory.total} */ @Nullable @@ -706,7 +706,7 @@ public String forecasts_memory_total() { /** * minimum record count for forecasts - * + *

* API name: {@code forecasts.records.min} */ @Nullable @@ -716,7 +716,7 @@ public String forecasts_records_min() { /** * maximum record count for forecasts - * + *

* API name: {@code forecasts.records.max} */ @Nullable @@ -726,7 +726,7 @@ public String forecasts_records_max() { /** * average record count for forecasts - * + *

* API name: {@code forecasts.records.avg} */ @Nullable @@ -736,7 +736,7 @@ public String forecasts_records_avg() { /** * total record count for all forecasts - * + *

* API name: {@code forecasts.records.total} */ @Nullable @@ -746,7 +746,7 @@ public String forecasts_records_total() { /** * minimum runtime for forecasts - * + *

* API name: {@code forecasts.time.min} */ @Nullable @@ -756,7 +756,7 @@ public String forecasts_time_min() { /** * maximum run time for forecasts - * + *

* API name: {@code forecasts.time.max} */ @Nullable @@ -766,7 +766,7 @@ public String forecasts_time_max() { /** * average runtime for all forecasts (milliseconds) - * + *

* API name: {@code forecasts.time.avg} */ @Nullable @@ -776,7 +776,7 @@ public String forecasts_time_avg() { /** * total runtime for all forecasts - * + *

* API name: {@code forecasts.time.total} */ @Nullable @@ -786,7 +786,7 @@ public String forecasts_time_total() { /** * id of the assigned node - * + *

* API name: {@code node.id} */ @Nullable @@ -796,7 +796,7 @@ public String node_id() { /** * name of the assigned node - * + *

* API name: {@code node.name} */ @Nullable @@ -806,7 +806,7 @@ public String node_name() { /** * ephemeral id of the assigned node - * + *

* API name: {@code node.ephemeral_id} */ @Nullable @@ -816,7 +816,7 @@ public String node_ephemeralId() { /** * network address of the assigned node - * + *

* API name: {@code node.address} */ @Nullable @@ -826,7 +826,7 @@ public String node_address() { /** * bucket count - * + *

* API name: {@code buckets.count} */ @Nullable @@ -836,7 +836,7 @@ public String buckets_count() { /** * total bucket processing time - * + *

* API name: {@code buckets.time.total} */ @Nullable @@ -846,7 +846,7 @@ public String buckets_time_total() { /** * minimum bucket processing time - * + *

* API name: {@code buckets.time.min} */ @Nullable @@ -856,7 +856,7 @@ public String buckets_time_min() { /** * maximum bucket processing time - * + *

* API name: {@code buckets.time.max} */ @Nullable @@ -866,7 +866,7 @@ public String buckets_time_max() { /** * exponential average bucket processing time (milliseconds) - * + *

* API name: {@code buckets.time.exp_avg} */ @Nullable @@ -876,7 +876,7 @@ public String buckets_time_expAvg() { /** * exponential average bucket processing time by hour (milliseconds) - * + *

* API name: {@code buckets.time.exp_avg_hour} */ @Nullable @@ -1446,7 +1446,7 @@ public static class Builder implements ObjectBuilder { /** * the job_id - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -1456,7 +1456,7 @@ public Builder id(@Nullable String value) { /** * the job state - * + *

* API name: {@code state} */ public Builder state(@Nullable JsonValue value) { @@ -1466,7 +1466,7 @@ public Builder state(@Nullable JsonValue value) { /** * the amount of time the job has been opened - * + *

* API name: {@code opened_time} */ public Builder openedTime(@Nullable String value) { @@ -1476,7 +1476,7 @@ public Builder openedTime(@Nullable String value) { /** * why the job is or is not assigned to a node - * + *

* API name: {@code assignment_explanation} */ public Builder assignmentExplanation(@Nullable String value) { @@ -1486,7 +1486,7 @@ public Builder assignmentExplanation(@Nullable String value) { /** * number of processed records - * + *

* API name: {@code data.processed_records} */ public Builder data_processedRecords(@Nullable String value) { @@ -1496,7 +1496,7 @@ public Builder data_processedRecords(@Nullable String value) { /** * number of processed fields - * + *

* API name: {@code data.processed_fields} */ public Builder data_processedFields(@Nullable String value) { @@ -1506,7 +1506,7 @@ public Builder data_processedFields(@Nullable String value) { /** * total input bytes - * + *

* API name: {@code data.input_bytes} */ public Builder data_inputBytes(@Nullable JsonValue value) { @@ -1516,7 +1516,7 @@ public Builder data_inputBytes(@Nullable JsonValue value) { /** * total record count - * + *

* API name: {@code data.input_records} */ public Builder data_inputRecords(@Nullable String value) { @@ -1526,7 +1526,7 @@ public Builder data_inputRecords(@Nullable String value) { /** * total field count - * + *

* API name: {@code data.input_fields} */ public Builder data_inputFields(@Nullable String value) { @@ -1536,7 +1536,7 @@ public Builder data_inputFields(@Nullable String value) { /** * number of records with invalid dates - * + *

* API name: {@code data.invalid_dates} */ public Builder data_invalidDates(@Nullable String value) { @@ -1546,7 +1546,7 @@ public Builder data_invalidDates(@Nullable String value) { /** * number of records with missing fields - * + *

* API name: {@code data.missing_fields} */ public Builder data_missingFields(@Nullable String value) { @@ -1556,7 +1556,7 @@ public Builder data_missingFields(@Nullable String value) { /** * number of records handled out of order - * + *

* API name: {@code data.out_of_order_timestamps} */ public Builder data_outOfOrderTimestamps(@Nullable String value) { @@ -1566,7 +1566,7 @@ public Builder data_outOfOrderTimestamps(@Nullable String value) { /** * number of empty buckets - * + *

* API name: {@code data.empty_buckets} */ public Builder data_emptyBuckets(@Nullable String value) { @@ -1576,7 +1576,7 @@ public Builder data_emptyBuckets(@Nullable String value) { /** * number of sparse buckets - * + *

* API name: {@code data.sparse_buckets} */ public Builder data_sparseBuckets(@Nullable String value) { @@ -1586,7 +1586,7 @@ public Builder data_sparseBuckets(@Nullable String value) { /** * total bucket count - * + *

* API name: {@code data.buckets} */ public Builder data_buckets(@Nullable String value) { @@ -1596,7 +1596,7 @@ public Builder data_buckets(@Nullable String value) { /** * earliest record time - * + *

* API name: {@code data.earliest_record} */ public Builder data_earliestRecord(@Nullable String value) { @@ -1606,7 +1606,7 @@ public Builder data_earliestRecord(@Nullable String value) { /** * latest record time - * + *

* API name: {@code data.latest_record} */ public Builder data_latestRecord(@Nullable String value) { @@ -1616,7 +1616,7 @@ public Builder data_latestRecord(@Nullable String value) { /** * last time data was seen - * + *

* API name: {@code data.last} */ public Builder data_last(@Nullable String value) { @@ -1626,7 +1626,7 @@ public Builder data_last(@Nullable String value) { /** * last time an empty bucket occurred - * + *

* API name: {@code data.last_empty_bucket} */ public Builder data_lastEmptyBucket(@Nullable String value) { @@ -1636,7 +1636,7 @@ public Builder data_lastEmptyBucket(@Nullable String value) { /** * last time a sparse bucket occurred - * + *

* API name: {@code data.last_sparse_bucket} */ public Builder data_lastSparseBucket(@Nullable String value) { @@ -1646,7 +1646,7 @@ public Builder data_lastSparseBucket(@Nullable String value) { /** * model size - * + *

* API name: {@code model.bytes} */ public Builder model_bytes(@Nullable JsonValue value) { @@ -1656,7 +1656,7 @@ public Builder model_bytes(@Nullable JsonValue value) { /** * current memory status - * + *

* API name: {@code model.memory_status} */ public Builder model_memoryStatus(@Nullable JsonValue value) { @@ -1666,7 +1666,7 @@ public Builder model_memoryStatus(@Nullable JsonValue value) { /** * how much the model has exceeded the limit - * + *

* API name: {@code model.bytes_exceeded} */ public Builder model_bytesExceeded(@Nullable JsonValue value) { @@ -1676,7 +1676,7 @@ public Builder model_bytesExceeded(@Nullable JsonValue value) { /** * model memory limit - * + *

* API name: {@code model.memory_limit} */ public Builder model_memoryLimit(@Nullable String value) { @@ -1686,7 +1686,7 @@ public Builder model_memoryLimit(@Nullable String value) { /** * count of 'by' fields - * + *

* API name: {@code model.by_fields} */ public Builder model_byFields(@Nullable String value) { @@ -1696,7 +1696,7 @@ public Builder model_byFields(@Nullable String value) { /** * count of 'over' fields - * + *

* API name: {@code model.over_fields} */ public Builder model_overFields(@Nullable String value) { @@ -1706,7 +1706,7 @@ public Builder model_overFields(@Nullable String value) { /** * count of 'partition' fields - * + *

* API name: {@code model.partition_fields} */ public Builder model_partitionFields(@Nullable String value) { @@ -1716,7 +1716,7 @@ public Builder model_partitionFields(@Nullable String value) { /** * number of bucket allocation failures - * + *

* API name: {@code model.bucket_allocation_failures} */ public Builder model_bucketAllocationFailures(@Nullable String value) { @@ -1726,7 +1726,7 @@ public Builder model_bucketAllocationFailures(@Nullable String value) { /** * current categorization status - * + *

* API name: {@code model.categorization_status} */ public Builder model_categorizationStatus(@Nullable JsonValue value) { @@ -1736,7 +1736,7 @@ public Builder model_categorizationStatus(@Nullable JsonValue value) { /** * count of categorized documents - * + *

* API name: {@code model.categorized_doc_count} */ public Builder model_categorizedDocCount(@Nullable String value) { @@ -1746,7 +1746,7 @@ public Builder model_categorizedDocCount(@Nullable String value) { /** * count of categories - * + *

* API name: {@code model.total_category_count} */ public Builder model_totalCategoryCount(@Nullable String value) { @@ -1756,7 +1756,7 @@ public Builder model_totalCategoryCount(@Nullable String value) { /** * count of frequent categories - * + *

* API name: {@code model.frequent_category_count} */ public Builder model_frequentCategoryCount(@Nullable String value) { @@ -1766,7 +1766,7 @@ public Builder model_frequentCategoryCount(@Nullable String value) { /** * count of rare categories - * + *

* API name: {@code model.rare_category_count} */ public Builder model_rareCategoryCount(@Nullable String value) { @@ -1776,7 +1776,7 @@ public Builder model_rareCategoryCount(@Nullable String value) { /** * count of dead categories - * + *

* API name: {@code model.dead_category_count} */ public Builder model_deadCategoryCount(@Nullable String value) { @@ -1786,7 +1786,7 @@ public Builder model_deadCategoryCount(@Nullable String value) { /** * count of failed categories - * + *

* API name: {@code model.failed_category_count} */ public Builder model_failedCategoryCount(@Nullable String value) { @@ -1796,7 +1796,7 @@ public Builder model_failedCategoryCount(@Nullable String value) { /** * when the model stats were gathered - * + *

* API name: {@code model.log_time} */ public Builder model_logTime(@Nullable String value) { @@ -1806,7 +1806,7 @@ public Builder model_logTime(@Nullable String value) { /** * the time of the last record when the model stats were gathered - * + *

* API name: {@code model.timestamp} */ public Builder model_timestamp(@Nullable String value) { @@ -1816,7 +1816,7 @@ public Builder model_timestamp(@Nullable String value) { /** * total number of forecasts - * + *

* API name: {@code forecasts.total} */ public Builder forecasts_total(@Nullable String value) { @@ -1826,7 +1826,7 @@ public Builder forecasts_total(@Nullable String value) { /** * minimum memory used by forecasts - * + *

* API name: {@code forecasts.memory.min} */ public Builder forecasts_memory_min(@Nullable String value) { @@ -1836,7 +1836,7 @@ public Builder forecasts_memory_min(@Nullable String value) { /** * maximum memory used by forecasts - * + *

* API name: {@code forecasts.memory.max} */ public Builder forecasts_memory_max(@Nullable String value) { @@ -1846,7 +1846,7 @@ public Builder forecasts_memory_max(@Nullable String value) { /** * average memory used by forecasts - * + *

* API name: {@code forecasts.memory.avg} */ public Builder forecasts_memory_avg(@Nullable String value) { @@ -1856,7 +1856,7 @@ public Builder forecasts_memory_avg(@Nullable String value) { /** * total memory used by all forecasts - * + *

* API name: {@code forecasts.memory.total} */ public Builder forecasts_memory_total(@Nullable String value) { @@ -1866,7 +1866,7 @@ public Builder forecasts_memory_total(@Nullable String value) { /** * minimum record count for forecasts - * + *

* API name: {@code forecasts.records.min} */ public Builder forecasts_records_min(@Nullable String value) { @@ -1876,7 +1876,7 @@ public Builder forecasts_records_min(@Nullable String value) { /** * maximum record count for forecasts - * + *

* API name: {@code forecasts.records.max} */ public Builder forecasts_records_max(@Nullable String value) { @@ -1886,7 +1886,7 @@ public Builder forecasts_records_max(@Nullable String value) { /** * average record count for forecasts - * + *

* API name: {@code forecasts.records.avg} */ public Builder forecasts_records_avg(@Nullable String value) { @@ -1896,7 +1896,7 @@ public Builder forecasts_records_avg(@Nullable String value) { /** * total record count for all forecasts - * + *

* API name: {@code forecasts.records.total} */ public Builder forecasts_records_total(@Nullable String value) { @@ -1906,7 +1906,7 @@ public Builder forecasts_records_total(@Nullable String value) { /** * minimum runtime for forecasts - * + *

* API name: {@code forecasts.time.min} */ public Builder forecasts_time_min(@Nullable String value) { @@ -1916,7 +1916,7 @@ public Builder forecasts_time_min(@Nullable String value) { /** * maximum run time for forecasts - * + *

* API name: {@code forecasts.time.max} */ public Builder forecasts_time_max(@Nullable String value) { @@ -1926,7 +1926,7 @@ public Builder forecasts_time_max(@Nullable String value) { /** * average runtime for all forecasts (milliseconds) - * + *

* API name: {@code forecasts.time.avg} */ public Builder forecasts_time_avg(@Nullable String value) { @@ -1936,7 +1936,7 @@ public Builder forecasts_time_avg(@Nullable String value) { /** * total runtime for all forecasts - * + *

* API name: {@code forecasts.time.total} */ public Builder forecasts_time_total(@Nullable String value) { @@ -1946,7 +1946,7 @@ public Builder forecasts_time_total(@Nullable String value) { /** * id of the assigned node - * + *

* API name: {@code node.id} */ public Builder node_id(@Nullable String value) { @@ -1956,7 +1956,7 @@ public Builder node_id(@Nullable String value) { /** * name of the assigned node - * + *

* API name: {@code node.name} */ public Builder node_name(@Nullable String value) { @@ -1966,7 +1966,7 @@ public Builder node_name(@Nullable String value) { /** * ephemeral id of the assigned node - * + *

* API name: {@code node.ephemeral_id} */ public Builder node_ephemeralId(@Nullable String value) { @@ -1976,7 +1976,7 @@ public Builder node_ephemeralId(@Nullable String value) { /** * network address of the assigned node - * + *

* API name: {@code node.address} */ public Builder node_address(@Nullable String value) { @@ -1986,7 +1986,7 @@ public Builder node_address(@Nullable String value) { /** * bucket count - * + *

* API name: {@code buckets.count} */ public Builder buckets_count(@Nullable String value) { @@ -1996,7 +1996,7 @@ public Builder buckets_count(@Nullable String value) { /** * total bucket processing time - * + *

* API name: {@code buckets.time.total} */ public Builder buckets_time_total(@Nullable String value) { @@ -2006,7 +2006,7 @@ public Builder buckets_time_total(@Nullable String value) { /** * minimum bucket processing time - * + *

* API name: {@code buckets.time.min} */ public Builder buckets_time_min(@Nullable String value) { @@ -2016,7 +2016,7 @@ public Builder buckets_time_min(@Nullable String value) { /** * maximum bucket processing time - * + *

* API name: {@code buckets.time.max} */ public Builder buckets_time_max(@Nullable String value) { @@ -2026,7 +2026,7 @@ public Builder buckets_time_max(@Nullable String value) { /** * exponential average bucket processing time (milliseconds) - * + *

* API name: {@code buckets.time.exp_avg} */ public Builder buckets_time_expAvg(@Nullable String value) { @@ -2036,7 +2036,7 @@ public Builder buckets_time_expAvg(@Nullable String value) { /** * exponential average bucket processing time by hour (milliseconds) - * + *

* API name: {@code buckets.time.exp_avg_hour} */ public Builder buckets_time_expAvgHour(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/master/MasterRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/master/MasterRecord.java index 1f9757563..975c1cf57 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/master/MasterRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/master/MasterRecord.java @@ -61,7 +61,7 @@ protected MasterRecord(Builder builder) { /** * node id - * + *

* API name: {@code id} */ @Nullable @@ -71,7 +71,7 @@ public String id() { /** * host name - * + *

* API name: {@code host} */ @Nullable @@ -81,7 +81,7 @@ public String host() { /** * ip address - * + *

* API name: {@code ip} */ @Nullable @@ -91,7 +91,7 @@ public String ip() { /** * node name - * + *

* API name: {@code node} */ @Nullable @@ -157,7 +157,7 @@ public static class Builder implements ObjectBuilder { /** * node id - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -167,7 +167,7 @@ public Builder id(@Nullable String value) { /** * host name - * + *

* API name: {@code host} */ public Builder host(@Nullable String value) { @@ -177,7 +177,7 @@ public Builder host(@Nullable String value) { /** * ip address - * + *

* API name: {@code ip} */ public Builder ip(@Nullable String value) { @@ -187,7 +187,7 @@ public Builder ip(@Nullable String value) { /** * node name - * + *

* API name: {@code node} */ public Builder node(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/node_attributes/NodeAttributesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/node_attributes/NodeAttributesRecord.java index 18a9da758..aaabf045d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/node_attributes/NodeAttributesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/node_attributes/NodeAttributesRecord.java @@ -77,7 +77,7 @@ protected NodeAttributesRecord(Builder builder) { /** * node name - * + *

* API name: {@code node} */ @Nullable @@ -87,7 +87,7 @@ public String node() { /** * unique node id - * + *

* API name: {@code id} */ @Nullable @@ -97,7 +97,7 @@ public String id() { /** * process id - * + *

* API name: {@code pid} */ @Nullable @@ -107,7 +107,7 @@ public String pid() { /** * host name - * + *

* API name: {@code host} */ @Nullable @@ -117,7 +117,7 @@ public String host() { /** * ip address - * + *

* API name: {@code ip} */ @Nullable @@ -127,7 +127,7 @@ public String ip() { /** * bound transport port - * + *

* API name: {@code port} */ @Nullable @@ -137,7 +137,7 @@ public String port() { /** * attribute description - * + *

* API name: {@code attr} */ @Nullable @@ -147,7 +147,7 @@ public String attr() { /** * attribute value - * + *

* API name: {@code value} */ @Nullable @@ -249,7 +249,7 @@ public static class Builder implements ObjectBuilder { /** * node name - * + *

* API name: {@code node} */ public Builder node(@Nullable String value) { @@ -259,7 +259,7 @@ public Builder node(@Nullable String value) { /** * unique node id - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -269,7 +269,7 @@ public Builder id(@Nullable String value) { /** * process id - * + *

* API name: {@code pid} */ public Builder pid(@Nullable String value) { @@ -279,7 +279,7 @@ public Builder pid(@Nullable String value) { /** * host name - * + *

* API name: {@code host} */ public Builder host(@Nullable String value) { @@ -289,7 +289,7 @@ public Builder host(@Nullable String value) { /** * ip address - * + *

* API name: {@code ip} */ public Builder ip(@Nullable String value) { @@ -299,7 +299,7 @@ public Builder ip(@Nullable String value) { /** * bound transport port - * + *

* API name: {@code port} */ public Builder port(@Nullable String value) { @@ -309,7 +309,7 @@ public Builder port(@Nullable String value) { /** * attribute description - * + *

* API name: {@code attr} */ public Builder attr(@Nullable String value) { @@ -319,7 +319,7 @@ public Builder attr(@Nullable String value) { /** * attribute value - * + *

* API name: {@code value} */ public Builder value(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodes/NodesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodes/NodesRecord.java index f7b3b7072..f1b5d45ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodes/NodesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodes/NodesRecord.java @@ -430,7 +430,7 @@ protected NodesRecord(Builder builder) { /** * unique node id - * + *

* API name: {@code id} */ @Nullable @@ -440,7 +440,7 @@ public String id() { /** * process id - * + *

* API name: {@code pid} */ @Nullable @@ -450,7 +450,7 @@ public String pid() { /** * ip address - * + *

* API name: {@code ip} */ @Nullable @@ -460,7 +460,7 @@ public String ip() { /** * bound transport port - * + *

* API name: {@code port} */ @Nullable @@ -470,7 +470,7 @@ public String port() { /** * bound http address - * + *

* API name: {@code http_address} */ @Nullable @@ -480,7 +480,7 @@ public String httpAddress() { /** * es version - * + *

* API name: {@code version} */ @Nullable @@ -490,7 +490,7 @@ public String version() { /** * es distribution flavor - * + *

* API name: {@code flavor} */ @Nullable @@ -500,7 +500,7 @@ public String flavor() { /** * es distribution type - * + *

* API name: {@code type} */ @Nullable @@ -510,7 +510,7 @@ public String type() { /** * es build hash - * + *

* API name: {@code build} */ @Nullable @@ -520,7 +520,7 @@ public String build() { /** * jdk version - * + *

* API name: {@code jdk} */ @Nullable @@ -530,7 +530,7 @@ public String jdk() { /** * total disk space - * + *

* API name: {@code disk.total} */ @Nullable @@ -540,7 +540,7 @@ public JsonValue disk_total() { /** * used disk space - * + *

* API name: {@code disk.used} */ @Nullable @@ -550,7 +550,7 @@ public JsonValue disk_used() { /** * available disk space - * + *

* API name: {@code disk.avail} */ @Nullable @@ -560,7 +560,7 @@ public JsonValue disk_avail() { /** * used disk space percentage - * + *

* API name: {@code disk.used_percent} */ @Nullable @@ -570,7 +570,7 @@ public JsonValue disk_usedPercent() { /** * used heap - * + *

* API name: {@code heap.current} */ @Nullable @@ -580,7 +580,7 @@ public String heap_current() { /** * used heap ratio - * + *

* API name: {@code heap.percent} */ @Nullable @@ -590,7 +590,7 @@ public JsonValue heap_percent() { /** * max configured heap - * + *

* API name: {@code heap.max} */ @Nullable @@ -600,7 +600,7 @@ public String heap_max() { /** * used machine memory - * + *

* API name: {@code ram.current} */ @Nullable @@ -610,7 +610,7 @@ public String ram_current() { /** * used machine memory ratio - * + *

* API name: {@code ram.percent} */ @Nullable @@ -620,7 +620,7 @@ public JsonValue ram_percent() { /** * total machine memory - * + *

* API name: {@code ram.max} */ @Nullable @@ -630,7 +630,7 @@ public String ram_max() { /** * used file descriptors - * + *

* API name: {@code file_desc.current} */ @Nullable @@ -640,7 +640,7 @@ public String fileDesc_current() { /** * used file descriptor ratio - * + *

* API name: {@code file_desc.percent} */ @Nullable @@ -650,7 +650,7 @@ public JsonValue fileDesc_percent() { /** * max file descriptors - * + *

* API name: {@code file_desc.max} */ @Nullable @@ -660,7 +660,7 @@ public String fileDesc_max() { /** * recent cpu usage - * + *

* API name: {@code cpu} */ @Nullable @@ -670,7 +670,7 @@ public String cpu() { /** * 1m load avg - * + *

* API name: {@code load_1m} */ @Nullable @@ -680,7 +680,7 @@ public String load1m() { /** * 5m load avg - * + *

* API name: {@code load_5m} */ @Nullable @@ -690,7 +690,7 @@ public String load5m() { /** * 15m load avg - * + *

* API name: {@code load_15m} */ @Nullable @@ -700,7 +700,7 @@ public String load15m() { /** * node uptime - * + *

* API name: {@code uptime} */ @Nullable @@ -710,7 +710,7 @@ public String uptime() { /** * m:master eligible node, d:data node, i:ingest node, -:coordinating node only - * + *

* API name: {@code node.role} */ @Nullable @@ -720,7 +720,7 @@ public String node_role() { /** * *:current master - * + *

* API name: {@code master} */ @Nullable @@ -730,7 +730,7 @@ public String master() { /** * node name - * + *

* API name: {@code name} */ @Nullable @@ -740,7 +740,7 @@ public String name() { /** * size of completion - * + *

* API name: {@code completion.size} */ @Nullable @@ -750,7 +750,7 @@ public String completion_size() { /** * used fielddata cache - * + *

* API name: {@code fielddata.memory_size} */ @Nullable @@ -760,7 +760,7 @@ public String fielddata_memorySize() { /** * fielddata evictions - * + *

* API name: {@code fielddata.evictions} */ @Nullable @@ -770,7 +770,7 @@ public String fielddata_evictions() { /** * used query cache - * + *

* API name: {@code query_cache.memory_size} */ @Nullable @@ -780,7 +780,7 @@ public String queryCache_memorySize() { /** * query cache evictions - * + *

* API name: {@code query_cache.evictions} */ @Nullable @@ -790,7 +790,7 @@ public String queryCache_evictions() { /** * query cache hit counts - * + *

* API name: {@code query_cache.hit_count} */ @Nullable @@ -800,7 +800,7 @@ public String queryCache_hitCount() { /** * query cache miss counts - * + *

* API name: {@code query_cache.miss_count} */ @Nullable @@ -810,7 +810,7 @@ public String queryCache_missCount() { /** * used request cache - * + *

* API name: {@code request_cache.memory_size} */ @Nullable @@ -820,7 +820,7 @@ public String requestCache_memorySize() { /** * request cache evictions - * + *

* API name: {@code request_cache.evictions} */ @Nullable @@ -830,7 +830,7 @@ public String requestCache_evictions() { /** * request cache hit counts - * + *

* API name: {@code request_cache.hit_count} */ @Nullable @@ -840,7 +840,7 @@ public String requestCache_hitCount() { /** * request cache miss counts - * + *

* API name: {@code request_cache.miss_count} */ @Nullable @@ -850,7 +850,7 @@ public String requestCache_missCount() { /** * number of flushes - * + *

* API name: {@code flush.total} */ @Nullable @@ -860,7 +860,7 @@ public String flush_total() { /** * time spent in flush - * + *

* API name: {@code flush.total_time} */ @Nullable @@ -870,7 +870,7 @@ public String flush_totalTime() { /** * number of current get ops - * + *

* API name: {@code get.current} */ @Nullable @@ -880,7 +880,7 @@ public String get_current() { /** * time spent in get - * + *

* API name: {@code get.time} */ @Nullable @@ -890,7 +890,7 @@ public String get_time() { /** * number of get ops - * + *

* API name: {@code get.total} */ @Nullable @@ -900,7 +900,7 @@ public String get_total() { /** * time spent in successful gets - * + *

* API name: {@code get.exists_time} */ @Nullable @@ -910,7 +910,7 @@ public String get_existsTime() { /** * number of successful gets - * + *

* API name: {@code get.exists_total} */ @Nullable @@ -920,7 +920,7 @@ public String get_existsTotal() { /** * time spent in failed gets - * + *

* API name: {@code get.missing_time} */ @Nullable @@ -930,7 +930,7 @@ public String get_missingTime() { /** * number of failed gets - * + *

* API name: {@code get.missing_total} */ @Nullable @@ -940,7 +940,7 @@ public String get_missingTotal() { /** * number of current deletions - * + *

* API name: {@code indexing.delete_current} */ @Nullable @@ -950,7 +950,7 @@ public String indexing_deleteCurrent() { /** * time spent in deletions - * + *

* API name: {@code indexing.delete_time} */ @Nullable @@ -960,7 +960,7 @@ public String indexing_deleteTime() { /** * number of delete ops - * + *

* API name: {@code indexing.delete_total} */ @Nullable @@ -970,7 +970,7 @@ public String indexing_deleteTotal() { /** * number of current indexing ops - * + *

* API name: {@code indexing.index_current} */ @Nullable @@ -980,7 +980,7 @@ public String indexing_indexCurrent() { /** * time spent in indexing - * + *

* API name: {@code indexing.index_time} */ @Nullable @@ -990,7 +990,7 @@ public String indexing_indexTime() { /** * number of indexing ops - * + *

* API name: {@code indexing.index_total} */ @Nullable @@ -1000,7 +1000,7 @@ public String indexing_indexTotal() { /** * number of failed indexing ops - * + *

* API name: {@code indexing.index_failed} */ @Nullable @@ -1010,7 +1010,7 @@ public String indexing_indexFailed() { /** * number of current merges - * + *

* API name: {@code merges.current} */ @Nullable @@ -1020,7 +1020,7 @@ public String merges_current() { /** * number of current merging docs - * + *

* API name: {@code merges.current_docs} */ @Nullable @@ -1030,7 +1030,7 @@ public String merges_currentDocs() { /** * size of current merges - * + *

* API name: {@code merges.current_size} */ @Nullable @@ -1040,7 +1040,7 @@ public String merges_currentSize() { /** * number of completed merge ops - * + *

* API name: {@code merges.total} */ @Nullable @@ -1050,7 +1050,7 @@ public String merges_total() { /** * docs merged - * + *

* API name: {@code merges.total_docs} */ @Nullable @@ -1060,7 +1060,7 @@ public String merges_totalDocs() { /** * size merged - * + *

* API name: {@code merges.total_size} */ @Nullable @@ -1070,7 +1070,7 @@ public String merges_totalSize() { /** * time spent in merges - * + *

* API name: {@code merges.total_time} */ @Nullable @@ -1080,7 +1080,7 @@ public String merges_totalTime() { /** * total refreshes - * + *

* API name: {@code refresh.total} */ @Nullable @@ -1090,7 +1090,7 @@ public String refresh_total() { /** * time spent in refreshes - * + *

* API name: {@code refresh.time} */ @Nullable @@ -1100,7 +1100,7 @@ public String refresh_time() { /** * total external refreshes - * + *

* API name: {@code refresh.external_total} */ @Nullable @@ -1110,7 +1110,7 @@ public String refresh_externalTotal() { /** * time spent in external refreshes - * + *

* API name: {@code refresh.external_time} */ @Nullable @@ -1120,7 +1120,7 @@ public String refresh_externalTime() { /** * number of pending refresh listeners - * + *

* API name: {@code refresh.listeners} */ @Nullable @@ -1130,7 +1130,7 @@ public String refresh_listeners() { /** * script compilations - * + *

* API name: {@code script.compilations} */ @Nullable @@ -1140,7 +1140,7 @@ public String script_compilations() { /** * script cache evictions - * + *

* API name: {@code script.cache_evictions} */ @Nullable @@ -1150,7 +1150,7 @@ public String script_cacheEvictions() { /** * script cache compilation limit triggered - * + *

* API name: {@code script.compilation_limit_triggered} */ @Nullable @@ -1160,7 +1160,7 @@ public String script_compilationLimitTriggered() { /** * current fetch phase ops - * + *

* API name: {@code search.fetch_current} */ @Nullable @@ -1170,7 +1170,7 @@ public String search_fetchCurrent() { /** * time spent in fetch phase - * + *

* API name: {@code search.fetch_time} */ @Nullable @@ -1180,7 +1180,7 @@ public String search_fetchTime() { /** * total fetch ops - * + *

* API name: {@code search.fetch_total} */ @Nullable @@ -1190,7 +1190,7 @@ public String search_fetchTotal() { /** * open search contexts - * + *

* API name: {@code search.open_contexts} */ @Nullable @@ -1200,7 +1200,7 @@ public String search_openContexts() { /** * current query phase ops - * + *

* API name: {@code search.query_current} */ @Nullable @@ -1210,7 +1210,7 @@ public String search_queryCurrent() { /** * time spent in query phase - * + *

* API name: {@code search.query_time} */ @Nullable @@ -1220,7 +1220,7 @@ public String search_queryTime() { /** * total query phase ops - * + *

* API name: {@code search.query_total} */ @Nullable @@ -1230,7 +1230,7 @@ public String search_queryTotal() { /** * open scroll contexts - * + *

* API name: {@code search.scroll_current} */ @Nullable @@ -1240,7 +1240,7 @@ public String search_scrollCurrent() { /** * time scroll contexts held open - * + *

* API name: {@code search.scroll_time} */ @Nullable @@ -1250,7 +1250,7 @@ public String search_scrollTime() { /** * completed scroll contexts - * + *

* API name: {@code search.scroll_total} */ @Nullable @@ -1260,7 +1260,7 @@ public String search_scrollTotal() { /** * number of segments - * + *

* API name: {@code segments.count} */ @Nullable @@ -1270,7 +1270,7 @@ public String segments_count() { /** * memory used by segments - * + *

* API name: {@code segments.memory} */ @Nullable @@ -1280,7 +1280,7 @@ public String segments_memory() { /** * memory used by index writer - * + *

* API name: {@code segments.index_writer_memory} */ @Nullable @@ -1290,7 +1290,7 @@ public String segments_indexWriterMemory() { /** * memory used by version map - * + *

* API name: {@code segments.version_map_memory} */ @Nullable @@ -1301,7 +1301,7 @@ public String segments_versionMapMemory() { /** * memory used by fixed bit sets for nested object field types and export type * filters for types referred in _parent fields - * + *

* API name: {@code segments.fixed_bitset_memory} */ @Nullable @@ -1311,7 +1311,7 @@ public String segments_fixedBitsetMemory() { /** * number of current suggest ops - * + *

* API name: {@code suggest.current} */ @Nullable @@ -1321,7 +1321,7 @@ public String suggest_current() { /** * time spend in suggest - * + *

* API name: {@code suggest.time} */ @Nullable @@ -1331,7 +1331,7 @@ public String suggest_time() { /** * number of suggest ops - * + *

* API name: {@code suggest.total} */ @Nullable @@ -1341,7 +1341,7 @@ public String suggest_total() { /** * number of bulk shard ops - * + *

* API name: {@code bulk.total_operations} */ @Nullable @@ -1351,7 +1351,7 @@ public String bulk_totalOperations() { /** * time spend in shard bulk - * + *

* API name: {@code bulk.total_time} */ @Nullable @@ -1361,7 +1361,7 @@ public String bulk_totalTime() { /** * total size in bytes of shard bulk - * + *

* API name: {@code bulk.total_size_in_bytes} */ @Nullable @@ -1371,7 +1371,7 @@ public String bulk_totalSizeInBytes() { /** * average time spend in shard bulk - * + *

* API name: {@code bulk.avg_time} */ @Nullable @@ -1381,7 +1381,7 @@ public String bulk_avgTime() { /** * average size in bytes of shard bulk - * + *

* API name: {@code bulk.avg_size_in_bytes} */ @Nullable @@ -2275,7 +2275,7 @@ public static class Builder implements ObjectBuilder { /** * unique node id - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -2285,7 +2285,7 @@ public Builder id(@Nullable String value) { /** * process id - * + *

* API name: {@code pid} */ public Builder pid(@Nullable String value) { @@ -2295,7 +2295,7 @@ public Builder pid(@Nullable String value) { /** * ip address - * + *

* API name: {@code ip} */ public Builder ip(@Nullable String value) { @@ -2305,7 +2305,7 @@ public Builder ip(@Nullable String value) { /** * bound transport port - * + *

* API name: {@code port} */ public Builder port(@Nullable String value) { @@ -2315,7 +2315,7 @@ public Builder port(@Nullable String value) { /** * bound http address - * + *

* API name: {@code http_address} */ public Builder httpAddress(@Nullable String value) { @@ -2325,7 +2325,7 @@ public Builder httpAddress(@Nullable String value) { /** * es version - * + *

* API name: {@code version} */ public Builder version(@Nullable String value) { @@ -2335,7 +2335,7 @@ public Builder version(@Nullable String value) { /** * es distribution flavor - * + *

* API name: {@code flavor} */ public Builder flavor(@Nullable String value) { @@ -2345,7 +2345,7 @@ public Builder flavor(@Nullable String value) { /** * es distribution type - * + *

* API name: {@code type} */ public Builder type(@Nullable String value) { @@ -2355,7 +2355,7 @@ public Builder type(@Nullable String value) { /** * es build hash - * + *

* API name: {@code build} */ public Builder build(@Nullable String value) { @@ -2365,7 +2365,7 @@ public Builder build(@Nullable String value) { /** * jdk version - * + *

* API name: {@code jdk} */ public Builder jdk(@Nullable String value) { @@ -2375,7 +2375,7 @@ public Builder jdk(@Nullable String value) { /** * total disk space - * + *

* API name: {@code disk.total} */ public Builder disk_total(@Nullable JsonValue value) { @@ -2385,7 +2385,7 @@ public Builder disk_total(@Nullable JsonValue value) { /** * used disk space - * + *

* API name: {@code disk.used} */ public Builder disk_used(@Nullable JsonValue value) { @@ -2395,7 +2395,7 @@ public Builder disk_used(@Nullable JsonValue value) { /** * available disk space - * + *

* API name: {@code disk.avail} */ public Builder disk_avail(@Nullable JsonValue value) { @@ -2405,7 +2405,7 @@ public Builder disk_avail(@Nullable JsonValue value) { /** * used disk space percentage - * + *

* API name: {@code disk.used_percent} */ public Builder disk_usedPercent(@Nullable JsonValue value) { @@ -2415,7 +2415,7 @@ public Builder disk_usedPercent(@Nullable JsonValue value) { /** * used heap - * + *

* API name: {@code heap.current} */ public Builder heap_current(@Nullable String value) { @@ -2425,7 +2425,7 @@ public Builder heap_current(@Nullable String value) { /** * used heap ratio - * + *

* API name: {@code heap.percent} */ public Builder heap_percent(@Nullable JsonValue value) { @@ -2435,7 +2435,7 @@ public Builder heap_percent(@Nullable JsonValue value) { /** * max configured heap - * + *

* API name: {@code heap.max} */ public Builder heap_max(@Nullable String value) { @@ -2445,7 +2445,7 @@ public Builder heap_max(@Nullable String value) { /** * used machine memory - * + *

* API name: {@code ram.current} */ public Builder ram_current(@Nullable String value) { @@ -2455,7 +2455,7 @@ public Builder ram_current(@Nullable String value) { /** * used machine memory ratio - * + *

* API name: {@code ram.percent} */ public Builder ram_percent(@Nullable JsonValue value) { @@ -2465,7 +2465,7 @@ public Builder ram_percent(@Nullable JsonValue value) { /** * total machine memory - * + *

* API name: {@code ram.max} */ public Builder ram_max(@Nullable String value) { @@ -2475,7 +2475,7 @@ public Builder ram_max(@Nullable String value) { /** * used file descriptors - * + *

* API name: {@code file_desc.current} */ public Builder fileDesc_current(@Nullable String value) { @@ -2485,7 +2485,7 @@ public Builder fileDesc_current(@Nullable String value) { /** * used file descriptor ratio - * + *

* API name: {@code file_desc.percent} */ public Builder fileDesc_percent(@Nullable JsonValue value) { @@ -2495,7 +2495,7 @@ public Builder fileDesc_percent(@Nullable JsonValue value) { /** * max file descriptors - * + *

* API name: {@code file_desc.max} */ public Builder fileDesc_max(@Nullable String value) { @@ -2505,7 +2505,7 @@ public Builder fileDesc_max(@Nullable String value) { /** * recent cpu usage - * + *

* API name: {@code cpu} */ public Builder cpu(@Nullable String value) { @@ -2515,7 +2515,7 @@ public Builder cpu(@Nullable String value) { /** * 1m load avg - * + *

* API name: {@code load_1m} */ public Builder load1m(@Nullable String value) { @@ -2525,7 +2525,7 @@ public Builder load1m(@Nullable String value) { /** * 5m load avg - * + *

* API name: {@code load_5m} */ public Builder load5m(@Nullable String value) { @@ -2535,7 +2535,7 @@ public Builder load5m(@Nullable String value) { /** * 15m load avg - * + *

* API name: {@code load_15m} */ public Builder load15m(@Nullable String value) { @@ -2545,7 +2545,7 @@ public Builder load15m(@Nullable String value) { /** * node uptime - * + *

* API name: {@code uptime} */ public Builder uptime(@Nullable String value) { @@ -2555,7 +2555,7 @@ public Builder uptime(@Nullable String value) { /** * m:master eligible node, d:data node, i:ingest node, -:coordinating node only - * + *

* API name: {@code node.role} */ public Builder node_role(@Nullable String value) { @@ -2565,7 +2565,7 @@ public Builder node_role(@Nullable String value) { /** * *:current master - * + *

* API name: {@code master} */ public Builder master(@Nullable String value) { @@ -2575,7 +2575,7 @@ public Builder master(@Nullable String value) { /** * node name - * + *

* API name: {@code name} */ public Builder name(@Nullable String value) { @@ -2585,7 +2585,7 @@ public Builder name(@Nullable String value) { /** * size of completion - * + *

* API name: {@code completion.size} */ public Builder completion_size(@Nullable String value) { @@ -2595,7 +2595,7 @@ public Builder completion_size(@Nullable String value) { /** * used fielddata cache - * + *

* API name: {@code fielddata.memory_size} */ public Builder fielddata_memorySize(@Nullable String value) { @@ -2605,7 +2605,7 @@ public Builder fielddata_memorySize(@Nullable String value) { /** * fielddata evictions - * + *

* API name: {@code fielddata.evictions} */ public Builder fielddata_evictions(@Nullable String value) { @@ -2615,7 +2615,7 @@ public Builder fielddata_evictions(@Nullable String value) { /** * used query cache - * + *

* API name: {@code query_cache.memory_size} */ public Builder queryCache_memorySize(@Nullable String value) { @@ -2625,7 +2625,7 @@ public Builder queryCache_memorySize(@Nullable String value) { /** * query cache evictions - * + *

* API name: {@code query_cache.evictions} */ public Builder queryCache_evictions(@Nullable String value) { @@ -2635,7 +2635,7 @@ public Builder queryCache_evictions(@Nullable String value) { /** * query cache hit counts - * + *

* API name: {@code query_cache.hit_count} */ public Builder queryCache_hitCount(@Nullable String value) { @@ -2645,7 +2645,7 @@ public Builder queryCache_hitCount(@Nullable String value) { /** * query cache miss counts - * + *

* API name: {@code query_cache.miss_count} */ public Builder queryCache_missCount(@Nullable String value) { @@ -2655,7 +2655,7 @@ public Builder queryCache_missCount(@Nullable String value) { /** * used request cache - * + *

* API name: {@code request_cache.memory_size} */ public Builder requestCache_memorySize(@Nullable String value) { @@ -2665,7 +2665,7 @@ public Builder requestCache_memorySize(@Nullable String value) { /** * request cache evictions - * + *

* API name: {@code request_cache.evictions} */ public Builder requestCache_evictions(@Nullable String value) { @@ -2675,7 +2675,7 @@ public Builder requestCache_evictions(@Nullable String value) { /** * request cache hit counts - * + *

* API name: {@code request_cache.hit_count} */ public Builder requestCache_hitCount(@Nullable String value) { @@ -2685,7 +2685,7 @@ public Builder requestCache_hitCount(@Nullable String value) { /** * request cache miss counts - * + *

* API name: {@code request_cache.miss_count} */ public Builder requestCache_missCount(@Nullable String value) { @@ -2695,7 +2695,7 @@ public Builder requestCache_missCount(@Nullable String value) { /** * number of flushes - * + *

* API name: {@code flush.total} */ public Builder flush_total(@Nullable String value) { @@ -2705,7 +2705,7 @@ public Builder flush_total(@Nullable String value) { /** * time spent in flush - * + *

* API name: {@code flush.total_time} */ public Builder flush_totalTime(@Nullable String value) { @@ -2715,7 +2715,7 @@ public Builder flush_totalTime(@Nullable String value) { /** * number of current get ops - * + *

* API name: {@code get.current} */ public Builder get_current(@Nullable String value) { @@ -2725,7 +2725,7 @@ public Builder get_current(@Nullable String value) { /** * time spent in get - * + *

* API name: {@code get.time} */ public Builder get_time(@Nullable String value) { @@ -2735,7 +2735,7 @@ public Builder get_time(@Nullable String value) { /** * number of get ops - * + *

* API name: {@code get.total} */ public Builder get_total(@Nullable String value) { @@ -2745,7 +2745,7 @@ public Builder get_total(@Nullable String value) { /** * time spent in successful gets - * + *

* API name: {@code get.exists_time} */ public Builder get_existsTime(@Nullable String value) { @@ -2755,7 +2755,7 @@ public Builder get_existsTime(@Nullable String value) { /** * number of successful gets - * + *

* API name: {@code get.exists_total} */ public Builder get_existsTotal(@Nullable String value) { @@ -2765,7 +2765,7 @@ public Builder get_existsTotal(@Nullable String value) { /** * time spent in failed gets - * + *

* API name: {@code get.missing_time} */ public Builder get_missingTime(@Nullable String value) { @@ -2775,7 +2775,7 @@ public Builder get_missingTime(@Nullable String value) { /** * number of failed gets - * + *

* API name: {@code get.missing_total} */ public Builder get_missingTotal(@Nullable String value) { @@ -2785,7 +2785,7 @@ public Builder get_missingTotal(@Nullable String value) { /** * number of current deletions - * + *

* API name: {@code indexing.delete_current} */ public Builder indexing_deleteCurrent(@Nullable String value) { @@ -2795,7 +2795,7 @@ public Builder indexing_deleteCurrent(@Nullable String value) { /** * time spent in deletions - * + *

* API name: {@code indexing.delete_time} */ public Builder indexing_deleteTime(@Nullable String value) { @@ -2805,7 +2805,7 @@ public Builder indexing_deleteTime(@Nullable String value) { /** * number of delete ops - * + *

* API name: {@code indexing.delete_total} */ public Builder indexing_deleteTotal(@Nullable String value) { @@ -2815,7 +2815,7 @@ public Builder indexing_deleteTotal(@Nullable String value) { /** * number of current indexing ops - * + *

* API name: {@code indexing.index_current} */ public Builder indexing_indexCurrent(@Nullable String value) { @@ -2825,7 +2825,7 @@ public Builder indexing_indexCurrent(@Nullable String value) { /** * time spent in indexing - * + *

* API name: {@code indexing.index_time} */ public Builder indexing_indexTime(@Nullable String value) { @@ -2835,7 +2835,7 @@ public Builder indexing_indexTime(@Nullable String value) { /** * number of indexing ops - * + *

* API name: {@code indexing.index_total} */ public Builder indexing_indexTotal(@Nullable String value) { @@ -2845,7 +2845,7 @@ public Builder indexing_indexTotal(@Nullable String value) { /** * number of failed indexing ops - * + *

* API name: {@code indexing.index_failed} */ public Builder indexing_indexFailed(@Nullable String value) { @@ -2855,7 +2855,7 @@ public Builder indexing_indexFailed(@Nullable String value) { /** * number of current merges - * + *

* API name: {@code merges.current} */ public Builder merges_current(@Nullable String value) { @@ -2865,7 +2865,7 @@ public Builder merges_current(@Nullable String value) { /** * number of current merging docs - * + *

* API name: {@code merges.current_docs} */ public Builder merges_currentDocs(@Nullable String value) { @@ -2875,7 +2875,7 @@ public Builder merges_currentDocs(@Nullable String value) { /** * size of current merges - * + *

* API name: {@code merges.current_size} */ public Builder merges_currentSize(@Nullable String value) { @@ -2885,7 +2885,7 @@ public Builder merges_currentSize(@Nullable String value) { /** * number of completed merge ops - * + *

* API name: {@code merges.total} */ public Builder merges_total(@Nullable String value) { @@ -2895,7 +2895,7 @@ public Builder merges_total(@Nullable String value) { /** * docs merged - * + *

* API name: {@code merges.total_docs} */ public Builder merges_totalDocs(@Nullable String value) { @@ -2905,7 +2905,7 @@ public Builder merges_totalDocs(@Nullable String value) { /** * size merged - * + *

* API name: {@code merges.total_size} */ public Builder merges_totalSize(@Nullable String value) { @@ -2915,7 +2915,7 @@ public Builder merges_totalSize(@Nullable String value) { /** * time spent in merges - * + *

* API name: {@code merges.total_time} */ public Builder merges_totalTime(@Nullable String value) { @@ -2925,7 +2925,7 @@ public Builder merges_totalTime(@Nullable String value) { /** * total refreshes - * + *

* API name: {@code refresh.total} */ public Builder refresh_total(@Nullable String value) { @@ -2935,7 +2935,7 @@ public Builder refresh_total(@Nullable String value) { /** * time spent in refreshes - * + *

* API name: {@code refresh.time} */ public Builder refresh_time(@Nullable String value) { @@ -2945,7 +2945,7 @@ public Builder refresh_time(@Nullable String value) { /** * total external refreshes - * + *

* API name: {@code refresh.external_total} */ public Builder refresh_externalTotal(@Nullable String value) { @@ -2955,7 +2955,7 @@ public Builder refresh_externalTotal(@Nullable String value) { /** * time spent in external refreshes - * + *

* API name: {@code refresh.external_time} */ public Builder refresh_externalTime(@Nullable String value) { @@ -2965,7 +2965,7 @@ public Builder refresh_externalTime(@Nullable String value) { /** * number of pending refresh listeners - * + *

* API name: {@code refresh.listeners} */ public Builder refresh_listeners(@Nullable String value) { @@ -2975,7 +2975,7 @@ public Builder refresh_listeners(@Nullable String value) { /** * script compilations - * + *

* API name: {@code script.compilations} */ public Builder script_compilations(@Nullable String value) { @@ -2985,7 +2985,7 @@ public Builder script_compilations(@Nullable String value) { /** * script cache evictions - * + *

* API name: {@code script.cache_evictions} */ public Builder script_cacheEvictions(@Nullable String value) { @@ -2995,7 +2995,7 @@ public Builder script_cacheEvictions(@Nullable String value) { /** * script cache compilation limit triggered - * + *

* API name: {@code script.compilation_limit_triggered} */ public Builder script_compilationLimitTriggered(@Nullable String value) { @@ -3005,7 +3005,7 @@ public Builder script_compilationLimitTriggered(@Nullable String value) { /** * current fetch phase ops - * + *

* API name: {@code search.fetch_current} */ public Builder search_fetchCurrent(@Nullable String value) { @@ -3015,7 +3015,7 @@ public Builder search_fetchCurrent(@Nullable String value) { /** * time spent in fetch phase - * + *

* API name: {@code search.fetch_time} */ public Builder search_fetchTime(@Nullable String value) { @@ -3025,7 +3025,7 @@ public Builder search_fetchTime(@Nullable String value) { /** * total fetch ops - * + *

* API name: {@code search.fetch_total} */ public Builder search_fetchTotal(@Nullable String value) { @@ -3035,7 +3035,7 @@ public Builder search_fetchTotal(@Nullable String value) { /** * open search contexts - * + *

* API name: {@code search.open_contexts} */ public Builder search_openContexts(@Nullable String value) { @@ -3045,7 +3045,7 @@ public Builder search_openContexts(@Nullable String value) { /** * current query phase ops - * + *

* API name: {@code search.query_current} */ public Builder search_queryCurrent(@Nullable String value) { @@ -3055,7 +3055,7 @@ public Builder search_queryCurrent(@Nullable String value) { /** * time spent in query phase - * + *

* API name: {@code search.query_time} */ public Builder search_queryTime(@Nullable String value) { @@ -3065,7 +3065,7 @@ public Builder search_queryTime(@Nullable String value) { /** * total query phase ops - * + *

* API name: {@code search.query_total} */ public Builder search_queryTotal(@Nullable String value) { @@ -3075,7 +3075,7 @@ public Builder search_queryTotal(@Nullable String value) { /** * open scroll contexts - * + *

* API name: {@code search.scroll_current} */ public Builder search_scrollCurrent(@Nullable String value) { @@ -3085,7 +3085,7 @@ public Builder search_scrollCurrent(@Nullable String value) { /** * time scroll contexts held open - * + *

* API name: {@code search.scroll_time} */ public Builder search_scrollTime(@Nullable String value) { @@ -3095,7 +3095,7 @@ public Builder search_scrollTime(@Nullable String value) { /** * completed scroll contexts - * + *

* API name: {@code search.scroll_total} */ public Builder search_scrollTotal(@Nullable String value) { @@ -3105,7 +3105,7 @@ public Builder search_scrollTotal(@Nullable String value) { /** * number of segments - * + *

* API name: {@code segments.count} */ public Builder segments_count(@Nullable String value) { @@ -3115,7 +3115,7 @@ public Builder segments_count(@Nullable String value) { /** * memory used by segments - * + *

* API name: {@code segments.memory} */ public Builder segments_memory(@Nullable String value) { @@ -3125,7 +3125,7 @@ public Builder segments_memory(@Nullable String value) { /** * memory used by index writer - * + *

* API name: {@code segments.index_writer_memory} */ public Builder segments_indexWriterMemory(@Nullable String value) { @@ -3135,7 +3135,7 @@ public Builder segments_indexWriterMemory(@Nullable String value) { /** * memory used by version map - * + *

* API name: {@code segments.version_map_memory} */ public Builder segments_versionMapMemory(@Nullable String value) { @@ -3146,7 +3146,7 @@ public Builder segments_versionMapMemory(@Nullable String value) { /** * memory used by fixed bit sets for nested object field types and export type * filters for types referred in _parent fields - * + *

* API name: {@code segments.fixed_bitset_memory} */ public Builder segments_fixedBitsetMemory(@Nullable String value) { @@ -3156,7 +3156,7 @@ public Builder segments_fixedBitsetMemory(@Nullable String value) { /** * number of current suggest ops - * + *

* API name: {@code suggest.current} */ public Builder suggest_current(@Nullable String value) { @@ -3166,7 +3166,7 @@ public Builder suggest_current(@Nullable String value) { /** * time spend in suggest - * + *

* API name: {@code suggest.time} */ public Builder suggest_time(@Nullable String value) { @@ -3176,7 +3176,7 @@ public Builder suggest_time(@Nullable String value) { /** * number of suggest ops - * + *

* API name: {@code suggest.total} */ public Builder suggest_total(@Nullable String value) { @@ -3186,7 +3186,7 @@ public Builder suggest_total(@Nullable String value) { /** * number of bulk shard ops - * + *

* API name: {@code bulk.total_operations} */ public Builder bulk_totalOperations(@Nullable String value) { @@ -3196,7 +3196,7 @@ public Builder bulk_totalOperations(@Nullable String value) { /** * time spend in shard bulk - * + *

* API name: {@code bulk.total_time} */ public Builder bulk_totalTime(@Nullable String value) { @@ -3206,7 +3206,7 @@ public Builder bulk_totalTime(@Nullable String value) { /** * total size in bytes of shard bulk - * + *

* API name: {@code bulk.total_size_in_bytes} */ public Builder bulk_totalSizeInBytes(@Nullable String value) { @@ -3216,7 +3216,7 @@ public Builder bulk_totalSizeInBytes(@Nullable String value) { /** * average time spend in shard bulk - * + *

* API name: {@code bulk.avg_time} */ public Builder bulk_avgTime(@Nullable String value) { @@ -3226,7 +3226,7 @@ public Builder bulk_avgTime(@Nullable String value) { /** * average size in bytes of shard bulk - * + *

* API name: {@code bulk.avg_size_in_bytes} */ public Builder bulk_avgSizeInBytes(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/pending_tasks/PendingTasksRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/pending_tasks/PendingTasksRecord.java index 9318da3cf..be92d3902 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/pending_tasks/PendingTasksRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/pending_tasks/PendingTasksRecord.java @@ -61,7 +61,7 @@ protected PendingTasksRecord(Builder builder) { /** * task insertion order - * + *

* API name: {@code insertOrder} */ @Nullable @@ -71,7 +71,7 @@ public String insertorder() { /** * how long task has been in queue - * + *

* API name: {@code timeInQueue} */ @Nullable @@ -81,7 +81,7 @@ public String timeinqueue() { /** * task priority - * + *

* API name: {@code priority} */ @Nullable @@ -91,7 +91,7 @@ public String priority() { /** * task source - * + *

* API name: {@code source} */ @Nullable @@ -157,7 +157,7 @@ public static class Builder implements ObjectBuilder { /** * task insertion order - * + *

* API name: {@code insertOrder} */ public Builder insertorder(@Nullable String value) { @@ -167,7 +167,7 @@ public Builder insertorder(@Nullable String value) { /** * how long task has been in queue - * + *

* API name: {@code timeInQueue} */ public Builder timeinqueue(@Nullable String value) { @@ -177,7 +177,7 @@ public Builder timeinqueue(@Nullable String value) { /** * task priority - * + *

* API name: {@code priority} */ public Builder priority(@Nullable String value) { @@ -187,7 +187,7 @@ public Builder priority(@Nullable String value) { /** * task source - * + *

* API name: {@code source} */ public Builder source(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/plugins/PluginsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/plugins/PluginsRecord.java index a35c001da..de6d9bb94 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/plugins/PluginsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/plugins/PluginsRecord.java @@ -69,7 +69,7 @@ protected PluginsRecord(Builder builder) { /** * unique node id - * + *

* API name: {@code id} */ @Nullable @@ -79,7 +79,7 @@ public String id() { /** * node name - * + *

* API name: {@code name} */ @Nullable @@ -89,7 +89,7 @@ public String name() { /** * component - * + *

* API name: {@code component} */ @Nullable @@ -99,7 +99,7 @@ public String component() { /** * component version - * + *

* API name: {@code version} */ @Nullable @@ -109,7 +109,7 @@ public String version() { /** * plugin details - * + *

* API name: {@code description} */ @Nullable @@ -119,7 +119,7 @@ public String description() { /** * plugin type - * + *

* API name: {@code type} */ @Nullable @@ -203,7 +203,7 @@ public static class Builder implements ObjectBuilder { /** * unique node id - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -213,7 +213,7 @@ public Builder id(@Nullable String value) { /** * node name - * + *

* API name: {@code name} */ public Builder name(@Nullable String value) { @@ -223,7 +223,7 @@ public Builder name(@Nullable String value) { /** * component - * + *

* API name: {@code component} */ public Builder component(@Nullable String value) { @@ -233,7 +233,7 @@ public Builder component(@Nullable String value) { /** * component version - * + *

* API name: {@code version} */ public Builder version(@Nullable String value) { @@ -243,7 +243,7 @@ public Builder version(@Nullable String value) { /** * plugin details - * + *

* API name: {@code description} */ public Builder description(@Nullable String value) { @@ -253,7 +253,7 @@ public Builder description(@Nullable String value) { /** * plugin type - * + *

* API name: {@code type} */ public Builder type(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/recovery/RecoveryRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/recovery/RecoveryRecord.java index 8beac52d1..c9c64fc27 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/recovery/RecoveryRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/recovery/RecoveryRecord.java @@ -150,7 +150,7 @@ protected RecoveryRecord(Builder builder) { /** * index name - * + *

* API name: {@code index} */ @Nullable @@ -160,7 +160,7 @@ public String index() { /** * shard name - * + *

* API name: {@code shard} */ @Nullable @@ -170,7 +170,7 @@ public String shard() { /** * recovery start time - * + *

* API name: {@code start_time} */ @Nullable @@ -180,7 +180,7 @@ public String startTime() { /** * recovery start time in epoch milliseconds - * + *

* API name: {@code start_time_millis} */ @Nullable @@ -190,7 +190,7 @@ public String startTimeMillis() { /** * recovery stop time - * + *

* API name: {@code stop_time} */ @Nullable @@ -200,7 +200,7 @@ public String stopTime() { /** * recovery stop time in epoch milliseconds - * + *

* API name: {@code stop_time_millis} */ @Nullable @@ -210,7 +210,7 @@ public String stopTimeMillis() { /** * recovery time - * + *

* API name: {@code time} */ @Nullable @@ -220,7 +220,7 @@ public String time() { /** * recovery type - * + *

* API name: {@code type} */ @Nullable @@ -230,7 +230,7 @@ public String type() { /** * recovery stage - * + *

* API name: {@code stage} */ @Nullable @@ -240,7 +240,7 @@ public String stage() { /** * source host - * + *

* API name: {@code source_host} */ @Nullable @@ -250,7 +250,7 @@ public String sourceHost() { /** * source node name - * + *

* API name: {@code source_node} */ @Nullable @@ -260,7 +260,7 @@ public String sourceNode() { /** * target host - * + *

* API name: {@code target_host} */ @Nullable @@ -270,7 +270,7 @@ public String targetHost() { /** * target node name - * + *

* API name: {@code target_node} */ @Nullable @@ -280,7 +280,7 @@ public String targetNode() { /** * repository - * + *

* API name: {@code repository} */ @Nullable @@ -290,7 +290,7 @@ public String repository() { /** * snapshot - * + *

* API name: {@code snapshot} */ @Nullable @@ -300,7 +300,7 @@ public String snapshot() { /** * number of files to recover - * + *

* API name: {@code files} */ @Nullable @@ -310,7 +310,7 @@ public String files() { /** * files recovered - * + *

* API name: {@code files_recovered} */ @Nullable @@ -320,7 +320,7 @@ public String filesRecovered() { /** * percent of files recovered - * + *

* API name: {@code files_percent} */ @Nullable @@ -330,7 +330,7 @@ public JsonValue filesPercent() { /** * total number of files - * + *

* API name: {@code files_total} */ @Nullable @@ -340,7 +340,7 @@ public String filesTotal() { /** * number of bytes to recover - * + *

* API name: {@code bytes} */ @Nullable @@ -350,7 +350,7 @@ public String bytes() { /** * bytes recovered - * + *

* API name: {@code bytes_recovered} */ @Nullable @@ -360,7 +360,7 @@ public String bytesRecovered() { /** * percent of bytes recovered - * + *

* API name: {@code bytes_percent} */ @Nullable @@ -370,7 +370,7 @@ public JsonValue bytesPercent() { /** * total number of bytes - * + *

* API name: {@code bytes_total} */ @Nullable @@ -380,7 +380,7 @@ public String bytesTotal() { /** * number of translog ops to recover - * + *

* API name: {@code translog_ops} */ @Nullable @@ -390,7 +390,7 @@ public String translogOps() { /** * translog ops recovered - * + *

* API name: {@code translog_ops_recovered} */ @Nullable @@ -400,7 +400,7 @@ public String translogOpsRecovered() { /** * percent of translog ops recovered - * + *

* API name: {@code translog_ops_percent} */ @Nullable @@ -664,7 +664,7 @@ public static class Builder implements ObjectBuilder { /** * index name - * + *

* API name: {@code index} */ public Builder index(@Nullable String value) { @@ -674,7 +674,7 @@ public Builder index(@Nullable String value) { /** * shard name - * + *

* API name: {@code shard} */ public Builder shard(@Nullable String value) { @@ -684,7 +684,7 @@ public Builder shard(@Nullable String value) { /** * recovery start time - * + *

* API name: {@code start_time} */ public Builder startTime(@Nullable String value) { @@ -694,7 +694,7 @@ public Builder startTime(@Nullable String value) { /** * recovery start time in epoch milliseconds - * + *

* API name: {@code start_time_millis} */ public Builder startTimeMillis(@Nullable String value) { @@ -704,7 +704,7 @@ public Builder startTimeMillis(@Nullable String value) { /** * recovery stop time - * + *

* API name: {@code stop_time} */ public Builder stopTime(@Nullable String value) { @@ -714,7 +714,7 @@ public Builder stopTime(@Nullable String value) { /** * recovery stop time in epoch milliseconds - * + *

* API name: {@code stop_time_millis} */ public Builder stopTimeMillis(@Nullable String value) { @@ -724,7 +724,7 @@ public Builder stopTimeMillis(@Nullable String value) { /** * recovery time - * + *

* API name: {@code time} */ public Builder time(@Nullable String value) { @@ -734,7 +734,7 @@ public Builder time(@Nullable String value) { /** * recovery type - * + *

* API name: {@code type} */ public Builder type(@Nullable String value) { @@ -744,7 +744,7 @@ public Builder type(@Nullable String value) { /** * recovery stage - * + *

* API name: {@code stage} */ public Builder stage(@Nullable String value) { @@ -754,7 +754,7 @@ public Builder stage(@Nullable String value) { /** * source host - * + *

* API name: {@code source_host} */ public Builder sourceHost(@Nullable String value) { @@ -764,7 +764,7 @@ public Builder sourceHost(@Nullable String value) { /** * source node name - * + *

* API name: {@code source_node} */ public Builder sourceNode(@Nullable String value) { @@ -774,7 +774,7 @@ public Builder sourceNode(@Nullable String value) { /** * target host - * + *

* API name: {@code target_host} */ public Builder targetHost(@Nullable String value) { @@ -784,7 +784,7 @@ public Builder targetHost(@Nullable String value) { /** * target node name - * + *

* API name: {@code target_node} */ public Builder targetNode(@Nullable String value) { @@ -794,7 +794,7 @@ public Builder targetNode(@Nullable String value) { /** * repository - * + *

* API name: {@code repository} */ public Builder repository(@Nullable String value) { @@ -804,7 +804,7 @@ public Builder repository(@Nullable String value) { /** * snapshot - * + *

* API name: {@code snapshot} */ public Builder snapshot(@Nullable String value) { @@ -814,7 +814,7 @@ public Builder snapshot(@Nullable String value) { /** * number of files to recover - * + *

* API name: {@code files} */ public Builder files(@Nullable String value) { @@ -824,7 +824,7 @@ public Builder files(@Nullable String value) { /** * files recovered - * + *

* API name: {@code files_recovered} */ public Builder filesRecovered(@Nullable String value) { @@ -834,7 +834,7 @@ public Builder filesRecovered(@Nullable String value) { /** * percent of files recovered - * + *

* API name: {@code files_percent} */ public Builder filesPercent(@Nullable JsonValue value) { @@ -844,7 +844,7 @@ public Builder filesPercent(@Nullable JsonValue value) { /** * total number of files - * + *

* API name: {@code files_total} */ public Builder filesTotal(@Nullable String value) { @@ -854,7 +854,7 @@ public Builder filesTotal(@Nullable String value) { /** * number of bytes to recover - * + *

* API name: {@code bytes} */ public Builder bytes(@Nullable String value) { @@ -864,7 +864,7 @@ public Builder bytes(@Nullable String value) { /** * bytes recovered - * + *

* API name: {@code bytes_recovered} */ public Builder bytesRecovered(@Nullable String value) { @@ -874,7 +874,7 @@ public Builder bytesRecovered(@Nullable String value) { /** * percent of bytes recovered - * + *

* API name: {@code bytes_percent} */ public Builder bytesPercent(@Nullable JsonValue value) { @@ -884,7 +884,7 @@ public Builder bytesPercent(@Nullable JsonValue value) { /** * total number of bytes - * + *

* API name: {@code bytes_total} */ public Builder bytesTotal(@Nullable String value) { @@ -894,7 +894,7 @@ public Builder bytesTotal(@Nullable String value) { /** * number of translog ops to recover - * + *

* API name: {@code translog_ops} */ public Builder translogOps(@Nullable String value) { @@ -904,7 +904,7 @@ public Builder translogOps(@Nullable String value) { /** * translog ops recovered - * + *

* API name: {@code translog_ops_recovered} */ public Builder translogOpsRecovered(@Nullable String value) { @@ -914,7 +914,7 @@ public Builder translogOpsRecovered(@Nullable String value) { /** * percent of translog ops recovered - * + *

* API name: {@code translog_ops_percent} */ public Builder translogOpsPercent(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/repositories/RepositoriesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/repositories/RepositoriesRecord.java index 1c65ff8b0..4f8a3cdc3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/repositories/RepositoriesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/repositories/RepositoriesRecord.java @@ -53,7 +53,7 @@ protected RepositoriesRecord(Builder builder) { /** * unique repository id - * + *

* API name: {@code id} */ @Nullable @@ -63,7 +63,7 @@ public String id() { /** * repository type - * + *

* API name: {@code type} */ @Nullable @@ -111,7 +111,7 @@ public static class Builder implements ObjectBuilder { /** * unique repository id - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -121,7 +121,7 @@ public Builder id(@Nullable String value) { /** * repository type - * + *

* API name: {@code type} */ public Builder type(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/segments/SegmentsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/segments/SegmentsRecord.java index 3c1e719e6..2c57425f5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/segments/SegmentsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/segments/SegmentsRecord.java @@ -106,7 +106,7 @@ protected SegmentsRecord(Builder builder) { /** * index name - * + *

* API name: {@code index} */ @Nullable @@ -116,7 +116,7 @@ public String index() { /** * shard name - * + *

* API name: {@code shard} */ @Nullable @@ -126,7 +126,7 @@ public String shard() { /** * primary or replica - * + *

* API name: {@code prirep} */ @Nullable @@ -136,7 +136,7 @@ public String prirep() { /** * ip of node where it lives - * + *

* API name: {@code ip} */ @Nullable @@ -146,7 +146,7 @@ public String ip() { /** * unique id of node where it lives - * + *

* API name: {@code id} */ @Nullable @@ -156,7 +156,7 @@ public String id() { /** * segment name - * + *

* API name: {@code segment} */ @Nullable @@ -166,7 +166,7 @@ public String segment() { /** * segment generation - * + *

* API name: {@code generation} */ @Nullable @@ -176,7 +176,7 @@ public String generation() { /** * number of docs in segment - * + *

* API name: {@code docs.count} */ @Nullable @@ -186,7 +186,7 @@ public String docs_count() { /** * number of deleted docs in segment - * + *

* API name: {@code docs.deleted} */ @Nullable @@ -196,7 +196,7 @@ public String docs_deleted() { /** * segment size in bytes - * + *

* API name: {@code size} */ @Nullable @@ -206,7 +206,7 @@ public JsonValue size() { /** * segment memory in bytes - * + *

* API name: {@code size.memory} */ @Nullable @@ -216,7 +216,7 @@ public JsonValue size_memory() { /** * is segment committed - * + *

* API name: {@code committed} */ @Nullable @@ -226,7 +226,7 @@ public String committed() { /** * is segment searched - * + *

* API name: {@code searchable} */ @Nullable @@ -236,7 +236,7 @@ public String searchable() { /** * version - * + *

* API name: {@code version} */ @Nullable @@ -246,7 +246,7 @@ public String version() { /** * is segment compound - * + *

* API name: {@code compound} */ @Nullable @@ -411,7 +411,7 @@ public static class Builder implements ObjectBuilder { /** * index name - * + *

* API name: {@code index} */ public Builder index(@Nullable String value) { @@ -421,7 +421,7 @@ public Builder index(@Nullable String value) { /** * shard name - * + *

* API name: {@code shard} */ public Builder shard(@Nullable String value) { @@ -431,7 +431,7 @@ public Builder shard(@Nullable String value) { /** * primary or replica - * + *

* API name: {@code prirep} */ public Builder prirep(@Nullable String value) { @@ -441,7 +441,7 @@ public Builder prirep(@Nullable String value) { /** * ip of node where it lives - * + *

* API name: {@code ip} */ public Builder ip(@Nullable String value) { @@ -451,7 +451,7 @@ public Builder ip(@Nullable String value) { /** * unique id of node where it lives - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -461,7 +461,7 @@ public Builder id(@Nullable String value) { /** * segment name - * + *

* API name: {@code segment} */ public Builder segment(@Nullable String value) { @@ -471,7 +471,7 @@ public Builder segment(@Nullable String value) { /** * segment generation - * + *

* API name: {@code generation} */ public Builder generation(@Nullable String value) { @@ -481,7 +481,7 @@ public Builder generation(@Nullable String value) { /** * number of docs in segment - * + *

* API name: {@code docs.count} */ public Builder docs_count(@Nullable String value) { @@ -491,7 +491,7 @@ public Builder docs_count(@Nullable String value) { /** * number of deleted docs in segment - * + *

* API name: {@code docs.deleted} */ public Builder docs_deleted(@Nullable String value) { @@ -501,7 +501,7 @@ public Builder docs_deleted(@Nullable String value) { /** * segment size in bytes - * + *

* API name: {@code size} */ public Builder size(@Nullable JsonValue value) { @@ -511,7 +511,7 @@ public Builder size(@Nullable JsonValue value) { /** * segment memory in bytes - * + *

* API name: {@code size.memory} */ public Builder size_memory(@Nullable JsonValue value) { @@ -521,7 +521,7 @@ public Builder size_memory(@Nullable JsonValue value) { /** * is segment committed - * + *

* API name: {@code committed} */ public Builder committed(@Nullable String value) { @@ -531,7 +531,7 @@ public Builder committed(@Nullable String value) { /** * is segment searched - * + *

* API name: {@code searchable} */ public Builder searchable(@Nullable String value) { @@ -541,7 +541,7 @@ public Builder searchable(@Nullable String value) { /** * version - * + *

* API name: {@code version} */ public Builder version(@Nullable String value) { @@ -551,7 +551,7 @@ public Builder version(@Nullable String value) { /** * is segment compound - * + *

* API name: {@code compound} */ public Builder compound(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/shards/ShardsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/shards/ShardsRecord.java index 80ae62194..ea3eb1978 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/shards/ShardsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/shards/ShardsRecord.java @@ -349,7 +349,7 @@ protected ShardsRecord(Builder builder) { /** * index name - * + *

* API name: {@code index} */ @Nullable @@ -359,7 +359,7 @@ public String index() { /** * shard name - * + *

* API name: {@code shard} */ @Nullable @@ -369,7 +369,7 @@ public String shard() { /** * primary or replica - * + *

* API name: {@code prirep} */ @Nullable @@ -379,7 +379,7 @@ public String prirep() { /** * shard state - * + *

* API name: {@code state} */ @Nullable @@ -389,7 +389,7 @@ public String state() { /** * number of docs in shard - * + *

* API name: {@code docs} */ @Nullable @@ -399,7 +399,7 @@ public String docs() { /** * store size of shard (how much disk it uses) - * + *

* API name: {@code store} */ @Nullable @@ -409,7 +409,7 @@ public String store() { /** * ip of node where it lives - * + *

* API name: {@code ip} */ @Nullable @@ -419,7 +419,7 @@ public String ip() { /** * unique id of node where it lives - * + *

* API name: {@code id} */ @Nullable @@ -429,7 +429,7 @@ public String id() { /** * name of node where it lives - * + *

* API name: {@code node} */ @Nullable @@ -439,7 +439,7 @@ public String node() { /** * sync id - * + *

* API name: {@code sync_id} */ @Nullable @@ -449,7 +449,7 @@ public String syncId() { /** * reason shard is unassigned - * + *

* API name: {@code unassigned.reason} */ @Nullable @@ -459,7 +459,7 @@ public String unassigned_reason() { /** * time shard became unassigned (UTC) - * + *

* API name: {@code unassigned.at} */ @Nullable @@ -469,7 +469,7 @@ public String unassigned_at() { /** * time has been unassigned - * + *

* API name: {@code unassigned.for} */ @Nullable @@ -479,7 +479,7 @@ public String unassigned_for() { /** * additional details as to why the shard became unassigned - * + *

* API name: {@code unassigned.details} */ @Nullable @@ -489,7 +489,7 @@ public String unassigned_details() { /** * recovery source type - * + *

* API name: {@code recoverysource.type} */ @Nullable @@ -499,7 +499,7 @@ public String recoverysource_type() { /** * size of completion - * + *

* API name: {@code completion.size} */ @Nullable @@ -509,7 +509,7 @@ public String completion_size() { /** * used fielddata cache - * + *

* API name: {@code fielddata.memory_size} */ @Nullable @@ -519,7 +519,7 @@ public String fielddata_memorySize() { /** * fielddata evictions - * + *

* API name: {@code fielddata.evictions} */ @Nullable @@ -529,7 +529,7 @@ public String fielddata_evictions() { /** * used query cache - * + *

* API name: {@code query_cache.memory_size} */ @Nullable @@ -539,7 +539,7 @@ public String queryCache_memorySize() { /** * query cache evictions - * + *

* API name: {@code query_cache.evictions} */ @Nullable @@ -549,7 +549,7 @@ public String queryCache_evictions() { /** * number of flushes - * + *

* API name: {@code flush.total} */ @Nullable @@ -559,7 +559,7 @@ public String flush_total() { /** * time spent in flush - * + *

* API name: {@code flush.total_time} */ @Nullable @@ -569,7 +569,7 @@ public String flush_totalTime() { /** * number of current get ops - * + *

* API name: {@code get.current} */ @Nullable @@ -579,7 +579,7 @@ public String get_current() { /** * time spent in get - * + *

* API name: {@code get.time} */ @Nullable @@ -589,7 +589,7 @@ public String get_time() { /** * number of get ops - * + *

* API name: {@code get.total} */ @Nullable @@ -599,7 +599,7 @@ public String get_total() { /** * time spent in successful gets - * + *

* API name: {@code get.exists_time} */ @Nullable @@ -609,7 +609,7 @@ public String get_existsTime() { /** * number of successful gets - * + *

* API name: {@code get.exists_total} */ @Nullable @@ -619,7 +619,7 @@ public String get_existsTotal() { /** * time spent in failed gets - * + *

* API name: {@code get.missing_time} */ @Nullable @@ -629,7 +629,7 @@ public String get_missingTime() { /** * number of failed gets - * + *

* API name: {@code get.missing_total} */ @Nullable @@ -639,7 +639,7 @@ public String get_missingTotal() { /** * number of current deletions - * + *

* API name: {@code indexing.delete_current} */ @Nullable @@ -649,7 +649,7 @@ public String indexing_deleteCurrent() { /** * time spent in deletions - * + *

* API name: {@code indexing.delete_time} */ @Nullable @@ -659,7 +659,7 @@ public String indexing_deleteTime() { /** * number of delete ops - * + *

* API name: {@code indexing.delete_total} */ @Nullable @@ -669,7 +669,7 @@ public String indexing_deleteTotal() { /** * number of current indexing ops - * + *

* API name: {@code indexing.index_current} */ @Nullable @@ -679,7 +679,7 @@ public String indexing_indexCurrent() { /** * time spent in indexing - * + *

* API name: {@code indexing.index_time} */ @Nullable @@ -689,7 +689,7 @@ public String indexing_indexTime() { /** * number of indexing ops - * + *

* API name: {@code indexing.index_total} */ @Nullable @@ -699,7 +699,7 @@ public String indexing_indexTotal() { /** * number of failed indexing ops - * + *

* API name: {@code indexing.index_failed} */ @Nullable @@ -709,7 +709,7 @@ public String indexing_indexFailed() { /** * number of current merges - * + *

* API name: {@code merges.current} */ @Nullable @@ -719,7 +719,7 @@ public String merges_current() { /** * number of current merging docs - * + *

* API name: {@code merges.current_docs} */ @Nullable @@ -729,7 +729,7 @@ public String merges_currentDocs() { /** * size of current merges - * + *

* API name: {@code merges.current_size} */ @Nullable @@ -739,7 +739,7 @@ public String merges_currentSize() { /** * number of completed merge ops - * + *

* API name: {@code merges.total} */ @Nullable @@ -749,7 +749,7 @@ public String merges_total() { /** * docs merged - * + *

* API name: {@code merges.total_docs} */ @Nullable @@ -759,7 +759,7 @@ public String merges_totalDocs() { /** * size merged - * + *

* API name: {@code merges.total_size} */ @Nullable @@ -769,7 +769,7 @@ public String merges_totalSize() { /** * time spent in merges - * + *

* API name: {@code merges.total_time} */ @Nullable @@ -779,7 +779,7 @@ public String merges_totalTime() { /** * total refreshes - * + *

* API name: {@code refresh.total} */ @Nullable @@ -789,7 +789,7 @@ public String refresh_total() { /** * time spent in refreshes - * + *

* API name: {@code refresh.time} */ @Nullable @@ -799,7 +799,7 @@ public String refresh_time() { /** * total external refreshes - * + *

* API name: {@code refresh.external_total} */ @Nullable @@ -809,7 +809,7 @@ public String refresh_externalTotal() { /** * time spent in external refreshes - * + *

* API name: {@code refresh.external_time} */ @Nullable @@ -819,7 +819,7 @@ public String refresh_externalTime() { /** * number of pending refresh listeners - * + *

* API name: {@code refresh.listeners} */ @Nullable @@ -829,7 +829,7 @@ public String refresh_listeners() { /** * current fetch phase ops - * + *

* API name: {@code search.fetch_current} */ @Nullable @@ -839,7 +839,7 @@ public String search_fetchCurrent() { /** * time spent in fetch phase - * + *

* API name: {@code search.fetch_time} */ @Nullable @@ -849,7 +849,7 @@ public String search_fetchTime() { /** * total fetch ops - * + *

* API name: {@code search.fetch_total} */ @Nullable @@ -859,7 +859,7 @@ public String search_fetchTotal() { /** * open search contexts - * + *

* API name: {@code search.open_contexts} */ @Nullable @@ -869,7 +869,7 @@ public String search_openContexts() { /** * current query phase ops - * + *

* API name: {@code search.query_current} */ @Nullable @@ -879,7 +879,7 @@ public String search_queryCurrent() { /** * time spent in query phase - * + *

* API name: {@code search.query_time} */ @Nullable @@ -889,7 +889,7 @@ public String search_queryTime() { /** * total query phase ops - * + *

* API name: {@code search.query_total} */ @Nullable @@ -899,7 +899,7 @@ public String search_queryTotal() { /** * open scroll contexts - * + *

* API name: {@code search.scroll_current} */ @Nullable @@ -909,7 +909,7 @@ public String search_scrollCurrent() { /** * time scroll contexts held open - * + *

* API name: {@code search.scroll_time} */ @Nullable @@ -919,7 +919,7 @@ public String search_scrollTime() { /** * completed scroll contexts - * + *

* API name: {@code search.scroll_total} */ @Nullable @@ -929,7 +929,7 @@ public String search_scrollTotal() { /** * number of segments - * + *

* API name: {@code segments.count} */ @Nullable @@ -939,7 +939,7 @@ public String segments_count() { /** * memory used by segments - * + *

* API name: {@code segments.memory} */ @Nullable @@ -949,7 +949,7 @@ public String segments_memory() { /** * memory used by index writer - * + *

* API name: {@code segments.index_writer_memory} */ @Nullable @@ -959,7 +959,7 @@ public String segments_indexWriterMemory() { /** * memory used by version map - * + *

* API name: {@code segments.version_map_memory} */ @Nullable @@ -970,7 +970,7 @@ public String segments_versionMapMemory() { /** * memory used by fixed bit sets for nested object field types and export type * filters for types referred in _parent fields - * + *

* API name: {@code segments.fixed_bitset_memory} */ @Nullable @@ -980,7 +980,7 @@ public String segments_fixedBitsetMemory() { /** * max sequence number - * + *

* API name: {@code seq_no.max} */ @Nullable @@ -990,7 +990,7 @@ public String seqNo_max() { /** * local checkpoint - * + *

* API name: {@code seq_no.local_checkpoint} */ @Nullable @@ -1000,7 +1000,7 @@ public String seqNo_localCheckpoint() { /** * global checkpoint - * + *

* API name: {@code seq_no.global_checkpoint} */ @Nullable @@ -1010,7 +1010,7 @@ public String seqNo_globalCheckpoint() { /** * current warmer ops - * + *

* API name: {@code warmer.current} */ @Nullable @@ -1020,7 +1020,7 @@ public String warmer_current() { /** * total warmer ops - * + *

* API name: {@code warmer.total} */ @Nullable @@ -1030,7 +1030,7 @@ public String warmer_total() { /** * time spent in warmers - * + *

* API name: {@code warmer.total_time} */ @Nullable @@ -1040,7 +1040,7 @@ public String warmer_totalTime() { /** * shard data path - * + *

* API name: {@code path.data} */ @Nullable @@ -1050,7 +1050,7 @@ public String path_data() { /** * shard state path - * + *

* API name: {@code path.state} */ @Nullable @@ -1060,7 +1060,7 @@ public String path_state() { /** * number of bulk shard ops - * + *

* API name: {@code bulk.total_operations} */ @Nullable @@ -1070,7 +1070,7 @@ public String bulk_totalOperations() { /** * time spend in shard bulk - * + *

* API name: {@code bulk.total_time} */ @Nullable @@ -1080,7 +1080,7 @@ public String bulk_totalTime() { /** * total size in bytes of shard bulk - * + *

* API name: {@code bulk.total_size_in_bytes} */ @Nullable @@ -1090,7 +1090,7 @@ public String bulk_totalSizeInBytes() { /** * average time spend in shard bulk - * + *

* API name: {@code bulk.avg_time} */ @Nullable @@ -1100,7 +1100,7 @@ public String bulk_avgTime() { /** * avg size in bytes of shard bulk - * + *

* API name: {@code bulk.avg_size_in_bytes} */ @Nullable @@ -1814,7 +1814,7 @@ public static class Builder implements ObjectBuilder { /** * index name - * + *

* API name: {@code index} */ public Builder index(@Nullable String value) { @@ -1824,7 +1824,7 @@ public Builder index(@Nullable String value) { /** * shard name - * + *

* API name: {@code shard} */ public Builder shard(@Nullable String value) { @@ -1834,7 +1834,7 @@ public Builder shard(@Nullable String value) { /** * primary or replica - * + *

* API name: {@code prirep} */ public Builder prirep(@Nullable String value) { @@ -1844,7 +1844,7 @@ public Builder prirep(@Nullable String value) { /** * shard state - * + *

* API name: {@code state} */ public Builder state(@Nullable String value) { @@ -1854,7 +1854,7 @@ public Builder state(@Nullable String value) { /** * number of docs in shard - * + *

* API name: {@code docs} */ public Builder docs(@Nullable String value) { @@ -1864,7 +1864,7 @@ public Builder docs(@Nullable String value) { /** * store size of shard (how much disk it uses) - * + *

* API name: {@code store} */ public Builder store(@Nullable String value) { @@ -1874,7 +1874,7 @@ public Builder store(@Nullable String value) { /** * ip of node where it lives - * + *

* API name: {@code ip} */ public Builder ip(@Nullable String value) { @@ -1884,7 +1884,7 @@ public Builder ip(@Nullable String value) { /** * unique id of node where it lives - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -1894,7 +1894,7 @@ public Builder id(@Nullable String value) { /** * name of node where it lives - * + *

* API name: {@code node} */ public Builder node(@Nullable String value) { @@ -1904,7 +1904,7 @@ public Builder node(@Nullable String value) { /** * sync id - * + *

* API name: {@code sync_id} */ public Builder syncId(@Nullable String value) { @@ -1914,7 +1914,7 @@ public Builder syncId(@Nullable String value) { /** * reason shard is unassigned - * + *

* API name: {@code unassigned.reason} */ public Builder unassigned_reason(@Nullable String value) { @@ -1924,7 +1924,7 @@ public Builder unassigned_reason(@Nullable String value) { /** * time shard became unassigned (UTC) - * + *

* API name: {@code unassigned.at} */ public Builder unassigned_at(@Nullable String value) { @@ -1934,7 +1934,7 @@ public Builder unassigned_at(@Nullable String value) { /** * time has been unassigned - * + *

* API name: {@code unassigned.for} */ public Builder unassigned_for(@Nullable String value) { @@ -1944,7 +1944,7 @@ public Builder unassigned_for(@Nullable String value) { /** * additional details as to why the shard became unassigned - * + *

* API name: {@code unassigned.details} */ public Builder unassigned_details(@Nullable String value) { @@ -1954,7 +1954,7 @@ public Builder unassigned_details(@Nullable String value) { /** * recovery source type - * + *

* API name: {@code recoverysource.type} */ public Builder recoverysource_type(@Nullable String value) { @@ -1964,7 +1964,7 @@ public Builder recoverysource_type(@Nullable String value) { /** * size of completion - * + *

* API name: {@code completion.size} */ public Builder completion_size(@Nullable String value) { @@ -1974,7 +1974,7 @@ public Builder completion_size(@Nullable String value) { /** * used fielddata cache - * + *

* API name: {@code fielddata.memory_size} */ public Builder fielddata_memorySize(@Nullable String value) { @@ -1984,7 +1984,7 @@ public Builder fielddata_memorySize(@Nullable String value) { /** * fielddata evictions - * + *

* API name: {@code fielddata.evictions} */ public Builder fielddata_evictions(@Nullable String value) { @@ -1994,7 +1994,7 @@ public Builder fielddata_evictions(@Nullable String value) { /** * used query cache - * + *

* API name: {@code query_cache.memory_size} */ public Builder queryCache_memorySize(@Nullable String value) { @@ -2004,7 +2004,7 @@ public Builder queryCache_memorySize(@Nullable String value) { /** * query cache evictions - * + *

* API name: {@code query_cache.evictions} */ public Builder queryCache_evictions(@Nullable String value) { @@ -2014,7 +2014,7 @@ public Builder queryCache_evictions(@Nullable String value) { /** * number of flushes - * + *

* API name: {@code flush.total} */ public Builder flush_total(@Nullable String value) { @@ -2024,7 +2024,7 @@ public Builder flush_total(@Nullable String value) { /** * time spent in flush - * + *

* API name: {@code flush.total_time} */ public Builder flush_totalTime(@Nullable String value) { @@ -2034,7 +2034,7 @@ public Builder flush_totalTime(@Nullable String value) { /** * number of current get ops - * + *

* API name: {@code get.current} */ public Builder get_current(@Nullable String value) { @@ -2044,7 +2044,7 @@ public Builder get_current(@Nullable String value) { /** * time spent in get - * + *

* API name: {@code get.time} */ public Builder get_time(@Nullable String value) { @@ -2054,7 +2054,7 @@ public Builder get_time(@Nullable String value) { /** * number of get ops - * + *

* API name: {@code get.total} */ public Builder get_total(@Nullable String value) { @@ -2064,7 +2064,7 @@ public Builder get_total(@Nullable String value) { /** * time spent in successful gets - * + *

* API name: {@code get.exists_time} */ public Builder get_existsTime(@Nullable String value) { @@ -2074,7 +2074,7 @@ public Builder get_existsTime(@Nullable String value) { /** * number of successful gets - * + *

* API name: {@code get.exists_total} */ public Builder get_existsTotal(@Nullable String value) { @@ -2084,7 +2084,7 @@ public Builder get_existsTotal(@Nullable String value) { /** * time spent in failed gets - * + *

* API name: {@code get.missing_time} */ public Builder get_missingTime(@Nullable String value) { @@ -2094,7 +2094,7 @@ public Builder get_missingTime(@Nullable String value) { /** * number of failed gets - * + *

* API name: {@code get.missing_total} */ public Builder get_missingTotal(@Nullable String value) { @@ -2104,7 +2104,7 @@ public Builder get_missingTotal(@Nullable String value) { /** * number of current deletions - * + *

* API name: {@code indexing.delete_current} */ public Builder indexing_deleteCurrent(@Nullable String value) { @@ -2114,7 +2114,7 @@ public Builder indexing_deleteCurrent(@Nullable String value) { /** * time spent in deletions - * + *

* API name: {@code indexing.delete_time} */ public Builder indexing_deleteTime(@Nullable String value) { @@ -2124,7 +2124,7 @@ public Builder indexing_deleteTime(@Nullable String value) { /** * number of delete ops - * + *

* API name: {@code indexing.delete_total} */ public Builder indexing_deleteTotal(@Nullable String value) { @@ -2134,7 +2134,7 @@ public Builder indexing_deleteTotal(@Nullable String value) { /** * number of current indexing ops - * + *

* API name: {@code indexing.index_current} */ public Builder indexing_indexCurrent(@Nullable String value) { @@ -2144,7 +2144,7 @@ public Builder indexing_indexCurrent(@Nullable String value) { /** * time spent in indexing - * + *

* API name: {@code indexing.index_time} */ public Builder indexing_indexTime(@Nullable String value) { @@ -2154,7 +2154,7 @@ public Builder indexing_indexTime(@Nullable String value) { /** * number of indexing ops - * + *

* API name: {@code indexing.index_total} */ public Builder indexing_indexTotal(@Nullable String value) { @@ -2164,7 +2164,7 @@ public Builder indexing_indexTotal(@Nullable String value) { /** * number of failed indexing ops - * + *

* API name: {@code indexing.index_failed} */ public Builder indexing_indexFailed(@Nullable String value) { @@ -2174,7 +2174,7 @@ public Builder indexing_indexFailed(@Nullable String value) { /** * number of current merges - * + *

* API name: {@code merges.current} */ public Builder merges_current(@Nullable String value) { @@ -2184,7 +2184,7 @@ public Builder merges_current(@Nullable String value) { /** * number of current merging docs - * + *

* API name: {@code merges.current_docs} */ public Builder merges_currentDocs(@Nullable String value) { @@ -2194,7 +2194,7 @@ public Builder merges_currentDocs(@Nullable String value) { /** * size of current merges - * + *

* API name: {@code merges.current_size} */ public Builder merges_currentSize(@Nullable String value) { @@ -2204,7 +2204,7 @@ public Builder merges_currentSize(@Nullable String value) { /** * number of completed merge ops - * + *

* API name: {@code merges.total} */ public Builder merges_total(@Nullable String value) { @@ -2214,7 +2214,7 @@ public Builder merges_total(@Nullable String value) { /** * docs merged - * + *

* API name: {@code merges.total_docs} */ public Builder merges_totalDocs(@Nullable String value) { @@ -2224,7 +2224,7 @@ public Builder merges_totalDocs(@Nullable String value) { /** * size merged - * + *

* API name: {@code merges.total_size} */ public Builder merges_totalSize(@Nullable String value) { @@ -2234,7 +2234,7 @@ public Builder merges_totalSize(@Nullable String value) { /** * time spent in merges - * + *

* API name: {@code merges.total_time} */ public Builder merges_totalTime(@Nullable String value) { @@ -2244,7 +2244,7 @@ public Builder merges_totalTime(@Nullable String value) { /** * total refreshes - * + *

* API name: {@code refresh.total} */ public Builder refresh_total(@Nullable String value) { @@ -2254,7 +2254,7 @@ public Builder refresh_total(@Nullable String value) { /** * time spent in refreshes - * + *

* API name: {@code refresh.time} */ public Builder refresh_time(@Nullable String value) { @@ -2264,7 +2264,7 @@ public Builder refresh_time(@Nullable String value) { /** * total external refreshes - * + *

* API name: {@code refresh.external_total} */ public Builder refresh_externalTotal(@Nullable String value) { @@ -2274,7 +2274,7 @@ public Builder refresh_externalTotal(@Nullable String value) { /** * time spent in external refreshes - * + *

* API name: {@code refresh.external_time} */ public Builder refresh_externalTime(@Nullable String value) { @@ -2284,7 +2284,7 @@ public Builder refresh_externalTime(@Nullable String value) { /** * number of pending refresh listeners - * + *

* API name: {@code refresh.listeners} */ public Builder refresh_listeners(@Nullable String value) { @@ -2294,7 +2294,7 @@ public Builder refresh_listeners(@Nullable String value) { /** * current fetch phase ops - * + *

* API name: {@code search.fetch_current} */ public Builder search_fetchCurrent(@Nullable String value) { @@ -2304,7 +2304,7 @@ public Builder search_fetchCurrent(@Nullable String value) { /** * time spent in fetch phase - * + *

* API name: {@code search.fetch_time} */ public Builder search_fetchTime(@Nullable String value) { @@ -2314,7 +2314,7 @@ public Builder search_fetchTime(@Nullable String value) { /** * total fetch ops - * + *

* API name: {@code search.fetch_total} */ public Builder search_fetchTotal(@Nullable String value) { @@ -2324,7 +2324,7 @@ public Builder search_fetchTotal(@Nullable String value) { /** * open search contexts - * + *

* API name: {@code search.open_contexts} */ public Builder search_openContexts(@Nullable String value) { @@ -2334,7 +2334,7 @@ public Builder search_openContexts(@Nullable String value) { /** * current query phase ops - * + *

* API name: {@code search.query_current} */ public Builder search_queryCurrent(@Nullable String value) { @@ -2344,7 +2344,7 @@ public Builder search_queryCurrent(@Nullable String value) { /** * time spent in query phase - * + *

* API name: {@code search.query_time} */ public Builder search_queryTime(@Nullable String value) { @@ -2354,7 +2354,7 @@ public Builder search_queryTime(@Nullable String value) { /** * total query phase ops - * + *

* API name: {@code search.query_total} */ public Builder search_queryTotal(@Nullable String value) { @@ -2364,7 +2364,7 @@ public Builder search_queryTotal(@Nullable String value) { /** * open scroll contexts - * + *

* API name: {@code search.scroll_current} */ public Builder search_scrollCurrent(@Nullable String value) { @@ -2374,7 +2374,7 @@ public Builder search_scrollCurrent(@Nullable String value) { /** * time scroll contexts held open - * + *

* API name: {@code search.scroll_time} */ public Builder search_scrollTime(@Nullable String value) { @@ -2384,7 +2384,7 @@ public Builder search_scrollTime(@Nullable String value) { /** * completed scroll contexts - * + *

* API name: {@code search.scroll_total} */ public Builder search_scrollTotal(@Nullable String value) { @@ -2394,7 +2394,7 @@ public Builder search_scrollTotal(@Nullable String value) { /** * number of segments - * + *

* API name: {@code segments.count} */ public Builder segments_count(@Nullable String value) { @@ -2404,7 +2404,7 @@ public Builder segments_count(@Nullable String value) { /** * memory used by segments - * + *

* API name: {@code segments.memory} */ public Builder segments_memory(@Nullable String value) { @@ -2414,7 +2414,7 @@ public Builder segments_memory(@Nullable String value) { /** * memory used by index writer - * + *

* API name: {@code segments.index_writer_memory} */ public Builder segments_indexWriterMemory(@Nullable String value) { @@ -2424,7 +2424,7 @@ public Builder segments_indexWriterMemory(@Nullable String value) { /** * memory used by version map - * + *

* API name: {@code segments.version_map_memory} */ public Builder segments_versionMapMemory(@Nullable String value) { @@ -2435,7 +2435,7 @@ public Builder segments_versionMapMemory(@Nullable String value) { /** * memory used by fixed bit sets for nested object field types and export type * filters for types referred in _parent fields - * + *

* API name: {@code segments.fixed_bitset_memory} */ public Builder segments_fixedBitsetMemory(@Nullable String value) { @@ -2445,7 +2445,7 @@ public Builder segments_fixedBitsetMemory(@Nullable String value) { /** * max sequence number - * + *

* API name: {@code seq_no.max} */ public Builder seqNo_max(@Nullable String value) { @@ -2455,7 +2455,7 @@ public Builder seqNo_max(@Nullable String value) { /** * local checkpoint - * + *

* API name: {@code seq_no.local_checkpoint} */ public Builder seqNo_localCheckpoint(@Nullable String value) { @@ -2465,7 +2465,7 @@ public Builder seqNo_localCheckpoint(@Nullable String value) { /** * global checkpoint - * + *

* API name: {@code seq_no.global_checkpoint} */ public Builder seqNo_globalCheckpoint(@Nullable String value) { @@ -2475,7 +2475,7 @@ public Builder seqNo_globalCheckpoint(@Nullable String value) { /** * current warmer ops - * + *

* API name: {@code warmer.current} */ public Builder warmer_current(@Nullable String value) { @@ -2485,7 +2485,7 @@ public Builder warmer_current(@Nullable String value) { /** * total warmer ops - * + *

* API name: {@code warmer.total} */ public Builder warmer_total(@Nullable String value) { @@ -2495,7 +2495,7 @@ public Builder warmer_total(@Nullable String value) { /** * time spent in warmers - * + *

* API name: {@code warmer.total_time} */ public Builder warmer_totalTime(@Nullable String value) { @@ -2505,7 +2505,7 @@ public Builder warmer_totalTime(@Nullable String value) { /** * shard data path - * + *

* API name: {@code path.data} */ public Builder path_data(@Nullable String value) { @@ -2515,7 +2515,7 @@ public Builder path_data(@Nullable String value) { /** * shard state path - * + *

* API name: {@code path.state} */ public Builder path_state(@Nullable String value) { @@ -2525,7 +2525,7 @@ public Builder path_state(@Nullable String value) { /** * number of bulk shard ops - * + *

* API name: {@code bulk.total_operations} */ public Builder bulk_totalOperations(@Nullable String value) { @@ -2535,7 +2535,7 @@ public Builder bulk_totalOperations(@Nullable String value) { /** * time spend in shard bulk - * + *

* API name: {@code bulk.total_time} */ public Builder bulk_totalTime(@Nullable String value) { @@ -2545,7 +2545,7 @@ public Builder bulk_totalTime(@Nullable String value) { /** * total size in bytes of shard bulk - * + *

* API name: {@code bulk.total_size_in_bytes} */ public Builder bulk_totalSizeInBytes(@Nullable String value) { @@ -2555,7 +2555,7 @@ public Builder bulk_totalSizeInBytes(@Nullable String value) { /** * average time spend in shard bulk - * + *

* API name: {@code bulk.avg_time} */ public Builder bulk_avgTime(@Nullable String value) { @@ -2565,7 +2565,7 @@ public Builder bulk_avgTime(@Nullable String value) { /** * avg size in bytes of shard bulk - * + *

* API name: {@code bulk.avg_size_in_bytes} */ public Builder bulk_avgSizeInBytes(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/snapshots/SnapshotsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/snapshots/SnapshotsRecord.java index 5f1683bd5..ce176853c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/snapshots/SnapshotsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/snapshots/SnapshotsRecord.java @@ -98,7 +98,7 @@ protected SnapshotsRecord(Builder builder) { /** * unique snapshot - * + *

* API name: {@code id} */ @Nullable @@ -108,7 +108,7 @@ public String id() { /** * repository name - * + *

* API name: {@code repository} */ @Nullable @@ -118,7 +118,7 @@ public String repository() { /** * snapshot name - * + *

* API name: {@code status} */ @Nullable @@ -128,7 +128,7 @@ public String status() { /** * start time in seconds since 1970-01-01 00:00:00 - * + *

* API name: {@code start_epoch} */ @Nullable @@ -138,7 +138,7 @@ public JsonValue startEpoch() { /** * start time in HH:MM:SS - * + *

* API name: {@code start_time} */ @Nullable @@ -148,7 +148,7 @@ public String startTime() { /** * end time in seconds since 1970-01-01 00:00:00 - * + *

* API name: {@code end_epoch} */ @Nullable @@ -158,7 +158,7 @@ public JsonValue endEpoch() { /** * end time in HH:MM:SS - * + *

* API name: {@code end_time} */ @Nullable @@ -168,7 +168,7 @@ public String endTime() { /** * duration - * + *

* API name: {@code duration} */ @Nullable @@ -178,7 +178,7 @@ public JsonValue duration() { /** * number of indices - * + *

* API name: {@code indices} */ @Nullable @@ -188,7 +188,7 @@ public String indices() { /** * number of successful shards - * + *

* API name: {@code successful_shards} */ @Nullable @@ -198,7 +198,7 @@ public String successfulShards() { /** * number of failed shards - * + *

* API name: {@code failed_shards} */ @Nullable @@ -208,7 +208,7 @@ public String failedShards() { /** * number of total shards - * + *

* API name: {@code total_shards} */ @Nullable @@ -218,7 +218,7 @@ public String totalShards() { /** * reason for failures - * + *

* API name: {@code reason} */ @Nullable @@ -365,7 +365,7 @@ public static class Builder implements ObjectBuilder { /** * unique snapshot - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -375,7 +375,7 @@ public Builder id(@Nullable String value) { /** * repository name - * + *

* API name: {@code repository} */ public Builder repository(@Nullable String value) { @@ -385,7 +385,7 @@ public Builder repository(@Nullable String value) { /** * snapshot name - * + *

* API name: {@code status} */ public Builder status(@Nullable String value) { @@ -395,7 +395,7 @@ public Builder status(@Nullable String value) { /** * start time in seconds since 1970-01-01 00:00:00 - * + *

* API name: {@code start_epoch} */ public Builder startEpoch(@Nullable JsonValue value) { @@ -405,7 +405,7 @@ public Builder startEpoch(@Nullable JsonValue value) { /** * start time in HH:MM:SS - * + *

* API name: {@code start_time} */ public Builder startTime(@Nullable String value) { @@ -415,7 +415,7 @@ public Builder startTime(@Nullable String value) { /** * end time in seconds since 1970-01-01 00:00:00 - * + *

* API name: {@code end_epoch} */ public Builder endEpoch(@Nullable JsonValue value) { @@ -425,7 +425,7 @@ public Builder endEpoch(@Nullable JsonValue value) { /** * end time in HH:MM:SS - * + *

* API name: {@code end_time} */ public Builder endTime(@Nullable String value) { @@ -435,7 +435,7 @@ public Builder endTime(@Nullable String value) { /** * duration - * + *

* API name: {@code duration} */ public Builder duration(@Nullable JsonValue value) { @@ -445,7 +445,7 @@ public Builder duration(@Nullable JsonValue value) { /** * number of indices - * + *

* API name: {@code indices} */ public Builder indices(@Nullable String value) { @@ -455,7 +455,7 @@ public Builder indices(@Nullable String value) { /** * number of successful shards - * + *

* API name: {@code successful_shards} */ public Builder successfulShards(@Nullable String value) { @@ -465,7 +465,7 @@ public Builder successfulShards(@Nullable String value) { /** * number of failed shards - * + *

* API name: {@code failed_shards} */ public Builder failedShards(@Nullable String value) { @@ -475,7 +475,7 @@ public Builder failedShards(@Nullable String value) { /** * number of total shards - * + *

* API name: {@code total_shards} */ public Builder totalShards(@Nullable String value) { @@ -485,7 +485,7 @@ public Builder totalShards(@Nullable String value) { /** * reason for failures - * + *

* API name: {@code reason} */ public Builder reason(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/tasks/TasksRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/tasks/TasksRecord.java index 062865bd7..7a3c98178 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/tasks/TasksRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/tasks/TasksRecord.java @@ -109,7 +109,7 @@ protected TasksRecord(Builder builder) { /** * id of the task with the node - * + *

* API name: {@code id} */ @Nullable @@ -119,7 +119,7 @@ public String id() { /** * task action - * + *

* API name: {@code action} */ @Nullable @@ -129,7 +129,7 @@ public String action() { /** * unique task id - * + *

* API name: {@code task_id} */ @Nullable @@ -139,7 +139,7 @@ public String taskId() { /** * parent task id - * + *

* API name: {@code parent_task_id} */ @Nullable @@ -149,7 +149,7 @@ public String parentTaskId() { /** * task type - * + *

* API name: {@code type} */ @Nullable @@ -159,7 +159,7 @@ public String type() { /** * start time in ms - * + *

* API name: {@code start_time} */ @Nullable @@ -169,7 +169,7 @@ public String startTime() { /** * start time in HH:MM:SS - * + *

* API name: {@code timestamp} */ @Nullable @@ -179,7 +179,7 @@ public String timestamp() { /** * running time ns - * + *

* API name: {@code running_time_ns} */ @Nullable @@ -189,7 +189,7 @@ public String runningTimeNs() { /** * running time - * + *

* API name: {@code running_time} */ @Nullable @@ -199,7 +199,7 @@ public String runningTime() { /** * unique node id - * + *

* API name: {@code node_id} */ @Nullable @@ -209,7 +209,7 @@ public String nodeId() { /** * ip address - * + *

* API name: {@code ip} */ @Nullable @@ -219,7 +219,7 @@ public String ip() { /** * bound transport port - * + *

* API name: {@code port} */ @Nullable @@ -229,7 +229,7 @@ public String port() { /** * node name - * + *

* API name: {@code node} */ @Nullable @@ -239,7 +239,7 @@ public String node() { /** * es version - * + *

* API name: {@code version} */ @Nullable @@ -249,7 +249,7 @@ public String version() { /** * X-Opaque-ID header - * + *

* API name: {@code x_opaque_id} */ @Nullable @@ -259,7 +259,7 @@ public String xOpaqueId() { /** * task action - * + *

* API name: {@code description} */ @Nullable @@ -433,7 +433,7 @@ public static class Builder implements ObjectBuilder { /** * id of the task with the node - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -443,7 +443,7 @@ public Builder id(@Nullable String value) { /** * task action - * + *

* API name: {@code action} */ public Builder action(@Nullable String value) { @@ -453,7 +453,7 @@ public Builder action(@Nullable String value) { /** * unique task id - * + *

* API name: {@code task_id} */ public Builder taskId(@Nullable String value) { @@ -463,7 +463,7 @@ public Builder taskId(@Nullable String value) { /** * parent task id - * + *

* API name: {@code parent_task_id} */ public Builder parentTaskId(@Nullable String value) { @@ -473,7 +473,7 @@ public Builder parentTaskId(@Nullable String value) { /** * task type - * + *

* API name: {@code type} */ public Builder type(@Nullable String value) { @@ -483,7 +483,7 @@ public Builder type(@Nullable String value) { /** * start time in ms - * + *

* API name: {@code start_time} */ public Builder startTime(@Nullable String value) { @@ -493,7 +493,7 @@ public Builder startTime(@Nullable String value) { /** * start time in HH:MM:SS - * + *

* API name: {@code timestamp} */ public Builder timestamp(@Nullable String value) { @@ -503,7 +503,7 @@ public Builder timestamp(@Nullable String value) { /** * running time ns - * + *

* API name: {@code running_time_ns} */ public Builder runningTimeNs(@Nullable String value) { @@ -513,7 +513,7 @@ public Builder runningTimeNs(@Nullable String value) { /** * running time - * + *

* API name: {@code running_time} */ public Builder runningTime(@Nullable String value) { @@ -523,7 +523,7 @@ public Builder runningTime(@Nullable String value) { /** * unique node id - * + *

* API name: {@code node_id} */ public Builder nodeId(@Nullable String value) { @@ -533,7 +533,7 @@ public Builder nodeId(@Nullable String value) { /** * ip address - * + *

* API name: {@code ip} */ public Builder ip(@Nullable String value) { @@ -543,7 +543,7 @@ public Builder ip(@Nullable String value) { /** * bound transport port - * + *

* API name: {@code port} */ public Builder port(@Nullable String value) { @@ -553,7 +553,7 @@ public Builder port(@Nullable String value) { /** * node name - * + *

* API name: {@code node} */ public Builder node(@Nullable String value) { @@ -563,7 +563,7 @@ public Builder node(@Nullable String value) { /** * es version - * + *

* API name: {@code version} */ public Builder version(@Nullable String value) { @@ -573,7 +573,7 @@ public Builder version(@Nullable String value) { /** * X-Opaque-ID header - * + *

* API name: {@code x_opaque_id} */ public Builder xOpaqueId(@Nullable String value) { @@ -583,7 +583,7 @@ public Builder xOpaqueId(@Nullable String value) { /** * task action - * + *

* API name: {@code description} */ public Builder description(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/templates/TemplatesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/templates/TemplatesRecord.java index ba787d578..292cc2559 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/templates/TemplatesRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/templates/TemplatesRecord.java @@ -65,7 +65,7 @@ protected TemplatesRecord(Builder builder) { /** * template name - * + *

* API name: {@code name} */ @Nullable @@ -75,7 +75,7 @@ public String name() { /** * template index patterns - * + *

* API name: {@code index_patterns} */ @Nullable @@ -85,7 +85,7 @@ public String indexPatterns() { /** * template application order/priority number - * + *

* API name: {@code order} */ @Nullable @@ -95,7 +95,7 @@ public String order() { /** * version - * + *

* API name: {@code version} */ @Nullable @@ -105,7 +105,7 @@ public String version() { /** * component templates comprising index template - * + *

* API name: {@code composed_of} */ @Nullable @@ -180,7 +180,7 @@ public static class Builder implements ObjectBuilder { /** * template name - * + *

* API name: {@code name} */ public Builder name(@Nullable String value) { @@ -190,7 +190,7 @@ public Builder name(@Nullable String value) { /** * template index patterns - * + *

* API name: {@code index_patterns} */ public Builder indexPatterns(@Nullable String value) { @@ -200,7 +200,7 @@ public Builder indexPatterns(@Nullable String value) { /** * template application order/priority number - * + *

* API name: {@code order} */ public Builder order(@Nullable String value) { @@ -210,7 +210,7 @@ public Builder order(@Nullable String value) { /** * version - * + *

* API name: {@code version} */ public Builder version(@Nullable String value) { @@ -220,7 +220,7 @@ public Builder version(@Nullable String value) { /** * component templates comprising index template - * + *

* API name: {@code composed_of} */ public Builder composedOf(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/thread_pool/ThreadPoolRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/thread_pool/ThreadPoolRecord.java index 88537d06e..e700363bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/thread_pool/ThreadPoolRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/thread_pool/ThreadPoolRecord.java @@ -125,7 +125,7 @@ protected ThreadPoolRecord(Builder builder) { /** * node name - * + *

* API name: {@code node_name} */ @Nullable @@ -135,7 +135,7 @@ public String nodeName() { /** * persistent node id - * + *

* API name: {@code node_id} */ @Nullable @@ -145,7 +145,7 @@ public String nodeId() { /** * ephemeral node id - * + *

* API name: {@code ephemeral_node_id} */ @Nullable @@ -155,7 +155,7 @@ public String ephemeralNodeId() { /** * process id - * + *

* API name: {@code pid} */ @Nullable @@ -165,7 +165,7 @@ public String pid() { /** * host name - * + *

* API name: {@code host} */ @Nullable @@ -175,7 +175,7 @@ public String host() { /** * ip address - * + *

* API name: {@code ip} */ @Nullable @@ -185,7 +185,7 @@ public String ip() { /** * bound transport port - * + *

* API name: {@code port} */ @Nullable @@ -195,7 +195,7 @@ public String port() { /** * thread pool name - * + *

* API name: {@code name} */ @Nullable @@ -205,7 +205,7 @@ public String name() { /** * thread pool type - * + *

* API name: {@code type} */ @Nullable @@ -215,7 +215,7 @@ public String type() { /** * number of active threads - * + *

* API name: {@code active} */ @Nullable @@ -225,7 +225,7 @@ public String active() { /** * number of threads - * + *

* API name: {@code pool_size} */ @Nullable @@ -235,7 +235,7 @@ public String poolSize() { /** * number of tasks currently in queue - * + *

* API name: {@code queue} */ @Nullable @@ -245,7 +245,7 @@ public String queue() { /** * maximum number of tasks permitted in queue - * + *

* API name: {@code queue_size} */ @Nullable @@ -255,7 +255,7 @@ public String queueSize() { /** * number of rejected tasks - * + *

* API name: {@code rejected} */ @Nullable @@ -265,7 +265,7 @@ public String rejected() { /** * highest number of seen active threads - * + *

* API name: {@code largest} */ @Nullable @@ -275,7 +275,7 @@ public String largest() { /** * number of completed tasks - * + *

* API name: {@code completed} */ @Nullable @@ -285,7 +285,7 @@ public String completed() { /** * core number of threads in a scaling thread pool - * + *

* API name: {@code core} */ @Nullable @@ -295,7 +295,7 @@ public String core() { /** * maximum number of threads in a scaling thread pool - * + *

* API name: {@code max} */ @Nullable @@ -305,7 +305,7 @@ public String max() { /** * number of threads in a fixed thread pool - * + *

* API name: {@code size} */ @Nullable @@ -315,7 +315,7 @@ public String size() { /** * thread keep alive time - * + *

* API name: {@code keep_alive} */ @Nullable @@ -525,7 +525,7 @@ public static class Builder implements ObjectBuilder { /** * node name - * + *

* API name: {@code node_name} */ public Builder nodeName(@Nullable String value) { @@ -535,7 +535,7 @@ public Builder nodeName(@Nullable String value) { /** * persistent node id - * + *

* API name: {@code node_id} */ public Builder nodeId(@Nullable String value) { @@ -545,7 +545,7 @@ public Builder nodeId(@Nullable String value) { /** * ephemeral node id - * + *

* API name: {@code ephemeral_node_id} */ public Builder ephemeralNodeId(@Nullable String value) { @@ -555,7 +555,7 @@ public Builder ephemeralNodeId(@Nullable String value) { /** * process id - * + *

* API name: {@code pid} */ public Builder pid(@Nullable String value) { @@ -565,7 +565,7 @@ public Builder pid(@Nullable String value) { /** * host name - * + *

* API name: {@code host} */ public Builder host(@Nullable String value) { @@ -575,7 +575,7 @@ public Builder host(@Nullable String value) { /** * ip address - * + *

* API name: {@code ip} */ public Builder ip(@Nullable String value) { @@ -585,7 +585,7 @@ public Builder ip(@Nullable String value) { /** * bound transport port - * + *

* API name: {@code port} */ public Builder port(@Nullable String value) { @@ -595,7 +595,7 @@ public Builder port(@Nullable String value) { /** * thread pool name - * + *

* API name: {@code name} */ public Builder name(@Nullable String value) { @@ -605,7 +605,7 @@ public Builder name(@Nullable String value) { /** * thread pool type - * + *

* API name: {@code type} */ public Builder type(@Nullable String value) { @@ -615,7 +615,7 @@ public Builder type(@Nullable String value) { /** * number of active threads - * + *

* API name: {@code active} */ public Builder active(@Nullable String value) { @@ -625,7 +625,7 @@ public Builder active(@Nullable String value) { /** * number of threads - * + *

* API name: {@code pool_size} */ public Builder poolSize(@Nullable String value) { @@ -635,7 +635,7 @@ public Builder poolSize(@Nullable String value) { /** * number of tasks currently in queue - * + *

* API name: {@code queue} */ public Builder queue(@Nullable String value) { @@ -645,7 +645,7 @@ public Builder queue(@Nullable String value) { /** * maximum number of tasks permitted in queue - * + *

* API name: {@code queue_size} */ public Builder queueSize(@Nullable String value) { @@ -655,7 +655,7 @@ public Builder queueSize(@Nullable String value) { /** * number of rejected tasks - * + *

* API name: {@code rejected} */ public Builder rejected(@Nullable String value) { @@ -665,7 +665,7 @@ public Builder rejected(@Nullable String value) { /** * highest number of seen active threads - * + *

* API name: {@code largest} */ public Builder largest(@Nullable String value) { @@ -675,7 +675,7 @@ public Builder largest(@Nullable String value) { /** * number of completed tasks - * + *

* API name: {@code completed} */ public Builder completed(@Nullable String value) { @@ -685,7 +685,7 @@ public Builder completed(@Nullable String value) { /** * core number of threads in a scaling thread pool - * + *

* API name: {@code core} */ public Builder core(@Nullable String value) { @@ -695,7 +695,7 @@ public Builder core(@Nullable String value) { /** * maximum number of threads in a scaling thread pool - * + *

* API name: {@code max} */ public Builder max(@Nullable String value) { @@ -705,7 +705,7 @@ public Builder max(@Nullable String value) { /** * number of threads in a fixed thread pool - * + *

* API name: {@code size} */ public Builder size(@Nullable String value) { @@ -715,7 +715,7 @@ public Builder size(@Nullable String value) { /** * thread keep alive time - * + *

* API name: {@code keep_alive} */ public Builder keepAlive(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/trained_models/TrainedModelsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/trained_models/TrainedModelsRecord.java index ca3eb8b95..d007a8e5d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/trained_models/TrainedModelsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/trained_models/TrainedModelsRecord.java @@ -114,7 +114,7 @@ protected TrainedModelsRecord(Builder builder) { /** * the trained model id - * + *

* API name: {@code id} */ @Nullable @@ -124,7 +124,7 @@ public String id() { /** * who created the model - * + *

* API name: {@code created_by} */ @Nullable @@ -134,7 +134,7 @@ public String createdBy() { /** * the estimated heap size to keep the model in memory - * + *

* API name: {@code heap_size} */ @Nullable @@ -144,7 +144,7 @@ public JsonValue heapSize() { /** * the estimated number of operations to use the model - * + *

* API name: {@code operations} */ @Nullable @@ -154,7 +154,7 @@ public String operations() { /** * The license level of the model - * + *

* API name: {@code license} */ @Nullable @@ -164,7 +164,7 @@ public String license() { /** * The time the model was created - * + *

* API name: {@code create_time} */ @Nullable @@ -174,7 +174,7 @@ public String createTime() { /** * The version of Elasticsearch when the model was created - * + *

* API name: {@code version} */ @Nullable @@ -184,7 +184,7 @@ public String version() { /** * The model description - * + *

* API name: {@code description} */ @Nullable @@ -194,7 +194,7 @@ public String description() { /** * The number of pipelines referencing the model - * + *

* API name: {@code ingest.pipelines} */ @Nullable @@ -204,7 +204,7 @@ public String ingest_pipelines() { /** * The total number of docs processed by the model - * + *

* API name: {@code ingest.count} */ @Nullable @@ -214,7 +214,7 @@ public String ingest_count() { /** * The total time spent processing docs with this model - * + *

* API name: {@code ingest.time} */ @Nullable @@ -224,7 +224,7 @@ public String ingest_time() { /** * The total documents currently being handled by the model - * + *

* API name: {@code ingest.current} */ @Nullable @@ -234,7 +234,7 @@ public String ingest_current() { /** * The total count of failed ingest attempts with this model - * + *

* API name: {@code ingest.failed} */ @Nullable @@ -245,7 +245,7 @@ public String ingest_failed() { /** * The data frame analytics config id that created the model (if still * available) - * + *

* API name: {@code data_frame.id} */ @Nullable @@ -255,7 +255,7 @@ public String dataFrame_id() { /** * The time the data frame analytics config was created - * + *

* API name: {@code data_frame.create_time} */ @Nullable @@ -265,7 +265,7 @@ public String dataFrame_createTime() { /** * The source index used to train in the data frame analysis - * + *

* API name: {@code data_frame.source_index} */ @Nullable @@ -275,7 +275,7 @@ public String dataFrame_sourceIndex() { /** * The analysis used by the data frame to build the model - * + *

* API name: {@code data_frame.analysis} */ @Nullable @@ -458,7 +458,7 @@ public static class Builder implements ObjectBuilder { /** * the trained model id - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -468,7 +468,7 @@ public Builder id(@Nullable String value) { /** * who created the model - * + *

* API name: {@code created_by} */ public Builder createdBy(@Nullable String value) { @@ -478,7 +478,7 @@ public Builder createdBy(@Nullable String value) { /** * the estimated heap size to keep the model in memory - * + *

* API name: {@code heap_size} */ public Builder heapSize(@Nullable JsonValue value) { @@ -488,7 +488,7 @@ public Builder heapSize(@Nullable JsonValue value) { /** * the estimated number of operations to use the model - * + *

* API name: {@code operations} */ public Builder operations(@Nullable String value) { @@ -498,7 +498,7 @@ public Builder operations(@Nullable String value) { /** * The license level of the model - * + *

* API name: {@code license} */ public Builder license(@Nullable String value) { @@ -508,7 +508,7 @@ public Builder license(@Nullable String value) { /** * The time the model was created - * + *

* API name: {@code create_time} */ public Builder createTime(@Nullable String value) { @@ -518,7 +518,7 @@ public Builder createTime(@Nullable String value) { /** * The version of Elasticsearch when the model was created - * + *

* API name: {@code version} */ public Builder version(@Nullable String value) { @@ -528,7 +528,7 @@ public Builder version(@Nullable String value) { /** * The model description - * + *

* API name: {@code description} */ public Builder description(@Nullable String value) { @@ -538,7 +538,7 @@ public Builder description(@Nullable String value) { /** * The number of pipelines referencing the model - * + *

* API name: {@code ingest.pipelines} */ public Builder ingest_pipelines(@Nullable String value) { @@ -548,7 +548,7 @@ public Builder ingest_pipelines(@Nullable String value) { /** * The total number of docs processed by the model - * + *

* API name: {@code ingest.count} */ public Builder ingest_count(@Nullable String value) { @@ -558,7 +558,7 @@ public Builder ingest_count(@Nullable String value) { /** * The total time spent processing docs with this model - * + *

* API name: {@code ingest.time} */ public Builder ingest_time(@Nullable String value) { @@ -568,7 +568,7 @@ public Builder ingest_time(@Nullable String value) { /** * The total documents currently being handled by the model - * + *

* API name: {@code ingest.current} */ public Builder ingest_current(@Nullable String value) { @@ -578,7 +578,7 @@ public Builder ingest_current(@Nullable String value) { /** * The total count of failed ingest attempts with this model - * + *

* API name: {@code ingest.failed} */ public Builder ingest_failed(@Nullable String value) { @@ -589,7 +589,7 @@ public Builder ingest_failed(@Nullable String value) { /** * The data frame analytics config id that created the model (if still * available) - * + *

* API name: {@code data_frame.id} */ public Builder dataFrame_id(@Nullable String value) { @@ -599,7 +599,7 @@ public Builder dataFrame_id(@Nullable String value) { /** * The time the data frame analytics config was created - * + *

* API name: {@code data_frame.create_time} */ public Builder dataFrame_createTime(@Nullable String value) { @@ -609,7 +609,7 @@ public Builder dataFrame_createTime(@Nullable String value) { /** * The source index used to train in the data frame analysis - * + *

* API name: {@code data_frame.source_index} */ public Builder dataFrame_sourceIndex(@Nullable String value) { @@ -619,7 +619,7 @@ public Builder dataFrame_sourceIndex(@Nullable String value) { /** * The analysis used by the data frame to build the model - * + *

* API name: {@code data_frame.analysis} */ public Builder dataFrame_analysis(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java index a4993c675..51b7444d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/transforms/TransformsRecord.java @@ -177,7 +177,7 @@ protected TransformsRecord(Builder builder) { /** * the id - * + *

* API name: {@code id} */ @Nullable @@ -187,7 +187,7 @@ public String id() { /** * transform state - * + *

* API name: {@code state} */ @Nullable @@ -197,7 +197,7 @@ public String state() { /** * checkpoint - * + *

* API name: {@code checkpoint} */ @Nullable @@ -207,7 +207,7 @@ public String checkpoint() { /** * the number of documents read from source indices and processed - * + *

* API name: {@code documents_processed} */ @Nullable @@ -217,7 +217,7 @@ public String documentsProcessed() { /** * progress of the checkpoint - * + *

* API name: {@code checkpoint_progress} */ @Nullable @@ -227,7 +227,7 @@ public String checkpointProgress() { /** * last time transform searched for updates - * + *

* API name: {@code last_search_time} */ @Nullable @@ -237,7 +237,7 @@ public String lastSearchTime() { /** * changes last detected time - * + *

* API name: {@code changes_last_detection_time} */ @Nullable @@ -247,7 +247,7 @@ public String changesLastDetectionTime() { /** * transform creation time - * + *

* API name: {@code create_time} */ @Nullable @@ -257,7 +257,7 @@ public String createTime() { /** * the version of Elasticsearch when the transform was created - * + *

* API name: {@code version} */ @Nullable @@ -267,7 +267,7 @@ public String version() { /** * source index - * + *

* API name: {@code source_index} */ @Nullable @@ -277,7 +277,7 @@ public String sourceIndex() { /** * destination index - * + *

* API name: {@code dest_index} */ @Nullable @@ -287,7 +287,7 @@ public String destIndex() { /** * transform pipeline - * + *

* API name: {@code pipeline} */ @Nullable @@ -297,7 +297,7 @@ public String pipeline() { /** * description - * + *

* API name: {@code description} */ @Nullable @@ -307,7 +307,7 @@ public String description() { /** * batch or continuous transform - * + *

* API name: {@code transform_type} */ @Nullable @@ -317,7 +317,7 @@ public String transformType() { /** * frequency of transform - * + *

* API name: {@code frequency} */ @Nullable @@ -327,7 +327,7 @@ public String frequency() { /** * max page search size - * + *

* API name: {@code max_page_search_size} */ @Nullable @@ -337,7 +337,7 @@ public String maxPageSearchSize() { /** * docs per second - * + *

* API name: {@code docs_per_second} */ @Nullable @@ -347,7 +347,7 @@ public String docsPerSecond() { /** * reason for the current state - * + *

* API name: {@code reason} */ @Nullable @@ -357,7 +357,7 @@ public String reason() { /** * total number of search phases - * + *

* API name: {@code search_total} */ @Nullable @@ -367,7 +367,7 @@ public String searchTotal() { /** * total number of search failures - * + *

* API name: {@code search_failure} */ @Nullable @@ -377,7 +377,7 @@ public String searchFailure() { /** * total search time - * + *

* API name: {@code search_time} */ @Nullable @@ -387,7 +387,7 @@ public String searchTime() { /** * total number of index phases done by the transform - * + *

* API name: {@code index_total} */ @Nullable @@ -397,7 +397,7 @@ public String indexTotal() { /** * total number of index failures - * + *

* API name: {@code index_failure} */ @Nullable @@ -407,7 +407,7 @@ public String indexFailure() { /** * total time spent indexing documents - * + *

* API name: {@code index_time} */ @Nullable @@ -417,7 +417,7 @@ public String indexTime() { /** * the number of documents written to the destination index - * + *

* API name: {@code documents_indexed} */ @Nullable @@ -427,7 +427,7 @@ public String documentsIndexed() { /** * total time spent deleting documents - * + *

* API name: {@code delete_time} */ @Nullable @@ -437,7 +437,7 @@ public String deleteTime() { /** * the number of documents deleted from the destination index - * + *

* API name: {@code documents_deleted} */ @Nullable @@ -447,7 +447,7 @@ public String documentsDeleted() { /** * the number of times the transform has been triggered - * + *

* API name: {@code trigger_count} */ @Nullable @@ -457,7 +457,7 @@ public String triggerCount() { /** * the number of pages processed - * + *

* API name: {@code pages_processed} */ @Nullable @@ -467,7 +467,7 @@ public String pagesProcessed() { /** * the total time spent processing documents - * + *

* API name: {@code processing_time} */ @Nullable @@ -477,7 +477,7 @@ public String processingTime() { /** * exponential average checkpoint processing time (milliseconds) - * + *

* API name: {@code checkpoint_duration_time_exp_avg} */ @Nullable @@ -487,7 +487,7 @@ public String checkpointDurationTimeExpAvg() { /** * exponential average number of documents indexed - * + *

* API name: {@code indexed_documents_exp_avg} */ @Nullable @@ -497,7 +497,7 @@ public String indexedDocumentsExpAvg() { /** * exponential average number of documents processed - * + *

* API name: {@code processed_documents_exp_avg} */ @Nullable @@ -824,7 +824,7 @@ public static class Builder implements ObjectBuilder { /** * the id - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -834,7 +834,7 @@ public Builder id(@Nullable String value) { /** * transform state - * + *

* API name: {@code state} */ public Builder state(@Nullable String value) { @@ -844,7 +844,7 @@ public Builder state(@Nullable String value) { /** * checkpoint - * + *

* API name: {@code checkpoint} */ public Builder checkpoint(@Nullable String value) { @@ -854,7 +854,7 @@ public Builder checkpoint(@Nullable String value) { /** * the number of documents read from source indices and processed - * + *

* API name: {@code documents_processed} */ public Builder documentsProcessed(@Nullable String value) { @@ -864,7 +864,7 @@ public Builder documentsProcessed(@Nullable String value) { /** * progress of the checkpoint - * + *

* API name: {@code checkpoint_progress} */ public Builder checkpointProgress(@Nullable String value) { @@ -874,7 +874,7 @@ public Builder checkpointProgress(@Nullable String value) { /** * last time transform searched for updates - * + *

* API name: {@code last_search_time} */ public Builder lastSearchTime(@Nullable String value) { @@ -884,7 +884,7 @@ public Builder lastSearchTime(@Nullable String value) { /** * changes last detected time - * + *

* API name: {@code changes_last_detection_time} */ public Builder changesLastDetectionTime(@Nullable String value) { @@ -894,7 +894,7 @@ public Builder changesLastDetectionTime(@Nullable String value) { /** * transform creation time - * + *

* API name: {@code create_time} */ public Builder createTime(@Nullable String value) { @@ -904,7 +904,7 @@ public Builder createTime(@Nullable String value) { /** * the version of Elasticsearch when the transform was created - * + *

* API name: {@code version} */ public Builder version(@Nullable String value) { @@ -914,7 +914,7 @@ public Builder version(@Nullable String value) { /** * source index - * + *

* API name: {@code source_index} */ public Builder sourceIndex(@Nullable String value) { @@ -924,7 +924,7 @@ public Builder sourceIndex(@Nullable String value) { /** * destination index - * + *

* API name: {@code dest_index} */ public Builder destIndex(@Nullable String value) { @@ -934,7 +934,7 @@ public Builder destIndex(@Nullable String value) { /** * transform pipeline - * + *

* API name: {@code pipeline} */ public Builder pipeline(@Nullable String value) { @@ -944,7 +944,7 @@ public Builder pipeline(@Nullable String value) { /** * description - * + *

* API name: {@code description} */ public Builder description(@Nullable String value) { @@ -954,7 +954,7 @@ public Builder description(@Nullable String value) { /** * batch or continuous transform - * + *

* API name: {@code transform_type} */ public Builder transformType(@Nullable String value) { @@ -964,7 +964,7 @@ public Builder transformType(@Nullable String value) { /** * frequency of transform - * + *

* API name: {@code frequency} */ public Builder frequency(@Nullable String value) { @@ -974,7 +974,7 @@ public Builder frequency(@Nullable String value) { /** * max page search size - * + *

* API name: {@code max_page_search_size} */ public Builder maxPageSearchSize(@Nullable String value) { @@ -984,7 +984,7 @@ public Builder maxPageSearchSize(@Nullable String value) { /** * docs per second - * + *

* API name: {@code docs_per_second} */ public Builder docsPerSecond(@Nullable String value) { @@ -994,7 +994,7 @@ public Builder docsPerSecond(@Nullable String value) { /** * reason for the current state - * + *

* API name: {@code reason} */ public Builder reason(@Nullable String value) { @@ -1004,7 +1004,7 @@ public Builder reason(@Nullable String value) { /** * total number of search phases - * + *

* API name: {@code search_total} */ public Builder searchTotal(@Nullable String value) { @@ -1014,7 +1014,7 @@ public Builder searchTotal(@Nullable String value) { /** * total number of search failures - * + *

* API name: {@code search_failure} */ public Builder searchFailure(@Nullable String value) { @@ -1024,7 +1024,7 @@ public Builder searchFailure(@Nullable String value) { /** * total search time - * + *

* API name: {@code search_time} */ public Builder searchTime(@Nullable String value) { @@ -1034,7 +1034,7 @@ public Builder searchTime(@Nullable String value) { /** * total number of index phases done by the transform - * + *

* API name: {@code index_total} */ public Builder indexTotal(@Nullable String value) { @@ -1044,7 +1044,7 @@ public Builder indexTotal(@Nullable String value) { /** * total number of index failures - * + *

* API name: {@code index_failure} */ public Builder indexFailure(@Nullable String value) { @@ -1054,7 +1054,7 @@ public Builder indexFailure(@Nullable String value) { /** * total time spent indexing documents - * + *

* API name: {@code index_time} */ public Builder indexTime(@Nullable String value) { @@ -1064,7 +1064,7 @@ public Builder indexTime(@Nullable String value) { /** * the number of documents written to the destination index - * + *

* API name: {@code documents_indexed} */ public Builder documentsIndexed(@Nullable String value) { @@ -1074,7 +1074,7 @@ public Builder documentsIndexed(@Nullable String value) { /** * total time spent deleting documents - * + *

* API name: {@code delete_time} */ public Builder deleteTime(@Nullable String value) { @@ -1084,7 +1084,7 @@ public Builder deleteTime(@Nullable String value) { /** * the number of documents deleted from the destination index - * + *

* API name: {@code documents_deleted} */ public Builder documentsDeleted(@Nullable String value) { @@ -1094,7 +1094,7 @@ public Builder documentsDeleted(@Nullable String value) { /** * the number of times the transform has been triggered - * + *

* API name: {@code trigger_count} */ public Builder triggerCount(@Nullable String value) { @@ -1104,7 +1104,7 @@ public Builder triggerCount(@Nullable String value) { /** * the number of pages processed - * + *

* API name: {@code pages_processed} */ public Builder pagesProcessed(@Nullable String value) { @@ -1114,7 +1114,7 @@ public Builder pagesProcessed(@Nullable String value) { /** * the total time spent processing documents - * + *

* API name: {@code processing_time} */ public Builder processingTime(@Nullable String value) { @@ -1124,7 +1124,7 @@ public Builder processingTime(@Nullable String value) { /** * exponential average checkpoint processing time (milliseconds) - * + *

* API name: {@code checkpoint_duration_time_exp_avg} */ public Builder checkpointDurationTimeExpAvg(@Nullable String value) { @@ -1134,7 +1134,7 @@ public Builder checkpointDurationTimeExpAvg(@Nullable String value) { /** * exponential average number of documents indexed - * + *

* API name: {@code indexed_documents_exp_avg} */ public Builder indexedDocumentsExpAvg(@Nullable String value) { @@ -1144,7 +1144,7 @@ public Builder indexedDocumentsExpAvg(@Nullable String value) { /** * exponential average number of documents processed - * + *

* API name: {@code processed_documents_exp_avg} */ public Builder processedDocumentsExpAvg(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternRequest.java index 854a4fff1..69e00df25 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/GetAutoFollowPatternRequest.java @@ -51,7 +51,7 @@ protected GetAutoFollowPatternRequest(Builder builder) { /** * Specifies the auto-follow pattern collection that you want to retrieve. If * you do not specify a name, the API returns information for all collections. - * + *

* API name: {@code name} */ @Nullable @@ -71,7 +71,7 @@ public static class Builder implements ObjectBuilder * API name: {@code name} */ public Builder name(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java index 084f59ad4..e06ac07bd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainRequest.java @@ -76,7 +76,7 @@ protected AllocationExplainRequest(Builder builder) { /** * If true, returns information about disk usage and shard sizes. - * + *

* API name: {@code include_disk_info} */ @Nullable @@ -86,7 +86,7 @@ public Boolean includeDiskInfo() { /** * If true, returns YES decisions in explanation. - * + *

* API name: {@code include_yes_decisions} */ @Nullable @@ -97,7 +97,7 @@ public Boolean includeYesDecisions() { /** * Specifies the node ID or the name of the node to only explain a shard that is * currently located on the specified node. - * + *

* API name: {@code current_node} */ @Nullable @@ -107,7 +107,7 @@ public String currentNode() { /** * Specifies the name of the index that you would like an explanation for. - * + *

* API name: {@code index} */ @Nullable @@ -117,7 +117,7 @@ public String index() { /** * If true, returns explanation for the primary shard for the given shard ID. - * + *

* API name: {@code primary} */ @Nullable @@ -127,7 +127,7 @@ public Boolean primary() { /** * Specifies the ID of the shard that you would like an explanation for. - * + *

* API name: {@code shard} */ @Nullable @@ -199,7 +199,7 @@ public static class Builder implements ObjectBuilder { /** * If true, returns information about disk usage and shard sizes. - * + *

* API name: {@code include_disk_info} */ public Builder includeDiskInfo(@Nullable Boolean value) { @@ -209,7 +209,7 @@ public Builder includeDiskInfo(@Nullable Boolean value) { /** * If true, returns YES decisions in explanation. - * + *

* API name: {@code include_yes_decisions} */ public Builder includeYesDecisions(@Nullable Boolean value) { @@ -220,7 +220,7 @@ public Builder includeYesDecisions(@Nullable Boolean value) { /** * Specifies the node ID or the name of the node to only explain a shard that is * currently located on the specified node. - * + *

* API name: {@code current_node} */ public Builder currentNode(@Nullable String value) { @@ -230,7 +230,7 @@ public Builder currentNode(@Nullable String value) { /** * Specifies the name of the index that you would like an explanation for. - * + *

* API name: {@code index} */ public Builder index(@Nullable String value) { @@ -240,7 +240,7 @@ public Builder index(@Nullable String value) { /** * If true, returns explanation for the primary shard for the given shard ID. - * + *

* API name: {@code primary} */ public Builder primary(@Nullable Boolean value) { @@ -250,7 +250,7 @@ public Builder primary(@Nullable Boolean value) { /** * Specifies the ID of the shard that you would like an explanation for. - * + *

* API name: {@code shard} */ public Builder shard(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java index eb2b76454..618a421bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java @@ -71,7 +71,7 @@ public String stubA() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code name} */ @Nullable @@ -134,7 +134,7 @@ public Builder stubA(String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code name} */ public Builder name(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java index c8eab1764..def229f57 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java @@ -103,7 +103,7 @@ protected HealthRequest(Builder builder) { * Comma-separated list of data streams, indices, and index aliases used to * limit the request. Wildcard expressions (*) are supported. To target all data * streams and indices in a cluster, omit this parameter or use _all or *. - * + *

* API name: {@code index} */ @Nullable @@ -122,7 +122,7 @@ public JsonValue expandWildcards() { /** * Can be one of cluster, indices or shards. Controls the details level of the * health information returned. - * + *

* API name: {@code level} */ @Nullable @@ -133,7 +133,7 @@ public JsonValue level() { /** * If true, the request retrieves information from the local node only. Defaults * to false, which means information is retrieved from the master node. - * + *

* API name: {@code local} */ @Nullable @@ -144,7 +144,7 @@ public Boolean local() { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ @Nullable @@ -155,7 +155,7 @@ public JsonValue masterTimeout() { /** * Period to wait for a response. If no response is received before the timeout * expires, the request fails and returns an error. - * + *

* API name: {@code timeout} */ @Nullable @@ -166,7 +166,7 @@ public JsonValue timeout() { /** * A number controlling to how many active shards to wait for, all to wait for * all shards in the cluster to be active, or 0 to not wait. - * + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -177,7 +177,7 @@ public JsonValue waitForActiveShards() { /** * Can be one of immediate, urgent, high, normal, low, languid. Wait until all * currently queued events with the given priority are processed. - * + *

* API name: {@code wait_for_events} */ @Nullable @@ -189,7 +189,7 @@ public JsonValue waitForEvents() { * The request waits until the specified number N of nodes is available. It also * accepts >=N, <=N, >N and <N. Alternatively, it is possible to use * ge(N), le(N), gt(N) and lt(N) notation. - * + *

* API name: {@code wait_for_nodes} */ @Nullable @@ -201,7 +201,7 @@ public String waitForNodes() { * A boolean value which controls whether to wait (until the timeout provided) * for the cluster to have no shard initializations. Defaults to false, which * means it will not wait for initializing shards. - * + *

* API name: {@code wait_for_no_initializing_shards} */ @Nullable @@ -213,7 +213,7 @@ public Boolean waitForNoInitializingShards() { * A boolean value which controls whether to wait (until the timeout provided) * for the cluster to have no shard relocations. Defaults to false, which means * it will not wait for relocating shards. - * + *

* API name: {@code wait_for_no_relocating_shards} */ @Nullable @@ -225,7 +225,7 @@ public Boolean waitForNoRelocatingShards() { * One of green, yellow or red. Will wait (until the timeout provided) until the * status of the cluster changes to the one provided or better, i.e. green > * yellow > red. By default, will not wait for any status. - * + *

* API name: {@code wait_for_status} */ @Nullable @@ -279,7 +279,7 @@ public static class Builder implements ObjectBuilder { * Comma-separated list of data streams, indices, and index aliases used to * limit the request. Wildcard expressions (*) are supported. To target all data * streams and indices in a cluster, omit this parameter or use _all or *. - * + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -291,7 +291,7 @@ public Builder index(@Nullable List value) { * Comma-separated list of data streams, indices, and index aliases used to * limit the request. Wildcard expressions (*) are supported. To target all data * streams and indices in a cluster, omit this parameter or use _all or *. - * + *

* API name: {@code index} */ public Builder index(String... value) { @@ -321,7 +321,7 @@ public Builder expandWildcards(@Nullable JsonValue value) { /** * Can be one of cluster, indices or shards. Controls the details level of the * health information returned. - * + *

* API name: {@code level} */ public Builder level(@Nullable JsonValue value) { @@ -332,7 +332,7 @@ public Builder level(@Nullable JsonValue value) { /** * If true, the request retrieves information from the local node only. Defaults * to false, which means information is retrieved from the master node. - * + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { @@ -343,7 +343,7 @@ public Builder local(@Nullable Boolean value) { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -354,7 +354,7 @@ public Builder masterTimeout(@Nullable JsonValue value) { /** * Period to wait for a response. If no response is received before the timeout * expires, the request fails and returns an error. - * + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -365,7 +365,7 @@ public Builder timeout(@Nullable JsonValue value) { /** * A number controlling to how many active shards to wait for, all to wait for * all shards in the cluster to be active, or 0 to not wait. - * + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { @@ -376,7 +376,7 @@ public Builder waitForActiveShards(@Nullable JsonValue value) { /** * Can be one of immediate, urgent, high, normal, low, languid. Wait until all * currently queued events with the given priority are processed. - * + *

* API name: {@code wait_for_events} */ public Builder waitForEvents(@Nullable JsonValue value) { @@ -388,7 +388,7 @@ public Builder waitForEvents(@Nullable JsonValue value) { * The request waits until the specified number N of nodes is available. It also * accepts >=N, <=N, >N and <N. Alternatively, it is possible to use * ge(N), le(N), gt(N) and lt(N) notation. - * + *

* API name: {@code wait_for_nodes} */ public Builder waitForNodes(@Nullable String value) { @@ -400,7 +400,7 @@ public Builder waitForNodes(@Nullable String value) { * A boolean value which controls whether to wait (until the timeout provided) * for the cluster to have no shard initializations. Defaults to false, which * means it will not wait for initializing shards. - * + *

* API name: {@code wait_for_no_initializing_shards} */ public Builder waitForNoInitializingShards(@Nullable Boolean value) { @@ -412,7 +412,7 @@ public Builder waitForNoInitializingShards(@Nullable Boolean value) { * A boolean value which controls whether to wait (until the timeout provided) * for the cluster to have no shard relocations. Defaults to false, which means * it will not wait for relocating shards. - * + *

* API name: {@code wait_for_no_relocating_shards} */ public Builder waitForNoRelocatingShards(@Nullable Boolean value) { @@ -424,7 +424,7 @@ public Builder waitForNoRelocatingShards(@Nullable Boolean value) { * One of green, yellow or red. Will wait (until the timeout provided) until the * status of the cluster changes to the one provided or better, i.e. green > * yellow > red. By default, will not wait for any status. - * + *

* API name: {@code wait_for_status} */ public Builder waitForStatus(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthResponse.java index 1dd9df1fb..d4c2bf21c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthResponse.java @@ -106,7 +106,7 @@ protected HealthResponse(Builder builder) { /** * The number of active primary shards. - * + *

* API name: {@code active_primary_shards} */ public Number activePrimaryShards() { @@ -115,7 +115,7 @@ public Number activePrimaryShards() { /** * The total number of active primary and replica shards. - * + *

* API name: {@code active_shards} */ public Number activeShards() { @@ -124,7 +124,7 @@ public Number activeShards() { /** * The ratio of active shards in the cluster expressed as a percentage. - * + *

* API name: {@code active_shards_percent_as_number} */ public JsonValue activeShardsPercentAsNumber() { @@ -133,7 +133,7 @@ public JsonValue activeShardsPercentAsNumber() { /** * The name of the cluster. - * + *

* API name: {@code cluster_name} */ public String clusterName() { @@ -143,7 +143,7 @@ public String clusterName() { /** * The number of shards whose allocation has been delayed by the timeout * settings. - * + *

* API name: {@code delayed_unassigned_shards} */ public Number delayedUnassignedShards() { @@ -160,7 +160,7 @@ public Map indices() { /** * The number of shards that are under initialization. - * + *

* API name: {@code initializing_shards} */ public Number initializingShards() { @@ -169,7 +169,7 @@ public Number initializingShards() { /** * The number of nodes that are dedicated data nodes. - * + *

* API name: {@code number_of_data_nodes} */ public Number numberOfDataNodes() { @@ -185,7 +185,7 @@ public Number numberOfInFlightFetch() { /** * The number of nodes within the cluster. - * + *

* API name: {@code number_of_nodes} */ public Number numberOfNodes() { @@ -194,7 +194,7 @@ public Number numberOfNodes() { /** * The number of cluster-level changes that have not yet been executed. - * + *

* API name: {@code number_of_pending_tasks} */ public Number numberOfPendingTasks() { @@ -203,7 +203,7 @@ public Number numberOfPendingTasks() { /** * The number of shards that are under relocation. - * + *

* API name: {@code relocating_shards} */ public Number relocatingShards() { @@ -220,7 +220,7 @@ public JsonValue status() { /** * The time expressed in milliseconds since the earliest initiated task is * waiting for being performed. - * + *

* API name: {@code task_max_waiting_in_queue_millis} */ public JsonValue taskMaxWaitingInQueueMillis() { @@ -230,7 +230,7 @@ public JsonValue taskMaxWaitingInQueueMillis() { /** * If false the response returned within the period of time that is specified by * the timeout parameter (30s by default) - * + *

* API name: {@code timed_out} */ public Boolean timedOut() { @@ -239,7 +239,7 @@ public Boolean timedOut() { /** * The number of shards that are not allocated. - * + *

* API name: {@code unassigned_shards} */ public Number unassignedShards() { @@ -358,7 +358,7 @@ public static class Builder implements ObjectBuilder { /** * The number of active primary shards. - * + *

* API name: {@code active_primary_shards} */ public Builder activePrimaryShards(Number value) { @@ -368,7 +368,7 @@ public Builder activePrimaryShards(Number value) { /** * The total number of active primary and replica shards. - * + *

* API name: {@code active_shards} */ public Builder activeShards(Number value) { @@ -378,7 +378,7 @@ public Builder activeShards(Number value) { /** * The ratio of active shards in the cluster expressed as a percentage. - * + *

* API name: {@code active_shards_percent_as_number} */ public Builder activeShardsPercentAsNumber(JsonValue value) { @@ -388,7 +388,7 @@ public Builder activeShardsPercentAsNumber(JsonValue value) { /** * The name of the cluster. - * + *

* API name: {@code cluster_name} */ public Builder clusterName(String value) { @@ -399,7 +399,7 @@ public Builder clusterName(String value) { /** * The number of shards whose allocation has been delayed by the timeout * settings. - * + *

* API name: {@code delayed_unassigned_shards} */ public Builder delayedUnassignedShards(Number value) { @@ -442,7 +442,7 @@ public Builder putIndices(String key, Function * API name: {@code initializing_shards} */ public Builder initializingShards(Number value) { @@ -452,7 +452,7 @@ public Builder initializingShards(Number value) { /** * The number of nodes that are dedicated data nodes. - * + *

* API name: {@code number_of_data_nodes} */ public Builder numberOfDataNodes(Number value) { @@ -470,7 +470,7 @@ public Builder numberOfInFlightFetch(Number value) { /** * The number of nodes within the cluster. - * + *

* API name: {@code number_of_nodes} */ public Builder numberOfNodes(Number value) { @@ -480,7 +480,7 @@ public Builder numberOfNodes(Number value) { /** * The number of cluster-level changes that have not yet been executed. - * + *

* API name: {@code number_of_pending_tasks} */ public Builder numberOfPendingTasks(Number value) { @@ -490,7 +490,7 @@ public Builder numberOfPendingTasks(Number value) { /** * The number of shards that are under relocation. - * + *

* API name: {@code relocating_shards} */ public Builder relocatingShards(Number value) { @@ -509,7 +509,7 @@ public Builder status(JsonValue value) { /** * The time expressed in milliseconds since the earliest initiated task is * waiting for being performed. - * + *

* API name: {@code task_max_waiting_in_queue_millis} */ public Builder taskMaxWaitingInQueueMillis(JsonValue value) { @@ -520,7 +520,7 @@ public Builder taskMaxWaitingInQueueMillis(JsonValue value) { /** * If false the response returned within the period of time that is specified by * the timeout parameter (30s by default) - * + *

* API name: {@code timed_out} */ public Builder timedOut(Boolean value) { @@ -530,7 +530,7 @@ public Builder timedOut(Boolean value) { /** * The number of shards that are not allocated. - * + *

* API name: {@code unassigned_shards} */ public Builder unassignedShards(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java index abceab396..beabb91cc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RerouteRequest.java @@ -87,7 +87,7 @@ protected RerouteRequest(Builder builder) { /** * If true, then the request simulates the operation only and returns the * resulting state. - * + *

* API name: {@code dry_run} */ @Nullable @@ -98,7 +98,7 @@ public Boolean dryRun() { /** * If true, then the response contains an explanation of why the commands can or * cannot be executed. - * + *

* API name: {@code explain} */ @Nullable @@ -108,7 +108,7 @@ public Boolean explain() { /** * Limits the information returned to the specified metrics. - * + *

* API name: {@code metric} */ @Nullable @@ -119,7 +119,7 @@ public List metric() { /** * If true, then retries allocation of shards that are blocked due to too many * subsequent allocation failures. - * + *

* API name: {@code retry_failed} */ @Nullable @@ -130,7 +130,7 @@ public Boolean retryFailed() { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ @Nullable @@ -141,7 +141,7 @@ public JsonValue masterTimeout() { /** * Period to wait for a response. If no response is received before the timeout * expires, the request fails and returns an error. - * + *

* API name: {@code timeout} */ @Nullable @@ -151,7 +151,7 @@ public JsonValue timeout() { /** * Defines the commands to perform. - * + *

* API name: {@code commands} */ @Nullable @@ -214,7 +214,7 @@ public static class Builder implements ObjectBuilder { /** * If true, then the request simulates the operation only and returns the * resulting state. - * + *

* API name: {@code dry_run} */ public Builder dryRun(@Nullable Boolean value) { @@ -225,7 +225,7 @@ public Builder dryRun(@Nullable Boolean value) { /** * If true, then the response contains an explanation of why the commands can or * cannot be executed. - * + *

* API name: {@code explain} */ public Builder explain(@Nullable Boolean value) { @@ -235,7 +235,7 @@ public Builder explain(@Nullable Boolean value) { /** * Limits the information returned to the specified metrics. - * + *

* API name: {@code metric} */ public Builder metric(@Nullable List value) { @@ -245,7 +245,7 @@ public Builder metric(@Nullable List value) { /** * Limits the information returned to the specified metrics. - * + *

* API name: {@code metric} */ public Builder metric(String... value) { @@ -267,7 +267,7 @@ public Builder addMetric(String value) { /** * If true, then retries allocation of shards that are blocked due to too many * subsequent allocation failures. - * + *

* API name: {@code retry_failed} */ public Builder retryFailed(@Nullable Boolean value) { @@ -278,7 +278,7 @@ public Builder retryFailed(@Nullable Boolean value) { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -289,7 +289,7 @@ public Builder masterTimeout(@Nullable JsonValue value) { /** * Period to wait for a response. If no response is received before the timeout * expires, the request fails and returns an error. - * + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -299,7 +299,7 @@ public Builder timeout(@Nullable JsonValue value) { /** * Defines the commands to perform. - * + *

* API name: {@code commands} */ public Builder commands(@Nullable List value) { @@ -309,7 +309,7 @@ public Builder commands(@Nullable List value) { /** * Defines the commands to perform. - * + *

* API name: {@code commands} */ public Builder commands(Command... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StatsRequest.java index be1e5322c..c42e1a9f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StatsRequest.java @@ -62,7 +62,7 @@ protected StatsRequest(Builder builder) { /** * Comma-separated list of node filters used to limit returned information. * Defaults to all nodes in the cluster. - * + *

* API name: {@code node_id} */ @Nullable @@ -83,7 +83,7 @@ public Boolean flatSettings() { * its timeout expires, the response does not include its stats. However, timed * out nodes are included in the response’s _nodes.failed property. Defaults to * no timeout. - * + *

* API name: {@code timeout} */ @Nullable @@ -109,7 +109,7 @@ public static class Builder implements ObjectBuilder { /** * Comma-separated list of node filters used to limit returned information. * Defaults to all nodes in the cluster. - * + *

* API name: {@code node_id} */ public Builder nodeId(@Nullable String value) { @@ -130,7 +130,7 @@ public Builder flatSettings(@Nullable Boolean value) { * its timeout expires, the response does not include its stats. However, timed * out nodes are included in the response’s _nodes.failed property. Defaults to * no timeout. - * + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StatsResponse.java index 450cb73dc..d7b85ecf1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StatsResponse.java @@ -69,7 +69,7 @@ protected StatsResponse(Builder builder) { /** * Name of the cluster, based on the Cluster name setting setting. - * + *

* API name: {@code cluster_name} */ public String clusterName() { @@ -78,7 +78,7 @@ public String clusterName() { /** * Unique identifier for the cluster. - * + *

* API name: {@code cluster_uuid} */ public String clusterUuid() { @@ -87,7 +87,7 @@ public String clusterUuid() { /** * Contains statistics about indices with shards assigned to selected nodes. - * + *

* API name: {@code indices} */ public ClusterIndices indices() { @@ -96,7 +96,7 @@ public ClusterIndices indices() { /** * Contains statistics about nodes selected by the request’s node filters. - * + *

* API name: {@code nodes} */ public ClusterNodes nodes() { @@ -106,7 +106,7 @@ public ClusterNodes nodes() { /** * Health status of the cluster, based on the state of its primary and replica * shards. - * + *

* API name: {@code status} */ public JsonValue status() { @@ -116,7 +116,7 @@ public JsonValue status() { /** * Unix timestamp, in milliseconds, of the last time the cluster statistics were * refreshed. - * + *

* API name: {@code timestamp} */ public Number timestamp() { @@ -168,7 +168,7 @@ public static class Builder extends NodesResponseBase.AbstractBuilder /** * Name of the cluster, based on the Cluster name setting setting. - * + *

* API name: {@code cluster_name} */ public Builder clusterName(String value) { @@ -178,7 +178,7 @@ public Builder clusterName(String value) { /** * Unique identifier for the cluster. - * + *

* API name: {@code cluster_uuid} */ public Builder clusterUuid(String value) { @@ -188,7 +188,7 @@ public Builder clusterUuid(String value) { /** * Contains statistics about indices with shards assigned to selected nodes. - * + *

* API name: {@code indices} */ public Builder indices(ClusterIndices value) { @@ -198,7 +198,7 @@ public Builder indices(ClusterIndices value) { /** * Contains statistics about indices with shards assigned to selected nodes. - * + *

* API name: {@code indices} */ public Builder indices(Function> fn) { @@ -207,7 +207,7 @@ public Builder indices(Function * API name: {@code nodes} */ public Builder nodes(ClusterNodes value) { @@ -217,7 +217,7 @@ public Builder nodes(ClusterNodes value) { /** * Contains statistics about nodes selected by the request’s node filters. - * + *

* API name: {@code nodes} */ public Builder nodes(Function> fn) { @@ -227,7 +227,7 @@ public Builder nodes(Function> /** * Health status of the cluster, based on the state of its primary and replica * shards. - * + *

* API name: {@code status} */ public Builder status(JsonValue value) { @@ -238,7 +238,7 @@ public Builder status(JsonValue value) { /** * Unix timestamp, in milliseconds, of the last time the cluster statistics were * refreshed. - * + *

* API name: {@code timestamp} */ public Builder timestamp(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/Command.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/Command.java index a6fc8347f..f4893d570 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/Command.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/Command.java @@ -72,7 +72,7 @@ protected Command(Builder builder) { * allocations can be cancelled. If it is necessary to cancel the allocation of * a primary shard then the allow_primary flag must also be included in the * request. - * + *

* API name: {@code cancel} */ @Nullable @@ -84,7 +84,7 @@ public CommandCancelAction cancel() { * Move a started shard from one node to another node. Accepts index and shard * for index name and shard number, from_node for the node to move the shard * from, and to_node for the node to move the shard to. - * + *

* API name: {@code move} */ @Nullable @@ -96,7 +96,7 @@ public CommandMoveAction move() { * Allocate an unassigned replica shard to a node. Accepts index and shard for * index name and shard number, and node to allocate the shard to. Takes * allocation deciders into account. - * + *

* API name: {@code allocate_replica} */ @Nullable @@ -113,7 +113,7 @@ public CommandAllocateReplicaAction allocateReplica() { * forcefully allocated with this command. To ensure that these implications are * well-understood, this command requires the flag accept_data_loss to be * explicitly set to true. - * + *

* API name: {@code allocate_stale_primary} */ @Nullable @@ -129,7 +129,7 @@ public CommandAllocatePrimaryAction allocateStalePrimary() { * rejoins the cluster later on, that data will be deleted. To ensure that these * implications are well-understood, this command requires the flag * accept_data_loss to be explicitly set to true. - * + *

* API name: {@code allocate_empty_primary} */ @Nullable @@ -211,7 +211,7 @@ public static class Builder implements ObjectBuilder { * allocations can be cancelled. If it is necessary to cancel the allocation of * a primary shard then the allow_primary flag must also be included in the * request. - * + *

* API name: {@code cancel} */ public Builder cancel(@Nullable CommandCancelAction value) { @@ -228,7 +228,7 @@ public Builder cancel(@Nullable CommandCancelAction value) { * allocations can be cancelled. If it is necessary to cancel the allocation of * a primary shard then the allow_primary flag must also be included in the * request. - * + *

* API name: {@code cancel} */ public Builder cancel(Function> fn) { @@ -239,7 +239,7 @@ public Builder cancel(Function * API name: {@code move} */ public Builder move(@Nullable CommandMoveAction value) { @@ -251,7 +251,7 @@ public Builder move(@Nullable CommandMoveAction value) { * Move a started shard from one node to another node. Accepts index and shard * for index name and shard number, from_node for the node to move the shard * from, and to_node for the node to move the shard to. - * + *

* API name: {@code move} */ public Builder move(Function> fn) { @@ -262,7 +262,7 @@ public Builder move(Function * API name: {@code allocate_replica} */ public Builder allocateReplica(@Nullable CommandAllocateReplicaAction value) { @@ -274,7 +274,7 @@ public Builder allocateReplica(@Nullable CommandAllocateReplicaAction value) { * Allocate an unassigned replica shard to a node. Accepts index and shard for * index name and shard number, and node to allocate the shard to. Takes * allocation deciders into account. - * + *

* API name: {@code allocate_replica} */ public Builder allocateReplica( @@ -291,7 +291,7 @@ public Builder allocateReplica( * forcefully allocated with this command. To ensure that these implications are * well-understood, this command requires the flag accept_data_loss to be * explicitly set to true. - * + *

* API name: {@code allocate_stale_primary} */ public Builder allocateStalePrimary(@Nullable CommandAllocatePrimaryAction value) { @@ -308,7 +308,7 @@ public Builder allocateStalePrimary(@Nullable CommandAllocatePrimaryAction value * forcefully allocated with this command. To ensure that these implications are * well-understood, this command requires the flag accept_data_loss to be * explicitly set to true. - * + *

* API name: {@code allocate_stale_primary} */ public Builder allocateStalePrimary( @@ -324,7 +324,7 @@ public Builder allocateStalePrimary( * rejoins the cluster later on, that data will be deleted. To ensure that these * implications are well-understood, this command requires the flag * accept_data_loss to be explicitly set to true. - * + *

* API name: {@code allocate_empty_primary} */ public Builder allocateEmptyPrimary(@Nullable CommandAllocatePrimaryAction value) { @@ -340,7 +340,7 @@ public Builder allocateEmptyPrimary(@Nullable CommandAllocatePrimaryAction value * rejoins the cluster later on, that data will be deleted. To ensure that these * implications are well-understood, this command requires the flag * accept_data_loss to be explicitly set to true. - * + *

* API name: {@code allocate_empty_primary} */ public Builder allocateEmptyPrimary( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocatePrimaryAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocatePrimaryAction.java index b30a99e0e..6fd7e905a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocatePrimaryAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandAllocatePrimaryAction.java @@ -83,7 +83,7 @@ public String node() { * If a node which has a copy of the data rejoins the cluster later on, that * data will be deleted. To ensure that these implications are well-understood, * this command requires the flag accept_data_loss to be explicitly set to true - * + *

* API name: {@code accept_data_loss} */ public Boolean acceptDataLoss() { @@ -157,7 +157,7 @@ public Builder node(String value) { * If a node which has a copy of the data rejoins the cluster later on, that * data will be deleted. To ensure that these implications are well-understood, * this command requires the flag accept_data_loss to be explicitly set to true - * + *

* API name: {@code accept_data_loss} */ public Builder acceptDataLoss(Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandMoveAction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandMoveAction.java index 72905e380..478bae616 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandMoveAction.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/reroute/CommandMoveAction.java @@ -73,7 +73,7 @@ public Number shard() { /** * The node to move the shard from - * + *

* API name: {@code from_node} */ public String fromNode() { @@ -82,7 +82,7 @@ public String fromNode() { /** * The node to move the shard to - * + *

* API name: {@code to_node} */ public String toNode() { @@ -146,7 +146,7 @@ public Builder shard(Number value) { /** * The node to move the shard from - * + *

* API name: {@code from_node} */ public Builder fromNode(String value) { @@ -156,7 +156,7 @@ public Builder fromNode(String value) { /** * The node to move the shard to - * + *

* API name: {@code to_node} */ public Builder toNode(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java index b089c3425..5f78f7d48 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndices.java @@ -90,7 +90,7 @@ protected ClusterIndices(Builder builder) { /** * Contains statistics about memory used for completion in selected nodes. - * + *

* API name: {@code completion} */ public CompletionStats completion() { @@ -99,7 +99,7 @@ public CompletionStats completion() { /** * Total number of indices with shards assigned to selected nodes. - * + *

* API name: {@code count} */ public Number count() { @@ -108,7 +108,7 @@ public Number count() { /** * Contains counts for documents in selected nodes. - * + *

* API name: {@code docs} */ public DocStats docs() { @@ -117,7 +117,7 @@ public DocStats docs() { /** * Contains statistics about the field data cache of selected nodes. - * + *

* API name: {@code fielddata} */ public FielddataStats fielddata() { @@ -126,7 +126,7 @@ public FielddataStats fielddata() { /** * Contains statistics about the query cache of selected nodes. - * + *

* API name: {@code query_cache} */ public QueryCacheStats queryCache() { @@ -135,7 +135,7 @@ public QueryCacheStats queryCache() { /** * Contains statistics about segments in selected nodes. - * + *

* API name: {@code segments} */ public SegmentsStats segments() { @@ -144,7 +144,7 @@ public SegmentsStats segments() { /** * Contains statistics about indices with shards assigned to selected nodes. - * + *

* API name: {@code shards} */ public ClusterIndicesShards shards() { @@ -153,7 +153,7 @@ public ClusterIndicesShards shards() { /** * Contains statistics about the size of shards assigned to selected nodes. - * + *

* API name: {@code store} */ public StoreStats store() { @@ -162,7 +162,7 @@ public StoreStats store() { /** * Contains statistics about field mappings in selected nodes. - * + *

* API name: {@code mappings} */ public FieldTypesMappings mappings() { @@ -172,7 +172,7 @@ public FieldTypesMappings mappings() { /** * Contains statistics about analyzers and analyzer components used in selected * nodes. - * + *

* API name: {@code analysis} */ public CharFilterTypes analysis() { @@ -273,7 +273,7 @@ public static class Builder implements ObjectBuilder { /** * Contains statistics about memory used for completion in selected nodes. - * + *

* API name: {@code completion} */ public Builder completion(CompletionStats value) { @@ -283,7 +283,7 @@ public Builder completion(CompletionStats value) { /** * Contains statistics about memory used for completion in selected nodes. - * + *

* API name: {@code completion} */ public Builder completion(Function> fn) { @@ -292,7 +292,7 @@ public Builder completion(Function * API name: {@code count} */ public Builder count(Number value) { @@ -302,7 +302,7 @@ public Builder count(Number value) { /** * Contains counts for documents in selected nodes. - * + *

* API name: {@code docs} */ public Builder docs(DocStats value) { @@ -312,7 +312,7 @@ public Builder docs(DocStats value) { /** * Contains counts for documents in selected nodes. - * + *

* API name: {@code docs} */ public Builder docs(Function> fn) { @@ -321,7 +321,7 @@ public Builder docs(Function> fn) { /** * Contains statistics about the field data cache of selected nodes. - * + *

* API name: {@code fielddata} */ public Builder fielddata(FielddataStats value) { @@ -331,7 +331,7 @@ public Builder fielddata(FielddataStats value) { /** * Contains statistics about the field data cache of selected nodes. - * + *

* API name: {@code fielddata} */ public Builder fielddata(Function> fn) { @@ -340,7 +340,7 @@ public Builder fielddata(Function * API name: {@code query_cache} */ public Builder queryCache(QueryCacheStats value) { @@ -350,7 +350,7 @@ public Builder queryCache(QueryCacheStats value) { /** * Contains statistics about the query cache of selected nodes. - * + *

* API name: {@code query_cache} */ public Builder queryCache(Function> fn) { @@ -359,7 +359,7 @@ public Builder queryCache(Function * API name: {@code segments} */ public Builder segments(SegmentsStats value) { @@ -369,7 +369,7 @@ public Builder segments(SegmentsStats value) { /** * Contains statistics about segments in selected nodes. - * + *

* API name: {@code segments} */ public Builder segments(Function> fn) { @@ -378,7 +378,7 @@ public Builder segments(Function * API name: {@code shards} */ public Builder shards(ClusterIndicesShards value) { @@ -388,7 +388,7 @@ public Builder shards(ClusterIndicesShards value) { /** * Contains statistics about indices with shards assigned to selected nodes. - * + *

* API name: {@code shards} */ public Builder shards(Function> fn) { @@ -397,7 +397,7 @@ public Builder shards(Function * API name: {@code store} */ public Builder store(StoreStats value) { @@ -407,7 +407,7 @@ public Builder store(StoreStats value) { /** * Contains statistics about the size of shards assigned to selected nodes. - * + *

* API name: {@code store} */ public Builder store(Function> fn) { @@ -416,7 +416,7 @@ public Builder store(Function> fn) /** * Contains statistics about field mappings in selected nodes. - * + *

* API name: {@code mappings} */ public Builder mappings(FieldTypesMappings value) { @@ -426,7 +426,7 @@ public Builder mappings(FieldTypesMappings value) { /** * Contains statistics about field mappings in selected nodes. - * + *

* API name: {@code mappings} */ public Builder mappings(Function> fn) { @@ -436,7 +436,7 @@ public Builder mappings(Function * API name: {@code analysis} */ public Builder analysis(CharFilterTypes value) { @@ -447,7 +447,7 @@ public Builder analysis(CharFilterTypes value) { /** * Contains statistics about analyzers and analyzer components used in selected * nodes. - * + *

* API name: {@code analysis} */ public Builder analysis(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShards.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShards.java index 2fce1af67..4dcc5e29f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShards.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShards.java @@ -62,7 +62,7 @@ protected ClusterIndicesShards(Builder builder) { /** * Contains statistics about shards assigned to selected nodes. - * + *

* API name: {@code index} */ @Nullable @@ -72,7 +72,7 @@ public ClusterIndicesShardsIndex index() { /** * Number of primary shards assigned to selected nodes. - * + *

* API name: {@code primaries} */ @Nullable @@ -82,7 +82,7 @@ public Number primaries() { /** * Ratio of replica shards to primary shards across all selected nodes. - * + *

* API name: {@code replication} */ @Nullable @@ -92,7 +92,7 @@ public Number replication() { /** * Total number of shards assigned to selected nodes. - * + *

* API name: {@code total} */ @Nullable @@ -158,7 +158,7 @@ public static class Builder implements ObjectBuilder { /** * Contains statistics about shards assigned to selected nodes. - * + *

* API name: {@code index} */ public Builder index(@Nullable ClusterIndicesShardsIndex value) { @@ -168,7 +168,7 @@ public Builder index(@Nullable ClusterIndicesShardsIndex value) { /** * Contains statistics about shards assigned to selected nodes. - * + *

* API name: {@code index} */ public Builder index(Function> fn) { @@ -177,7 +177,7 @@ public Builder index(Function * API name: {@code primaries} */ public Builder primaries(@Nullable Number value) { @@ -187,7 +187,7 @@ public Builder primaries(@Nullable Number value) { /** * Ratio of replica shards to primary shards across all selected nodes. - * + *

* API name: {@code replication} */ public Builder replication(@Nullable Number value) { @@ -197,7 +197,7 @@ public Builder replication(@Nullable Number value) { /** * Total number of shards assigned to selected nodes. - * + *

* API name: {@code total} */ public Builder total(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShardsIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShardsIndex.java index cc1a9d0e8..3ef6f4998 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShardsIndex.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterIndicesShardsIndex.java @@ -56,7 +56,7 @@ protected ClusterIndicesShardsIndex(Builder builder) { /** * Contains statistics about the number of primary shards assigned to selected * nodes. - * + *

* API name: {@code primaries} */ public ClusterShardMetrics primaries() { @@ -66,7 +66,7 @@ public ClusterShardMetrics primaries() { /** * Contains statistics about the number of replication shards assigned to * selected nodes. - * + *

* API name: {@code replication} */ public ClusterShardMetrics replication() { @@ -75,7 +75,7 @@ public ClusterShardMetrics replication() { /** * Contains statistics about the number of shards assigned to selected nodes. - * + *

* API name: {@code shards} */ public ClusterShardMetrics shards() { @@ -119,7 +119,7 @@ public static class Builder implements ObjectBuilder /** * Contains statistics about the number of primary shards assigned to selected * nodes. - * + *

* API name: {@code primaries} */ public Builder primaries(ClusterShardMetrics value) { @@ -130,7 +130,7 @@ public Builder primaries(ClusterShardMetrics value) { /** * Contains statistics about the number of primary shards assigned to selected * nodes. - * + *

* API name: {@code primaries} */ public Builder primaries(Function> fn) { @@ -140,7 +140,7 @@ public Builder primaries(Function * API name: {@code replication} */ public Builder replication(ClusterShardMetrics value) { @@ -151,7 +151,7 @@ public Builder replication(ClusterShardMetrics value) { /** * Contains statistics about the number of replication shards assigned to * selected nodes. - * + *

* API name: {@code replication} */ public Builder replication(Function> fn) { @@ -160,7 +160,7 @@ public Builder replication(Function * API name: {@code shards} */ public Builder shards(ClusterShardMetrics value) { @@ -170,7 +170,7 @@ public Builder shards(ClusterShardMetrics value) { /** * Contains statistics about the number of shards assigned to selected nodes. - * + *

* API name: {@code shards} */ public Builder shards(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodes.java index 0e8204b84..4a3c9c10e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/stats/ClusterNodes.java @@ -87,7 +87,7 @@ protected ClusterNodes(Builder builder) { /** * Contains counts for nodes selected by the request’s node filters. - * + *

* API name: {@code count} */ public ClusterNodeCount count() { @@ -96,7 +96,7 @@ public ClusterNodeCount count() { /** * Contains statistics about the discovery types used by selected nodes. - * + *

* API name: {@code discovery_types} */ public Map discoveryTypes() { @@ -105,7 +105,7 @@ public Map discoveryTypes() { /** * Contains statistics about file stores by selected nodes. - * + *

* API name: {@code fs} */ public ClusterFileSystem fs() { @@ -122,7 +122,7 @@ public ClusterIngest ingest() { /** * Contains statistics about the Java Virtual Machines (JVMs) used by selected * nodes. - * + *

* API name: {@code jvm} */ public ClusterJvm jvm() { @@ -132,7 +132,7 @@ public ClusterJvm jvm() { /** * Contains statistics about the transport and HTTP networks used by selected * nodes. - * + *

* API name: {@code network_types} */ public ClusterNetworkTypes networkTypes() { @@ -141,7 +141,7 @@ public ClusterNetworkTypes networkTypes() { /** * Contains statistics about the operating systems used by selected nodes. - * + *

* API name: {@code os} */ public ClusterOperatingSystem os() { @@ -151,7 +151,7 @@ public ClusterOperatingSystem os() { /** * Contains statistics about Elasticsearch distributions installed on selected * nodes. - * + *

* API name: {@code packaging_types} */ public List packagingTypes() { @@ -160,7 +160,7 @@ public List packagingTypes() { /** * Contains statistics about installed plugins and modules by selected nodes. - * + *

* API name: {@code plugins} */ public List plugins() { @@ -169,7 +169,7 @@ public List plugins() { /** * Contains statistics about processes used by selected nodes. - * + *

* API name: {@code process} */ public ClusterProcess process() { @@ -178,7 +178,7 @@ public ClusterProcess process() { /** * Array of Elasticsearch versions used on selected nodes. - * + *

* API name: {@code versions} */ public List versions() { @@ -282,7 +282,7 @@ public static class Builder implements ObjectBuilder { /** * Contains counts for nodes selected by the request’s node filters. - * + *

* API name: {@code count} */ public Builder count(ClusterNodeCount value) { @@ -292,7 +292,7 @@ public Builder count(ClusterNodeCount value) { /** * Contains counts for nodes selected by the request’s node filters. - * + *

* API name: {@code count} */ public Builder count(Function> fn) { @@ -301,7 +301,7 @@ public Builder count(Function * API name: {@code discovery_types} */ public Builder discoveryTypes(Map value) { @@ -322,7 +322,7 @@ public Builder putDiscoveryTypes(String key, Number value) { /** * Contains statistics about file stores by selected nodes. - * + *

* API name: {@code fs} */ public Builder fs(ClusterFileSystem value) { @@ -332,7 +332,7 @@ public Builder fs(ClusterFileSystem value) { /** * Contains statistics about file stores by selected nodes. - * + *

* API name: {@code fs} */ public Builder fs(Function> fn) { @@ -357,7 +357,7 @@ public Builder ingest(Function * API name: {@code jvm} */ public Builder jvm(ClusterJvm value) { @@ -368,7 +368,7 @@ public Builder jvm(ClusterJvm value) { /** * Contains statistics about the Java Virtual Machines (JVMs) used by selected * nodes. - * + *

* API name: {@code jvm} */ public Builder jvm(Function> fn) { @@ -378,7 +378,7 @@ public Builder jvm(Function> fn) { /** * Contains statistics about the transport and HTTP networks used by selected * nodes. - * + *

* API name: {@code network_types} */ public Builder networkTypes(ClusterNetworkTypes value) { @@ -389,7 +389,7 @@ public Builder networkTypes(ClusterNetworkTypes value) { /** * Contains statistics about the transport and HTTP networks used by selected * nodes. - * + *

* API name: {@code network_types} */ public Builder networkTypes(Function> fn) { @@ -398,7 +398,7 @@ public Builder networkTypes(Function * API name: {@code os} */ public Builder os(ClusterOperatingSystem value) { @@ -408,7 +408,7 @@ public Builder os(ClusterOperatingSystem value) { /** * Contains statistics about the operating systems used by selected nodes. - * + *

* API name: {@code os} */ public Builder os(Function> fn) { @@ -418,7 +418,7 @@ public Builder os(Function * API name: {@code packaging_types} */ public Builder packagingTypes(List value) { @@ -429,7 +429,7 @@ public Builder packagingTypes(List value) { /** * Contains statistics about Elasticsearch distributions installed on selected * nodes. - * + *

* API name: {@code packaging_types} */ public Builder packagingTypes(NodePackagingType... value) { @@ -464,7 +464,7 @@ public Builder addPackagingTypes(Function * API name: {@code plugins} */ public Builder plugins(List value) { @@ -474,7 +474,7 @@ public Builder plugins(List value) { /** * Contains statistics about installed plugins and modules by selected nodes. - * + *

* API name: {@code plugins} */ public Builder plugins(PluginStats... value) { @@ -509,7 +509,7 @@ public Builder addPlugins(Function * API name: {@code process} */ public Builder process(ClusterProcess value) { @@ -519,7 +519,7 @@ public Builder process(ClusterProcess value) { /** * Contains statistics about processes used by selected nodes. - * + *

* API name: {@code process} */ public Builder process(Function> fn) { @@ -528,7 +528,7 @@ public Builder process(Function * API name: {@code versions} */ public Builder versions(List value) { @@ -538,7 +538,7 @@ public Builder versions(List value) { /** * Array of Elasticsearch versions used on selected nodes. - * + *

* API name: {@code versions} */ public Builder versions(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/IndexDeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/IndexDeleteRequest.java index e5ca0dd7d..3ffbae88b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/IndexDeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/IndexDeleteRequest.java @@ -71,7 +71,7 @@ public String stubA() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code index_uuid} */ @Nullable @@ -134,7 +134,7 @@ public Builder stubA(String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code index_uuid} */ public Builder indexUuid(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/IndexImportRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/IndexImportRequest.java index 559ddcc4c..8dad2cd4b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/IndexImportRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/IndexImportRequest.java @@ -71,7 +71,7 @@ public String stubA() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code index_uuid} */ @Nullable @@ -134,7 +134,7 @@ public Builder stubA(String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code index_uuid} */ public Builder indexUuid(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/DeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/DeleteRequest.java index e28fb263f..516a2a9d7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/DeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/DeleteRequest.java @@ -50,7 +50,7 @@ protected DeleteRequest(Builder builder) { /** * Identifier for the search to delete. - * + *

* API name: {@code id} */ public String id() { @@ -67,7 +67,7 @@ public static class Builder implements ObjectBuilder { /** * Identifier for the search to delete. - * + *

* API name: {@code id} */ public Builder id(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java index 5a80643bf..23d8d36ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlHits.java @@ -67,7 +67,7 @@ protected EqlHits(Builder builder) { /** * Metadata about the number of matching events or sequences. - * + *

* API name: {@code total} */ @Nullable @@ -77,7 +77,7 @@ public TotalHits total() { /** * Contains events matching the query. Each object represents a matching event. - * + *

* API name: {@code events} */ @Nullable @@ -89,7 +89,7 @@ public List> events() { * Contains event sequences matching the query. Each object represents a * matching sequence. This parameter is only returned for EQL queries containing * a sequence. - * + *

* API name: {@code sequences} */ @Nullable @@ -159,7 +159,7 @@ public static class Builder implements ObjectBuilder> { /** * Metadata about the number of matching events or sequences. - * + *

* API name: {@code total} */ public Builder total(@Nullable TotalHits value) { @@ -169,7 +169,7 @@ public Builder total(@Nullable TotalHits value) { /** * Metadata about the number of matching events or sequences. - * + *

* API name: {@code total} */ public Builder total(Function> fn) { @@ -178,7 +178,7 @@ public Builder total(Function * API name: {@code events} */ public Builder events(@Nullable List> value) { @@ -188,7 +188,7 @@ public Builder events(@Nullable List> value) { /** * Contains events matching the query. Each object represents a matching event. - * + *

* API name: {@code events} */ public Builder events(HitsEvent... value) { @@ -225,7 +225,7 @@ public Builder addEvents(Function, ObjectBuild * Contains event sequences matching the query. Each object represents a * matching sequence. This parameter is only returned for EQL queries containing * a sequence. - * + *

* API name: {@code sequences} */ public Builder sequences(@Nullable List> value) { @@ -237,7 +237,7 @@ public Builder sequences(@Nullable List> value) { * Contains event sequences matching the query. Each object represents a * matching sequence. This parameter is only returned for EQL queries containing * a sequence. - * + *

* API name: {@code sequences} */ public Builder sequences(HitsSequence... value) { @@ -275,7 +275,6 @@ public Builder addSequences( /** * Serializer for TEvent. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tEventSerializer(@Nullable JsonpSerializer value) { this.tEventSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponseBase.java index 60d54d2d1..63150ec5a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/EqlSearchResponseBase.java @@ -77,7 +77,7 @@ protected EqlSearchResponseBase(AbstractBuilder builder) { /** * Identifier for the search. - * + *

* API name: {@code id} */ @Nullable @@ -87,7 +87,7 @@ public String id() { /** * If true, the response does not contain complete search results. - * + *

* API name: {@code is_partial} */ @Nullable @@ -97,7 +97,7 @@ public Boolean isPartial() { /** * If true, the search request is still executing. - * + *

* API name: {@code is_running} */ @Nullable @@ -107,7 +107,7 @@ public Boolean isRunning() { /** * Milliseconds it took Elasticsearch to execute the request. - * + *

* API name: {@code took} */ @Nullable @@ -117,7 +117,7 @@ public Number took() { /** * If true, the request timed out before completion. - * + *

* API name: {@code timed_out} */ @Nullable @@ -127,7 +127,7 @@ public Boolean timedOut() { /** * Contains matching events and sequences. Also contains related metadata. - * + *

* API name: {@code hits} */ public EqlHits hits() { @@ -204,7 +204,7 @@ protected abstract static class AbstractBuilder * API name: {@code id} */ public BuilderT id(@Nullable String value) { @@ -214,7 +214,7 @@ public BuilderT id(@Nullable String value) { /** * If true, the response does not contain complete search results. - * + *

* API name: {@code is_partial} */ public BuilderT isPartial(@Nullable Boolean value) { @@ -224,7 +224,7 @@ public BuilderT isPartial(@Nullable Boolean value) { /** * If true, the search request is still executing. - * + *

* API name: {@code is_running} */ public BuilderT isRunning(@Nullable Boolean value) { @@ -234,7 +234,7 @@ public BuilderT isRunning(@Nullable Boolean value) { /** * Milliseconds it took Elasticsearch to execute the request. - * + *

* API name: {@code took} */ public BuilderT took(@Nullable Number value) { @@ -244,7 +244,7 @@ public BuilderT took(@Nullable Number value) { /** * If true, the request timed out before completion. - * + *

* API name: {@code timed_out} */ public BuilderT timedOut(@Nullable Boolean value) { @@ -254,7 +254,7 @@ public BuilderT timedOut(@Nullable Boolean value) { /** * Contains matching events and sequences. Also contains related metadata. - * + *

* API name: {@code hits} */ public BuilderT hits(EqlHits value) { @@ -264,7 +264,7 @@ public BuilderT hits(EqlHits value) { /** * Contains matching events and sequences. Also contains related metadata. - * + *

* API name: {@code hits} */ public BuilderT hits(Function, ObjectBuilder>> fn) { @@ -274,7 +274,6 @@ public BuilderT hits(Function, ObjectBuilder value) { this.tEventSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetRequest.java index aec2ddced..fa5e772fd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetRequest.java @@ -60,7 +60,7 @@ protected GetRequest(Builder builder) { /** * Identifier for the search. - * + *

* API name: {@code id} */ public String id() { @@ -70,7 +70,7 @@ public String id() { /** * Period for which the search and its results are stored on the cluster. * Defaults to the keep_alive value set by the search’s EQL search API request. - * + *

* API name: {@code keep_alive} */ @Nullable @@ -81,7 +81,7 @@ public JsonValue keepAlive() { /** * Timeout duration to wait for the request to finish. Defaults to no timeout, * meaning the request waits for complete search results. - * + *

* API name: {@code wait_for_completion_timeout} */ @Nullable @@ -105,7 +105,7 @@ public static class Builder implements ObjectBuilder { /** * Identifier for the search. - * + *

* API name: {@code id} */ public Builder id(String value) { @@ -116,7 +116,7 @@ public Builder id(String value) { /** * Period for which the search and its results are stored on the cluster. * Defaults to the keep_alive value set by the search’s EQL search API request. - * + *

* API name: {@code keep_alive} */ public Builder keepAlive(@Nullable JsonValue value) { @@ -127,7 +127,7 @@ public Builder keepAlive(@Nullable JsonValue value) { /** * Timeout duration to wait for the request to finish. Defaults to no timeout, * meaning the request waits for complete search results. - * + *

* API name: {@code wait_for_completion_timeout} */ public Builder waitForCompletionTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetResponse.java index 3c5c9622c..db52654d6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetResponse.java @@ -60,7 +60,6 @@ public static class Builder extends EqlSearchResponseBase.AbstractBuilde /** * Serializer for TEvent. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tEventSerializer(@Nullable JsonpSerializer value) { this.tEventSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetStatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetStatusRequest.java index a50f48a3f..e00bbd328 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetStatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetStatusRequest.java @@ -50,7 +50,7 @@ protected GetStatusRequest(Builder builder) { /** * Identifier for the search. - * + *

* API name: {@code id} */ public String id() { @@ -67,7 +67,7 @@ public static class Builder implements ObjectBuilder { /** * Identifier for the search. - * + *

* API name: {@code id} */ public Builder id(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetStatusResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetStatusResponse.java index 63623add8..68ac837e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetStatusResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/GetStatusResponse.java @@ -70,7 +70,7 @@ protected GetStatusResponse(Builder builder) { /** * Identifier for the search. - * + *

* API name: {@code id} */ public String id() { @@ -80,7 +80,7 @@ public String id() { /** * If true, the search request is still executing. If false, the search is * completed. - * + *

* API name: {@code is_partial} */ public Boolean isPartial() { @@ -92,7 +92,7 @@ public Boolean isPartial() { * because either the search is still running (is_running status is false), or * because it is already completed (is_running status is true) and results are * partial due to failures or timeouts. - * + *

* API name: {@code is_running} */ public Boolean isRunning() { @@ -102,7 +102,7 @@ public Boolean isRunning() { /** * For a running search shows a timestamp when the eql search started, in * milliseconds since the Unix epoch. - * + *

* API name: {@code start_time_in_millis} */ @Nullable @@ -114,7 +114,7 @@ public JsonValue startTimeInMillis() { * Shows a timestamp when the eql search will be expired, in milliseconds since * the Unix epoch. When this time is reached, the search and its results are * deleted, even if the search is still ongoing. - * + *

* API name: {@code expiration_time_in_millis} */ @Nullable @@ -124,7 +124,7 @@ public JsonValue expirationTimeInMillis() { /** * For a completed search shows the http status code of the completed search. - * + *

* API name: {@code completion_status} */ @Nullable @@ -196,7 +196,7 @@ public static class Builder implements ObjectBuilder { /** * Identifier for the search. - * + *

* API name: {@code id} */ public Builder id(String value) { @@ -207,7 +207,7 @@ public Builder id(String value) { /** * If true, the search request is still executing. If false, the search is * completed. - * + *

* API name: {@code is_partial} */ public Builder isPartial(Boolean value) { @@ -220,7 +220,7 @@ public Builder isPartial(Boolean value) { * because either the search is still running (is_running status is false), or * because it is already completed (is_running status is true) and results are * partial due to failures or timeouts. - * + *

* API name: {@code is_running} */ public Builder isRunning(Boolean value) { @@ -231,7 +231,7 @@ public Builder isRunning(Boolean value) { /** * For a running search shows a timestamp when the eql search started, in * milliseconds since the Unix epoch. - * + *

* API name: {@code start_time_in_millis} */ public Builder startTimeInMillis(@Nullable JsonValue value) { @@ -243,7 +243,7 @@ public Builder startTimeInMillis(@Nullable JsonValue value) { * Shows a timestamp when the eql search will be expired, in milliseconds since * the Unix epoch. When this time is reached, the search and its results are * deleted, even if the search is still ongoing. - * + *

* API name: {@code expiration_time_in_millis} */ public Builder expirationTimeInMillis(@Nullable JsonValue value) { @@ -253,7 +253,7 @@ public Builder expirationTimeInMillis(@Nullable JsonValue value) { /** * For a completed search shows the http status code of the completed search. - * + *

* API name: {@code completion_status} */ public Builder completionStatus(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java index 80390f237..442458874 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsEvent.java @@ -70,7 +70,7 @@ protected HitsEvent(Builder builder) { /** * Name of the index containing the event. - * + *

* API name: {@code _index} */ public String index() { @@ -79,7 +79,7 @@ public String index() { /** * Unique identifier for the event. This ID is only unique within the index. - * + *

* API name: {@code _id} */ public String id() { @@ -88,7 +88,7 @@ public String id() { /** * Original JSON body passed for the event at index time. - * + *

* API name: {@code _source} */ public TEvent source() { @@ -163,7 +163,7 @@ public static class Builder implements ObjectBuilder> /** * Name of the index containing the event. - * + *

* API name: {@code _index} */ public Builder index(String value) { @@ -173,7 +173,7 @@ public Builder index(String value) { /** * Unique identifier for the event. This ID is only unique within the index. - * + *

* API name: {@code _id} */ public Builder id(String value) { @@ -183,7 +183,7 @@ public Builder id(String value) { /** * Original JSON body passed for the event at index time. - * + *

* API name: {@code _source} */ public Builder source(TEvent value) { @@ -213,7 +213,6 @@ public Builder putFields(String key, List value) { /** * Serializer for TEvent. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tEventSerializer(@Nullable JsonpSerializer value) { this.tEventSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java index 6ba7e7591..61e02b3c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/HitsSequence.java @@ -62,7 +62,7 @@ protected HitsSequence(Builder builder) { /** * Contains events matching the query. Each object represents a matching event. - * + *

* API name: {@code events} */ public List> events() { @@ -72,7 +72,7 @@ public List> events() { /** * Shared field values used to constrain matches in the sequence. These are * defined using the by keyword in the EQL query syntax. - * + *

* API name: {@code join_keys} */ public List joinKeys() { @@ -123,7 +123,7 @@ public static class Builder implements ObjectBuilder * API name: {@code events} */ public Builder events(List> value) { @@ -133,7 +133,7 @@ public Builder events(List> value) { /** * Contains events matching the query. Each object represents a matching event. - * + *

* API name: {@code events} */ public Builder events(HitsEvent... value) { @@ -169,7 +169,7 @@ public Builder addEvents(Function, ObjectBuild /** * Shared field values used to constrain matches in the sequence. These are * defined using the by keyword in the EQL query syntax. - * + *

* API name: {@code join_keys} */ public Builder joinKeys(List value) { @@ -180,7 +180,7 @@ public Builder joinKeys(List value) { /** * Shared field values used to constrain matches in the sequence. These are * defined using the by keyword in the EQL query syntax. - * + *

* API name: {@code join_keys} */ public Builder joinKeys(JsonValue... value) { @@ -202,7 +202,6 @@ public Builder addJoinKeys(JsonValue value) { /** * Serializer for TEvent. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tEventSerializer(@Nullable JsonpSerializer value) { this.tEventSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/SearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/SearchRequest.java index 2c966ea0a..d8cc88706 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/SearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/SearchRequest.java @@ -148,7 +148,7 @@ public JsonValue expandWildcards() { /** * If true, missing or closed indices are not included in the response. - * + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -158,7 +158,7 @@ public Boolean ignoreUnavailable() { /** * EQL query you wish to run. - * + *

* API name: {@code query} */ public String query() { @@ -175,7 +175,7 @@ public Boolean caseSensitive() { /** * Field containing the event classification, such as process, file, or network. - * + *

* API name: {@code event_category_field} */ @Nullable @@ -185,7 +185,7 @@ public String eventCategoryField() { /** * Field used to sort hits with the same timestamp in ascending order - * + *

* API name: {@code tiebreaker_field} */ @Nullable @@ -194,8 +194,8 @@ public String tiebreakerField() { } /** - * Field containing event timestamp. Default "@timestamp" - * + * Field containing event timestamp. Default "@timestamp" + *

* API name: {@code timestamp_field} */ @Nullable @@ -205,7 +205,7 @@ public String timestampField() { /** * Maximum number of events to search at a time for sequence queries. - * + *

* API name: {@code fetch_size} */ @Nullable @@ -216,7 +216,7 @@ public Number fetchSize() { /** * Query, written in Query DSL, used to filter the events on which the EQL query * runs. - * + *

* API name: {@code filter} */ @Nullable @@ -251,7 +251,7 @@ public JsonValue waitForCompletionTimeout() { /** * For basic queries, the maximum number of matching events to return. Defaults * to 10 - * + *

* API name: {@code size} */ @Nullable @@ -262,7 +262,7 @@ public JsonValue size() { /** * Array of wildcard (*) patterns. The response returns values for field names * matching these patterns in the fields property of each hit. - * + *

* API name: {@code fields} */ @Nullable @@ -458,7 +458,7 @@ public Builder expandWildcards(@Nullable JsonValue value) { /** * If true, missing or closed indices are not included in the response. - * + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -468,7 +468,7 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { /** * EQL query you wish to run. - * + *

* API name: {@code query} */ public Builder query(String value) { @@ -486,7 +486,7 @@ public Builder caseSensitive(@Nullable Boolean value) { /** * Field containing the event classification, such as process, file, or network. - * + *

* API name: {@code event_category_field} */ public Builder eventCategoryField(@Nullable String value) { @@ -496,7 +496,7 @@ public Builder eventCategoryField(@Nullable String value) { /** * Field used to sort hits with the same timestamp in ascending order - * + *

* API name: {@code tiebreaker_field} */ public Builder tiebreakerField(@Nullable String value) { @@ -505,8 +505,8 @@ public Builder tiebreakerField(@Nullable String value) { } /** - * Field containing event timestamp. Default "@timestamp" - * + * Field containing event timestamp. Default "@timestamp" + *

* API name: {@code timestamp_field} */ public Builder timestampField(@Nullable String value) { @@ -516,7 +516,7 @@ public Builder timestampField(@Nullable String value) { /** * Maximum number of events to search at a time for sequence queries. - * + *

* API name: {@code fetch_size} */ public Builder fetchSize(@Nullable Number value) { @@ -527,7 +527,7 @@ public Builder fetchSize(@Nullable Number value) { /** * Query, written in Query DSL, used to filter the events on which the EQL query * runs. - * + *

* API name: {@code filter} */ public Builder filter(@Nullable List value) { @@ -538,7 +538,7 @@ public Builder filter(@Nullable List value) { /** * Query, written in Query DSL, used to filter the events on which the EQL query * runs. - * + *

* API name: {@code filter} */ public Builder filter(QueryContainer... value) { @@ -598,7 +598,7 @@ public Builder waitForCompletionTimeout(@Nullable JsonValue value) { /** * For basic queries, the maximum number of matching events to return. Defaults * to 10 - * + *

* API name: {@code size} */ public Builder size(@Nullable JsonValue value) { @@ -609,7 +609,7 @@ public Builder size(@Nullable JsonValue value) { /** * Array of wildcard (*) patterns. The response returns values for field names * matching these patterns in the fields property of each hit. - * + *

* API name: {@code fields} */ public Builder fields(@Nullable List value) { @@ -620,7 +620,7 @@ public Builder fields(@Nullable List value) { /** * Array of wildcard (*) patterns. The response returns values for field names * matching these patterns in the fields property of each hit. - * + *

* API name: {@code fields} */ public Builder fields(JsonValue... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/SearchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/SearchResponse.java index 8e54b8409..51f5d6d7b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/SearchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/SearchResponse.java @@ -60,7 +60,6 @@ public static class Builder extends EqlSearchResponseBase.AbstractBuilde /** * Serializer for TEvent. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tEventSerializer(@Nullable JsonpSerializer value) { this.tEventSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java index 41a59aecd..b4fe1dd4a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsIndexTemplateRequest.java @@ -58,7 +58,7 @@ protected ExistsIndexTemplateRequest(Builder builder) { /** * Comma-separated list of index template names used to limit the request. * Wildcard (*) expressions are supported. - * + *

* API name: {@code name} */ public String name() { @@ -68,7 +68,7 @@ public String name() { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ @Nullable @@ -90,7 +90,7 @@ public static class Builder implements ObjectBuilder /** * Comma-separated list of index template names used to limit the request. * Wildcard (*) expressions are supported. - * + *

* API name: {@code name} */ public Builder name(String value) { @@ -101,7 +101,7 @@ public Builder name(String value) { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java index d80cb1dfb..231e4a214 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetIndexTemplateRequest.java @@ -73,7 +73,7 @@ protected GetIndexTemplateRequest(Builder builder) { /** * Comma-separated list of index template names used to limit the request. * Wildcard (*) expressions are supported. - * + *

* API name: {@code name} */ @Nullable @@ -84,7 +84,7 @@ public String name() { /** * If true, the request retrieves information from the local node only. Defaults * to false, which means information is retrieved from the master node. - * + *

* API name: {@code local} */ @Nullable @@ -94,7 +94,7 @@ public Boolean local() { /** * If true, returns settings in flat format. - * + *

* API name: {@code flat_settings} */ @Nullable @@ -104,7 +104,7 @@ public Boolean flatSettings() { /** * If true, a mapping type is expected in the body of mappings. - * + *

* API name: {@code include_type_name} */ @Nullable @@ -115,7 +115,7 @@ public Boolean includeTypeName() { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ @Nullable @@ -179,7 +179,7 @@ public static class Builder implements ObjectBuilder { /** * Comma-separated list of index template names used to limit the request. * Wildcard (*) expressions are supported. - * + *

* API name: {@code name} */ public Builder name(@Nullable String value) { @@ -190,7 +190,7 @@ public Builder name(@Nullable String value) { /** * If true, the request retrieves information from the local node only. Defaults * to false, which means information is retrieved from the master node. - * + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { @@ -200,7 +200,7 @@ public Builder local(@Nullable Boolean value) { /** * If true, returns settings in flat format. - * + *

* API name: {@code flat_settings} */ public Builder flatSettings(@Nullable Boolean value) { @@ -210,7 +210,7 @@ public Builder flatSettings(@Nullable Boolean value) { /** * If true, a mapping type is expected in the body of mappings. - * + *

* API name: {@code include_type_name} */ public Builder includeTypeName(@Nullable Boolean value) { @@ -221,7 +221,7 @@ public Builder includeTypeName(@Nullable Boolean value) { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetRequest.java index 2dda62e73..014b71218 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetRequest.java @@ -90,7 +90,7 @@ protected GetRequest(Builder builder) { /** * Comma-separated list of data streams, indices, and index aliases used to * limit the request. Wildcard expressions (*) are supported. - * + *

* API name: {@code index} */ public List index() { @@ -109,7 +109,7 @@ public Boolean allowNoIndices() { * Type of index that wildcard expressions can match. If the request can target * data streams, this argument determines whether wildcard expressions match * hidden data streams. Supports comma-separated values, such as open,hidden. - * + *

* API name: {@code expand_wildcards} */ @Nullable @@ -119,7 +119,7 @@ public JsonValue expandWildcards() { /** * If true, returns settings in flat format. - * + *

* API name: {@code flat_settings} */ @Nullable @@ -129,7 +129,7 @@ public Boolean flatSettings() { /** * If false, requests that target a missing index return an error. - * + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -139,7 +139,7 @@ public Boolean ignoreUnavailable() { /** * If true, return all default settings in the response. - * + *

* API name: {@code include_defaults} */ @Nullable @@ -149,7 +149,7 @@ public Boolean includeDefaults() { /** * If true, a mapping type is expected in the body of mappings. - * + *

* API name: {@code include_type_name} */ @Nullable @@ -160,7 +160,7 @@ public Boolean includeTypeName() { /** * If true, the request retrieves information from the local node only. Defaults * to false, which means information is retrieved from the master node. - * + *

* API name: {@code local} */ @Nullable @@ -171,7 +171,7 @@ public Boolean local() { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ @Nullable @@ -214,7 +214,7 @@ public static class Builder implements ObjectBuilder { /** * Comma-separated list of data streams, indices, and index aliases used to * limit the request. Wildcard expressions (*) are supported. - * + *

* API name: {@code index} */ public Builder index(List value) { @@ -225,7 +225,7 @@ public Builder index(List value) { /** * Comma-separated list of data streams, indices, and index aliases used to * limit the request. Wildcard expressions (*) are supported. - * + *

* API name: {@code index} */ public Builder index(String... value) { @@ -256,7 +256,7 @@ public Builder allowNoIndices(@Nullable Boolean value) { * Type of index that wildcard expressions can match. If the request can target * data streams, this argument determines whether wildcard expressions match * hidden data streams. Supports comma-separated values, such as open,hidden. - * + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -266,7 +266,7 @@ public Builder expandWildcards(@Nullable JsonValue value) { /** * If true, returns settings in flat format. - * + *

* API name: {@code flat_settings} */ public Builder flatSettings(@Nullable Boolean value) { @@ -276,7 +276,7 @@ public Builder flatSettings(@Nullable Boolean value) { /** * If false, requests that target a missing index return an error. - * + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -286,7 +286,7 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { /** * If true, return all default settings in the response. - * + *

* API name: {@code include_defaults} */ public Builder includeDefaults(@Nullable Boolean value) { @@ -296,7 +296,7 @@ public Builder includeDefaults(@Nullable Boolean value) { /** * If true, a mapping type is expected in the body of mappings. - * + *

* API name: {@code include_type_name} */ public Builder includeTypeName(@Nullable Boolean value) { @@ -307,7 +307,7 @@ public Builder includeTypeName(@Nullable Boolean value) { /** * If true, the request retrieves information from the local node only. Defaults * to false, which means information is retrieved from the master node. - * + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { @@ -318,7 +318,7 @@ public Builder local(@Nullable Boolean value) { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetUpgradeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetUpgradeRequest.java index cbd39813d..ecb824e5b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetUpgradeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetUpgradeRequest.java @@ -61,7 +61,7 @@ public String stub() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code index} */ @Nullable @@ -90,7 +90,7 @@ public Builder stub(String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code index} */ public Builder index(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetUpgradeResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetUpgradeResponse.java index 440377337..4b00a7141 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetUpgradeResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetUpgradeResponse.java @@ -56,7 +56,7 @@ protected GetUpgradeResponse(Builder builder) { /** * Any templates that were superseded by the specified template. - * + *

* API name: {@code overlapping} */ @Nullable @@ -67,7 +67,7 @@ public List overlapping() { /** * The settings, mappings, and aliases that would be applied to matching * indices. - * + *

* API name: {@code template} */ @Nullable @@ -120,7 +120,7 @@ public static class Builder implements ObjectBuilder { /** * Any templates that were superseded by the specified template. - * + *

* API name: {@code overlapping} */ public Builder overlapping(@Nullable List value) { @@ -130,7 +130,7 @@ public Builder overlapping(@Nullable List value) { /** * Any templates that were superseded by the specified template. - * + *

* API name: {@code overlapping} */ public Builder overlapping(OverlappingIndexTemplate... value) { @@ -168,7 +168,7 @@ public Builder addOverlapping( /** * The settings, mappings, and aliases that would be applied to matching * indices. - * + *

* API name: {@code template} */ public Builder template(@Nullable TemplateMapping value) { @@ -179,7 +179,7 @@ public Builder template(@Nullable TemplateMapping value) { /** * The settings, mappings, and aliases that would be applied to matching * indices. - * + *

* API name: {@code template} */ public Builder template(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java index 6d8194827..e4ef6829a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java @@ -217,7 +217,7 @@ protected IndexSettings(AbstractBuilder builder) { /** * server_default 1 - * + *

* API name: {@code number_of_shards} */ @Nullable @@ -227,7 +227,7 @@ public JsonValue numberOfShards() { /** * server_default 0 - * + *

* API name: {@code number_of_replicas} */ @Nullable @@ -261,7 +261,7 @@ public String codec() { /** * server_default 1 - * + *

* API name: {@code routing_partition_size} */ @Nullable @@ -287,7 +287,7 @@ public Boolean loadFixedBitsetFiltersEagerly() { /** * server_default false - * + *

* API name: {@code hidden} */ @Nullable @@ -977,7 +977,7 @@ protected abstract static class AbstractBuilder * API name: {@code number_of_shards} */ public BuilderT numberOfShards(@Nullable JsonValue value) { @@ -987,7 +987,7 @@ public BuilderT numberOfShards(@Nullable JsonValue value) { /** * server_default 0 - * + *

* API name: {@code number_of_replicas} */ public BuilderT numberOfReplicas(@Nullable JsonValue value) { @@ -1021,7 +1021,7 @@ public BuilderT codec(@Nullable String value) { /** * server_default 1 - * + *

* API name: {@code routing_partition_size} */ public BuilderT routingPartitionSize(@Nullable JsonValue value) { @@ -1047,7 +1047,7 @@ public BuilderT loadFixedBitsetFiltersEagerly(@Nullable Boolean value) { /** * server_default false - * + *

* API name: {@code hidden} */ public BuilderT hidden(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java index fbdc2c4a3..6a0ea5457 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutIndexTemplateRequest.java @@ -90,7 +90,7 @@ protected PutIndexTemplateRequest(Builder builder) { /** * Index or template name - * + *

* API name: {@code name} */ public String name() { @@ -256,7 +256,7 @@ public static class Builder implements ObjectBuilder { /** * Index or template name - * + *

* API name: {@code name} */ public Builder name(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSettingsRequest.java index 86754cf46..600a79557 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSettingsRequest.java @@ -158,7 +158,7 @@ public JsonValue timeout() { /** * Request body. - * + *

* API name: {@code value} */ public IndexSettingsBody value() { @@ -290,7 +290,7 @@ public Builder timeout(@Nullable JsonValue value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(IndexSettingsBody value) { @@ -300,7 +300,7 @@ public Builder value(IndexSettingsBody value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java index a3eb312ad..03f3a7917 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java @@ -73,7 +73,7 @@ protected SimulateIndexTemplateRequest(Builder builder) { /** * Index or template name to simulate - * + *

* API name: {@code name} */ @Nullable @@ -99,7 +99,7 @@ public List composedOf() { /** * Any overlapping templates that would have matched, but have lower priority - * + *

* API name: {@code overlapping} */ @Nullable @@ -191,7 +191,7 @@ public static class Builder implements ObjectBuilder * API name: {@code name} */ public Builder name(@Nullable String value) { @@ -255,7 +255,7 @@ public Builder addComposedOf(String value) { /** * Any overlapping templates that would have matched, but have lower priority - * + *

* API name: {@code overlapping} */ public Builder overlapping(@Nullable List value) { @@ -265,7 +265,7 @@ public Builder overlapping(@Nullable List value) { /** * Any overlapping templates that would have matched, but have lower priority - * + *

* API name: {@code overlapping} */ public Builder overlapping(OverlappingIndexTemplate... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java index a1c30bfa2..2d0afa3d3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateRequest.java @@ -72,7 +72,7 @@ protected SimulateTemplateRequest(Builder builder) { * Name of the index template to simulate. To test a template configuration * before you add it to the cluster, omit this parameter and specify the * template configuration in the request body. - * + *

* API name: {@code name} */ @Nullable @@ -85,7 +85,7 @@ public String name() { * templates match the same index patterns. If false, the simulation uses the * template with the highest priority. Note that the template is not permanently * added or updated in either case; it is only used for the simulation. - * + *

* API name: {@code create} */ @Nullable @@ -96,7 +96,7 @@ public Boolean create() { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ @Nullable @@ -106,7 +106,7 @@ public JsonValue masterTimeout() { /** * Request body. - * + *

* API name: {@code value} */ public IndexTemplate value() { @@ -142,7 +142,7 @@ public static class Builder implements ObjectBuilder { * Name of the index template to simulate. To test a template configuration * before you add it to the cluster, omit this parameter and specify the * template configuration in the request body. - * + *

* API name: {@code name} */ public Builder name(@Nullable String value) { @@ -155,7 +155,7 @@ public Builder name(@Nullable String value) { * templates match the same index patterns. If false, the simulation uses the * template with the highest priority. Note that the template is not permanently * added or updated in either case; it is only used for the simulation. - * + *

* API name: {@code create} */ public Builder create(@Nullable Boolean value) { @@ -166,7 +166,7 @@ public Builder create(@Nullable Boolean value) { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -176,7 +176,7 @@ public Builder masterTimeout(@Nullable JsonValue value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(IndexTemplate value) { @@ -186,7 +186,7 @@ public Builder value(IndexTemplate value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpgradeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpgradeRequest.java index d4e94487b..1e02cbaa2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpgradeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpgradeRequest.java @@ -72,7 +72,7 @@ public Number stubB() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code index} */ @Nullable @@ -135,7 +135,7 @@ public Builder stubB(Number value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code index} */ public Builder index(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/IndexStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/IndexStats.java index b161379df..6652cc3b9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/IndexStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/stats/IndexStats.java @@ -130,7 +130,7 @@ protected IndexStats(Builder builder) { /** * Contains statistics about completions across all shards assigned to the node. - * + *

* API name: {@code completion} */ @Nullable @@ -141,7 +141,7 @@ public CompletionStats completion() { /** * Contains statistics about documents across all primary shards assigned to the * node. - * + *

* API name: {@code docs} */ @Nullable @@ -152,7 +152,7 @@ public DocStats docs() { /** * Contains statistics about the field data cache across all shards assigned to * the node. - * + *

* API name: {@code fielddata} */ @Nullable @@ -162,7 +162,7 @@ public FielddataStats fielddata() { /** * Contains statistics about flush operations for the node. - * + *

* API name: {@code flush} */ @Nullable @@ -172,7 +172,7 @@ public FlushStats flush() { /** * Contains statistics about get operations for the node. - * + *

* API name: {@code get} */ @Nullable @@ -182,7 +182,7 @@ public GetStats get() { /** * Contains statistics about indexing operations for the node. - * + *

* API name: {@code indexing} */ @Nullable @@ -192,7 +192,7 @@ public IndexingStats indexing() { /** * Contains statistics about merge operations for the node. - * + *

* API name: {@code merges} */ @Nullable @@ -203,7 +203,7 @@ public MergesStats merges() { /** * Contains statistics about the query cache across all shards assigned to the * node. - * + *

* API name: {@code query_cache} */ @Nullable @@ -213,7 +213,7 @@ public QueryCacheStats queryCache() { /** * Contains statistics about recovery operations for the node. - * + *

* API name: {@code recovery} */ @Nullable @@ -223,7 +223,7 @@ public RecoveryStats recovery() { /** * Contains statistics about refresh operations for the node. - * + *

* API name: {@code refresh} */ @Nullable @@ -234,7 +234,7 @@ public RefreshStats refresh() { /** * Contains statistics about the request cache across all shards assigned to the * node. - * + *

* API name: {@code request_cache} */ @Nullable @@ -244,7 +244,7 @@ public RequestCacheStats requestCache() { /** * Contains statistics about search operations for the node. - * + *

* API name: {@code search} */ @Nullable @@ -254,7 +254,7 @@ public SearchStats search() { /** * Contains statistics about segments across all shards assigned to the node. - * + *

* API name: {@code segments} */ @Nullable @@ -264,7 +264,7 @@ public SegmentsStats segments() { /** * Contains statistics about the size of shards assigned to the node. - * + *

* API name: {@code store} */ @Nullable @@ -274,7 +274,7 @@ public StoreStats store() { /** * Contains statistics about transaction log operations for the node. - * + *

* API name: {@code translog} */ @Nullable @@ -284,7 +284,7 @@ public TranslogStats translog() { /** * Contains statistics about index warming operations for the node. - * + *

* API name: {@code warmer} */ @Nullable @@ -475,7 +475,7 @@ public static class Builder implements ObjectBuilder { /** * Contains statistics about completions across all shards assigned to the node. - * + *

* API name: {@code completion} */ public Builder completion(@Nullable CompletionStats value) { @@ -485,7 +485,7 @@ public Builder completion(@Nullable CompletionStats value) { /** * Contains statistics about completions across all shards assigned to the node. - * + *

* API name: {@code completion} */ public Builder completion(Function> fn) { @@ -495,7 +495,7 @@ public Builder completion(Function * API name: {@code docs} */ public Builder docs(@Nullable DocStats value) { @@ -506,7 +506,7 @@ public Builder docs(@Nullable DocStats value) { /** * Contains statistics about documents across all primary shards assigned to the * node. - * + *

* API name: {@code docs} */ public Builder docs(Function> fn) { @@ -516,7 +516,7 @@ public Builder docs(Function> fn) { /** * Contains statistics about the field data cache across all shards assigned to * the node. - * + *

* API name: {@code fielddata} */ public Builder fielddata(@Nullable FielddataStats value) { @@ -527,7 +527,7 @@ public Builder fielddata(@Nullable FielddataStats value) { /** * Contains statistics about the field data cache across all shards assigned to * the node. - * + *

* API name: {@code fielddata} */ public Builder fielddata(Function> fn) { @@ -536,7 +536,7 @@ public Builder fielddata(Function * API name: {@code flush} */ public Builder flush(@Nullable FlushStats value) { @@ -546,7 +546,7 @@ public Builder flush(@Nullable FlushStats value) { /** * Contains statistics about flush operations for the node. - * + *

* API name: {@code flush} */ public Builder flush(Function> fn) { @@ -555,7 +555,7 @@ public Builder flush(Function> fn) /** * Contains statistics about get operations for the node. - * + *

* API name: {@code get} */ public Builder get(@Nullable GetStats value) { @@ -565,7 +565,7 @@ public Builder get(@Nullable GetStats value) { /** * Contains statistics about get operations for the node. - * + *

* API name: {@code get} */ public Builder get(Function> fn) { @@ -574,7 +574,7 @@ public Builder get(Function> fn) { /** * Contains statistics about indexing operations for the node. - * + *

* API name: {@code indexing} */ public Builder indexing(@Nullable IndexingStats value) { @@ -584,7 +584,7 @@ public Builder indexing(@Nullable IndexingStats value) { /** * Contains statistics about indexing operations for the node. - * + *

* API name: {@code indexing} */ public Builder indexing(Function> fn) { @@ -593,7 +593,7 @@ public Builder indexing(Function * API name: {@code merges} */ public Builder merges(@Nullable MergesStats value) { @@ -603,7 +603,7 @@ public Builder merges(@Nullable MergesStats value) { /** * Contains statistics about merge operations for the node. - * + *

* API name: {@code merges} */ public Builder merges(Function> fn) { @@ -613,7 +613,7 @@ public Builder merges(Function> /** * Contains statistics about the query cache across all shards assigned to the * node. - * + *

* API name: {@code query_cache} */ public Builder queryCache(@Nullable QueryCacheStats value) { @@ -624,7 +624,7 @@ public Builder queryCache(@Nullable QueryCacheStats value) { /** * Contains statistics about the query cache across all shards assigned to the * node. - * + *

* API name: {@code query_cache} */ public Builder queryCache(Function> fn) { @@ -633,7 +633,7 @@ public Builder queryCache(Function * API name: {@code recovery} */ public Builder recovery(@Nullable RecoveryStats value) { @@ -643,7 +643,7 @@ public Builder recovery(@Nullable RecoveryStats value) { /** * Contains statistics about recovery operations for the node. - * + *

* API name: {@code recovery} */ public Builder recovery(Function> fn) { @@ -652,7 +652,7 @@ public Builder recovery(Function * API name: {@code refresh} */ public Builder refresh(@Nullable RefreshStats value) { @@ -662,7 +662,7 @@ public Builder refresh(@Nullable RefreshStats value) { /** * Contains statistics about refresh operations for the node. - * + *

* API name: {@code refresh} */ public Builder refresh(Function> fn) { @@ -672,7 +672,7 @@ public Builder refresh(Function * API name: {@code request_cache} */ public Builder requestCache(@Nullable RequestCacheStats value) { @@ -683,7 +683,7 @@ public Builder requestCache(@Nullable RequestCacheStats value) { /** * Contains statistics about the request cache across all shards assigned to the * node. - * + *

* API name: {@code request_cache} */ public Builder requestCache(Function> fn) { @@ -692,7 +692,7 @@ public Builder requestCache(Function * API name: {@code search} */ public Builder search(@Nullable SearchStats value) { @@ -702,7 +702,7 @@ public Builder search(@Nullable SearchStats value) { /** * Contains statistics about search operations for the node. - * + *

* API name: {@code search} */ public Builder search(Function> fn) { @@ -711,7 +711,7 @@ public Builder search(Function> /** * Contains statistics about segments across all shards assigned to the node. - * + *

* API name: {@code segments} */ public Builder segments(@Nullable SegmentsStats value) { @@ -721,7 +721,7 @@ public Builder segments(@Nullable SegmentsStats value) { /** * Contains statistics about segments across all shards assigned to the node. - * + *

* API name: {@code segments} */ public Builder segments(Function> fn) { @@ -730,7 +730,7 @@ public Builder segments(Function * API name: {@code store} */ public Builder store(@Nullable StoreStats value) { @@ -740,7 +740,7 @@ public Builder store(@Nullable StoreStats value) { /** * Contains statistics about the size of shards assigned to the node. - * + *

* API name: {@code store} */ public Builder store(Function> fn) { @@ -749,7 +749,7 @@ public Builder store(Function> fn) /** * Contains statistics about transaction log operations for the node. - * + *

* API name: {@code translog} */ public Builder translog(@Nullable TranslogStats value) { @@ -759,7 +759,7 @@ public Builder translog(@Nullable TranslogStats value) { /** * Contains statistics about transaction log operations for the node. - * + *

* API name: {@code translog} */ public Builder translog(Function> fn) { @@ -768,7 +768,7 @@ public Builder translog(Function * API name: {@code warmer} */ public Builder warmer(@Nullable WarmerStats value) { @@ -778,7 +778,7 @@ public Builder warmer(@Nullable WarmerStats value) { /** * Contains statistics about index warming operations for the node. - * + *

* API name: {@code warmer} */ public Builder warmer(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsResponse.java index e4d475490..564c5a903 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/GeoIpStatsResponse.java @@ -57,7 +57,7 @@ protected GeoIpStatsResponse(Builder builder) { /** * Download statistics for all GeoIP2 databases. - * + *

* API name: {@code stats} */ public GeoIpDownloadStatistics stats() { @@ -66,7 +66,7 @@ public GeoIpDownloadStatistics stats() { /** * Downloaded GeoIP2 databases for each node. - * + *

* API name: {@code nodes} */ public Map nodes() { @@ -110,7 +110,7 @@ public static class Builder implements ObjectBuilder { /** * Download statistics for all GeoIP2 databases. - * + *

* API name: {@code stats} */ public Builder stats(GeoIpDownloadStatistics value) { @@ -120,7 +120,7 @@ public Builder stats(GeoIpDownloadStatistics value) { /** * Download statistics for all GeoIP2 databases. - * + *

* API name: {@code stats} */ public Builder stats(Function> fn) { @@ -129,7 +129,7 @@ public Builder stats(Function * API name: {@code nodes} */ public Builder nodes(Map value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpDownloadStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpDownloadStatistics.java index 1346bc365..9c07cd008 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpDownloadStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpDownloadStatistics.java @@ -61,7 +61,7 @@ protected GeoIpDownloadStatistics(Builder builder) { /** * Total number of successful database downloads. - * + *

* API name: {@code successful_downloads} */ public Number successfulDownloads() { @@ -70,7 +70,7 @@ public Number successfulDownloads() { /** * Total number of failed database downloads. - * + *

* API name: {@code failed_downloads} */ public Number failedDownloads() { @@ -79,7 +79,7 @@ public Number failedDownloads() { /** * Total milliseconds spent downloading databases. - * + *

* API name: {@code total_download_time} */ public Number totalDownloadTime() { @@ -88,7 +88,7 @@ public Number totalDownloadTime() { /** * Current number of databases available for use. - * + *

* API name: {@code database_count} */ public Number databaseCount() { @@ -97,7 +97,7 @@ public Number databaseCount() { /** * Total number of database updates skipped. - * + *

* API name: {@code skipped_updates} */ public Number skippedUpdates() { @@ -150,7 +150,7 @@ public static class Builder implements ObjectBuilder { /** * Total number of successful database downloads. - * + *

* API name: {@code successful_downloads} */ public Builder successfulDownloads(Number value) { @@ -160,7 +160,7 @@ public Builder successfulDownloads(Number value) { /** * Total number of failed database downloads. - * + *

* API name: {@code failed_downloads} */ public Builder failedDownloads(Number value) { @@ -170,7 +170,7 @@ public Builder failedDownloads(Number value) { /** * Total milliseconds spent downloading databases. - * + *

* API name: {@code total_download_time} */ public Builder totalDownloadTime(Number value) { @@ -180,7 +180,7 @@ public Builder totalDownloadTime(Number value) { /** * Current number of databases available for use. - * + *

* API name: {@code database_count} */ public Builder databaseCount(Number value) { @@ -190,7 +190,7 @@ public Builder databaseCount(Number value) { /** * Total number of database updates skipped. - * + *

* API name: {@code skipped_updates} */ public Builder skippedUpdates(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabaseName.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabaseName.java index 7070859cb..a1cc7fd16 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabaseName.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabaseName.java @@ -49,7 +49,7 @@ protected GeoIpNodeDatabaseName(Builder builder) { /** * Name of the database. - * + *

* API name: {@code name} */ public String name() { @@ -82,7 +82,7 @@ public static class Builder implements ObjectBuilder { /** * Name of the database. - * + *

* API name: {@code name} */ public Builder name(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabases.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabases.java index 38e140ce8..43a096e8f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabases.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/geo_ip_stats/GeoIpNodeDatabases.java @@ -56,7 +56,7 @@ protected GeoIpNodeDatabases(Builder builder) { /** * Downloaded databases for the node. - * + *

* API name: {@code databases} */ public List databases() { @@ -67,7 +67,7 @@ public List databases() { * Downloaded database files, including related license files. Elasticsearch * stores these files in the node’s temporary directory: * $ES_TMPDIR/geoip-databases/<node_id>. - * + *

* API name: {@code files_in_temp} */ public List filesInTemp() { @@ -115,7 +115,7 @@ public static class Builder implements ObjectBuilder { /** * Downloaded databases for the node. - * + *

* API name: {@code databases} */ public Builder databases(List value) { @@ -125,7 +125,7 @@ public Builder databases(List value) { /** * Downloaded databases for the node. - * + *

* API name: {@code databases} */ public Builder databases(GeoIpNodeDatabaseName... value) { @@ -162,7 +162,7 @@ public Builder addDatabases(Function * API name: {@code files_in_temp} */ public Builder filesInTemp(List value) { @@ -174,7 +174,7 @@ public Builder filesInTemp(List value) { * Downloaded database files, including related license files. Elasticsearch * stores these files in the node’s temporary directory: * $ES_TMPDIR/geoip-databases/<node_id>. - * + *

* API name: {@code files_in_temp} */ public Builder filesInTemp(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineDeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineDeleteRequest.java index a8798a246..c5a379470 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineDeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineDeleteRequest.java @@ -71,7 +71,7 @@ public String stubA() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code id} */ @Nullable @@ -134,7 +134,7 @@ public Builder stubA(String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineGetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineGetRequest.java index 092f624ab..9fba974c5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineGetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineGetRequest.java @@ -71,7 +71,7 @@ public String stubA() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code id} */ @Nullable @@ -134,7 +134,7 @@ public Builder stubA(String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelinePutRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelinePutRequest.java index cb94397b3..efc59c4fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelinePutRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelinePutRequest.java @@ -71,7 +71,7 @@ public String stubA() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code id} */ @Nullable @@ -134,7 +134,7 @@ public Builder stubA(String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code id} */ public Builder id(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationInfoRequest.java index 004f73fea..37913799a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationInfoRequest.java @@ -51,7 +51,7 @@ protected DeprecationInfoRequest(Builder builder) { /** * Comma-separate list of data streams or indices to check. Wildcard (*) * expressions are supported. - * + *

* API name: {@code index} */ @Nullable @@ -71,7 +71,7 @@ public static class Builder implements ObjectBuilder { /** * Comma-separate list of data streams or indices to check. Wildcard (*) * expressions are supported. - * + *

* API name: {@code index} */ public Builder index(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecation_info/Deprecation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecation_info/Deprecation.java index e35c3748e..fe1adf84d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecation_info/Deprecation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecation_info/Deprecation.java @@ -66,7 +66,7 @@ public String details() { /** * The level property describes the significance of the issue. - * + *

* API name: {@code level} */ public JsonValue level() { @@ -136,7 +136,7 @@ public Builder details(String value) { /** * The level property describes the significance of the issue. - * + *

* API name: {@code level} */ public Builder level(JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisMemoryLimit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisMemoryLimit.java index 3c0fbdeb0..bd6d15b0b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisMemoryLimit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/AnalysisMemoryLimit.java @@ -52,7 +52,7 @@ protected AnalysisMemoryLimit(Builder builder) { * models in memory. These limits are approximate and can be set per job. They * do not control the memory used by other processes, for example the * Elasticsearch Java processes. - * + *

* API name: {@code model_memory_limit} */ public String modelMemoryLimit() { @@ -88,7 +88,7 @@ public static class Builder implements ObjectBuilder { * models in memory. These limits are approximate and can be set per job. They * do not control the memory used by other processes, for example the * Elasticsearch Java processes. - * + *

* API name: {@code model_memory_limit} */ public Builder modelMemoryLimit(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketInfluencer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketInfluencer.java index 1d160584f..bac0d61a3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketInfluencer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/BucketInfluencer.java @@ -85,7 +85,7 @@ protected BucketInfluencer(Builder builder) { /** * The length of the bucket in seconds. This value matches the bucket_span that * is specified in the job. - * + *

* API name: {@code bucket_span} */ public Number bucketSpan() { @@ -97,7 +97,7 @@ public Number bucketSpan() { * influencer in this bucket aggregated across detectors. Unlike * initial_influencer_score, this value will be updated by a re-normalization * process as new data is analyzed. - * + *

* API name: {@code influencer_score} */ public Number influencerScore() { @@ -106,7 +106,7 @@ public Number influencerScore() { /** * The field name of the influencer. - * + *

* API name: {@code influencer_field_name} */ public String influencerFieldName() { @@ -115,7 +115,7 @@ public String influencerFieldName() { /** * The entity that influenced, contributed to, or was to blame for the anomaly. - * + *

* API name: {@code influencer_field_value} */ public String influencerFieldValue() { @@ -126,7 +126,7 @@ public String influencerFieldValue() { * A normalized score between 0-100, which is based on the probability of the * influencer aggregated across detectors. This is the initial value that was * calculated at the time the bucket was processed. - * + *

* API name: {@code initial_influencer_score} */ public Number initialInfluencerScore() { @@ -136,7 +136,7 @@ public Number initialInfluencerScore() { /** * If true, this is an interim result. In other words, the results are * calculated based on partial input data. - * + *

* API name: {@code is_interim} */ public Boolean isInterim() { @@ -145,7 +145,7 @@ public Boolean isInterim() { /** * Identifier for the anomaly detection job. - * + *

* API name: {@code job_id} */ public String jobId() { @@ -157,7 +157,7 @@ public String jobId() { * This value can be held to a high precision of over 300 decimal places, so the * influencer_score is provided as a human-readable and friendly interpretation * of this. - * + *

* API name: {@code probability} */ public Number probability() { @@ -166,7 +166,7 @@ public Number probability() { /** * Internal. This value is always set to influencer. - * + *

* API name: {@code result_type} */ public String resultType() { @@ -175,7 +175,7 @@ public String resultType() { /** * The start time of the bucket for which these results were calculated. - * + *

* API name: {@code timestamp} */ public JsonValue timestamp() { @@ -272,7 +272,7 @@ public static class Builder implements ObjectBuilder { /** * The length of the bucket in seconds. This value matches the bucket_span that * is specified in the job. - * + *

* API name: {@code bucket_span} */ public Builder bucketSpan(Number value) { @@ -285,7 +285,7 @@ public Builder bucketSpan(Number value) { * influencer in this bucket aggregated across detectors. Unlike * initial_influencer_score, this value will be updated by a re-normalization * process as new data is analyzed. - * + *

* API name: {@code influencer_score} */ public Builder influencerScore(Number value) { @@ -295,7 +295,7 @@ public Builder influencerScore(Number value) { /** * The field name of the influencer. - * + *

* API name: {@code influencer_field_name} */ public Builder influencerFieldName(String value) { @@ -305,7 +305,7 @@ public Builder influencerFieldName(String value) { /** * The entity that influenced, contributed to, or was to blame for the anomaly. - * + *

* API name: {@code influencer_field_value} */ public Builder influencerFieldValue(String value) { @@ -317,7 +317,7 @@ public Builder influencerFieldValue(String value) { * A normalized score between 0-100, which is based on the probability of the * influencer aggregated across detectors. This is the initial value that was * calculated at the time the bucket was processed. - * + *

* API name: {@code initial_influencer_score} */ public Builder initialInfluencerScore(Number value) { @@ -328,7 +328,7 @@ public Builder initialInfluencerScore(Number value) { /** * If true, this is an interim result. In other words, the results are * calculated based on partial input data. - * + *

* API name: {@code is_interim} */ public Builder isInterim(Boolean value) { @@ -338,7 +338,7 @@ public Builder isInterim(Boolean value) { /** * Identifier for the anomaly detection job. - * + *

* API name: {@code job_id} */ public Builder jobId(String value) { @@ -351,7 +351,7 @@ public Builder jobId(String value) { * This value can be held to a high precision of over 300 decimal places, so the * influencer_score is provided as a human-readable and friendly interpretation * of this. - * + *

* API name: {@code probability} */ public Builder probability(Number value) { @@ -361,7 +361,7 @@ public Builder probability(Number value) { /** * Internal. This value is always set to influencer. - * + *

* API name: {@code result_type} */ public Builder resultType(String value) { @@ -371,7 +371,7 @@ public Builder resultType(String value) { /** * The start time of the bucket for which these results were calculated. - * + *

* API name: {@code timestamp} */ public Builder timestamp(JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CalendarEvent.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CalendarEvent.java index fe4dd7604..8e826e6ad 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CalendarEvent.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/CalendarEvent.java @@ -80,7 +80,7 @@ public String eventId() { /** * A description of the scheduled event. - * + *

* API name: {@code description} */ public String description() { @@ -90,7 +90,7 @@ public String description() { /** * The timestamp for the end of the scheduled event in milliseconds since the * epoch or ISO 8601 format. - * + *

* API name: {@code end_time} */ public JsonValue endTime() { @@ -100,7 +100,7 @@ public JsonValue endTime() { /** * The timestamp for the beginning of the scheduled event in milliseconds since * the epoch or ISO 8601 format. - * + *

* API name: {@code start_time} */ public JsonValue startTime() { @@ -178,7 +178,7 @@ public Builder eventId(@Nullable String value) { /** * A description of the scheduled event. - * + *

* API name: {@code description} */ public Builder description(String value) { @@ -189,7 +189,7 @@ public Builder description(String value) { /** * The timestamp for the end of the scheduled event in milliseconds since the * epoch or ISO 8601 format. - * + *

* API name: {@code end_time} */ public Builder endTime(JsonValue value) { @@ -200,7 +200,7 @@ public Builder endTime(JsonValue value) { /** * The timestamp for the beginning of the scheduled event in milliseconds since * the epoch or ISO 8601 format. - * + *

* API name: {@code start_time} */ public Builder startTime(JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Category.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Category.java index 8432fe60d..cf85e10e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Category.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Category.java @@ -99,7 +99,7 @@ protected Category(Builder builder) { /** * A unique identifier for the category. category_id is unique at the job level, * even when per-partition categorization is enabled. - * + *

* API name: {@code category_id} */ public Number categoryId() { @@ -108,7 +108,7 @@ public Number categoryId() { /** * A list of examples of actual values that matched the category. - * + *

* API name: {@code examples} */ public List examples() { @@ -121,7 +121,7 @@ public List examples() { * is experimental and may be changed or removed in a future release. The Grok * patterns that are found are not optimal, but are often a good starting point * for manual tweaking. - * + *

* API name: {@code grok_pattern} */ @Nullable @@ -131,7 +131,7 @@ public String grokPattern() { /** * Identifier for the anomaly detection job. - * + *

* API name: {@code job_id} */ public String jobId() { @@ -142,7 +142,7 @@ public String jobId() { * The maximum length of the fields that matched the category. The value is * increased by 10% to enable matching for similar fields that have not been * analyzed. - * + *

* API name: {@code max_matching_length} */ public Number maxMatchingLength() { @@ -153,7 +153,7 @@ public Number maxMatchingLength() { * If per-partition categorization is enabled, this property identifies the * field used to segment the categorization. It is not present when * per-partition categorization is disabled. - * + *

* API name: {@code partition_field_name} */ @Nullable @@ -165,7 +165,7 @@ public String partitionFieldName() { * If per-partition categorization is enabled, this property identifies the * value of the partition_field_name for the category. It is not present when * per-partition categorization is disabled. - * + *

* API name: {@code partition_field_value} */ @Nullable @@ -176,7 +176,7 @@ public String partitionFieldValue() { /** * A regular expression that is used to search for values that match the * category. - * + *

* API name: {@code regex} */ public String regex() { @@ -186,7 +186,7 @@ public String regex() { /** * A space separated list of the common tokens that are matched in values of the * category. - * + *

* API name: {@code terms} */ public String terms() { @@ -196,7 +196,7 @@ public String terms() { /** * The number of messages that have been matched by this category. This is only * guaranteed to have the latest accurate count after a job _flush or _close - * + *

* API name: {@code num_matches} */ @Nullable @@ -209,7 +209,7 @@ public Number numMatches() { * message that is processed by the categorizer will match against this category * and not any of the categories in this list. This is only guaranteed to have * the latest accurate list of categories after a job _flush or _close - * + *

* API name: {@code preferred_to_categories} */ @Nullable @@ -368,7 +368,7 @@ public static class Builder implements ObjectBuilder { /** * A unique identifier for the category. category_id is unique at the job level, * even when per-partition categorization is enabled. - * + *

* API name: {@code category_id} */ public Builder categoryId(Number value) { @@ -378,7 +378,7 @@ public Builder categoryId(Number value) { /** * A list of examples of actual values that matched the category. - * + *

* API name: {@code examples} */ public Builder examples(List value) { @@ -388,7 +388,7 @@ public Builder examples(List value) { /** * A list of examples of actual values that matched the category. - * + *

* API name: {@code examples} */ public Builder examples(String... value) { @@ -413,7 +413,7 @@ public Builder addExamples(String value) { * is experimental and may be changed or removed in a future release. The Grok * patterns that are found are not optimal, but are often a good starting point * for manual tweaking. - * + *

* API name: {@code grok_pattern} */ public Builder grokPattern(@Nullable String value) { @@ -423,7 +423,7 @@ public Builder grokPattern(@Nullable String value) { /** * Identifier for the anomaly detection job. - * + *

* API name: {@code job_id} */ public Builder jobId(String value) { @@ -435,7 +435,7 @@ public Builder jobId(String value) { * The maximum length of the fields that matched the category. The value is * increased by 10% to enable matching for similar fields that have not been * analyzed. - * + *

* API name: {@code max_matching_length} */ public Builder maxMatchingLength(Number value) { @@ -447,7 +447,7 @@ public Builder maxMatchingLength(Number value) { * If per-partition categorization is enabled, this property identifies the * field used to segment the categorization. It is not present when * per-partition categorization is disabled. - * + *

* API name: {@code partition_field_name} */ public Builder partitionFieldName(@Nullable String value) { @@ -459,7 +459,7 @@ public Builder partitionFieldName(@Nullable String value) { * If per-partition categorization is enabled, this property identifies the * value of the partition_field_name for the category. It is not present when * per-partition categorization is disabled. - * + *

* API name: {@code partition_field_value} */ public Builder partitionFieldValue(@Nullable String value) { @@ -470,7 +470,7 @@ public Builder partitionFieldValue(@Nullable String value) { /** * A regular expression that is used to search for values that match the * category. - * + *

* API name: {@code regex} */ public Builder regex(String value) { @@ -481,7 +481,7 @@ public Builder regex(String value) { /** * A space separated list of the common tokens that are matched in values of the * category. - * + *

* API name: {@code terms} */ public Builder terms(String value) { @@ -492,7 +492,7 @@ public Builder terms(String value) { /** * The number of messages that have been matched by this category. This is only * guaranteed to have the latest accurate count after a job _flush or _close - * + *

* API name: {@code num_matches} */ public Builder numMatches(@Nullable Number value) { @@ -505,7 +505,7 @@ public Builder numMatches(@Nullable Number value) { * message that is processed by the categorizer will match against this category * and not any of the categories in this list. This is only guaranteed to have * the latest accurate list of categories after a job _flush or _close - * + *

* API name: {@code preferred_to_categories} */ public Builder preferredToCategories(@Nullable List value) { @@ -518,7 +518,7 @@ public Builder preferredToCategories(@Nullable List value) { * message that is processed by the categorizer will match against this category * and not any of the categories in this list. This is only guaranteed to have * the latest accurate list of categories after a job _flush or _close - * + *

* API name: {@code preferred_to_categories} */ public Builder preferredToCategories(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorFrequencyEncoding.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorFrequencyEncoding.java index 731bd29dc..06bd26517 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorFrequencyEncoding.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorFrequencyEncoding.java @@ -58,7 +58,7 @@ protected DataframeAnalysisFeatureProcessorFrequencyEncoding(Builder builder) { /** * The resulting feature name. - * + *

* API name: {@code feature_name} */ public String featureName() { @@ -75,7 +75,7 @@ public String field() { /** * The resulting frequency map for the field value. If the field value is * missing from the frequency_map, the resulting value is 0. - * + *

* API name: {@code frequency_map} */ public Map frequencyMap() { @@ -124,7 +124,7 @@ public static class Builder implements ObjectBuilder * API name: {@code feature_name} */ public Builder featureName(String value) { @@ -143,7 +143,7 @@ public Builder field(String value) { /** * The resulting frequency map for the field value. If the field value is * missing from the frequency_map, the resulting value is 0. - * + *

* API name: {@code frequency_map} */ public Builder frequencyMap(Map value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorMultiEncoding.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorMultiEncoding.java index c07d02385..a78e48248 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorMultiEncoding.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorMultiEncoding.java @@ -52,7 +52,7 @@ protected DataframeAnalysisFeatureProcessorMultiEncoding(Builder builder) { /** * The ordered array of custom processors to execute. Must be more than 1. - * + *

* API name: {@code processors} */ public List processors() { @@ -90,7 +90,7 @@ public static class Builder implements ObjectBuilder * API name: {@code processors} */ public Builder processors(List value) { @@ -100,7 +100,7 @@ public Builder processors(List value) { /** * The ordered array of custom processors to execute. Must be more than 1. - * + *

* API name: {@code processors} */ public Builder processors(Number... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorNGramEncoding.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorNGramEncoding.java index a21d1de9a..0bd277ea9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorNGramEncoding.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorNGramEncoding.java @@ -72,8 +72,8 @@ protected DataframeAnalysisFeatureProcessorNGramEncoding(Builder builder) { } /** - * The feature name prefix. Defaults to ngram_<start>_<length>. - * + * The feature name prefix. Defaults to ngram__. + *

* API name: {@code feature_prefix} */ @Nullable @@ -83,7 +83,7 @@ public String featurePrefix() { /** * The name of the text field to encode. - * + *

* API name: {@code field} */ public String field() { @@ -93,7 +93,7 @@ public String field() { /** * Specifies the length of the n-gram substring. Defaults to 50. Must be greater * than 0. - * + *

* API name: {@code length} */ @Nullable @@ -104,7 +104,7 @@ public Number length() { /** * Specifies which n-grams to gather. It’s an array of integer values where the * minimum value is 1, and a maximum value is 5. - * + *

* API name: {@code n_grams} */ public List nGrams() { @@ -114,7 +114,7 @@ public List nGrams() { /** * Specifies the zero-indexed start of the n-gram substring. Negative values are * allowed for encoding n-grams of string suffixes. Defaults to 0. - * + *

* API name: {@code start} */ @Nullable @@ -204,8 +204,8 @@ public static class Builder implements ObjectBuilder_. + *

* API name: {@code feature_prefix} */ public Builder featurePrefix(@Nullable String value) { @@ -215,7 +215,7 @@ public Builder featurePrefix(@Nullable String value) { /** * The name of the text field to encode. - * + *

* API name: {@code field} */ public Builder field(String value) { @@ -226,7 +226,7 @@ public Builder field(String value) { /** * Specifies the length of the n-gram substring. Defaults to 50. Must be greater * than 0. - * + *

* API name: {@code length} */ public Builder length(@Nullable Number value) { @@ -237,7 +237,7 @@ public Builder length(@Nullable Number value) { /** * Specifies which n-grams to gather. It’s an array of integer values where the * minimum value is 1, and a maximum value is 5. - * + *

* API name: {@code n_grams} */ public Builder nGrams(List value) { @@ -248,7 +248,7 @@ public Builder nGrams(List value) { /** * Specifies which n-grams to gather. It’s an array of integer values where the * minimum value is 1, and a maximum value is 5. - * + *

* API name: {@code n_grams} */ public Builder nGrams(Number... value) { @@ -270,7 +270,7 @@ public Builder addNGrams(Number value) { /** * Specifies the zero-indexed start of the n-gram substring. Negative values are * allowed for encoding n-grams of string suffixes. Defaults to 0. - * + *

* API name: {@code start} */ public Builder start(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorOneHotEncoding.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorOneHotEncoding.java index d1689fbcf..72d69edf3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorOneHotEncoding.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorOneHotEncoding.java @@ -52,7 +52,7 @@ protected DataframeAnalysisFeatureProcessorOneHotEncoding(Builder builder) { /** * The name of the field to encode. - * + *

* API name: {@code field} */ public String field() { @@ -61,7 +61,7 @@ public String field() { /** * The one hot map mapping the field value with the column name. - * + *

* API name: {@code hot_map} */ public String hotMap() { @@ -99,7 +99,7 @@ public static class Builder implements ObjectBuilder * API name: {@code field} */ public Builder field(String value) { @@ -109,7 +109,7 @@ public Builder field(String value) { /** * The one hot map mapping the field value with the column name. - * + *

* API name: {@code hot_map} */ public Builder hotMap(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.java index 4d2c25eb6..fdc396e29 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalysisFeatureProcessorTargetMeanEncoding.java @@ -62,7 +62,7 @@ protected DataframeAnalysisFeatureProcessorTargetMeanEncoding(Builder builder) { /** * The default value if field value is not found in the target_map. - * + *

* API name: {@code default_value} */ public Number defaultValue() { @@ -71,7 +71,7 @@ public Number defaultValue() { /** * The resulting feature name. - * + *

* API name: {@code feature_name} */ public String featureName() { @@ -80,7 +80,7 @@ public String featureName() { /** * The name of the field to encode. - * + *

* API name: {@code field} */ public String field() { @@ -89,7 +89,7 @@ public String field() { /** * The field value to target mean transition map. - * + *

* API name: {@code target_map} */ public Map targetMap() { @@ -143,7 +143,7 @@ public static class Builder implements ObjectBuilder * API name: {@code default_value} */ public Builder defaultValue(Number value) { @@ -153,7 +153,7 @@ public Builder defaultValue(Number value) { /** * The resulting feature name. - * + *

* API name: {@code feature_name} */ public Builder featureName(String value) { @@ -163,7 +163,7 @@ public Builder featureName(String value) { /** * The name of the field to encode. - * + *

* API name: {@code field} */ public Builder field(String value) { @@ -173,7 +173,7 @@ public Builder field(String value) { /** * The field value to target mean transition map. - * + *

* API name: {@code target_map} */ public Builder targetMap(Map value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalytics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalytics.java index b50c14b2a..4ee208a6a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalytics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalytics.java @@ -79,7 +79,7 @@ protected DataframeAnalytics(Builder builder) { /** * An object containing information about the analysis job. - * + *

* API name: {@code analysis_stats} */ @Nullable @@ -90,7 +90,7 @@ public DataframeAnalyticsStatsContainer analysisStats() { /** * For running jobs only, contains messages relating to the selection of a node * to run the job. - * + *

* API name: {@code assignment_explanation} */ @Nullable @@ -101,7 +101,7 @@ public String assignmentExplanation() { /** * An object that provides counts for the quantity of documents skipped, used in * training, or available for testing. - * + *

* API name: {@code data_counts} */ public DataframeAnalyticsStatsDataCounts dataCounts() { @@ -110,7 +110,7 @@ public DataframeAnalyticsStatsDataCounts dataCounts() { /** * The unique identifier of the data frame analytics job. - * + *

* API name: {@code id} */ public String id() { @@ -120,7 +120,7 @@ public String id() { /** * An object describing memory usage of the analytics. It is present only after * the job is started and memory usage is reported. - * + *

* API name: {@code memory_usage} */ public DataframeAnalyticsStatsMemoryUsage memoryUsage() { @@ -130,7 +130,7 @@ public DataframeAnalyticsStatsMemoryUsage memoryUsage() { /** * Contains properties for the node that runs the job. This information is * available only for running jobs. - * + *

* API name: {@code node} */ @Nullable @@ -140,7 +140,7 @@ public NodeAttributes node() { /** * The progress report of the data frame analytics job by phase. - * + *

* API name: {@code progress} */ public List progress() { @@ -150,7 +150,7 @@ public List progress() { /** * The status of the data frame analytics job, which can be one of the following * values: failed, started, starting, stopping, stopped. - * + *

* API name: {@code state} */ public JsonValue state() { @@ -237,7 +237,7 @@ public static class Builder implements ObjectBuilder { /** * An object containing information about the analysis job. - * + *

* API name: {@code analysis_stats} */ public Builder analysisStats(@Nullable DataframeAnalyticsStatsContainer value) { @@ -247,7 +247,7 @@ public Builder analysisStats(@Nullable DataframeAnalyticsStatsContainer value) { /** * An object containing information about the analysis job. - * + *

* API name: {@code analysis_stats} */ public Builder analysisStats( @@ -258,7 +258,7 @@ public Builder analysisStats( /** * For running jobs only, contains messages relating to the selection of a node * to run the job. - * + *

* API name: {@code assignment_explanation} */ public Builder assignmentExplanation(@Nullable String value) { @@ -269,7 +269,7 @@ public Builder assignmentExplanation(@Nullable String value) { /** * An object that provides counts for the quantity of documents skipped, used in * training, or available for testing. - * + *

* API name: {@code data_counts} */ public Builder dataCounts(DataframeAnalyticsStatsDataCounts value) { @@ -280,7 +280,7 @@ public Builder dataCounts(DataframeAnalyticsStatsDataCounts value) { /** * An object that provides counts for the quantity of documents skipped, used in * training, or available for testing. - * + *

* API name: {@code data_counts} */ public Builder dataCounts( @@ -290,7 +290,7 @@ public Builder dataCounts( /** * The unique identifier of the data frame analytics job. - * + *

* API name: {@code id} */ public Builder id(String value) { @@ -301,7 +301,7 @@ public Builder id(String value) { /** * An object describing memory usage of the analytics. It is present only after * the job is started and memory usage is reported. - * + *

* API name: {@code memory_usage} */ public Builder memoryUsage(DataframeAnalyticsStatsMemoryUsage value) { @@ -312,7 +312,7 @@ public Builder memoryUsage(DataframeAnalyticsStatsMemoryUsage value) { /** * An object describing memory usage of the analytics. It is present only after * the job is started and memory usage is reported. - * + *

* API name: {@code memory_usage} */ public Builder memoryUsage( @@ -323,7 +323,7 @@ public Builder memoryUsage( /** * Contains properties for the node that runs the job. This information is * available only for running jobs. - * + *

* API name: {@code node} */ public Builder node(@Nullable NodeAttributes value) { @@ -334,7 +334,7 @@ public Builder node(@Nullable NodeAttributes value) { /** * Contains properties for the node that runs the job. This information is * available only for running jobs. - * + *

* API name: {@code node} */ public Builder node(Function> fn) { @@ -343,7 +343,7 @@ public Builder node(Function * API name: {@code progress} */ public Builder progress(List value) { @@ -353,7 +353,7 @@ public Builder progress(List value) { /** * The progress report of the data frame analytics job by phase. - * + *

* API name: {@code progress} */ public Builder progress(DataframeAnalyticsStatsProgress... value) { @@ -391,7 +391,7 @@ public Builder addProgress( /** * The status of the data frame analytics job, which can be one of the following * values: failed, started, starting, stopping, stopped. - * + *

* API name: {@code state} */ public Builder state(JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsDestination.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsDestination.java index fbf9fb1fa..c7a796cc7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsDestination.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsDestination.java @@ -54,7 +54,7 @@ protected DataframeAnalyticsDestination(Builder builder) { /** * Defines the destination index to store the results of the data frame * analytics job. - * + *

* API name: {@code index} */ public String index() { @@ -64,7 +64,7 @@ public String index() { /** * Defines the name of the field in which to store the results of the analysis. * Defaults to ml. - * + *

* API name: {@code results_field} */ @Nullable @@ -109,7 +109,7 @@ public static class Builder implements ObjectBuilder * API name: {@code index} */ public Builder index(String value) { @@ -120,7 +120,7 @@ public Builder index(String value) { /** * Defines the name of the field in which to store the results of the analysis. * Defaults to ml. - * + *

* API name: {@code results_field} */ public Builder resultsField(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsFieldSelection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsFieldSelection.java index 066535f37..f448720b5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsFieldSelection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsFieldSelection.java @@ -70,7 +70,7 @@ protected DataframeAnalyticsFieldSelection(Builder builder) { /** * Whether the field is selected to be included in the analysis. - * + *

* API name: {@code is_included} */ public Boolean isIncluded() { @@ -79,7 +79,7 @@ public Boolean isIncluded() { /** * Whether the field is required. - * + *

* API name: {@code is_required} */ public Boolean isRequired() { @@ -89,7 +89,7 @@ public Boolean isRequired() { /** * The feature type of this field for the analysis. May be categorical or * numerical. - * + *

* API name: {@code feature_type} */ @Nullable @@ -99,7 +99,7 @@ public String featureType() { /** * The mapping types of the field. - * + *

* API name: {@code mapping_types} */ public List mappingTypes() { @@ -108,7 +108,7 @@ public List mappingTypes() { /** * The field name. - * + *

* API name: {@code name} */ public String name() { @@ -117,7 +117,7 @@ public String name() { /** * The reason a field is not selected to be included in the analysis. - * + *

* API name: {@code reason} */ @Nullable @@ -191,7 +191,7 @@ public static class Builder implements ObjectBuilder * API name: {@code is_included} */ public Builder isIncluded(Boolean value) { @@ -201,7 +201,7 @@ public Builder isIncluded(Boolean value) { /** * Whether the field is required. - * + *

* API name: {@code is_required} */ public Builder isRequired(Boolean value) { @@ -212,7 +212,7 @@ public Builder isRequired(Boolean value) { /** * The feature type of this field for the analysis. May be categorical or * numerical. - * + *

* API name: {@code feature_type} */ public Builder featureType(@Nullable String value) { @@ -222,7 +222,7 @@ public Builder featureType(@Nullable String value) { /** * The mapping types of the field. - * + *

* API name: {@code mapping_types} */ public Builder mappingTypes(List value) { @@ -232,7 +232,7 @@ public Builder mappingTypes(List value) { /** * The mapping types of the field. - * + *

* API name: {@code mapping_types} */ public Builder mappingTypes(String... value) { @@ -253,7 +253,7 @@ public Builder addMappingTypes(String value) { /** * The field name. - * + *

* API name: {@code name} */ public Builder name(String value) { @@ -263,7 +263,7 @@ public Builder name(String value) { /** * The reason a field is not selected to be included in the analysis. - * + *

* API name: {@code reason} */ public Builder reason(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsMemoryEstimation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsMemoryEstimation.java index 83c64f6a4..efa65534a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsMemoryEstimation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsMemoryEstimation.java @@ -57,7 +57,7 @@ protected DataframeAnalyticsMemoryEstimation(Builder builder) { * allowed during data frame analytics. expected_memory_with_disk is usually * smaller than expected_memory_without_disk as using disk allows to limit the * main memory needed to perform data frame analytics. - * + *

* API name: {@code expected_memory_with_disk} */ public String expectedMemoryWithDisk() { @@ -67,7 +67,7 @@ public String expectedMemoryWithDisk() { /** * Estimated memory usage under the assumption that the whole data frame * analytics should happen in memory (i.e. without overflowing to disk). - * + *

* API name: {@code expected_memory_without_disk} */ public String expectedMemoryWithoutDisk() { @@ -108,7 +108,7 @@ public static class Builder implements ObjectBuilder * API name: {@code expected_memory_with_disk} */ public Builder expectedMemoryWithDisk(String value) { @@ -119,7 +119,7 @@ public Builder expectedMemoryWithDisk(String value) { /** * Estimated memory usage under the assumption that the whole data frame * analytics should happen in memory (i.e. without overflowing to disk). - * + *

* API name: {@code expected_memory_without_disk} */ public Builder expectedMemoryWithoutDisk(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSource.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSource.java index 4a4088e20..5bd709e15 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSource.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsSource.java @@ -72,7 +72,7 @@ protected DataframeAnalyticsSource(Builder builder) { /** * Index or indices on which to perform the analysis. It can be a single index * or index pattern as well as an array of indices or patterns. - * + *

* API name: {@code index} */ public List index() { @@ -84,8 +84,8 @@ public List index() { * corresponds to the query object in an Elasticsearch search POST body. All the * options that are supported by Elasticsearch can be used, as this object is * passed verbatim to Elasticsearch. By default, this property has the following - * value: {"match_all": {}}. - * + * value: {"match_all": {}}. + *

* API name: {@code query} */ @Nullable @@ -97,7 +97,7 @@ public QueryContainer query() { * Specify includes and/or excludes patterns to select which fields will be * present in the destination. Fields that are excluded cannot be included in * the analysis. - * + *

* API name: {@code _source} */ @Nullable @@ -179,7 +179,7 @@ public static class Builder implements ObjectBuilder { /** * Index or indices on which to perform the analysis. It can be a single index * or index pattern as well as an array of indices or patterns. - * + *

* API name: {@code index} */ public Builder index(List value) { @@ -190,7 +190,7 @@ public Builder index(List value) { /** * Index or indices on which to perform the analysis. It can be a single index * or index pattern as well as an array of indices or patterns. - * + *

* API name: {@code index} */ public Builder index(String... value) { @@ -214,8 +214,8 @@ public Builder addIndex(String value) { * corresponds to the query object in an Elasticsearch search POST body. All the * options that are supported by Elasticsearch can be used, as this object is * passed verbatim to Elasticsearch. By default, this property has the following - * value: {"match_all": {}}. - * + * value: {"match_all": {}}. + *

* API name: {@code query} */ public Builder query(@Nullable QueryContainer value) { @@ -228,8 +228,8 @@ public Builder query(@Nullable QueryContainer value) { * corresponds to the query object in an Elasticsearch search POST body. All the * options that are supported by Elasticsearch can be used, as this object is * passed verbatim to Elasticsearch. By default, this property has the following - * value: {"match_all": {}}. - * + * value: {"match_all": {}}. + *

* API name: {@code query} */ public Builder query(Function> fn) { @@ -240,7 +240,7 @@ public Builder query(Function * API name: {@code _source} */ public Builder source(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsDataCounts.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsDataCounts.java index 504cc73b3..780f48e0d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsDataCounts.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsDataCounts.java @@ -59,7 +59,7 @@ protected DataframeAnalyticsStatsDataCounts(Builder builder) { * detection does not support missing fields so it skips documents with missing * fields. Likewise, all types of analysis skip documents that contain arrays * with more than one element. - * + *

* API name: {@code skipped_docs_count} */ public Number skippedDocsCount() { @@ -69,7 +69,7 @@ public Number skippedDocsCount() { /** * The number of documents that are not used for training the model and can be * used for testing. - * + *

* API name: {@code test_docs_count} */ public Number testDocsCount() { @@ -78,7 +78,7 @@ public Number testDocsCount() { /** * The number of documents that are used for training the model. - * + *

* API name: {@code training_docs_count} */ public Number trainingDocsCount() { @@ -125,7 +125,7 @@ public static class Builder implements ObjectBuilder * API name: {@code skipped_docs_count} */ public Builder skippedDocsCount(Number value) { @@ -136,7 +136,7 @@ public Builder skippedDocsCount(Number value) { /** * The number of documents that are not used for training the model and can be * used for testing. - * + *

* API name: {@code test_docs_count} */ public Builder testDocsCount(Number value) { @@ -146,7 +146,7 @@ public Builder testDocsCount(Number value) { /** * The number of documents that are used for training the model. - * + *

* API name: {@code training_docs_count} */ public Builder trainingDocsCount(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsHyperparameters.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsHyperparameters.java index 1e68ec3a3..64f81ded1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsHyperparameters.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsHyperparameters.java @@ -70,7 +70,7 @@ public Hyperparameters hyperparameters() { /** * The number of iterations on the analysis. - * + *

* API name: {@code iteration} */ public Number iteration() { @@ -159,7 +159,7 @@ public Builder hyperparameters(Function * API name: {@code iteration} */ public Builder iteration(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsMemoryUsage.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsMemoryUsage.java index c49acbdcc..b77061f31 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsMemoryUsage.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsMemoryUsage.java @@ -62,7 +62,7 @@ protected DataframeAnalyticsStatsMemoryUsage(Builder builder) { /** * This value is present when the status is hard_limit and it is a new estimate * of how much memory the job needs. - * + *

* API name: {@code memory_reestimate_bytes} */ @Nullable @@ -72,7 +72,7 @@ public Number memoryReestimateBytes() { /** * The number of bytes used at the highest peak of memory usage. - * + *

* API name: {@code peak_usage_bytes} */ public Number peakUsageBytes() { @@ -81,7 +81,7 @@ public Number peakUsageBytes() { /** * The memory usage status. - * + *

* API name: {@code status} */ public String status() { @@ -90,7 +90,7 @@ public String status() { /** * The timestamp when memory usage was calculated. - * + *

* API name: {@code timestamp} */ @Nullable @@ -150,7 +150,7 @@ public static class Builder implements ObjectBuilder * API name: {@code memory_reestimate_bytes} */ public Builder memoryReestimateBytes(@Nullable Number value) { @@ -160,7 +160,7 @@ public Builder memoryReestimateBytes(@Nullable Number value) { /** * The number of bytes used at the highest peak of memory usage. - * + *

* API name: {@code peak_usage_bytes} */ public Builder peakUsageBytes(Number value) { @@ -170,7 +170,7 @@ public Builder peakUsageBytes(Number value) { /** * The memory usage status. - * + *

* API name: {@code status} */ public Builder status(String value) { @@ -180,7 +180,7 @@ public Builder status(String value) { /** * The timestamp when memory usage was calculated. - * + *

* API name: {@code timestamp} */ public Builder timestamp(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsProgress.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsProgress.java index 5bbb2a8bb..eb98921dc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsProgress.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeAnalyticsStatsProgress.java @@ -53,7 +53,7 @@ protected DataframeAnalyticsStatsProgress(Builder builder) { /** * Defines the phase of the data frame analytics job. - * + *

* API name: {@code phase} */ public String phase() { @@ -63,7 +63,7 @@ public String phase() { /** * The progress that the data frame analytics job has made expressed in * percentage. - * + *

* API name: {@code progress_percent} */ public Number progressPercent() { @@ -101,7 +101,7 @@ public static class Builder implements ObjectBuilder * API name: {@code phase} */ public Builder phase(String value) { @@ -112,7 +112,7 @@ public Builder phase(String value) { /** * The progress that the data frame analytics job has made expressed in * percentage. - * + *

* API name: {@code progress_percent} */ public Builder progressPercent(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassification.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassification.java index 6f90b910d..045831848 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassification.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassification.java @@ -64,7 +64,7 @@ protected DataframeEvaluationClassification(Builder builder) { * The field of the index which contains the ground truth. The data type of this * field can be boolean or integer. If the data type is integer, the value has * to be either 0 (false) or 1 (true). - * + *

* API name: {@code actual_field} */ public String actualField() { @@ -74,7 +74,7 @@ public String actualField() { /** * The field in the index which contains the predicted value, in other words the * results of the classification analysis. - * + *

* API name: {@code predicted_field} */ @Nullable @@ -84,9 +84,9 @@ public String predictedField() { /** * The field of the index which is an array of documents of the form { - * "class_name": XXX, "class_probability": YYY }. This field must be defined as - * nested in the mappings. - * + * "class_name": XXX, "class_probability": YYY }. This field + * must be defined as nested in the mappings. + *

* API name: {@code top_classes_field} */ @Nullable @@ -96,7 +96,7 @@ public String topClassesField() { /** * Specifies the metrics that are used for the evaluation. - * + *

* API name: {@code metrics} */ @Nullable @@ -160,7 +160,7 @@ public static class Builder implements ObjectBuilder * API name: {@code actual_field} */ public Builder actualField(String value) { @@ -171,7 +171,7 @@ public Builder actualField(String value) { /** * The field in the index which contains the predicted value, in other words the * results of the classification analysis. - * + *

* API name: {@code predicted_field} */ public Builder predictedField(@Nullable String value) { @@ -181,9 +181,9 @@ public Builder predictedField(@Nullable String value) { /** * The field of the index which is an array of documents of the form { - * "class_name": XXX, "class_probability": YYY }. This field must be defined as - * nested in the mappings. - * + * "class_name": XXX, "class_probability": YYY }. This field + * must be defined as nested in the mappings. + *

* API name: {@code top_classes_field} */ public Builder topClassesField(@Nullable String value) { @@ -193,7 +193,7 @@ public Builder topClassesField(@Nullable String value) { /** * Specifies the metrics that are used for the evaluation. - * + *

* API name: {@code metrics} */ public Builder metrics(@Nullable DataframeEvaluationClassificationMetrics value) { @@ -203,7 +203,7 @@ public Builder metrics(@Nullable DataframeEvaluationClassificationMetrics value) /** * Specifies the metrics that are used for the evaluation. - * + *

* API name: {@code metrics} */ public Builder metrics( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetrics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetrics.java index d57342ebe..5a956c299 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetrics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetrics.java @@ -54,7 +54,7 @@ protected DataframeEvaluationClassificationMetrics(Builder builder) { /** * Accuracy of predictions (per-class and overall). - * + *

* API name: {@code accuracy} */ @Nullable @@ -64,7 +64,7 @@ public Map accuracy() { /** * Multiclass confusion matrix. - * + *

* API name: {@code multiclass_confusion_matrix} */ @Nullable @@ -117,7 +117,7 @@ public static class Builder extends DataframeEvaluationMetrics.AbstractBuilder * API name: {@code accuracy} */ public Builder accuracy(@Nullable Map value) { @@ -138,7 +138,7 @@ public Builder putAccuracy(String key, JsonValue value) { /** * Multiclass confusion matrix. - * + *

* API name: {@code multiclass_confusion_matrix} */ public Builder multiclassConfusionMatrix(@Nullable Map value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetricsAucRoc.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetricsAucRoc.java index 0181da5ab..55422d3fc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetricsAucRoc.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationClassificationMetricsAucRoc.java @@ -54,10 +54,10 @@ protected DataframeEvaluationClassificationMetricsAucRoc(Builder builder) { /** * Name of the only class that is treated as positive during AUC ROC - * calculation. Other classes are treated as negative ("one-vs-all" strategy). - * All the evaluated documents must have class_name in the list of their top - * classes. - * + * calculation. Other classes are treated as negative ("one-vs-all" + * strategy). All the evaluated documents must have class_name in the list of + * their top classes. + *

* API name: {@code class_name} */ @Nullable @@ -68,7 +68,7 @@ public String className() { /** * Whether or not the curve should be returned in addition to the score. Default * value is false. - * + *

* API name: {@code include_curve} */ @Nullable @@ -116,10 +116,10 @@ public static class Builder implements ObjectBuilder * API name: {@code class_name} */ public Builder className(@Nullable String value) { @@ -130,7 +130,7 @@ public Builder className(@Nullable String value) { /** * Whether or not the curve should be returned in addition to the score. Default * value is false. - * + *

* API name: {@code include_curve} */ public Builder includeCurve(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationMetrics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationMetrics.java index 359e8711d..0c95b1166 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationMetrics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationMetrics.java @@ -61,8 +61,8 @@ protected DataframeEvaluationMetrics(AbstractBuilder builder) { /** * The AUC ROC (area under the curve of the receiver operating characteristic) * score and optionally the curve. It is calculated for a specific class - * (provided as "class_name") treated as positive. - * + * (provided as "class_name") treated as positive. + *

* API name: {@code auc_roc} */ @Nullable @@ -72,7 +72,7 @@ public DataframeEvaluationClassificationMetricsAucRoc aucRoc() { /** * Precision of predictions (per-class and average). - * + *

* API name: {@code precision} */ @Nullable @@ -82,7 +82,7 @@ public Map precision() { /** * Recall of predictions (per-class and average). - * + *

* API name: {@code recall} */ @Nullable @@ -147,8 +147,8 @@ protected abstract static class AbstractBuilder * API name: {@code auc_roc} */ public BuilderT aucRoc(@Nullable DataframeEvaluationClassificationMetricsAucRoc value) { @@ -159,8 +159,8 @@ public BuilderT aucRoc(@Nullable DataframeEvaluationClassificationMetricsAucRoc /** * The AUC ROC (area under the curve of the receiver operating characteristic) * score and optionally the curve. It is calculated for a specific class - * (provided as "class_name") treated as positive. - * + * (provided as "class_name") treated as positive. + *

* API name: {@code auc_roc} */ public BuilderT aucRoc( @@ -170,7 +170,7 @@ public BuilderT aucRoc( /** * Precision of predictions (per-class and average). - * + *

* API name: {@code precision} */ public BuilderT precision(@Nullable Map value) { @@ -191,7 +191,7 @@ public BuilderT putPrecision(String key, JsonValue value) { /** * Recall of predictions (per-class and average). - * + *

* API name: {@code recall} */ public BuilderT recall(@Nullable Map value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetection.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetection.java index 13d5d7d24..18e51ac61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetection.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetection.java @@ -60,7 +60,7 @@ protected DataframeEvaluationOutlierDetection(Builder builder) { * The field of the index which contains the ground truth. The data type of this * field can be boolean or integer. If the data type is integer, the value has * to be either 0 (false) or 1 (true). - * + *

* API name: {@code actual_field} */ public String actualField() { @@ -71,7 +71,7 @@ public String actualField() { * The field of the index that defines the probability of whether the item * belongs to the class in question or not. It’s the field that contains the * results of the analysis. - * + *

* API name: {@code predicted_probability_field} */ public String predictedProbabilityField() { @@ -80,7 +80,7 @@ public String predictedProbabilityField() { /** * Specifies the metrics that are used for the evaluation. - * + *

* API name: {@code metrics} */ @Nullable @@ -131,7 +131,7 @@ public static class Builder implements ObjectBuilder * API name: {@code actual_field} */ public Builder actualField(String value) { @@ -143,7 +143,7 @@ public Builder actualField(String value) { * The field of the index that defines the probability of whether the item * belongs to the class in question or not. It’s the field that contains the * results of the analysis. - * + *

* API name: {@code predicted_probability_field} */ public Builder predictedProbabilityField(String value) { @@ -153,7 +153,7 @@ public Builder predictedProbabilityField(String value) { /** * Specifies the metrics that are used for the evaluation. - * + *

* API name: {@code metrics} */ public Builder metrics(@Nullable DataframeEvaluationOutlierDetectionMetrics value) { @@ -163,7 +163,7 @@ public Builder metrics(@Nullable DataframeEvaluationOutlierDetectionMetrics valu /** * Specifies the metrics that are used for the evaluation. - * + *

* API name: {@code metrics} */ public Builder metrics( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetectionMetrics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetectionMetrics.java index 321bb5361..157032e31 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetectionMetrics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationOutlierDetectionMetrics.java @@ -50,7 +50,7 @@ protected DataframeEvaluationOutlierDetectionMetrics(Builder builder) { /** * Accuracy of predictions (per-class and overall). - * + *

* API name: {@code confusion_matrix} */ @Nullable @@ -88,7 +88,7 @@ public static class Builder extends DataframeEvaluationMetrics.AbstractBuilder * API name: {@code confusion_matrix} */ public Builder confusionMatrix(@Nullable Map value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegression.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegression.java index 73b7d1d05..0d7302fed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegression.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegression.java @@ -58,7 +58,7 @@ protected DataframeEvaluationRegression(Builder builder) { /** * The field of the index which contains the ground truth. The data type of this * field must be numerical. - * + *

* API name: {@code actual_field} */ public String actualField() { @@ -68,7 +68,7 @@ public String actualField() { /** * The field in the index that contains the predicted value, in other words the * results of the regression analysis. - * + *

* API name: {@code predicted_field} */ public String predictedField() { @@ -79,7 +79,7 @@ public String predictedField() { * Specifies the metrics that are used for the evaluation. For more information * on mse, msle, and huber, consult the Jupyter notebook on regression loss * functions. - * + *

* API name: {@code metrics} */ @Nullable @@ -129,7 +129,7 @@ public static class Builder implements ObjectBuilder * API name: {@code actual_field} */ public Builder actualField(String value) { @@ -140,7 +140,7 @@ public Builder actualField(String value) { /** * The field in the index that contains the predicted value, in other words the * results of the regression analysis. - * + *

* API name: {@code predicted_field} */ public Builder predictedField(String value) { @@ -152,7 +152,7 @@ public Builder predictedField(String value) { * Specifies the metrics that are used for the evaluation. For more information * on mse, msle, and huber, consult the Jupyter notebook on regression loss * functions. - * + *

* API name: {@code metrics} */ public Builder metrics(@Nullable DataframeEvaluationRegressionMetrics value) { @@ -164,7 +164,7 @@ public Builder metrics(@Nullable DataframeEvaluationRegressionMetrics value) { * Specifies the metrics that are used for the evaluation. For more information * on mse, msle, and huber, consult the Jupyter notebook on regression loss * functions. - * + *

* API name: {@code metrics} */ public Builder metrics( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetrics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetrics.java index e1eafafdd..27a647ba7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetrics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetrics.java @@ -65,7 +65,7 @@ protected DataframeEvaluationRegressionMetrics(Builder builder) { /** * Average squared difference between the predicted values and the actual * (ground truth) value. For more information, read this wiki article. - * + *

* API name: {@code mse} */ @Nullable @@ -76,7 +76,7 @@ public Map mse() { /** * Average squared difference between the logarithm of the predicted values and * the logarithm of the actual (ground truth) value. - * + *

* API name: {@code msle} */ @Nullable @@ -86,7 +86,7 @@ public DataframeEvaluationRegressionMetricsMsle msle() { /** * Pseudo Huber loss function. - * + *

* API name: {@code huber} */ @Nullable @@ -97,7 +97,7 @@ public DataframeEvaluationRegressionMetricsHuber huber() { /** * Proportion of the variance in the dependent variable that is predictable from * the independent variables. - * + *

* API name: {@code r_squared} */ @Nullable @@ -176,7 +176,7 @@ public static class Builder implements ObjectBuilder * API name: {@code mse} */ public Builder mse(@Nullable Map value) { @@ -198,7 +198,7 @@ public Builder putMse(String key, JsonValue value) { /** * Average squared difference between the logarithm of the predicted values and * the logarithm of the actual (ground truth) value. - * + *

* API name: {@code msle} */ public Builder msle(@Nullable DataframeEvaluationRegressionMetricsMsle value) { @@ -209,7 +209,7 @@ public Builder msle(@Nullable DataframeEvaluationRegressionMetricsMsle value) { /** * Average squared difference between the logarithm of the predicted values and * the logarithm of the actual (ground truth) value. - * + *

* API name: {@code msle} */ public Builder msle( @@ -219,7 +219,7 @@ public Builder msle( /** * Pseudo Huber loss function. - * + *

* API name: {@code huber} */ public Builder huber(@Nullable DataframeEvaluationRegressionMetricsHuber value) { @@ -229,7 +229,7 @@ public Builder huber(@Nullable DataframeEvaluationRegressionMetricsHuber value) /** * Pseudo Huber loss function. - * + *

* API name: {@code huber} */ public Builder huber( @@ -240,7 +240,7 @@ public Builder huber( /** * Proportion of the variance in the dependent variable that is predictable from * the independent variables. - * + *

* API name: {@code r_squared} */ public Builder rSquared(@Nullable Map value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsHuber.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsHuber.java index b7d9f8654..c73a4792d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsHuber.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsHuber.java @@ -51,7 +51,7 @@ protected DataframeEvaluationRegressionMetricsHuber(Builder builder) { * Approximates 1/2 (prediction - actual)2 for values much less than delta and * approximates a straight line with slope delta for values much larger than * delta. Defaults to 1. Delta needs to be greater than 0. - * + *

* API name: {@code delta} */ @Nullable @@ -92,7 +92,7 @@ public static class Builder implements ObjectBuilder * API name: {@code delta} */ public Builder delta(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsMsle.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsMsle.java index 4d23c11a3..c722bd007 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsMsle.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DataframeEvaluationRegressionMetricsMsle.java @@ -50,7 +50,7 @@ protected DataframeEvaluationRegressionMetricsMsle(Builder builder) { /** * Defines the transition point at which you switch from minimizing quadratic * error to minimizing quadratic log error. Defaults to 1. - * + *

* API name: {@code offset} */ @Nullable @@ -90,7 +90,7 @@ public static class Builder implements ObjectBuilder * API name: {@code offset} */ public Builder offset(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java index 43b31022d..209fcdb6d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/EvaluateDataFrameRequest.java @@ -62,7 +62,7 @@ protected EvaluateDataFrameRequest(Builder builder) { /** * Defines the type of evaluation you want to perform. - * + *

* API name: {@code evaluation} */ public DataframeEvaluationContainer evaluation() { @@ -71,7 +71,7 @@ public DataframeEvaluationContainer evaluation() { /** * Defines the index in which the evaluation will be performed. - * + *

* API name: {@code index} */ public String index() { @@ -80,7 +80,7 @@ public String index() { /** * A query clause that retrieves a subset of data from the source index. - * + *

* API name: {@code query} */ @Nullable @@ -129,7 +129,7 @@ public static class Builder implements ObjectBuilder { /** * Defines the type of evaluation you want to perform. - * + *

* API name: {@code evaluation} */ public Builder evaluation(DataframeEvaluationContainer value) { @@ -139,7 +139,7 @@ public Builder evaluation(DataframeEvaluationContainer value) { /** * Defines the type of evaluation you want to perform. - * + *

* API name: {@code evaluation} */ public Builder evaluation( @@ -149,7 +149,7 @@ public Builder evaluation( /** * Defines the index in which the evaluation will be performed. - * + *

* API name: {@code index} */ public Builder index(String value) { @@ -159,7 +159,7 @@ public Builder index(String value) { /** * A query clause that retrieves a subset of data from the source index. - * + *

* API name: {@code query} */ public Builder query(@Nullable QueryContainer value) { @@ -169,7 +169,7 @@ public Builder query(@Nullable QueryContainer value) { /** * A query clause that retrieves a subset of data from the source index. - * + *

* API name: {@code query} */ public Builder query(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsRequest.java index 7dc83f636..54f4e0e16 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsRequest.java @@ -91,7 +91,7 @@ protected ExplainDataFrameAnalyticsRequest(Builder builder) { * Identifier for the data frame analytics job. This identifier can contain * lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It * must start and end with alphanumeric characters. - * + *

* API name: {@code id} */ @Nullable @@ -102,7 +102,7 @@ public String id() { /** * The configuration of how to source the analysis data. It requires an index. * Optionally, query and _source may be specified. - * + *

* API name: {@code source} */ @Nullable @@ -113,7 +113,7 @@ public DataframeAnalyticsSource source() { /** * The destination configuration, consisting of index and optionally * results_field (ml by default). - * + *

* API name: {@code dest} */ @Nullable @@ -125,7 +125,7 @@ public DataframeAnalyticsDestination dest() { * The analysis configuration, which contains the information necessary to * perform one of the following types of analysis: classification, outlier * detection, or regression. - * + *

* API name: {@code analysis} */ public DataframeAnalysisContainer analysis() { @@ -134,7 +134,7 @@ public DataframeAnalysisContainer analysis() { /** * A description of the job. - * + *

* API name: {@code description} */ @Nullable @@ -149,7 +149,7 @@ public String description() { * xpack.ml.max_model_memory_limit setting, an error occurs when you try to * create data frame analytics jobs that have model_memory_limit values greater * than that setting. - * + *

* API name: {@code model_memory_limit} */ @Nullable @@ -163,7 +163,7 @@ public String modelMemoryLimit() { * analysis at the cost of using more CPU. Note that the process may use * additional threads for operational functionality other than the analysis * itself. - * + *

* API name: {@code max_num_threads} */ @Nullable @@ -177,7 +177,7 @@ public Number maxNumThreads() { * last, therefore excludes takes precedence. In other words, if the same field * is specified in both includes and excludes, then the field will not be * included in the analysis. - * + *

* API name: {@code analyzed_fields} */ @Nullable @@ -188,7 +188,7 @@ public JsonValue analyzedFields() { /** * Specifies whether this job can start when there is insufficient machine * learning node capacity for it to be immediately assigned to a node. - * + *

* API name: {@code allow_lazy_start} */ @Nullable @@ -292,7 +292,7 @@ public static class Builder implements ObjectBuilder * API name: {@code id} */ public Builder id(@Nullable String value) { @@ -303,7 +303,7 @@ public Builder id(@Nullable String value) { /** * The configuration of how to source the analysis data. It requires an index. * Optionally, query and _source may be specified. - * + *

* API name: {@code source} */ public Builder source(@Nullable DataframeAnalyticsSource value) { @@ -314,7 +314,7 @@ public Builder source(@Nullable DataframeAnalyticsSource value) { /** * The configuration of how to source the analysis data. It requires an index. * Optionally, query and _source may be specified. - * + *

* API name: {@code source} */ public Builder source(Function> fn) { @@ -324,7 +324,7 @@ public Builder source(Function * API name: {@code dest} */ public Builder dest(@Nullable DataframeAnalyticsDestination value) { @@ -335,7 +335,7 @@ public Builder dest(@Nullable DataframeAnalyticsDestination value) { /** * The destination configuration, consisting of index and optionally * results_field (ml by default). - * + *

* API name: {@code dest} */ public Builder dest( @@ -347,7 +347,7 @@ public Builder dest( * The analysis configuration, which contains the information necessary to * perform one of the following types of analysis: classification, outlier * detection, or regression. - * + *

* API name: {@code analysis} */ public Builder analysis(DataframeAnalysisContainer value) { @@ -359,7 +359,7 @@ public Builder analysis(DataframeAnalysisContainer value) { * The analysis configuration, which contains the information necessary to * perform one of the following types of analysis: classification, outlier * detection, or regression. - * + *

* API name: {@code analysis} */ public Builder analysis( @@ -369,7 +369,7 @@ public Builder analysis( /** * A description of the job. - * + *

* API name: {@code description} */ public Builder description(@Nullable String value) { @@ -384,7 +384,7 @@ public Builder description(@Nullable String value) { * xpack.ml.max_model_memory_limit setting, an error occurs when you try to * create data frame analytics jobs that have model_memory_limit values greater * than that setting. - * + *

* API name: {@code model_memory_limit} */ public Builder modelMemoryLimit(@Nullable String value) { @@ -398,7 +398,7 @@ public Builder modelMemoryLimit(@Nullable String value) { * analysis at the cost of using more CPU. Note that the process may use * additional threads for operational functionality other than the analysis * itself. - * + *

* API name: {@code max_num_threads} */ public Builder maxNumThreads(@Nullable Number value) { @@ -412,7 +412,7 @@ public Builder maxNumThreads(@Nullable Number value) { * last, therefore excludes takes precedence. In other words, if the same field * is specified in both includes and excludes, then the field will not be * included in the analysis. - * + *

* API name: {@code analyzed_fields} */ public Builder analyzedFields(@Nullable JsonValue value) { @@ -423,7 +423,7 @@ public Builder analyzedFields(@Nullable JsonValue value) { /** * Specifies whether this job can start when there is insufficient machine * learning node capacity for it to be immediately assigned to a node. - * + *

* API name: {@code allow_lazy_start} */ public Builder allowLazyStart(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsResponse.java index 10f9f87de..dd832e5e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ExplainDataFrameAnalyticsResponse.java @@ -56,7 +56,7 @@ protected ExplainDataFrameAnalyticsResponse(Builder builder) { /** * An array of objects that explain selection for each field, sorted by the * field names. - * + *

* API name: {@code field_selection} */ public List fieldSelection() { @@ -66,7 +66,7 @@ public List fieldSelection() { /** * An array of objects that explain selection for each field, sorted by the * field names. - * + *

* API name: {@code memory_estimation} */ public DataframeAnalyticsMemoryEstimation memoryEstimation() { @@ -110,7 +110,7 @@ public static class Builder implements ObjectBuilder * API name: {@code field_selection} */ public Builder fieldSelection(List value) { @@ -121,7 +121,7 @@ public Builder fieldSelection(List value) { /** * An array of objects that explain selection for each field, sorted by the * field names. - * + *

* API name: {@code field_selection} */ public Builder fieldSelection(DataframeAnalyticsFieldSelection... value) { @@ -159,7 +159,7 @@ public Builder addFieldSelection( /** * An array of objects that explain selection for each field, sorted by the * field names. - * + *

* API name: {@code memory_estimation} */ public Builder memoryEstimation(DataframeAnalyticsMemoryEstimation value) { @@ -170,7 +170,7 @@ public Builder memoryEstimation(DataframeAnalyticsMemoryEstimation value) { /** * An array of objects that explain selection for each field, sorted by the * field names. - * + *

* API name: {@code memory_estimation} */ public Builder memoryEstimation( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java index b49232e89..77d7e75ce 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCalendarsRequest.java @@ -68,7 +68,7 @@ protected GetCalendarsRequest(Builder builder) { /** * A string that uniquely identifies a calendar. - * + *

* API name: {@code calendar_id} */ @Nullable @@ -78,7 +78,7 @@ public String calendarId() { /** * Skips the specified number of calendars. - * + *

* API name: {@code from} */ @Nullable @@ -88,7 +88,7 @@ public Number from() { /** * Specifies the maximum number of calendars to obtain. - * + *

* API name: {@code size} */ @Nullable @@ -144,7 +144,7 @@ public static class Builder implements ObjectBuilder { /** * A string that uniquely identifies a calendar. - * + *

* API name: {@code calendar_id} */ public Builder calendarId(@Nullable String value) { @@ -154,7 +154,7 @@ public Builder calendarId(@Nullable String value) { /** * Skips the specified number of calendars. - * + *

* API name: {@code from} */ public Builder from(@Nullable Number value) { @@ -164,7 +164,7 @@ public Builder from(@Nullable Number value) { /** * Specifies the maximum number of calendars to obtain. - * + *

* API name: {@code size} */ public Builder size(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java index f55fad5df..76f9a3d95 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetCategoriesRequest.java @@ -76,7 +76,7 @@ protected GetCategoriesRequest(Builder builder) { /** * Identifier for the anomaly detection job. - * + *

* API name: {@code job_id} */ public String jobId() { @@ -89,7 +89,7 @@ public String jobId() { * information about all categories. If you specify only the * partition_field_value, it returns information about all categories for the * specified partition. - * + *

* API name: {@code category_id} */ @Nullable @@ -115,7 +115,7 @@ public Number size() { /** * Only return categories for the specified partition. - * + *

* API name: {@code partition_field_value} */ @Nullable @@ -176,7 +176,7 @@ public static class Builder implements ObjectBuilder { /** * Identifier for the anomaly detection job. - * + *

* API name: {@code job_id} */ public Builder jobId(String value) { @@ -190,7 +190,7 @@ public Builder jobId(String value) { * information about all categories. If you specify only the * partition_field_value, it returns information about all categories for the * specified partition. - * + *

* API name: {@code category_id} */ public Builder categoryId(@Nullable String value) { @@ -216,7 +216,7 @@ public Builder size(@Nullable Number value) { /** * Only return categories for the specified partition. - * + *

* API name: {@code partition_field_value} */ public Builder partitionFieldValue(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java index aef1d900b..181687c94 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsRequest.java @@ -71,7 +71,7 @@ protected GetDataFrameAnalyticsRequest(Builder builder) { * Identifier for the data frame analytics job. If you do not specify this * option, the API returns information for the first hundred data frame * analytics jobs. - * + *

* API name: {@code id} */ @Nullable @@ -89,7 +89,7 @@ public Boolean allowNoMatch() { /** * Skips the specified number of data frame analytics jobs. - * + *

* API name: {@code from} */ @Nullable @@ -99,7 +99,7 @@ public Number from() { /** * Specifies the maximum number of data frame analytics jobs to obtain. - * + *

* API name: {@code size} */ @Nullable @@ -111,7 +111,7 @@ public Number size() { * Indicates if certain fields should be removed from the configuration on * retrieval. This allows the configuration to be in an acceptable format to be * retrieved and then added to another cluster. - * + *

* API name: {@code exclude_generated} */ @Nullable @@ -144,7 +144,7 @@ public static class Builder implements ObjectBuilder * API name: {@code id} */ public Builder id(@Nullable String value) { @@ -162,7 +162,7 @@ public Builder allowNoMatch(@Nullable Boolean value) { /** * Skips the specified number of data frame analytics jobs. - * + *

* API name: {@code from} */ public Builder from(@Nullable Number value) { @@ -172,7 +172,7 @@ public Builder from(@Nullable Number value) { /** * Specifies the maximum number of data frame analytics jobs to obtain. - * + *

* API name: {@code size} */ public Builder size(@Nullable Number value) { @@ -184,7 +184,7 @@ public Builder size(@Nullable Number value) { * Indicates if certain fields should be removed from the configuration on * retrieval. This allows the configuration to be in an acceptable format to be * retrieved and then added to another cluster. - * + *

* API name: {@code exclude_generated} */ public Builder excludeGenerated(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsResponse.java index cb05c5c47..f9a598b1c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsResponse.java @@ -64,7 +64,7 @@ public Number count() { /** * An array of data frame analytics job resources, which are sorted by the id * value in ascending order. - * + *

* API name: {@code data_frame_analytics} */ public List dataFrameAnalytics() { @@ -116,7 +116,7 @@ public Builder count(Number value) { /** * An array of data frame analytics job resources, which are sorted by the id * value in ascending order. - * + *

* API name: {@code data_frame_analytics} */ public Builder dataFrameAnalytics(List value) { @@ -127,7 +127,7 @@ public Builder dataFrameAnalytics(List value) { /** * An array of data frame analytics job resources, which are sorted by the id * value in ascending order. - * + *

* API name: {@code data_frame_analytics} */ public Builder dataFrameAnalytics(DataframeAnalyticsSummary... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java index e100ecd7f..b6af171d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsRequest.java @@ -71,7 +71,7 @@ protected GetDataFrameAnalyticsStatsRequest(Builder builder) { * Identifier for the data frame analytics job. If you do not specify this * option, the API returns information for the first hundred data frame * analytics jobs. - * + *

* API name: {@code id} */ @Nullable @@ -89,7 +89,7 @@ public Boolean allowNoMatch() { /** * Skips the specified number of data frame analytics jobs. - * + *

* API name: {@code from} */ @Nullable @@ -99,7 +99,7 @@ public Number from() { /** * Specifies the maximum number of data frame analytics jobs to obtain. - * + *

* API name: {@code size} */ @Nullable @@ -109,7 +109,7 @@ public Number size() { /** * Defines whether the stats response should be verbose. - * + *

* API name: {@code verbose} */ @Nullable @@ -142,7 +142,7 @@ public static class Builder implements ObjectBuilder * API name: {@code id} */ public Builder id(@Nullable String value) { @@ -160,7 +160,7 @@ public Builder allowNoMatch(@Nullable Boolean value) { /** * Skips the specified number of data frame analytics jobs. - * + *

* API name: {@code from} */ public Builder from(@Nullable Number value) { @@ -170,7 +170,7 @@ public Builder from(@Nullable Number value) { /** * Specifies the maximum number of data frame analytics jobs to obtain. - * + *

* API name: {@code size} */ public Builder size(@Nullable Number value) { @@ -180,7 +180,7 @@ public Builder size(@Nullable Number value) { /** * Defines whether the stats response should be verbose. - * + *

* API name: {@code verbose} */ public Builder verbose(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsResponse.java index 9b1578479..1abab4dd8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetDataFrameAnalyticsStatsResponse.java @@ -64,7 +64,7 @@ public Number count() { /** * An array of objects that contain usage information for data frame analytics * jobs, which are sorted by the id value in ascending order. - * + *

* API name: {@code data_frame_analytics} */ public List dataFrameAnalytics() { @@ -116,7 +116,7 @@ public Builder count(Number value) { /** * An array of objects that contain usage information for data frame analytics * jobs, which are sorted by the id value in ascending order. - * + *

* API name: {@code data_frame_analytics} */ public Builder dataFrameAnalytics(List value) { @@ -127,7 +127,7 @@ public Builder dataFrameAnalytics(List value) { /** * An array of objects that contain usage information for data frame analytics * jobs, which are sorted by the id value in ascending order. - * + *

* API name: {@code data_frame_analytics} */ public Builder dataFrameAnalytics(DataframeAnalytics... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java index 99f90ee12..5f465e837 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersRequest.java @@ -93,7 +93,7 @@ protected GetInfluencersRequest(Builder builder) { /** * Identifier for the anomaly detection job. - * + *

* API name: {@code job_id} */ public String jobId() { @@ -102,7 +102,7 @@ public String jobId() { /** * If true, the results are sorted in descending order. - * + *

* API name: {@code desc} */ @Nullable @@ -112,7 +112,7 @@ public Boolean desc() { /** * Returns influencers with timestamps earlier than this time. - * + *

* API name: {@code end} */ @Nullable @@ -123,7 +123,7 @@ public String end() { /** * If true, the output excludes interim results. By default, interim results are * included. - * + *

* API name: {@code exclude_interim} */ @Nullable @@ -133,7 +133,7 @@ public Boolean excludeInterim() { /** * Returns influencers with anomaly scores greater than or equal to this value. - * + *

* API name: {@code influencer_score} */ @Nullable @@ -143,7 +143,7 @@ public Number influencerScore() { /** * Skips the specified number of influencers. - * + *

* API name: {@code from} */ @Nullable @@ -153,7 +153,7 @@ public Number from() { /** * Specifies the maximum number of influencers to obtain. - * + *

* API name: {@code size} */ @Nullable @@ -164,7 +164,7 @@ public Number size() { /** * Specifies the sort field for the requested influencers. By default, the * influencers are sorted by the influencer_score value. - * + *

* API name: {@code sort} */ @Nullable @@ -174,7 +174,7 @@ public String sort() { /** * Returns influencers with timestamps after this time. - * + *

* API name: {@code start} */ @Nullable @@ -247,7 +247,7 @@ public static class Builder implements ObjectBuilder { /** * Identifier for the anomaly detection job. - * + *

* API name: {@code job_id} */ public Builder jobId(String value) { @@ -257,7 +257,7 @@ public Builder jobId(String value) { /** * If true, the results are sorted in descending order. - * + *

* API name: {@code desc} */ public Builder desc(@Nullable Boolean value) { @@ -267,7 +267,7 @@ public Builder desc(@Nullable Boolean value) { /** * Returns influencers with timestamps earlier than this time. - * + *

* API name: {@code end} */ public Builder end(@Nullable String value) { @@ -278,7 +278,7 @@ public Builder end(@Nullable String value) { /** * If true, the output excludes interim results. By default, interim results are * included. - * + *

* API name: {@code exclude_interim} */ public Builder excludeInterim(@Nullable Boolean value) { @@ -288,7 +288,7 @@ public Builder excludeInterim(@Nullable Boolean value) { /** * Returns influencers with anomaly scores greater than or equal to this value. - * + *

* API name: {@code influencer_score} */ public Builder influencerScore(@Nullable Number value) { @@ -298,7 +298,7 @@ public Builder influencerScore(@Nullable Number value) { /** * Skips the specified number of influencers. - * + *

* API name: {@code from} */ public Builder from(@Nullable Number value) { @@ -308,7 +308,7 @@ public Builder from(@Nullable Number value) { /** * Specifies the maximum number of influencers to obtain. - * + *

* API name: {@code size} */ public Builder size(@Nullable Number value) { @@ -319,7 +319,7 @@ public Builder size(@Nullable Number value) { /** * Specifies the sort field for the requested influencers. By default, the * influencers are sorted by the influencer_score value. - * + *

* API name: {@code sort} */ public Builder sort(@Nullable String value) { @@ -329,7 +329,7 @@ public Builder sort(@Nullable String value) { /** * Returns influencers with timestamps after this time. - * + *

* API name: {@code start} */ public Builder start(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersResponse.java index ab8810839..6c8c9a26e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetInfluencersResponse.java @@ -63,7 +63,7 @@ public Number count() { /** * Array of influencer objects - * + *

* API name: {@code influencers} */ public List influencers() { @@ -114,7 +114,7 @@ public Builder count(Number value) { /** * Array of influencer objects - * + *

* API name: {@code influencers} */ public Builder influencers(List value) { @@ -124,7 +124,7 @@ public Builder influencers(List value) { /** * Array of influencer objects - * + *

* API name: {@code influencers} */ public Builder influencers(BucketInfluencer... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsRequest.java index 7823076d3..7b15a2a39 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetModelSnapshotsRequest.java @@ -85,7 +85,7 @@ protected GetModelSnapshotsRequest(Builder builder) { /** * Identifier for the anomaly detection job. - * + *

* API name: {@code job_id} */ public String jobId() { @@ -94,7 +94,7 @@ public String jobId() { /** * A numerical character string that uniquely identifies the model snapshot. - * + *

* API name: {@code snapshot_id} */ @Nullable @@ -104,7 +104,7 @@ public String snapshotId() { /** * If true, the results are sorted in descending order. - * + *

* API name: {@code desc} */ @Nullable @@ -114,7 +114,7 @@ public Boolean desc() { /** * Skips the specified number of snapshots. - * + *

* API name: {@code from} */ @Nullable @@ -124,7 +124,7 @@ public Number from() { /** * Specifies the maximum number of snapshots to obtain. - * + *

* API name: {@code size} */ @Nullable @@ -135,7 +135,7 @@ public Number size() { /** * Specifies the sort field for the requested snapshots. By default, the * snapshots are sorted by their timestamp. - * + *

* API name: {@code sort} */ @Nullable @@ -216,7 +216,7 @@ public static class Builder implements ObjectBuilder { /** * Identifier for the anomaly detection job. - * + *

* API name: {@code job_id} */ public Builder jobId(String value) { @@ -226,7 +226,7 @@ public Builder jobId(String value) { /** * A numerical character string that uniquely identifies the model snapshot. - * + *

* API name: {@code snapshot_id} */ public Builder snapshotId(@Nullable String value) { @@ -236,7 +236,7 @@ public Builder snapshotId(@Nullable String value) { /** * If true, the results are sorted in descending order. - * + *

* API name: {@code desc} */ public Builder desc(@Nullable Boolean value) { @@ -246,7 +246,7 @@ public Builder desc(@Nullable Boolean value) { /** * Skips the specified number of snapshots. - * + *

* API name: {@code from} */ public Builder from(@Nullable Number value) { @@ -256,7 +256,7 @@ public Builder from(@Nullable Number value) { /** * Specifies the maximum number of snapshots to obtain. - * + *

* API name: {@code size} */ public Builder size(@Nullable Number value) { @@ -267,7 +267,7 @@ public Builder size(@Nullable Number value) { /** * Specifies the sort field for the requested snapshots. By default, the * snapshots are sorted by their timestamp. - * + *

* API name: {@code sort} */ public Builder sort(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java index c8dc19589..d2b1500c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsRequest.java @@ -90,7 +90,7 @@ protected GetOverallBucketsRequest(Builder builder) { /** * Identifier for the anomaly detection job. It can be a job identifier, a group * name, a comma-separated list of jobs or groups, or a wildcard expression. - * + *

* API name: {@code job_id} */ public String jobId() { @@ -101,7 +101,7 @@ public String jobId() { * The span of the overall buckets. Must be greater or equal to the largest * bucket span of the specified anomaly detection jobs, which is the default * value. - * + *

* API name: {@code bucket_span} */ @Nullable @@ -112,7 +112,7 @@ public JsonValue bucketSpan() { /** * Returns overall buckets with overall scores greater than or equal to this * value. - * + *

* API name: {@code overall_score} */ @Nullable @@ -123,7 +123,7 @@ public JsonValue overallScore() { /** * The number of top anomaly detection job bucket scores to be used in the * overall_score calculation. - * + *

* API name: {@code top_n} */ @Nullable @@ -133,7 +133,7 @@ public Number topN() { /** * Returns overall buckets with timestamps earlier than this time. - * + *

* API name: {@code end} */ @Nullable @@ -143,7 +143,7 @@ public JsonValue end() { /** * Returns overall buckets with timestamps after this time. - * + *

* API name: {@code start} */ @Nullable @@ -154,7 +154,7 @@ public JsonValue start() { /** * If true, the output excludes interim results. By default, interim results are * included. - * + *

* API name: {@code exclude_interim} */ @Nullable @@ -233,7 +233,7 @@ public static class Builder implements ObjectBuilder { /** * Identifier for the anomaly detection job. It can be a job identifier, a group * name, a comma-separated list of jobs or groups, or a wildcard expression. - * + *

* API name: {@code job_id} */ public Builder jobId(String value) { @@ -245,7 +245,7 @@ public Builder jobId(String value) { * The span of the overall buckets. Must be greater or equal to the largest * bucket span of the specified anomaly detection jobs, which is the default * value. - * + *

* API name: {@code bucket_span} */ public Builder bucketSpan(@Nullable JsonValue value) { @@ -256,7 +256,7 @@ public Builder bucketSpan(@Nullable JsonValue value) { /** * Returns overall buckets with overall scores greater than or equal to this * value. - * + *

* API name: {@code overall_score} */ public Builder overallScore(@Nullable JsonValue value) { @@ -267,7 +267,7 @@ public Builder overallScore(@Nullable JsonValue value) { /** * The number of top anomaly detection job bucket scores to be used in the * overall_score calculation. - * + *

* API name: {@code top_n} */ public Builder topN(@Nullable Number value) { @@ -277,7 +277,7 @@ public Builder topN(@Nullable Number value) { /** * Returns overall buckets with timestamps earlier than this time. - * + *

* API name: {@code end} */ public Builder end(@Nullable JsonValue value) { @@ -287,7 +287,7 @@ public Builder end(@Nullable JsonValue value) { /** * Returns overall buckets with timestamps after this time. - * + *

* API name: {@code start} */ public Builder start(@Nullable JsonValue value) { @@ -298,7 +298,7 @@ public Builder start(@Nullable JsonValue value) { /** * If true, the output excludes interim results. By default, interim results are * included. - * + *

* API name: {@code exclude_interim} */ public Builder excludeInterim(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsResponse.java index 7d9e0cbf9..0ea66bb6b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetOverallBucketsResponse.java @@ -63,7 +63,7 @@ public Number count() { /** * Array of overall bucket objects - * + *

* API name: {@code overall_buckets} */ public List overallBuckets() { @@ -114,7 +114,7 @@ public Builder count(Number value) { /** * Array of overall bucket objects - * + *

* API name: {@code overall_buckets} */ public Builder overallBuckets(List value) { @@ -124,7 +124,7 @@ public Builder overallBuckets(List value) { /** * Array of overall bucket objects - * + *

* API name: {@code overall_buckets} */ public Builder overallBuckets(OverallBucket... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java index dde7652f5..95e9d6537 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsRequest.java @@ -81,7 +81,7 @@ protected GetTrainedModelsRequest(Builder builder) { /** * The unique identifier of the trained model. - * + *

* API name: {@code model_id} */ @Nullable @@ -90,11 +90,13 @@ public String modelId() { } /** - * Specifies what to do when the request: - Contains wildcard expressions and - * there are no models that match. - Contains the _all string or no identifiers - * and there are no matches. - Contains wildcard expressions and there are only - * partial matches. - * + * Specifies what to do when the request: + *

    + *
  • Contains wildcard expressions and there are no models that match.
  • + *
  • Contains the _all string or no identifiers and there are no matches.
  • + *
  • Contains wildcard expressions and there are only partial matches.
  • + *
+ *

* API name: {@code allow_no_match} */ @Nullable @@ -105,7 +107,7 @@ public Boolean allowNoMatch() { /** * Specifies whether the included model definition should be returned as a JSON * map (true) or in a custom compressed format (false). - * + *

* API name: {@code decompress_definition} */ @Nullable @@ -117,7 +119,7 @@ public Boolean decompressDefinition() { * Indicates if certain fields should be removed from the configuration on * retrieval. This allows the configuration to be in an acceptable format to be * retrieved and then added to another cluster. - * + *

* API name: {@code exclude_generated} */ @Nullable @@ -127,7 +129,7 @@ public Boolean excludeGenerated() { /** * Skips the specified number of models. - * + *

* API name: {@code from} */ @Nullable @@ -137,7 +139,7 @@ public Number from() { /** * A comma delimited string of optional fields to include in the response body. - * + *

* API name: {@code include} */ @Nullable @@ -147,7 +149,7 @@ public String include() { /** * Specifies the maximum number of models to obtain. - * + *

* API name: {@code size} */ @Nullable @@ -159,7 +161,7 @@ public Number size() { * A comma delimited string of tags. A trained model can have many tags, or * none. When supplied, only trained models that contain all the supplied tags * are returned. - * + *

* API name: {@code tags} */ @Nullable @@ -199,7 +201,7 @@ public static class Builder implements ObjectBuilder { /** * The unique identifier of the trained model. - * + *

* API name: {@code model_id} */ public Builder modelId(@Nullable String value) { @@ -208,11 +210,13 @@ public Builder modelId(@Nullable String value) { } /** - * Specifies what to do when the request: - Contains wildcard expressions and - * there are no models that match. - Contains the _all string or no identifiers - * and there are no matches. - Contains wildcard expressions and there are only - * partial matches. - * + * Specifies what to do when the request: + *

    + *
  • Contains wildcard expressions and there are no models that match.
  • + *
  • Contains the _all string or no identifiers and there are no matches.
  • + *
  • Contains wildcard expressions and there are only partial matches.
  • + *
+ *

* API name: {@code allow_no_match} */ public Builder allowNoMatch(@Nullable Boolean value) { @@ -223,7 +227,7 @@ public Builder allowNoMatch(@Nullable Boolean value) { /** * Specifies whether the included model definition should be returned as a JSON * map (true) or in a custom compressed format (false). - * + *

* API name: {@code decompress_definition} */ public Builder decompressDefinition(@Nullable Boolean value) { @@ -235,7 +239,7 @@ public Builder decompressDefinition(@Nullable Boolean value) { * Indicates if certain fields should be removed from the configuration on * retrieval. This allows the configuration to be in an acceptable format to be * retrieved and then added to another cluster. - * + *

* API name: {@code exclude_generated} */ public Builder excludeGenerated(@Nullable Boolean value) { @@ -245,7 +249,7 @@ public Builder excludeGenerated(@Nullable Boolean value) { /** * Skips the specified number of models. - * + *

* API name: {@code from} */ public Builder from(@Nullable Number value) { @@ -255,7 +259,7 @@ public Builder from(@Nullable Number value) { /** * A comma delimited string of optional fields to include in the response body. - * + *

* API name: {@code include} */ public Builder include(@Nullable String value) { @@ -265,7 +269,7 @@ public Builder include(@Nullable String value) { /** * Specifies the maximum number of models to obtain. - * + *

* API name: {@code size} */ public Builder size(@Nullable Number value) { @@ -277,7 +281,7 @@ public Builder size(@Nullable Number value) { * A comma delimited string of tags. A trained model can have many tags, or * none. When supplied, only trained models that contain all the supplied tags * are returned. - * + *

* API name: {@code tags} */ public Builder tags(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsResponse.java index db60620ac..a3a42cea2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsResponse.java @@ -64,7 +64,7 @@ public Number count() { /** * An array of trained model resources, which are sorted by the model_id value * in ascending order. - * + *

* API name: {@code trained_model_configs} */ public List trainedModelConfigs() { @@ -116,7 +116,7 @@ public Builder count(Number value) { /** * An array of trained model resources, which are sorted by the model_id value * in ascending order. - * + *

* API name: {@code trained_model_configs} */ public Builder trainedModelConfigs(List value) { @@ -127,7 +127,7 @@ public Builder trainedModelConfigs(List value) { /** * An array of trained model resources, which are sorted by the model_id value * in ascending order. - * + *

* API name: {@code trained_model_configs} */ public Builder trainedModelConfigs(TrainedModelConfig... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java index 94590a37a..6deac0b0a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsRequest.java @@ -65,7 +65,7 @@ protected GetTrainedModelsStatsRequest(Builder builder) { /** * The unique identifier of the trained model. - * + *

* API name: {@code model_id} */ @Nullable @@ -74,11 +74,13 @@ public String modelId() { } /** - * Specifies what to do when the request: - Contains wildcard expressions and - * there are no models that match. - Contains the _all string or no identifiers - * and there are no matches. - Contains wildcard expressions and there are only - * partial matches. - * + * Specifies what to do when the request: + *

    + *
  • Contains wildcard expressions and there are no models that match.
  • + *
  • Contains the _all string or no identifiers and there are no matches.
  • + *
  • Contains wildcard expressions and there are only partial matches.
  • + *
+ *

* API name: {@code allow_no_match} */ @Nullable @@ -88,7 +90,7 @@ public Boolean allowNoMatch() { /** * Skips the specified number of models. - * + *

* API name: {@code from} */ @Nullable @@ -98,7 +100,7 @@ public Number from() { /** * Specifies the maximum number of models to obtain. - * + *

* API name: {@code size} */ @Nullable @@ -126,7 +128,7 @@ public static class Builder implements ObjectBuilder * API name: {@code model_id} */ public Builder modelId(@Nullable String value) { @@ -135,11 +137,13 @@ public Builder modelId(@Nullable String value) { } /** - * Specifies what to do when the request: - Contains wildcard expressions and - * there are no models that match. - Contains the _all string or no identifiers - * and there are no matches. - Contains wildcard expressions and there are only - * partial matches. - * + * Specifies what to do when the request: + *

    + *
  • Contains wildcard expressions and there are no models that match.
  • + *
  • Contains the _all string or no identifiers and there are no matches.
  • + *
  • Contains wildcard expressions and there are only partial matches.
  • + *
+ *

* API name: {@code allow_no_match} */ public Builder allowNoMatch(@Nullable Boolean value) { @@ -149,7 +153,7 @@ public Builder allowNoMatch(@Nullable Boolean value) { /** * Skips the specified number of models. - * + *

* API name: {@code from} */ public Builder from(@Nullable Number value) { @@ -159,7 +163,7 @@ public Builder from(@Nullable Number value) { /** * Specifies the maximum number of models to obtain. - * + *

* API name: {@code size} */ public Builder size(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsResponse.java index 3945de5f8..ea07dbd0e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetTrainedModelsStatsResponse.java @@ -58,7 +58,7 @@ protected GetTrainedModelsStatsResponse(Builder builder) { * The total number of trained model statistics that matched the requested ID * patterns. Could be higher than the number of items in the trained_model_stats * array as the size of the array is restricted by the supplied size parameter. - * + *

* API name: {@code count} */ public Number count() { @@ -68,7 +68,7 @@ public Number count() { /** * An array of trained model statistics, which are sorted by the model_id value * in ascending order. - * + *

* API name: {@code trained_model_stats} */ public List trainedModelStats() { @@ -113,7 +113,7 @@ public static class Builder implements ObjectBuilder * API name: {@code count} */ public Builder count(Number value) { @@ -124,7 +124,7 @@ public Builder count(Number value) { /** * An array of trained model statistics, which are sorted by the model_id value * in ascending order. - * + *

* API name: {@code trained_model_stats} */ public Builder trainedModelStats(List value) { @@ -135,7 +135,7 @@ public Builder trainedModelStats(List value) { /** * An array of trained model statistics, which are sorted by the model_id value * in ascending order. - * + *

* API name: {@code trained_model_stats} */ public Builder trainedModelStats(TrainedModelStats... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameter.java index ff34d8bf1..abe31c644 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameter.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/Hyperparameter.java @@ -67,7 +67,7 @@ protected Hyperparameter(Builder builder) { * A positive number showing how much the parameter influences the variation of * the loss function. For hyperparameters with values that are not specified by * the user but tuned during hyperparameter optimization. - * + *

* API name: {@code absolute_importance} */ @Nullable @@ -77,7 +77,7 @@ public Number absoluteImportance() { /** * Name of the hyperparameter. - * + *

* API name: {@code name} */ public String name() { @@ -89,7 +89,7 @@ public String name() { * of the loss function among all tuned hyperparameters. For hyperparameters * with values that are not specified by the user but tuned during * hyperparameter optimization. - * + *

* API name: {@code relative_importance} */ @Nullable @@ -100,7 +100,7 @@ public Number relativeImportance() { /** * Indicates if the hyperparameter is specified by the user (true) or optimized * (false). - * + *

* API name: {@code supplied} */ public Boolean supplied() { @@ -109,7 +109,7 @@ public Boolean supplied() { /** * The value of the hyperparameter, either optimized or specified by the user. - * + *

* API name: {@code value} */ public Number value() { @@ -174,7 +174,7 @@ public static class Builder implements ObjectBuilder { * A positive number showing how much the parameter influences the variation of * the loss function. For hyperparameters with values that are not specified by * the user but tuned during hyperparameter optimization. - * + *

* API name: {@code absolute_importance} */ public Builder absoluteImportance(@Nullable Number value) { @@ -184,7 +184,7 @@ public Builder absoluteImportance(@Nullable Number value) { /** * Name of the hyperparameter. - * + *

* API name: {@code name} */ public Builder name(String value) { @@ -197,7 +197,7 @@ public Builder name(String value) { * of the loss function among all tuned hyperparameters. For hyperparameters * with values that are not specified by the user but tuned during * hyperparameter optimization. - * + *

* API name: {@code relative_importance} */ public Builder relativeImportance(@Nullable Number value) { @@ -208,7 +208,7 @@ public Builder relativeImportance(@Nullable Number value) { /** * Indicates if the hyperparameter is specified by the user (true) or optimized * (false). - * + *

* API name: {@code supplied} */ public Builder supplied(Boolean value) { @@ -218,7 +218,7 @@ public Builder supplied(Boolean value) { /** * The value of the hyperparameter, either optimized or specified by the user. - * + *

* API name: {@code value} */ public Builder value(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshot.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshot.java index 6a7c44ef4..14b19a628 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshot.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ModelSnapshot.java @@ -80,7 +80,7 @@ protected ModelSnapshot(Builder builder) { /** * An optional description of the job. - * + *

* API name: {@code description} */ @Nullable @@ -91,7 +91,7 @@ public String description() { /** * A numerical character string that uniquely identifies the job that the * snapshot was created for. - * + *

* API name: {@code job_id} */ public String jobId() { @@ -100,7 +100,7 @@ public String jobId() { /** * The timestamp of the latest processed record. - * + *

* API name: {@code latest_record_time_stamp} */ public Number latestRecordTimeStamp() { @@ -109,7 +109,7 @@ public Number latestRecordTimeStamp() { /** * The timestamp of the latest bucket result. - * + *

* API name: {@code latest_result_time_stamp} */ public Number latestResultTimeStamp() { @@ -118,7 +118,7 @@ public Number latestResultTimeStamp() { /** * The minimum version required to be able to restore the model snapshot. - * + *

* API name: {@code min_version} */ public String minVersion() { @@ -127,7 +127,7 @@ public String minVersion() { /** * Summary information describing the model. - * + *

* API name: {@code model_size_stats} */ public ModelSizeStats modelSizeStats() { @@ -138,7 +138,7 @@ public ModelSizeStats modelSizeStats() { * If true, this snapshot will not be deleted during automatic cleanup of * snapshots older than model_snapshot_retention_days. However, this snapshot * will be deleted when the job is deleted. The default value is false. - * + *

* API name: {@code retain} */ public Boolean retain() { @@ -147,7 +147,7 @@ public Boolean retain() { /** * For internal use only. - * + *

* API name: {@code snapshot_doc_count} */ public Number snapshotDocCount() { @@ -156,7 +156,7 @@ public Number snapshotDocCount() { /** * A numerical character string that uniquely identifies the model snapshot. - * + *

* API name: {@code snapshot_id} */ public String snapshotId() { @@ -165,7 +165,7 @@ public String snapshotId() { /** * The creation timestamp for the snapshot. - * + *

* API name: {@code timestamp} */ public Number timestamp() { @@ -248,7 +248,7 @@ public static class Builder implements ObjectBuilder { /** * An optional description of the job. - * + *

* API name: {@code description} */ public Builder description(@Nullable String value) { @@ -259,7 +259,7 @@ public Builder description(@Nullable String value) { /** * A numerical character string that uniquely identifies the job that the * snapshot was created for. - * + *

* API name: {@code job_id} */ public Builder jobId(String value) { @@ -269,7 +269,7 @@ public Builder jobId(String value) { /** * The timestamp of the latest processed record. - * + *

* API name: {@code latest_record_time_stamp} */ public Builder latestRecordTimeStamp(Number value) { @@ -279,7 +279,7 @@ public Builder latestRecordTimeStamp(Number value) { /** * The timestamp of the latest bucket result. - * + *

* API name: {@code latest_result_time_stamp} */ public Builder latestResultTimeStamp(Number value) { @@ -289,7 +289,7 @@ public Builder latestResultTimeStamp(Number value) { /** * The minimum version required to be able to restore the model snapshot. - * + *

* API name: {@code min_version} */ public Builder minVersion(String value) { @@ -299,7 +299,7 @@ public Builder minVersion(String value) { /** * Summary information describing the model. - * + *

* API name: {@code model_size_stats} */ public Builder modelSizeStats(ModelSizeStats value) { @@ -309,7 +309,7 @@ public Builder modelSizeStats(ModelSizeStats value) { /** * Summary information describing the model. - * + *

* API name: {@code model_size_stats} */ public Builder modelSizeStats(Function> fn) { @@ -320,7 +320,7 @@ public Builder modelSizeStats(Function * API name: {@code retain} */ public Builder retain(Boolean value) { @@ -330,7 +330,7 @@ public Builder retain(Boolean value) { /** * For internal use only. - * + *

* API name: {@code snapshot_doc_count} */ public Builder snapshotDocCount(Number value) { @@ -340,7 +340,7 @@ public Builder snapshotDocCount(Number value) { /** * A numerical character string that uniquely identifies the model snapshot. - * + *

* API name: {@code snapshot_id} */ public Builder snapshotId(String value) { @@ -350,7 +350,7 @@ public Builder snapshotId(String value) { /** * The creation timestamp for the snapshot. - * + *

* API name: {@code timestamp} */ public Builder timestamp(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucket.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucket.java index 37bcce3a4..e52113520 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucket.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/OverallBucket.java @@ -72,7 +72,7 @@ protected OverallBucket(Builder builder) { /** * The length of the bucket in seconds. Matches the job with the longest * bucket_span value. - * + *

* API name: {@code bucket_span} */ public Number bucketSpan() { @@ -82,7 +82,7 @@ public Number bucketSpan() { /** * If true, this is an interim result. In other words, the results are * calculated based on partial input data. - * + *

* API name: {@code is_interim} */ public Boolean isInterim() { @@ -91,7 +91,7 @@ public Boolean isInterim() { /** * An array of objects that contain the max_anomaly_score per job_id. - * + *

* API name: {@code jobs} */ public List jobs() { @@ -100,7 +100,7 @@ public List jobs() { /** * The top_n average of the maximum bucket anomaly_score per job. - * + *

* API name: {@code overall_score} */ public Number overallScore() { @@ -109,7 +109,7 @@ public Number overallScore() { /** * Internal. This is always set to overall_bucket. - * + *

* API name: {@code result_type} */ public String resultType() { @@ -118,7 +118,7 @@ public String resultType() { /** * The start time of the bucket for which these results were calculated. - * + *

* API name: {@code timestamp} */ public JsonValue timestamp() { @@ -182,7 +182,7 @@ public static class Builder implements ObjectBuilder { /** * The length of the bucket in seconds. Matches the job with the longest * bucket_span value. - * + *

* API name: {@code bucket_span} */ public Builder bucketSpan(Number value) { @@ -193,7 +193,7 @@ public Builder bucketSpan(Number value) { /** * If true, this is an interim result. In other words, the results are * calculated based on partial input data. - * + *

* API name: {@code is_interim} */ public Builder isInterim(Boolean value) { @@ -203,7 +203,7 @@ public Builder isInterim(Boolean value) { /** * An array of objects that contain the max_anomaly_score per job_id. - * + *

* API name: {@code jobs} */ public Builder jobs(List value) { @@ -213,7 +213,7 @@ public Builder jobs(List value) { /** * An array of objects that contain the max_anomaly_score per job_id. - * + *

* API name: {@code jobs} */ public Builder jobs(OverallBucketJob... value) { @@ -248,7 +248,7 @@ public Builder addJobs(Function * API name: {@code overall_score} */ public Builder overallScore(Number value) { @@ -258,7 +258,7 @@ public Builder overallScore(Number value) { /** * Internal. This is always set to overall_bucket. - * + *

* API name: {@code result_type} */ public Builder resultType(String value) { @@ -268,7 +268,7 @@ public Builder resultType(String value) { /** * The start time of the bucket for which these results were calculated. - * + *

* API name: {@code timestamp} */ public Builder timestamp(JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PerPartitionCategorization.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PerPartitionCategorization.java index ab72208aa..6e1e1c223 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PerPartitionCategorization.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PerPartitionCategorization.java @@ -55,7 +55,7 @@ protected PerPartitionCategorization(Builder builder) { * To enable this setting, you must also set the partition_field_name property * to the same value in every detector that uses the keyword mlcategory. * Otherwise, job creation fails. - * + *

* API name: {@code enabled} */ @Nullable @@ -70,7 +70,7 @@ public Boolean enabled() { * makes it viable to have a job where it is expected that categorization works * well for some partitions but not others; you do not pay the cost of bad * categorization forever in the partitions where it works badly. - * + *

* API name: {@code stop_on_warn} */ @Nullable @@ -120,7 +120,7 @@ public static class Builder implements ObjectBuilder * To enable this setting, you must also set the partition_field_name property * to the same value in every detector that uses the keyword mlcategory. * Otherwise, job creation fails. - * + *

* API name: {@code enabled} */ public Builder enabled(@Nullable Boolean value) { @@ -135,7 +135,7 @@ public Builder enabled(@Nullable Boolean value) { * makes it viable to have a job where it is expected that categorization works * well for some partitions but not others; you do not pay the cost of bad * categorization forever in the partitions where it works badly. - * + *

* API name: {@code stop_on_warn} */ public Builder stopOnWarn(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java index d1b08be58..db40ddd8e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostCalendarEventsRequest.java @@ -61,7 +61,7 @@ protected PostCalendarEventsRequest(Builder builder) { /** * A string that uniquely identifies a calendar. - * + *

* API name: {@code calendar_id} */ @Nullable @@ -73,7 +73,7 @@ public String calendarId() { * A list of one of more scheduled events. The event’s start and end times may * be specified as integer milliseconds since the epoch or as a string in ISO * 8601 format. - * + *

* API name: {@code events} */ public List events() { @@ -114,7 +114,7 @@ public static class Builder implements ObjectBuilder /** * A string that uniquely identifies a calendar. - * + *

* API name: {@code calendar_id} */ public Builder calendarId(@Nullable String value) { @@ -126,7 +126,7 @@ public Builder calendarId(@Nullable String value) { * A list of one of more scheduled events. The event’s start and end times may * be specified as integer milliseconds since the epoch or as a string in ISO * 8601 format. - * + *

* API name: {@code events} */ public Builder events(List value) { @@ -138,7 +138,7 @@ public Builder events(List value) { * A list of one of more scheduled events. The event’s start and end times may * be specified as integer milliseconds since the epoch or as a string in ISO * 8601 format. - * + *

* API name: {@code events} */ public Builder events(CalendarEvent... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java index 2f064eb7f..d371af8d3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsRequest.java @@ -59,7 +59,7 @@ protected PreviewDataFrameAnalyticsRequest(Builder builder) { /** * Identifier for the data frame analytics job. - * + *

* API name: {@code id} */ @Nullable @@ -71,7 +71,7 @@ public String id() { * A data frame analytics config as described in Create data frame analytics * jobs. Note that id and dest don’t need to be provided in the context of this * API. - * + *

* API name: {@code config} */ @Nullable @@ -113,7 +113,7 @@ public static class Builder implements ObjectBuilder * API name: {@code id} */ public Builder id(@Nullable String value) { @@ -125,7 +125,7 @@ public Builder id(@Nullable String value) { * A data frame analytics config as described in Create data frame analytics * jobs. Note that id and dest don’t need to be provided in the context of this * API. - * + *

* API name: {@code config} */ public Builder config(@Nullable DataframePreviewConfig value) { @@ -137,7 +137,7 @@ public Builder config(@Nullable DataframePreviewConfig value) { * A data frame analytics config as described in Create data frame analytics * jobs. Note that id and dest don’t need to be provided in the context of this * API. - * + *

* API name: {@code config} */ public Builder config(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsResponse.java index c4709289e..568b33291 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDataFrameAnalyticsResponse.java @@ -54,7 +54,7 @@ protected PreviewDataFrameAnalyticsResponse(Builder builder) { /** * An array of objects that contain feature name and value pairs. The features * have been processed and indicate what will be sent to the model for training. - * + *

* API name: {@code feature_values} */ public List> featureValues() { @@ -99,7 +99,7 @@ public static class Builder implements ObjectBuilder * API name: {@code feature_values} */ public Builder featureValues(List> value) { @@ -110,7 +110,7 @@ public Builder featureValues(List> value) { /** * An array of objects that contain feature name and value pairs. The features * have been processed and indicate what will be sent to the model for training. - * + *

* API name: {@code feature_values} */ public Builder featureValues(Map... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedResponse.java index 6f3766490..0108baad2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PreviewDatafeedResponse.java @@ -125,7 +125,6 @@ public Builder addData(TDocument value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java index 1cfbd55ac..a3661d8d1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutCalendarJobRequest.java @@ -53,7 +53,7 @@ protected PutCalendarJobRequest(Builder builder) { /** * A string that uniquely identifies a calendar. - * + *

* API name: {@code calendar_id} */ public String calendarId() { @@ -63,7 +63,7 @@ public String calendarId() { /** * An identifier for the anomaly detection jobs. It can be a job identifier, a * group name, or a comma-separated list of jobs or groups. - * + *

* API name: {@code job_id} */ public String jobId() { @@ -82,7 +82,7 @@ public static class Builder implements ObjectBuilder { /** * A string that uniquely identifies a calendar. - * + *

* API name: {@code calendar_id} */ public Builder calendarId(String value) { @@ -93,7 +93,7 @@ public Builder calendarId(String value) { /** * An identifier for the anomaly detection jobs. It can be a job identifier, a * group name, or a comma-separated list of jobs or groups. - * + *

* API name: {@code job_id} */ public Builder jobId(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java index a952f183f..a36fe6e2f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutDataFrameAnalyticsRequest.java @@ -89,7 +89,7 @@ protected PutDataFrameAnalyticsRequest(Builder builder) { * Identifier for the data frame analytics job. This identifier can contain * lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It * must start and end with alphanumeric characters. - * + *

* API name: {@code id} */ public String id() { @@ -99,7 +99,7 @@ public String id() { /** * The configuration of how to source the analysis data. It requires an index. * Optionally, query and _source may be specified. - * + *

* API name: {@code source} */ @Nullable @@ -110,7 +110,7 @@ public DataframeAnalyticsSource source() { /** * The destination configuration, consisting of index and optionally * results_field (ml by default). - * + *

* API name: {@code dest} */ public DataframeAnalyticsDestination dest() { @@ -121,7 +121,7 @@ public DataframeAnalyticsDestination dest() { * The analysis configuration, which contains the information necessary to * perform one of the following types of analysis: classification, outlier * detection, or regression. - * + *

* API name: {@code analysis} */ public DataframeAnalysisContainer analysis() { @@ -130,7 +130,7 @@ public DataframeAnalysisContainer analysis() { /** * A description of the job. - * + *

* API name: {@code description} */ @Nullable @@ -145,7 +145,7 @@ public String description() { * xpack.ml.max_model_memory_limit setting, an error occurs when you try to * create data frame analytics jobs that have model_memory_limit values greater * than that setting. - * + *

* API name: {@code model_memory_limit} */ @Nullable @@ -159,7 +159,7 @@ public String modelMemoryLimit() { * analysis at the cost of using more CPU. Note that the process may use * additional threads for operational functionality other than the analysis * itself. - * + *

* API name: {@code max_num_threads} */ @Nullable @@ -173,7 +173,7 @@ public Number maxNumThreads() { * last, therefore excludes takes precedence. In other words, if the same field * is specified in both includes and excludes, then the field will not be * included in the analysis. - * + *

* API name: {@code analyzed_fields} */ @Nullable @@ -184,7 +184,7 @@ public JsonValue analyzedFields() { /** * Specifies whether this job can start when there is insufficient machine * learning node capacity for it to be immediately assigned to a node. - * + *

* API name: {@code allow_lazy_start} */ @Nullable @@ -283,7 +283,7 @@ public static class Builder implements ObjectBuilder * API name: {@code id} */ public Builder id(String value) { @@ -294,7 +294,7 @@ public Builder id(String value) { /** * The configuration of how to source the analysis data. It requires an index. * Optionally, query and _source may be specified. - * + *

* API name: {@code source} */ public Builder source(@Nullable DataframeAnalyticsSource value) { @@ -305,7 +305,7 @@ public Builder source(@Nullable DataframeAnalyticsSource value) { /** * The configuration of how to source the analysis data. It requires an index. * Optionally, query and _source may be specified. - * + *

* API name: {@code source} */ public Builder source(Function> fn) { @@ -315,7 +315,7 @@ public Builder source(Function * API name: {@code dest} */ public Builder dest(DataframeAnalyticsDestination value) { @@ -326,7 +326,7 @@ public Builder dest(DataframeAnalyticsDestination value) { /** * The destination configuration, consisting of index and optionally * results_field (ml by default). - * + *

* API name: {@code dest} */ public Builder dest( @@ -338,7 +338,7 @@ public Builder dest( * The analysis configuration, which contains the information necessary to * perform one of the following types of analysis: classification, outlier * detection, or regression. - * + *

* API name: {@code analysis} */ public Builder analysis(DataframeAnalysisContainer value) { @@ -350,7 +350,7 @@ public Builder analysis(DataframeAnalysisContainer value) { * The analysis configuration, which contains the information necessary to * perform one of the following types of analysis: classification, outlier * detection, or regression. - * + *

* API name: {@code analysis} */ public Builder analysis( @@ -360,7 +360,7 @@ public Builder analysis( /** * A description of the job. - * + *

* API name: {@code description} */ public Builder description(@Nullable String value) { @@ -375,7 +375,7 @@ public Builder description(@Nullable String value) { * xpack.ml.max_model_memory_limit setting, an error occurs when you try to * create data frame analytics jobs that have model_memory_limit values greater * than that setting. - * + *

* API name: {@code model_memory_limit} */ public Builder modelMemoryLimit(@Nullable String value) { @@ -389,7 +389,7 @@ public Builder modelMemoryLimit(@Nullable String value) { * analysis at the cost of using more CPU. Note that the process may use * additional threads for operational functionality other than the analysis * itself. - * + *

* API name: {@code max_num_threads} */ public Builder maxNumThreads(@Nullable Number value) { @@ -403,7 +403,7 @@ public Builder maxNumThreads(@Nullable Number value) { * last, therefore excludes takes precedence. In other words, if the same field * is specified in both includes and excludes, then the field will not be * included in the analysis. - * + *

* API name: {@code analyzed_fields} */ public Builder analyzedFields(@Nullable JsonValue value) { @@ -414,7 +414,7 @@ public Builder analyzedFields(@Nullable JsonValue value) { /** * Specifies whether this job can start when there is insufficient machine * learning node capacity for it to be immediately assigned to a node. - * + *

* API name: {@code allow_lazy_start} */ public Builder allowLazyStart(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java index 4e909ea70..f112cf404 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelAliasRequest.java @@ -59,7 +59,7 @@ protected PutTrainedModelAliasRequest(Builder builder) { /** * The alias to create or update. This value cannot end in numbers. - * + *

* API name: {@code model_alias} */ public String modelAlias() { @@ -68,7 +68,7 @@ public String modelAlias() { /** * The identifier for the trained model that the alias refers to. - * + *

* API name: {@code model_id} */ public String modelId() { @@ -79,7 +79,7 @@ public String modelId() { * Specifies whether the alias gets reassigned to the specified trained model if * it is already assigned to a different model. If the alias is already assigned * and this parameter is false, the API returns an error. - * + *

* API name: {@code reassign} */ @Nullable @@ -102,7 +102,7 @@ public static class Builder implements ObjectBuilder * API name: {@code model_alias} */ public Builder modelAlias(String value) { @@ -112,7 +112,7 @@ public Builder modelAlias(String value) { /** * The identifier for the trained model that the alias refers to. - * + *

* API name: {@code model_id} */ public Builder modelId(String value) { @@ -124,7 +124,7 @@ public Builder modelId(String value) { * Specifies whether the alias gets reassigned to the specified trained model if * it is already assigned to a different model. If the alias is already assigned * and this parameter is false, the API returns an error. - * + *

* API name: {@code reassign} */ public Builder reassign(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java index 2c26525ef..4898fc41e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PutTrainedModelRequest.java @@ -65,7 +65,7 @@ public String stub() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code model_id} */ @Nullable @@ -107,7 +107,7 @@ public Builder stub(String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code model_id} */ public Builder modelId(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java index 65fa8e0b3..f84b2ba72 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsRequest.java @@ -64,7 +64,7 @@ public String id() { /** * Controls the amount of time to wait until the data frame analytics job * starts. - * + *

* API name: {@code timeout} */ @Nullable @@ -94,7 +94,7 @@ public Builder id(String value) { /** * Controls the amount of time to wait until the data frame analytics job * starts. - * + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsResponse.java index 87f2d1930..fab0a0cf6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StartDataFrameAnalyticsResponse.java @@ -51,7 +51,7 @@ protected StartDataFrameAnalyticsResponse(Builder builder) { * The ID of the node that the job was started on. If the job is allowed to open * lazily and has not yet been assigned to a node, this value is an empty * string. - * + *

* API name: {@code node} */ public String node() { @@ -80,7 +80,7 @@ public static class Builder extends AcknowledgedResponseBase.AbstractBuilder * API name: {@code node} */ public Builder node(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java index 97505d349..366474828 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/StopDataFrameAnalyticsRequest.java @@ -67,7 +67,7 @@ protected StopDataFrameAnalyticsRequest(Builder builder) { * Identifier for the data frame analytics job. This identifier can contain * lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It * must start and end with alphanumeric characters. - * + *

* API name: {@code id} */ public String id() { @@ -84,7 +84,7 @@ public Boolean allowNoMatch() { /** * If true, the data frame analytics job is stopped forcefully. - * + *

* API name: {@code force} */ @Nullable @@ -95,7 +95,7 @@ public Boolean force() { /** * Controls the amount of time to wait until the data frame analytics job stops. * Defaults to 20 seconds. - * + *

* API name: {@code timeout} */ @Nullable @@ -124,7 +124,7 @@ public static class Builder implements ObjectBuilder * API name: {@code id} */ public Builder id(String value) { @@ -142,7 +142,7 @@ public Builder allowNoMatch(@Nullable Boolean value) { /** * If true, the data frame analytics job is stopped forcefully. - * + *

* API name: {@code force} */ public Builder force(@Nullable Boolean value) { @@ -153,7 +153,7 @@ public Builder force(@Nullable Boolean value) { /** * Controls the amount of time to wait until the data frame analytics job stops. * Defaults to 20 seconds. - * + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TimingStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TimingStats.java index 0ffae6f8f..2fe3dc4f7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TimingStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TimingStats.java @@ -53,7 +53,7 @@ protected TimingStats(Builder builder) { /** * Runtime of the analysis in milliseconds. - * + *

* API name: {@code elapsed_time} */ public Number elapsedTime() { @@ -62,7 +62,7 @@ public Number elapsedTime() { /** * Runtime of the latest iteration of the analysis in milliseconds. - * + *

* API name: {@code iteration_time} */ @Nullable @@ -106,7 +106,7 @@ public static class Builder implements ObjectBuilder { /** * Runtime of the analysis in milliseconds. - * + *

* API name: {@code elapsed_time} */ public Builder elapsedTime(Number value) { @@ -116,7 +116,7 @@ public Builder elapsedTime(Number value) { /** * Runtime of the latest iteration of the analysis in milliseconds. - * + *

* API name: {@code iteration_time} */ public Builder iterationTime(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportance.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportance.java index c40c5d051..8eaec906b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportance.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportance.java @@ -59,7 +59,7 @@ protected TotalFeatureImportance(Builder builder) { /** * The feature for which this importance was calculated. - * + *

* API name: {@code feature_name} */ public String featureName() { @@ -69,7 +69,7 @@ public String featureName() { /** * A collection of feature importance statistics related to the training data * set for this particular feature. - * + *

* API name: {@code importance} */ public List importance() { @@ -79,7 +79,7 @@ public List importance() { /** * If the trained model is a classification model, feature importance statistics * are gathered per target class value. - * + *

* API name: {@code classes} */ public List classes() { @@ -132,7 +132,7 @@ public static class Builder implements ObjectBuilder { /** * The feature for which this importance was calculated. - * + *

* API name: {@code feature_name} */ public Builder featureName(String value) { @@ -143,7 +143,7 @@ public Builder featureName(String value) { /** * A collection of feature importance statistics related to the training data * set for this particular feature. - * + *

* API name: {@code importance} */ public Builder importance(List value) { @@ -154,7 +154,7 @@ public Builder importance(List value) { /** * A collection of feature importance statistics related to the training data * set for this particular feature. - * + *

* API name: {@code importance} */ public Builder importance(TotalFeatureImportanceStatistics... value) { @@ -192,7 +192,7 @@ public Builder addImportance( /** * If the trained model is a classification model, feature importance statistics * are gathered per target class value. - * + *

* API name: {@code classes} */ public Builder classes(List value) { @@ -203,7 +203,7 @@ public Builder classes(List value) { /** * If the trained model is a classification model, feature importance statistics * are gathered per target class value. - * + *

* API name: {@code classes} */ public Builder classes(TotalFeatureImportanceClass... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceClass.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceClass.java index b788b4673..900e70016 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceClass.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceClass.java @@ -56,7 +56,7 @@ protected TotalFeatureImportanceClass(Builder builder) { /** * The target class value. Could be a string, boolean, or number. - * + *

* API name: {@code class_name} */ public String className() { @@ -66,7 +66,7 @@ public String className() { /** * A collection of feature importance statistics related to the training data * set for this particular feature. - * + *

* API name: {@code importance} */ public List importance() { @@ -109,7 +109,7 @@ public static class Builder implements ObjectBuilder * API name: {@code class_name} */ public Builder className(String value) { @@ -120,7 +120,7 @@ public Builder className(String value) { /** * A collection of feature importance statistics related to the training data * set for this particular feature. - * + *

* API name: {@code importance} */ public Builder importance(List value) { @@ -131,7 +131,7 @@ public Builder importance(List value) { /** * A collection of feature importance statistics related to the training data * set for this particular feature. - * + *

* API name: {@code importance} */ public Builder importance(TotalFeatureImportanceStatistics... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceStatistics.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceStatistics.java index 1c95e0a61..1e9afb8b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceStatistics.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TotalFeatureImportanceStatistics.java @@ -57,7 +57,7 @@ protected TotalFeatureImportanceStatistics(Builder builder) { * The average magnitude of this feature across all the training data. This * value is the average of the absolute values of the importance for this * feature. - * + *

* API name: {@code mean_magnitude} */ public Number meanMagnitude() { @@ -66,7 +66,7 @@ public Number meanMagnitude() { /** * The maximum importance value across all the training data for this feature. - * + *

* API name: {@code max} */ public Number max() { @@ -75,7 +75,7 @@ public Number max() { /** * The minimum importance value across all the training data for this feature. - * + *

* API name: {@code min} */ public Number min() { @@ -120,7 +120,7 @@ public static class Builder implements ObjectBuilder * API name: {@code mean_magnitude} */ public Builder meanMagnitude(Number value) { @@ -130,7 +130,7 @@ public Builder meanMagnitude(Number value) { /** * The maximum importance value across all the training data for this feature. - * + *

* API name: {@code max} */ public Builder max(Number value) { @@ -140,7 +140,7 @@ public Builder max(Number value) { /** * The minimum importance value across all the training data for this feature. - * + *

* API name: {@code min} */ public Builder min(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfig.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfig.java index d715800ea..223b9442a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfig.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfig.java @@ -106,7 +106,7 @@ protected TrainedModelConfig(Builder builder) { /** * Idetifier for the trained model. - * + *

* API name: {@code model_id} */ public String modelId() { @@ -116,7 +116,7 @@ public String modelId() { /** * A comma delimited string of tags. A trained model can have many tags, or * none. - * + *

* API name: {@code tags} */ public List tags() { @@ -125,7 +125,7 @@ public List tags() { /** * The Elasticsearch version number in which the trained model was created. - * + *

* API name: {@code version} */ @Nullable @@ -143,7 +143,7 @@ public String compressedDefinition() { /** * Information on the creator of the trained model. - * + *

* API name: {@code created_by} */ @Nullable @@ -153,7 +153,7 @@ public String createdBy() { /** * The time when the trained model was created. - * + *

* API name: {@code create_time} */ @Nullable @@ -163,7 +163,7 @@ public JsonValue createTime() { /** * Any field map described in the inference configuration takes precedence. - * + *

* API name: {@code default_field_map} */ @Nullable @@ -173,7 +173,7 @@ public Map defaultFieldMap() { /** * The free-text description of the trained model. - * + *

* API name: {@code description} */ public String description() { @@ -182,7 +182,7 @@ public String description() { /** * The estimated heap usage in bytes to keep the trained model in memory. - * + *

* API name: {@code estimated_heap_memory_usage_bytes} */ @Nullable @@ -192,7 +192,7 @@ public Number estimatedHeapMemoryUsageBytes() { /** * The estimated number of operations to use the trained model. - * + *

* API name: {@code estimated_operations} */ @Nullable @@ -204,7 +204,7 @@ public Number estimatedOperations() { * The default configuration for inference. This can be either a regression or * classification configuration. It must match the underlying * definition.trained_model's target_type. - * + *

* API name: {@code inference_config} */ public InferenceConfigContainer inferenceConfig() { @@ -213,7 +213,7 @@ public InferenceConfigContainer inferenceConfig() { /** * The input field names for the model definition. - * + *

* API name: {@code input} */ public TrainedModelConfigInput input() { @@ -222,7 +222,7 @@ public TrainedModelConfigInput input() { /** * The license level of the trained model. - * + *

* API name: {@code license_level} */ @Nullable @@ -233,7 +233,7 @@ public String licenseLevel() { /** * An object containing metadata about the trained model. For example, models * created by data frame analytics contain analysis_config and input objects. - * + *

* API name: {@code metadata} */ @Nullable @@ -382,7 +382,7 @@ public static class Builder implements ObjectBuilder { /** * Idetifier for the trained model. - * + *

* API name: {@code model_id} */ public Builder modelId(String value) { @@ -393,7 +393,7 @@ public Builder modelId(String value) { /** * A comma delimited string of tags. A trained model can have many tags, or * none. - * + *

* API name: {@code tags} */ public Builder tags(List value) { @@ -404,7 +404,7 @@ public Builder tags(List value) { /** * A comma delimited string of tags. A trained model can have many tags, or * none. - * + *

* API name: {@code tags} */ public Builder tags(String... value) { @@ -425,7 +425,7 @@ public Builder addTags(String value) { /** * The Elasticsearch version number in which the trained model was created. - * + *

* API name: {@code version} */ public Builder version(@Nullable String value) { @@ -443,7 +443,7 @@ public Builder compressedDefinition(@Nullable String value) { /** * Information on the creator of the trained model. - * + *

* API name: {@code created_by} */ public Builder createdBy(@Nullable String value) { @@ -453,7 +453,7 @@ public Builder createdBy(@Nullable String value) { /** * The time when the trained model was created. - * + *

* API name: {@code create_time} */ public Builder createTime(@Nullable JsonValue value) { @@ -463,7 +463,7 @@ public Builder createTime(@Nullable JsonValue value) { /** * Any field map described in the inference configuration takes precedence. - * + *

* API name: {@code default_field_map} */ public Builder defaultFieldMap(@Nullable Map value) { @@ -484,7 +484,7 @@ public Builder putDefaultFieldMap(String key, String value) { /** * The free-text description of the trained model. - * + *

* API name: {@code description} */ public Builder description(String value) { @@ -494,7 +494,7 @@ public Builder description(String value) { /** * The estimated heap usage in bytes to keep the trained model in memory. - * + *

* API name: {@code estimated_heap_memory_usage_bytes} */ public Builder estimatedHeapMemoryUsageBytes(@Nullable Number value) { @@ -504,7 +504,7 @@ public Builder estimatedHeapMemoryUsageBytes(@Nullable Number value) { /** * The estimated number of operations to use the trained model. - * + *

* API name: {@code estimated_operations} */ public Builder estimatedOperations(@Nullable Number value) { @@ -516,7 +516,7 @@ public Builder estimatedOperations(@Nullable Number value) { * The default configuration for inference. This can be either a regression or * classification configuration. It must match the underlying * definition.trained_model's target_type. - * + *

* API name: {@code inference_config} */ public Builder inferenceConfig(InferenceConfigContainer value) { @@ -528,7 +528,7 @@ public Builder inferenceConfig(InferenceConfigContainer value) { * The default configuration for inference. This can be either a regression or * classification configuration. It must match the underlying * definition.trained_model's target_type. - * + *

* API name: {@code inference_config} */ public Builder inferenceConfig( @@ -538,7 +538,7 @@ public Builder inferenceConfig( /** * The input field names for the model definition. - * + *

* API name: {@code input} */ public Builder input(TrainedModelConfigInput value) { @@ -548,7 +548,7 @@ public Builder input(TrainedModelConfigInput value) { /** * The input field names for the model definition. - * + *

* API name: {@code input} */ public Builder input(Function> fn) { @@ -557,7 +557,7 @@ public Builder input(Function * API name: {@code license_level} */ public Builder licenseLevel(@Nullable String value) { @@ -568,7 +568,7 @@ public Builder licenseLevel(@Nullable String value) { /** * An object containing metadata about the trained model. For example, models * created by data frame analytics contain analysis_config and input objects. - * + *

* API name: {@code metadata} */ public Builder metadata(@Nullable TrainedModelConfigMetadata value) { @@ -579,7 +579,7 @@ public Builder metadata(@Nullable TrainedModelConfigMetadata value) { /** * An object containing metadata about the trained model. For example, models * created by data frame analytics contain analysis_config and input objects. - * + *

* API name: {@code metadata} */ public Builder metadata( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigInput.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigInput.java index f60801291..1e8b416bf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigInput.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigInput.java @@ -52,7 +52,7 @@ protected TrainedModelConfigInput(Builder builder) { /** * An array of input field names for the model. - * + *

* API name: {@code field_names} */ public List fieldNames() { @@ -90,7 +90,7 @@ public static class Builder implements ObjectBuilder { /** * An array of input field names for the model. - * + *

* API name: {@code field_names} */ public Builder fieldNames(List value) { @@ -100,7 +100,7 @@ public Builder fieldNames(List value) { /** * An array of input field names for the model. - * + *

* API name: {@code field_names} */ public Builder fieldNames(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigMetadata.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigMetadata.java index f8e49dc78..5364ffd19 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigMetadata.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelConfigMetadata.java @@ -77,7 +77,7 @@ public List modelAliases() { * An object that contains the baseline for feature importance values. For * regression analysis, it is a single value. For classification analysis, there * is a value for each class. - * + *

* API name: {@code feature_importance_baseline} */ @Nullable @@ -88,7 +88,7 @@ public Map featureImportanceBaseline() { /** * List of the available hyperparameters optimized during the * fine_parameter_tuning phase as well as specified by the user. - * + *

* API name: {@code hyperparameters} */ @Nullable @@ -101,7 +101,7 @@ public List hyperparameters() { * training data set. This array of objects is returned if data frame analytics * trained the model and the request includes total_feature_importance in the * include request parameter. - * + *

* API name: {@code total_feature_importance} */ @Nullable @@ -217,7 +217,7 @@ public Builder addModelAliases(String value) { * An object that contains the baseline for feature importance values. For * regression analysis, it is a single value. For classification analysis, there * is a value for each class. - * + *

* API name: {@code feature_importance_baseline} */ public Builder featureImportanceBaseline(@Nullable Map value) { @@ -240,7 +240,7 @@ public Builder putFeatureImportanceBaseline(String key, String value) { /** * List of the available hyperparameters optimized during the * fine_parameter_tuning phase as well as specified by the user. - * + *

* API name: {@code hyperparameters} */ public Builder hyperparameters(@Nullable List value) { @@ -251,7 +251,7 @@ public Builder hyperparameters(@Nullable List value) { /** * List of the available hyperparameters optimized during the * fine_parameter_tuning phase as well as specified by the user. - * + *

* API name: {@code hyperparameters} */ public Builder hyperparameters(Hyperparameter... value) { @@ -289,7 +289,7 @@ public Builder addHyperparameters(Function * API name: {@code total_feature_importance} */ public Builder totalFeatureImportance(@Nullable List value) { @@ -302,7 +302,7 @@ public Builder totalFeatureImportance(@Nullable List val * training data set. This array of objects is returned if data frame analytics * trained the model and the request includes total_feature_importance in the * include request parameter. - * + *

* API name: {@code total_feature_importance} */ public Builder totalFeatureImportance(TotalFeatureImportance... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceStats.java index 90ef8d13b..d9df057b0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelInferenceStats.java @@ -62,7 +62,7 @@ protected TrainedModelInferenceStats(Builder builder) { /** * The number of failures when using the model for inference. - * + *

* API name: {@code failure_count} */ public Number failureCount() { @@ -72,7 +72,7 @@ public Number failureCount() { /** * The total number of times the model has been called for inference. This is * across all inference contexts, including all pipelines. - * + *

* API name: {@code inference_count} */ public Number inferenceCount() { @@ -85,7 +85,7 @@ public Number inferenceCount() { * cache is not being appropriately used. This can be solved by increasing the * cache size or its time-to-live (TTL). See General machine learning settings * for the appropriate settings. - * + *

* API name: {@code cache_miss_count} */ public Number cacheMissCount() { @@ -95,7 +95,7 @@ public Number cacheMissCount() { /** * The number of inference calls where all the training features for the model * were missing. - * + *

* API name: {@code missing_all_fields_count} */ public Number missingAllFieldsCount() { @@ -104,7 +104,7 @@ public Number missingAllFieldsCount() { /** * The time when the statistics were last updated. - * + *

* API name: {@code timestamp} */ public JsonValue timestamp() { @@ -157,7 +157,7 @@ public static class Builder implements ObjectBuilder /** * The number of failures when using the model for inference. - * + *

* API name: {@code failure_count} */ public Builder failureCount(Number value) { @@ -168,7 +168,7 @@ public Builder failureCount(Number value) { /** * The total number of times the model has been called for inference. This is * across all inference contexts, including all pipelines. - * + *

* API name: {@code inference_count} */ public Builder inferenceCount(Number value) { @@ -182,7 +182,7 @@ public Builder inferenceCount(Number value) { * cache is not being appropriately used. This can be solved by increasing the * cache size or its time-to-live (TTL). See General machine learning settings * for the appropriate settings. - * + *

* API name: {@code cache_miss_count} */ public Builder cacheMissCount(Number value) { @@ -193,7 +193,7 @@ public Builder cacheMissCount(Number value) { /** * The number of inference calls where all the training features for the model * were missing. - * + *

* API name: {@code missing_all_fields_count} */ public Builder missingAllFieldsCount(Number value) { @@ -203,7 +203,7 @@ public Builder missingAllFieldsCount(Number value) { /** * The time when the statistics were last updated. - * + *

* API name: {@code timestamp} */ public Builder timestamp(JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelStats.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelStats.java index a18c4f50e..23202b33b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelStats.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/TrainedModelStats.java @@ -65,7 +65,7 @@ protected TrainedModelStats(Builder builder) { /** * The unique identifier of the trained model. - * + *

* API name: {@code model_id} */ public String modelId() { @@ -74,7 +74,7 @@ public String modelId() { /** * The number of ingest pipelines that currently refer to the model. - * + *

* API name: {@code pipeline_count} */ public Number pipelineCount() { @@ -83,7 +83,7 @@ public Number pipelineCount() { /** * A collection of inference stats fields. - * + *

* API name: {@code inference_stats} */ @Nullable @@ -95,7 +95,7 @@ public TrainedModelInferenceStats inferenceStats() { * A collection of ingest stats for the model across all nodes. The values are * summations of the individual node statistics. The format matches the ingest * section in Nodes stats. - * + *

* API name: {@code ingest} */ @Nullable @@ -159,7 +159,7 @@ public static class Builder implements ObjectBuilder { /** * The unique identifier of the trained model. - * + *

* API name: {@code model_id} */ public Builder modelId(String value) { @@ -169,7 +169,7 @@ public Builder modelId(String value) { /** * The number of ingest pipelines that currently refer to the model. - * + *

* API name: {@code pipeline_count} */ public Builder pipelineCount(Number value) { @@ -179,7 +179,7 @@ public Builder pipelineCount(Number value) { /** * A collection of inference stats fields. - * + *

* API name: {@code inference_stats} */ public Builder inferenceStats(@Nullable TrainedModelInferenceStats value) { @@ -189,7 +189,7 @@ public Builder inferenceStats(@Nullable TrainedModelInferenceStats value) { /** * A collection of inference stats fields. - * + *

* API name: {@code inference_stats} */ public Builder inferenceStats( @@ -201,7 +201,7 @@ public Builder inferenceStats( * A collection of ingest stats for the model across all nodes. The values are * summations of the individual node statistics. The format matches the ingest * section in Nodes stats. - * + *

* API name: {@code ingest} */ public Builder ingest(@Nullable Map value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java index 1ab502ba8..61d034c27 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateDataFrameAnalyticsRequest.java @@ -73,7 +73,7 @@ protected UpdateDataFrameAnalyticsRequest(Builder builder) { * Identifier for the data frame analytics job. This identifier can contain * lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It * must start and end with alphanumeric characters. - * + *

* API name: {@code id} */ public String id() { @@ -82,7 +82,7 @@ public String id() { /** * A description of the job. - * + *

* API name: {@code description} */ @Nullable @@ -97,7 +97,7 @@ public String description() { * xpack.ml.max_model_memory_limit setting, an error occurs when you try to * create data frame analytics jobs that have model_memory_limit values greater * than that setting. - * + *

* API name: {@code model_memory_limit} */ @Nullable @@ -111,7 +111,7 @@ public String modelMemoryLimit() { * analysis at the cost of using more CPU. Note that the process may use * additional threads for operational functionality other than the analysis * itself. - * + *

* API name: {@code max_num_threads} */ @Nullable @@ -122,7 +122,7 @@ public Number maxNumThreads() { /** * Specifies whether this job can start when there is insufficient machine * learning node capacity for it to be immediately assigned to a node. - * + *

* API name: {@code allow_lazy_start} */ @Nullable @@ -192,7 +192,7 @@ public static class Builder implements ObjectBuilder * API name: {@code id} */ public Builder id(String value) { @@ -202,7 +202,7 @@ public Builder id(String value) { /** * A description of the job. - * + *

* API name: {@code description} */ public Builder description(@Nullable String value) { @@ -217,7 +217,7 @@ public Builder description(@Nullable String value) { * xpack.ml.max_model_memory_limit setting, an error occurs when you try to * create data frame analytics jobs that have model_memory_limit values greater * than that setting. - * + *

* API name: {@code model_memory_limit} */ public Builder modelMemoryLimit(@Nullable String value) { @@ -231,7 +231,7 @@ public Builder modelMemoryLimit(@Nullable String value) { * analysis at the cost of using more CPU. Note that the process may use * additional threads for operational functionality other than the analysis * itself. - * + *

* API name: {@code max_num_threads} */ public Builder maxNumThreads(@Nullable Number value) { @@ -242,7 +242,7 @@ public Builder maxNumThreads(@Nullable Number value) { /** * Specifies whether this job can start when there is insufficient machine * learning node capacity for it to be immediately assigned to a node. - * + *

* API name: {@code allow_lazy_start} */ public Builder allowLazyStart(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java index 88ddc1e2d..83f76c5c2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpdateJobRequest.java @@ -118,7 +118,7 @@ protected UpdateJobRequest(Builder builder) { /** * Identifier for the job - * + *

* API name: {@code job_id} */ public String jobId() { @@ -144,7 +144,7 @@ public AnalysisMemoryLimit analysisLimits() { /** * Advanced configuration option. The time between each periodic persistence of * the model. See Job resources. - * + *

* API name: {@code background_persist_interval} */ @Nullable @@ -156,7 +156,7 @@ public JsonValue backgroundPersistInterval() { * Advanced configuration option. Contains custom meta data about the job. For * example, it can contain custom URL information as shown in Adding custom URLs * to machine learning results. - * + *

* API name: {@code custom_settings} */ @Nullable @@ -174,7 +174,7 @@ public List categorizationFilters() { /** * A description of the job. See Job resources. - * + *

* API name: {@code description} */ @Nullable @@ -203,7 +203,7 @@ public Number dailyModelSnapshotRetentionAfterDays() { * model snapshots for this job. It specifies the maximum period of time (in * days) that snapshots are retained. This period is relative to the timestamp * of the most recent snapshot for this job. - * + *

* API name: {@code model_snapshot_retention_days} */ @Nullable @@ -214,7 +214,7 @@ public Number modelSnapshotRetentionDays() { /** * Advanced configuration option. The period over which adjustments to the score * are applied, as new data is seen. - * + *

* API name: {@code renormalization_window_days} */ @Nullable @@ -229,7 +229,7 @@ public Number renormalizationWindowDays() { * time), results that are the specified number of days older than the latest * bucket result are deleted from Elasticsearch. The default value is null, * which means all results are retained. - * + *

* API name: {@code results_retention_days} */ @Nullable @@ -239,7 +239,7 @@ public Number resultsRetentionDays() { /** * A list of job groups. A job can belong to no groups or many. - * + *

* API name: {@code groups} */ @Nullable @@ -249,7 +249,7 @@ public List groups() { /** * An array of detector update objects. - * + *

* API name: {@code detectors} */ @Nullable @@ -259,7 +259,7 @@ public List detectors() { /** * Settings related to how categorization interacts with partition fields. - * + *

* API name: {@code per_partition_categorization} */ @Nullable @@ -438,7 +438,7 @@ public static class Builder implements ObjectBuilder { /** * Identifier for the job - * + *

* API name: {@code job_id} */ public Builder jobId(String value) { @@ -472,7 +472,7 @@ public Builder analysisLimits(Function * API name: {@code background_persist_interval} */ public Builder backgroundPersistInterval(@Nullable JsonValue value) { @@ -484,7 +484,7 @@ public Builder backgroundPersistInterval(@Nullable JsonValue value) { * Advanced configuration option. Contains custom meta data about the job. For * example, it can contain custom URL information as shown in Adding custom URLs * to machine learning results. - * + *

* API name: {@code custom_settings} */ public Builder customSettings(@Nullable Map value) { @@ -533,7 +533,7 @@ public Builder addCategorizationFilters(String value) { /** * A description of the job. See Job resources. - * + *

* API name: {@code description} */ public Builder description(@Nullable String value) { @@ -569,7 +569,7 @@ public Builder dailyModelSnapshotRetentionAfterDays(@Nullable Number value) { * model snapshots for this job. It specifies the maximum period of time (in * days) that snapshots are retained. This period is relative to the timestamp * of the most recent snapshot for this job. - * + *

* API name: {@code model_snapshot_retention_days} */ public Builder modelSnapshotRetentionDays(@Nullable Number value) { @@ -580,7 +580,7 @@ public Builder modelSnapshotRetentionDays(@Nullable Number value) { /** * Advanced configuration option. The period over which adjustments to the score * are applied, as new data is seen. - * + *

* API name: {@code renormalization_window_days} */ public Builder renormalizationWindowDays(@Nullable Number value) { @@ -595,7 +595,7 @@ public Builder renormalizationWindowDays(@Nullable Number value) { * time), results that are the specified number of days older than the latest * bucket result are deleted from Elasticsearch. The default value is null, * which means all results are retained. - * + *

* API name: {@code results_retention_days} */ public Builder resultsRetentionDays(@Nullable Number value) { @@ -605,7 +605,7 @@ public Builder resultsRetentionDays(@Nullable Number value) { /** * A list of job groups. A job can belong to no groups or many. - * + *

* API name: {@code groups} */ public Builder groups(@Nullable List value) { @@ -615,7 +615,7 @@ public Builder groups(@Nullable List value) { /** * A list of job groups. A job can belong to no groups or many. - * + *

* API name: {@code groups} */ public Builder groups(String... value) { @@ -636,7 +636,7 @@ public Builder addGroups(String value) { /** * An array of detector update objects. - * + *

* API name: {@code detectors} */ public Builder detectors(@Nullable List value) { @@ -646,7 +646,7 @@ public Builder detectors(@Nullable List value) { /** * An array of detector update objects. - * + *

* API name: {@code detectors} */ public Builder detectors(Detector... value) { @@ -681,7 +681,7 @@ public Builder addDetectors(Function> /** * Settings related to how categorization interacts with partition fields. - * + *

* API name: {@code per_partition_categorization} */ public Builder perPartitionCategorization(@Nullable PerPartitionCategorization value) { @@ -691,7 +691,7 @@ public Builder perPartitionCategorization(@Nullable PerPartitionCategorization v /** * Settings related to how categorization interacts with partition fields. - * + *

* API name: {@code per_partition_categorization} */ public Builder perPartitionCategorization( diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java index 287796a83..52c12a577 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotRequest.java @@ -64,7 +64,7 @@ protected UpgradeJobSnapshotRequest(Builder builder) { /** * Identifier for the anomaly detection job. - * + *

* API name: {@code job_id} */ public String jobId() { @@ -73,7 +73,7 @@ public String jobId() { /** * A numerical character string that uniquely identifies the model snapshot. - * + *

* API name: {@code snapshot_id} */ public String snapshotId() { @@ -83,7 +83,7 @@ public String snapshotId() { /** * When true, the API won’t respond until the upgrade is complete. Otherwise, it * responds as soon as the upgrade task is assigned to a node. - * + *

* API name: {@code wait_for_completion} */ @Nullable @@ -93,7 +93,7 @@ public Boolean waitForCompletion() { /** * Controls the time to wait for the request to complete. - * + *

* API name: {@code timeout} */ @Nullable @@ -119,7 +119,7 @@ public static class Builder implements ObjectBuilder /** * Identifier for the anomaly detection job. - * + *

* API name: {@code job_id} */ public Builder jobId(String value) { @@ -129,7 +129,7 @@ public Builder jobId(String value) { /** * A numerical character string that uniquely identifies the model snapshot. - * + *

* API name: {@code snapshot_id} */ public Builder snapshotId(String value) { @@ -140,7 +140,7 @@ public Builder snapshotId(String value) { /** * When true, the API won’t respond until the upgrade is complete. Otherwise, it * responds as soon as the upgrade task is assigned to a node. - * + *

* API name: {@code wait_for_completion} */ public Builder waitForCompletion(@Nullable Boolean value) { @@ -150,7 +150,7 @@ public Builder waitForCompletion(@Nullable Boolean value) { /** * Controls the time to wait for the request to complete. - * + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotResponse.java index 8e04fead5..899dd98a4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/UpgradeJobSnapshotResponse.java @@ -53,7 +53,7 @@ protected UpgradeJobSnapshotResponse(Builder builder) { /** * The ID of the assigned node for the upgrade task if it is still running. - * + *

* API name: {@code node} */ public String node() { @@ -62,7 +62,7 @@ public String node() { /** * When true, this means the task is complete. When false, it is still running. - * + *

* API name: {@code completed} */ public Boolean completed() { @@ -100,7 +100,7 @@ public static class Builder implements ObjectBuilder /** * The ID of the assigned node for the upgrade task if it is still running. - * + *

* API name: {@code node} */ public Builder node(String value) { @@ -110,7 +110,7 @@ public Builder node(String value) { /** * When true, this means the task is complete. When false, it is still running. - * + *

* API name: {@code completed} */ public Builder completed(Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorRequest.java index 35749a599..72fa39284 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateDetectorRequest.java @@ -53,7 +53,7 @@ protected ValidateDetectorRequest(Builder builder) { /** * Request body. - * + *

* API name: {@code value} */ public Detector value() { @@ -78,7 +78,7 @@ public static class Builder implements ObjectBuilder { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(Detector value) { @@ -88,7 +88,7 @@ public Builder value(Detector value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidationLoss.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidationLoss.java index 362465814..aefd8c312 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidationLoss.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidationLoss.java @@ -56,7 +56,7 @@ protected ValidationLoss(Builder builder) { /** * Validation loss values for every added decision tree during the forest * growing procedure. - * + *

* API name: {@code fold_values} */ public List foldValues() { @@ -65,7 +65,7 @@ public List foldValues() { /** * The type of the loss metric. For example, binomial_logistic. - * + *

* API name: {@code loss_type} */ public String lossType() { @@ -109,7 +109,7 @@ public static class Builder implements ObjectBuilder { /** * Validation loss values for every added decision tree during the forest * growing procedure. - * + *

* API name: {@code fold_values} */ public Builder foldValues(List value) { @@ -120,7 +120,7 @@ public Builder foldValues(List value) { /** * Validation loss values for every added decision tree during the forest * growing procedure. - * + *

* API name: {@code fold_values} */ public Builder foldValues(String... value) { @@ -141,7 +141,7 @@ public Builder addFoldValues(String value) { /** * The type of the loss metric. For example, binomial_logistic. - * + *

* API name: {@code loss_type} */ public Builder lossType(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixTreshold.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixTreshold.java index 77e4aefc9..74f2f6848 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixTreshold.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixTreshold.java @@ -58,7 +58,7 @@ protected ConfusionMatrixTreshold(Builder builder) { /** * True Positive - * + *

* API name: {@code tp} */ public Number truePositive() { @@ -67,7 +67,7 @@ public Number truePositive() { /** * False Positive - * + *

* API name: {@code fp} */ public Number falsePositive() { @@ -76,7 +76,7 @@ public Number falsePositive() { /** * True Negative - * + *

* API name: {@code tn} */ public Number trueNegative() { @@ -85,7 +85,7 @@ public Number trueNegative() { /** * False Negative - * + *

* API name: {@code fn} */ public Number falseNegative() { @@ -133,7 +133,7 @@ public static class Builder implements ObjectBuilder { /** * True Positive - * + *

* API name: {@code tp} */ public Builder truePositive(Number value) { @@ -143,7 +143,7 @@ public Builder truePositive(Number value) { /** * False Positive - * + *

* API name: {@code fp} */ public Builder falsePositive(Number value) { @@ -153,7 +153,7 @@ public Builder falsePositive(Number value) { /** * True Negative - * + *

* API name: {@code tn} */ public Builder trueNegative(Number value) { @@ -163,7 +163,7 @@ public Builder trueNegative(Number value) { /** * False Negative - * + *

* API name: {@code fn} */ public Builder falseNegative(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_calendars/Calendar.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_calendars/Calendar.java index 8bedfcba5..a965ebc75 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_calendars/Calendar.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ml/get_calendars/Calendar.java @@ -59,7 +59,7 @@ protected Calendar(Builder builder) { /** * A string that uniquely identifies a calendar. - * + *

* API name: {@code calendar_id} */ public String calendarId() { @@ -76,7 +76,7 @@ public String description() { /** * An array of anomaly detection job identifiers. - * + *

* API name: {@code job_ids} */ public List jobIds() { @@ -129,7 +129,7 @@ public static class Builder implements ObjectBuilder { /** * A string that uniquely identifies a calendar. - * + *

* API name: {@code calendar_id} */ public Builder calendarId(String value) { @@ -147,7 +147,7 @@ public Builder description(@Nullable String value) { /** * An array of anomaly detection job identifiers. - * + *

* API name: {@code job_ids} */ public Builder jobIds(List value) { @@ -157,7 +157,7 @@ public Builder jobIds(List value) { /** * An array of anomaly detection job identifiers. - * + *

* API name: {@code job_ids} */ public Builder jobIds(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java index 5232fc7a7..472560886 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/monitoring/BulkRequest.java @@ -71,7 +71,7 @@ public String stubA() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code type} */ @Nullable @@ -134,7 +134,7 @@ public Builder stubA(String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code type} */ public Builder type(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/InfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/InfoRequest.java index 9e8ac450a..f928fc6b9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/InfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/InfoRequest.java @@ -73,7 +73,7 @@ protected InfoRequest(Builder builder) { /** * Comma-separated list of node IDs or names used to limit returned information. - * + *

* API name: {@code node_id} */ @Nullable @@ -84,7 +84,7 @@ public String nodeId() { /** * Limits the information returned to the specific metrics. Supports a * comma-separated list, such as http,ingest. - * + *

* API name: {@code metric} */ @Nullable @@ -94,7 +94,7 @@ public List metric() { /** * If true, returns settings in flat format. - * + *

* API name: {@code flat_settings} */ @Nullable @@ -105,7 +105,7 @@ public Boolean flatSettings() { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ @Nullable @@ -116,7 +116,7 @@ public JsonValue masterTimeout() { /** * Period to wait for a response. If no response is received before the timeout * expires, the request fails and returns an error. - * + *

* API name: {@code timeout} */ @Nullable @@ -147,7 +147,7 @@ public static class Builder implements ObjectBuilder { /** * Comma-separated list of node IDs or names used to limit returned information. - * + *

* API name: {@code node_id} */ public Builder nodeId(@Nullable String value) { @@ -158,7 +158,7 @@ public Builder nodeId(@Nullable String value) { /** * Limits the information returned to the specific metrics. Supports a * comma-separated list, such as http,ingest. - * + *

* API name: {@code metric} */ public Builder metric(@Nullable List value) { @@ -169,7 +169,7 @@ public Builder metric(@Nullable List value) { /** * Limits the information returned to the specific metrics. Supports a * comma-separated list, such as http,ingest. - * + *

* API name: {@code metric} */ public Builder metric(String... value) { @@ -190,7 +190,7 @@ public Builder addMetric(String value) { /** * If true, returns settings in flat format. - * + *

* API name: {@code flat_settings} */ public Builder flatSettings(@Nullable Boolean value) { @@ -201,7 +201,7 @@ public Builder flatSettings(@Nullable Boolean value) { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -212,7 +212,7 @@ public Builder masterTimeout(@Nullable JsonValue value) { /** * Period to wait for a response. If no response is received before the timeout * expires, the request fails and returns an error. - * + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesResponseBase.java index 162019230..d4d72ac8f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/NodesResponseBase.java @@ -51,7 +51,7 @@ protected NodesResponseBase(AbstractBuilder builder) { /** * Contains statistics about the number of nodes selected by the request’s node * filters. - * + *

* API name: {@code _nodes} */ public NodeStatistics nodeStats() { @@ -80,7 +80,7 @@ protected abstract static class AbstractBuilder * API name: {@code _nodes} */ public BuilderT nodeStats(NodeStatistics value) { @@ -91,7 +91,7 @@ public BuilderT nodeStats(NodeStatistics value) { /** * Contains statistics about the number of nodes selected by the request’s node * filters. - * + *

* API name: {@code _nodes} */ public BuilderT nodeStats(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/StatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/StatsRequest.java index 8fdec1f0d..8b0bf1fe3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/StatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/StatsRequest.java @@ -105,7 +105,7 @@ protected StatsRequest(Builder builder) { /** * Comma-separated list of node IDs or names used to limit returned information. - * + *

* API name: {@code node_id} */ @Nullable @@ -124,7 +124,7 @@ public List metric() { /** * Limit the information returned for indices metric to the specific index * metrics. It can be used only if indices (or all) metric is specified. - * + *

* API name: {@code index_metric} */ @Nullable @@ -135,7 +135,7 @@ public List indexMetric() { /** * Comma-separated list or wildcard expressions of fields to include in * fielddata and suggest statistics. - * + *

* API name: {@code completion_fields} */ @Nullable @@ -146,7 +146,7 @@ public List completionFields() { /** * Comma-separated list or wildcard expressions of fields to include in * fielddata statistics. - * + *

* API name: {@code fielddata_fields} */ @Nullable @@ -157,7 +157,7 @@ public List fielddataFields() { /** * Comma-separated list or wildcard expressions of fields to include in the * statistics. - * + *

* API name: {@code fields} */ @Nullable @@ -167,7 +167,7 @@ public List fields() { /** * Comma-separated list of search groups to include in the search statistics. - * + *

* API name: {@code groups} */ @Nullable @@ -178,7 +178,7 @@ public Boolean groups() { /** * If true, the call reports the aggregated disk usage of each one of the Lucene * index files (only applies if segment stats are requested). - * + *

* API name: {@code include_segment_file_sizes} */ @Nullable @@ -189,7 +189,7 @@ public Boolean includeSegmentFileSizes() { /** * Indicates whether statistics are aggregated at the cluster, index, or shard * level. - * + *

* API name: {@code level} */ @Nullable @@ -200,7 +200,7 @@ public JsonValue level() { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ @Nullable @@ -211,7 +211,7 @@ public JsonValue masterTimeout() { /** * Period to wait for a response. If no response is received before the timeout * expires, the request fails and returns an error. - * + *

* API name: {@code timeout} */ @Nullable @@ -221,7 +221,7 @@ public JsonValue timeout() { /** * A comma-separated list of document types for the indexing index metric. - * + *

* API name: {@code types} */ @Nullable @@ -284,7 +284,7 @@ public static class Builder implements ObjectBuilder { /** * Comma-separated list of node IDs or names used to limit returned information. - * + *

* API name: {@code node_id} */ public Builder nodeId(@Nullable String value) { @@ -322,7 +322,7 @@ public Builder addMetric(String value) { /** * Limit the information returned for indices metric to the specific index * metrics. It can be used only if indices (or all) metric is specified. - * + *

* API name: {@code index_metric} */ public Builder indexMetric(@Nullable List value) { @@ -333,7 +333,7 @@ public Builder indexMetric(@Nullable List value) { /** * Limit the information returned for indices metric to the specific index * metrics. It can be used only if indices (or all) metric is specified. - * + *

* API name: {@code index_metric} */ public Builder indexMetric(String... value) { @@ -355,7 +355,7 @@ public Builder addIndexMetric(String value) { /** * Comma-separated list or wildcard expressions of fields to include in * fielddata and suggest statistics. - * + *

* API name: {@code completion_fields} */ public Builder completionFields(@Nullable List value) { @@ -366,7 +366,7 @@ public Builder completionFields(@Nullable List value) { /** * Comma-separated list or wildcard expressions of fields to include in * fielddata and suggest statistics. - * + *

* API name: {@code completion_fields} */ public Builder completionFields(String... value) { @@ -388,7 +388,7 @@ public Builder addCompletionFields(String value) { /** * Comma-separated list or wildcard expressions of fields to include in * fielddata statistics. - * + *

* API name: {@code fielddata_fields} */ public Builder fielddataFields(@Nullable List value) { @@ -399,7 +399,7 @@ public Builder fielddataFields(@Nullable List value) { /** * Comma-separated list or wildcard expressions of fields to include in * fielddata statistics. - * + *

* API name: {@code fielddata_fields} */ public Builder fielddataFields(String... value) { @@ -421,7 +421,7 @@ public Builder addFielddataFields(String value) { /** * Comma-separated list or wildcard expressions of fields to include in the * statistics. - * + *

* API name: {@code fields} */ public Builder fields(@Nullable List value) { @@ -432,7 +432,7 @@ public Builder fields(@Nullable List value) { /** * Comma-separated list or wildcard expressions of fields to include in the * statistics. - * + *

* API name: {@code fields} */ public Builder fields(String... value) { @@ -453,7 +453,7 @@ public Builder addFields(String value) { /** * Comma-separated list of search groups to include in the search statistics. - * + *

* API name: {@code groups} */ public Builder groups(@Nullable Boolean value) { @@ -464,7 +464,7 @@ public Builder groups(@Nullable Boolean value) { /** * If true, the call reports the aggregated disk usage of each one of the Lucene * index files (only applies if segment stats are requested). - * + *

* API name: {@code include_segment_file_sizes} */ public Builder includeSegmentFileSizes(@Nullable Boolean value) { @@ -475,7 +475,7 @@ public Builder includeSegmentFileSizes(@Nullable Boolean value) { /** * Indicates whether statistics are aggregated at the cluster, index, or shard * level. - * + *

* API name: {@code level} */ public Builder level(@Nullable JsonValue value) { @@ -486,7 +486,7 @@ public Builder level(@Nullable JsonValue value) { /** * Period to wait for a connection to the master node. If no response is * received before the timeout expires, the request fails and returns an error. - * + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -497,7 +497,7 @@ public Builder masterTimeout(@Nullable JsonValue value) { /** * Period to wait for a response. If no response is received before the timeout * expires, the request fails and returns an error. - * + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -507,7 +507,7 @@ public Builder timeout(@Nullable JsonValue value) { /** * A comma-separated list of document types for the indexing index metric. - * + *

* API name: {@code types} */ public Builder types(@Nullable List value) { @@ -517,7 +517,7 @@ public Builder types(@Nullable List value) { /** * A comma-separated list of document types for the indexing index metric. - * + *

* API name: {@code types} */ public Builder types(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfo.java index bdc98871d..847fd9f69 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeInfo.java @@ -156,7 +156,7 @@ public String buildFlavor() { /** * Short hash of the last git commit in this release. - * + *

* API name: {@code build_hash} */ public String buildHash() { @@ -172,7 +172,7 @@ public String buildType() { /** * The node’s host name. - * + *

* API name: {@code host} */ public String host() { @@ -189,7 +189,7 @@ public NodeInfoHttp http() { /** * The node’s IP address. - * + *

* API name: {@code ip} */ public String ip() { @@ -206,7 +206,7 @@ public NodeJvmInfo jvm() { /** * The node's name - * + *

* API name: {@code name} */ public String name() { @@ -272,7 +272,7 @@ public Map threadPool() { * Total heap allowed to be used to hold recently indexed documents before they * must be written to disk. This size is a shared pool across all shards on this * node, and is controlled by Indexing Buffer settings. - * + *

* API name: {@code total_indexing_buffer} */ @Nullable @@ -282,7 +282,7 @@ public Number totalIndexingBuffer() { /** * Same as total_indexing_buffer, but expressed in bytes. - * + *

* API name: {@code total_indexing_buffer_in_bytes} */ @Nullable @@ -300,7 +300,7 @@ public NodeInfoTransport transport() { /** * Host and port where transport HTTP connections are accepted. - * + *

* API name: {@code transport_address} */ public String transportAddress() { @@ -309,7 +309,7 @@ public String transportAddress() { /** * Elasticsearch version running on this node. - * + *

* API name: {@code version} */ public String version() { @@ -602,7 +602,7 @@ public Builder buildFlavor(String value) { /** * Short hash of the last git commit in this release. - * + *

* API name: {@code build_hash} */ public Builder buildHash(String value) { @@ -620,7 +620,7 @@ public Builder buildType(String value) { /** * The node’s host name. - * + *

* API name: {@code host} */ public Builder host(String value) { @@ -645,7 +645,7 @@ public Builder http(Function> /** * The node’s IP address. - * + *

* API name: {@code ip} */ public Builder ip(String value) { @@ -670,7 +670,7 @@ public Builder jvm(Function> fn) /** * The node's name - * + *

* API name: {@code name} */ public Builder name(String value) { @@ -845,7 +845,7 @@ public Builder putThreadPool(String key, * Total heap allowed to be used to hold recently indexed documents before they * must be written to disk. This size is a shared pool across all shards on this * node, and is controlled by Indexing Buffer settings. - * + *

* API name: {@code total_indexing_buffer} */ public Builder totalIndexingBuffer(@Nullable Number value) { @@ -855,7 +855,7 @@ public Builder totalIndexingBuffer(@Nullable Number value) { /** * Same as total_indexing_buffer, but expressed in bytes. - * + *

* API name: {@code total_indexing_buffer_in_bytes} */ public Builder totalIndexingBufferInBytes(@Nullable JsonValue value) { @@ -880,7 +880,7 @@ public Builder transport(Function * API name: {@code transport_address} */ public Builder transportAddress(String value) { @@ -890,7 +890,7 @@ public Builder transportAddress(String value) { /** * Elasticsearch version running on this node. - * + *

* API name: {@code version} */ public Builder version(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeOperatingSystemInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeOperatingSystemInfo.java index 17e7bb08c..357831baa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeOperatingSystemInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeOperatingSystemInfo.java @@ -83,7 +83,7 @@ protected NodeOperatingSystemInfo(Builder builder) { /** * Name of the JVM architecture (ex: amd64, x86) - * + *

* API name: {@code arch} */ public String arch() { @@ -92,7 +92,7 @@ public String arch() { /** * Number of processors available to the Java virtual machine - * + *

* API name: {@code available_processors} */ public Number availableProcessors() { @@ -103,7 +103,7 @@ public Number availableProcessors() { * The number of processors actually used to calculate thread pool size. This * number can be set with the node.processors setting of a node and defaults to * the number of processors reported by the OS. - * + *

* API name: {@code allocated_processors} */ @Nullable @@ -113,7 +113,7 @@ public Number allocatedProcessors() { /** * Name of the operating system (ex: Linux, Windows, Mac OS X) - * + *

* API name: {@code name} */ public String name() { @@ -129,7 +129,7 @@ public String prettyName() { /** * Refresh interval for the OS statistics - * + *

* API name: {@code refresh_interval_in_millis} */ public Number refreshIntervalInMillis() { @@ -138,7 +138,7 @@ public Number refreshIntervalInMillis() { /** * Version of the operating system - * + *

* API name: {@code version} */ public String version() { @@ -258,7 +258,7 @@ public static class Builder implements ObjectBuilder { /** * Name of the JVM architecture (ex: amd64, x86) - * + *

* API name: {@code arch} */ public Builder arch(String value) { @@ -268,7 +268,7 @@ public Builder arch(String value) { /** * Number of processors available to the Java virtual machine - * + *

* API name: {@code available_processors} */ public Builder availableProcessors(Number value) { @@ -280,7 +280,7 @@ public Builder availableProcessors(Number value) { * The number of processors actually used to calculate thread pool size. This * number can be set with the node.processors setting of a node and defaults to * the number of processors reported by the OS. - * + *

* API name: {@code allocated_processors} */ public Builder allocatedProcessors(@Nullable Number value) { @@ -290,7 +290,7 @@ public Builder allocatedProcessors(@Nullable Number value) { /** * Name of the operating system (ex: Linux, Windows, Mac OS X) - * + *

* API name: {@code name} */ public Builder name(String value) { @@ -308,7 +308,7 @@ public Builder prettyName(String value) { /** * Refresh interval for the OS statistics - * + *

* API name: {@code refresh_interval_in_millis} */ public Builder refreshIntervalInMillis(Number value) { @@ -318,7 +318,7 @@ public Builder refreshIntervalInMillis(Number value) { /** * Version of the operating system - * + *

* API name: {@code version} */ public Builder version(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeProcessInfo.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeProcessInfo.java index 11fff4ed3..f84e0d877 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeProcessInfo.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/nodes/info/NodeProcessInfo.java @@ -57,7 +57,7 @@ protected NodeProcessInfo(Builder builder) { /** * Process identifier (PID) - * + *

* API name: {@code id} */ public Number id() { @@ -66,7 +66,7 @@ public Number id() { /** * Indicates if the process address space has been successfully locked in memory - * + *

* API name: {@code mlockall} */ public Boolean mlockall() { @@ -75,7 +75,7 @@ public Boolean mlockall() { /** * Refresh interval for the process statistics - * + *

* API name: {@code refresh_interval_in_millis} */ public Number refreshIntervalInMillis() { @@ -118,7 +118,7 @@ public static class Builder implements ObjectBuilder { /** * Process identifier (PID) - * + *

* API name: {@code id} */ public Builder id(Number value) { @@ -128,7 +128,7 @@ public Builder id(Number value) { /** * Indicates if the process address space has been successfully locked in memory - * + *

* API name: {@code mlockall} */ public Builder mlockall(Boolean value) { @@ -138,7 +138,7 @@ public Builder mlockall(Boolean value) { /** * Refresh interval for the process statistics - * + *

* API name: {@code refresh_interval_in_millis} */ public Builder refreshIntervalInMillis(Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupRequest.java index abddd7e82..d34eacf89 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupRequest.java @@ -76,7 +76,7 @@ public Number stubb() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code index} */ @Nullable @@ -86,7 +86,7 @@ public String index() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code rollup_index} */ @Nullable @@ -152,7 +152,7 @@ public Builder stubb(Number value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code index} */ public Builder index(@Nullable String value) { @@ -162,7 +162,7 @@ public Builder index(@Nullable String value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code rollup_index} */ public Builder rollupIndex(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchResponse.java index 4f55bfeed..fb687d6a2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/RollupSearchResponse.java @@ -266,7 +266,6 @@ public Builder putAggregations(String key, JsonValue value) { /** * Serializer for TDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tDocumentSerializer(@Nullable JsonpSerializer value) { this.tDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/RepositoryStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/RepositoryStatsRequest.java index b77420a7d..5fc6153f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/RepositoryStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/RepositoryStatsRequest.java @@ -72,7 +72,7 @@ public Number stubA() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code repository} */ @Nullable @@ -135,7 +135,7 @@ public Builder stubA(Number value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code repository} */ public Builder repository(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/StatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/StatsRequest.java index 54044f039..709ff7752 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/StatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/searchable_snapshots/StatsRequest.java @@ -72,7 +72,7 @@ public Number stubA() { /** * Auto generated - missing in the input spec - * + *

* API name: {@code index} */ @Nullable @@ -135,7 +135,7 @@ public Builder stubA(Number value) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code index} */ public Builder index(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java index d857e2a21..58e77dedd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/CreateApiKeyRequest.java @@ -82,7 +82,7 @@ public JsonValue refresh() { /** * Expiration time for the API key. By default, API keys never expire. - * + *

* API name: {@code expiration} */ @Nullable @@ -92,7 +92,7 @@ public JsonValue expiration() { /** * Specifies the name for this API key. - * + *

* API name: {@code name} */ @Nullable @@ -109,7 +109,7 @@ public String name() { * thereby limiting the access scope for API keys. The structure of role * descriptor is the same as the request for create role API. For more details, * see create or update roles API. - * + *

* API name: {@code role_descriptors} */ @Nullable @@ -121,7 +121,7 @@ public Map roleDescriptors() { * Arbitrary metadata that you want to associate with the API key. It supports * nested data structure. Within the metadata object, keys beginning with _ are * reserved for system usage. - * + *

* API name: {@code metadata} */ @Nullable @@ -210,7 +210,7 @@ public Builder refresh(@Nullable JsonValue value) { /** * Expiration time for the API key. By default, API keys never expire. - * + *

* API name: {@code expiration} */ public Builder expiration(@Nullable JsonValue value) { @@ -220,7 +220,7 @@ public Builder expiration(@Nullable JsonValue value) { /** * Specifies the name for this API key. - * + *

* API name: {@code name} */ public Builder name(@Nullable String value) { @@ -237,7 +237,7 @@ public Builder name(@Nullable String value) { * thereby limiting the access scope for API keys. The structure of role * descriptor is the same as the request for create role API. For more details, * see create or update roles API. - * + *

* API name: {@code role_descriptors} */ public Builder roleDescriptors(@Nullable Map value) { @@ -275,7 +275,7 @@ public Builder putRoleDescriptors(String key, * Arbitrary metadata that you want to associate with the API key. It supports * nested data structure. Within the metadata object, keys beginning with _ are * reserved for system usage. - * + *

* API name: {@code metadata} */ public Builder metadata(@Nullable Map value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserPrivilegesRequest.java index 80bd9cbd1..be5dc81c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserPrivilegesRequest.java @@ -57,7 +57,7 @@ protected GetUserPrivilegesRequest(Builder builder) { * The name of the application. Application privileges are always associated * with exactly one application. If you do not specify this parameter, the API * returns information about all privileges for all applications. - * + *

* API name: {@code application} */ @Nullable @@ -68,7 +68,7 @@ public String application() { /** * The name of the privilege. If you do not specify this parameter, the API * returns information about all privileges for the requested application. - * + *

* API name: {@code priviledge} */ @Nullable @@ -92,7 +92,7 @@ public static class Builder implements ObjectBuilder { * The name of the application. Application privileges are always associated * with exactly one application. If you do not specify this parameter, the API * returns information about all privileges for all applications. - * + *

* API name: {@code application} */ public Builder application(@Nullable String value) { @@ -103,7 +103,7 @@ public Builder application(@Nullable String value) { /** * The name of the privilege. If you do not specify this parameter, the API * returns information about all privileges for the requested application. - * + *

* API name: {@code priviledge} */ public Builder priviledge(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserRequest.java index a936c39da..8b8a43fd0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/GetUserRequest.java @@ -56,7 +56,7 @@ protected GetUserRequest(Builder builder) { * An identifier for the user. You can specify multiple usernames as a * comma-separated list. If you omit this parameter, the API retrieves * information about all users. - * + *

* API name: {@code username} */ @Nullable @@ -77,7 +77,7 @@ public static class Builder implements ObjectBuilder { * An identifier for the user. You can specify multiple usernames as a * comma-separated list. If you omit this parameter, the API retrieves * information about all users. - * + *

* API name: {@code username} */ public Builder username(@Nullable List value) { @@ -89,7 +89,7 @@ public Builder username(@Nullable List value) { * An identifier for the user. You can specify multiple usernames as a * comma-separated list. If you omit this parameter, the API retrieves * information about all users. - * + *

* API name: {@code username} */ public Builder username(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java index 431908b1e..4695180c1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/security/PutPrivilegesRequest.java @@ -67,7 +67,7 @@ public JsonValue refresh() { /** * Request body. - * + *

* API name: {@code value} */ public Map> value() { @@ -115,7 +115,7 @@ public Builder refresh(@Nullable JsonValue value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(Map> value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java index a00b705bd..03fb1eba8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/DeleteNodeRequest.java @@ -57,7 +57,7 @@ protected DeleteNodeRequest(Builder builder) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code node_id} */ @Nullable @@ -101,7 +101,7 @@ public static class Builder implements ObjectBuilder { /** * Auto generated - missing in the input spec - * + *

* API name: {@code node_id} */ public Builder nodeId(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java index 0690a5bc4..39acef9e5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/GetNodeRequest.java @@ -57,7 +57,7 @@ protected GetNodeRequest(Builder builder) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code node_id} */ @Nullable @@ -101,7 +101,7 @@ public static class Builder implements ObjectBuilder { /** * Auto generated - missing in the input spec - * + *

* API name: {@code node_id} */ public Builder nodeId(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java index 3a3a00846..ff293a90f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/PutNodeRequest.java @@ -57,7 +57,7 @@ protected PutNodeRequest(Builder builder) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code node_id} */ @Nullable @@ -101,7 +101,7 @@ public static class Builder implements ObjectBuilder { /** * Auto generated - missing in the input spec - * + *

* API name: {@code node_id} */ public Builder nodeId(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java index b0ef08d5c..827caa117 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/sql/QueryRequest.java @@ -119,7 +119,7 @@ public String cursor() { /** * The maximum number of rows (or entries) to return in one response - * + *

* API name: {@code fetch_size} */ @Nullable @@ -129,7 +129,7 @@ public Number fetchSize() { /** * Optional Elasticsearch query DSL for additional filtering. - * + *

* API name: {@code filter} */ @Nullable @@ -139,7 +139,7 @@ public QueryContainer filter() { /** * SQL query to execute - * + *

* API name: {@code query} */ @Nullable @@ -149,7 +149,7 @@ public String query() { /** * The timeout before the request fails. - * + *

* API name: {@code request_timeout} */ @Nullable @@ -159,7 +159,7 @@ public JsonValue requestTimeout() { /** * The timeout before a pagination request fails. - * + *

* API name: {@code page_timeout} */ @Nullable @@ -170,7 +170,7 @@ public JsonValue pageTimeout() { /** * Time-zone in ISO 8601 used for executing the query on the server. More * information available here. - * + *

* API name: {@code time_zone} */ @Nullable @@ -182,7 +182,7 @@ public String timeZone() { * Throw an exception when encountering multiple values for a field (default) or * be lenient and return the first value from the list (without any guarantees * of what that will be - typically the first in natural ascending order). - * + *

* API name: {@code field_multi_value_leniency} */ @Nullable @@ -320,7 +320,7 @@ public Builder cursor(@Nullable String value) { /** * The maximum number of rows (or entries) to return in one response - * + *

* API name: {@code fetch_size} */ public Builder fetchSize(@Nullable Number value) { @@ -330,7 +330,7 @@ public Builder fetchSize(@Nullable Number value) { /** * Optional Elasticsearch query DSL for additional filtering. - * + *

* API name: {@code filter} */ public Builder filter(@Nullable QueryContainer value) { @@ -340,7 +340,7 @@ public Builder filter(@Nullable QueryContainer value) { /** * Optional Elasticsearch query DSL for additional filtering. - * + *

* API name: {@code filter} */ public Builder filter(Function> fn) { @@ -349,7 +349,7 @@ public Builder filter(Function * API name: {@code query} */ public Builder query(@Nullable String value) { @@ -359,7 +359,7 @@ public Builder query(@Nullable String value) { /** * The timeout before the request fails. - * + *

* API name: {@code request_timeout} */ public Builder requestTimeout(@Nullable JsonValue value) { @@ -369,7 +369,7 @@ public Builder requestTimeout(@Nullable JsonValue value) { /** * The timeout before a pagination request fails. - * + *

* API name: {@code page_timeout} */ public Builder pageTimeout(@Nullable JsonValue value) { @@ -380,7 +380,7 @@ public Builder pageTimeout(@Nullable JsonValue value) { /** * Time-zone in ISO 8601 used for executing the query on the server. More * information available here. - * + *

* API name: {@code time_zone} */ public Builder timeZone(@Nullable String value) { @@ -392,7 +392,7 @@ public Builder timeZone(@Nullable String value) { * Throw an exception when encountering multiple values for a field (default) or * be lenient and return the first value from the list (without any guarantees * of what that will be - typically the first in natural ascending order). - * + *

* API name: {@code field_multi_value_leniency} */ public Builder fieldMultiValueLeniency(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/GetCertificatesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/GetCertificatesResponse.java index bd0607e46..2c952ecc9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/GetCertificatesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/GetCertificatesResponse.java @@ -53,7 +53,7 @@ protected GetCertificatesResponse(Builder builder) { /** * Response value. - * + *

* API name: {@code value} */ public List value() { @@ -83,7 +83,7 @@ public static class Builder implements ObjectBuilder { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -93,7 +93,7 @@ public Builder value(List value) { /** * Response value. - * + *

* API name: {@code value} */ public Builder value(CertificateInformation... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindStructureRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindStructureRequest.java index 28a212b1f..0462673da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindStructureRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/text_structure/FindStructureRequest.java @@ -125,7 +125,7 @@ protected FindStructureRequest(Builder builder) { * JVM that Elasticsearch uses. For example, UTF-8, UTF-16LE, windows-1252, or * EUC-JP. If this parameter is not specified, the structure finder chooses an * appropriate character set. - * + *

* API name: {@code charset} */ @Nullable @@ -137,9 +137,9 @@ public String charset() { * If you have set format to delimited, you can specify the column names in a * comma-separated list. If this parameter is not specified, the structure * finder uses the column names from the header row of the text. If the text - * does not have a header role, columns are named "column1", "column2", - * "column3", etc. - * + * does not have a header role, columns are named "column1", + * "column2", "column3", etc. + *

* API name: {@code column_names} */ @Nullable @@ -155,7 +155,7 @@ public String columnNames() { * default scenario, all rows must have the same number of fields for the * delimited format to be detected. If you specify a delimiter, up to 10% of the * rows can have a different number of columns than the first row. - * + *

* API name: {@code delimiter} */ @Nullable @@ -167,7 +167,7 @@ public String delimiter() { * If this parameter is set to true, the response includes a field named * explanation, which is an array of strings that indicate how the structure * finder produced its result. - * + *

* API name: {@code explain} */ @Nullable @@ -182,7 +182,7 @@ public Boolean explain() { * delimited format to be detected. If the format is set to delimited and the * delimiter is not set, however, the API tolerates up to 5% of rows that have a * different number of columns than the first row. - * + *

* API name: {@code format} */ @Nullable @@ -195,9 +195,10 @@ public String format() { * pattern that is used to extract fields from every message in the text. The * name of the timestamp field in the Grok pattern must match what is specified * in the timestamp_field parameter. If that parameter is not specified, the - * name of the timestamp field in the Grok pattern must match "timestamp". If - * grok_pattern is not specified, the structure finder creates a Grok pattern. - * + * name of the timestamp field in the Grok pattern must match + * "timestamp". If grok_pattern is not specified, the structure finder + * creates a Grok pattern. + *

* API name: {@code grok_pattern} */ @Nullable @@ -210,7 +211,7 @@ public String grokPattern() { * whether the column names are in the first row of the text. If this parameter * is not specified, the structure finder guesses based on the similarity of the * first row of the text to other rows. - * + *

* API name: {@code has_header_row} */ @Nullable @@ -224,7 +225,7 @@ public Boolean hasHeaderRow() { * messages you may need to increase this, but be aware that this may lead to * very long processing times if the way to group lines into messages is * misdetected. - * + *

* API name: {@code line_merge_size_limit} */ @Nullable @@ -237,7 +238,7 @@ public Number lineMergeSizeLimit() { * beginning of the text. The minimum is 2; If the value of this parameter is * greater than the number of lines in the text, the analysis proceeds (as long * as there are at least two lines in the text) for all of the lines. - * + *

* API name: {@code lines_to_sample} */ @Nullable @@ -249,10 +250,10 @@ public Number linesToSample() { * If you have set format to delimited, you can specify the character used to * quote the values in each row if they contain newlines or the delimiter * character. Only a single character is supported. If this parameter is not - * specified, the default value is a double quote ("). If your delimited text - * format does not use quoting, a workaround is to set this argument to a + * specified, the default value is a double quote ("). If your delimited + * text format does not use quoting, a workaround is to set this argument to a * character that does not appear anywhere in the sample. - * + *

* API name: {@code quote} */ @Nullable @@ -265,7 +266,7 @@ public String quote() { * delimiters should have whitespace trimmed from them. If this parameter is not * specified and the delimiter is pipe (|), the default value is true. * Otherwise, the default value is false. - * + *

* API name: {@code should_trim_fields} */ @Nullable @@ -276,7 +277,7 @@ public Boolean shouldTrimFields() { /** * Sets the maximum amount of time that the structure analysis make take. If the * analysis is still running when the timeout expires then it will be aborted. - * + *

* API name: {@code timeout} */ @Nullable @@ -294,7 +295,7 @@ public String timestampField() { /** * The Java time format of the timestamp field in the text. - * + *

* API name: {@code timestamp_format} */ @Nullable @@ -304,7 +305,7 @@ public String timestampFormat() { /** * Request body. - * + *

* API name: {@code value} */ public List value() { @@ -382,7 +383,7 @@ public static class Builder implements ObjectBuilder * API name: {@code charset} */ public Builder charset(@Nullable String value) { @@ -394,9 +395,9 @@ public Builder charset(@Nullable String value) { * If you have set format to delimited, you can specify the column names in a * comma-separated list. If this parameter is not specified, the structure * finder uses the column names from the header row of the text. If the text - * does not have a header role, columns are named "column1", "column2", - * "column3", etc. - * + * does not have a header role, columns are named "column1", + * "column2", "column3", etc. + *

* API name: {@code column_names} */ public Builder columnNames(@Nullable String value) { @@ -412,7 +413,7 @@ public Builder columnNames(@Nullable String value) { * default scenario, all rows must have the same number of fields for the * delimited format to be detected. If you specify a delimiter, up to 10% of the * rows can have a different number of columns than the first row. - * + *

* API name: {@code delimiter} */ public Builder delimiter(@Nullable String value) { @@ -424,7 +425,7 @@ public Builder delimiter(@Nullable String value) { * If this parameter is set to true, the response includes a field named * explanation, which is an array of strings that indicate how the structure * finder produced its result. - * + *

* API name: {@code explain} */ public Builder explain(@Nullable Boolean value) { @@ -439,7 +440,7 @@ public Builder explain(@Nullable Boolean value) { * delimited format to be detected. If the format is set to delimited and the * delimiter is not set, however, the API tolerates up to 5% of rows that have a * different number of columns than the first row. - * + *

* API name: {@code format} */ public Builder format(@Nullable String value) { @@ -452,9 +453,10 @@ public Builder format(@Nullable String value) { * pattern that is used to extract fields from every message in the text. The * name of the timestamp field in the Grok pattern must match what is specified * in the timestamp_field parameter. If that parameter is not specified, the - * name of the timestamp field in the Grok pattern must match "timestamp". If - * grok_pattern is not specified, the structure finder creates a Grok pattern. - * + * name of the timestamp field in the Grok pattern must match + * "timestamp". If grok_pattern is not specified, the structure finder + * creates a Grok pattern. + *

* API name: {@code grok_pattern} */ public Builder grokPattern(@Nullable String value) { @@ -467,7 +469,7 @@ public Builder grokPattern(@Nullable String value) { * whether the column names are in the first row of the text. If this parameter * is not specified, the structure finder guesses based on the similarity of the * first row of the text to other rows. - * + *

* API name: {@code has_header_row} */ public Builder hasHeaderRow(@Nullable Boolean value) { @@ -481,7 +483,7 @@ public Builder hasHeaderRow(@Nullable Boolean value) { * messages you may need to increase this, but be aware that this may lead to * very long processing times if the way to group lines into messages is * misdetected. - * + *

* API name: {@code line_merge_size_limit} */ public Builder lineMergeSizeLimit(@Nullable Number value) { @@ -494,7 +496,7 @@ public Builder lineMergeSizeLimit(@Nullable Number value) { * beginning of the text. The minimum is 2; If the value of this parameter is * greater than the number of lines in the text, the analysis proceeds (as long * as there are at least two lines in the text) for all of the lines. - * + *

* API name: {@code lines_to_sample} */ public Builder linesToSample(@Nullable Number value) { @@ -506,10 +508,10 @@ public Builder linesToSample(@Nullable Number value) { * If you have set format to delimited, you can specify the character used to * quote the values in each row if they contain newlines or the delimiter * character. Only a single character is supported. If this parameter is not - * specified, the default value is a double quote ("). If your delimited text - * format does not use quoting, a workaround is to set this argument to a + * specified, the default value is a double quote ("). If your delimited + * text format does not use quoting, a workaround is to set this argument to a * character that does not appear anywhere in the sample. - * + *

* API name: {@code quote} */ public Builder quote(@Nullable String value) { @@ -522,7 +524,7 @@ public Builder quote(@Nullable String value) { * delimiters should have whitespace trimmed from them. If this parameter is not * specified and the delimiter is pipe (|), the default value is true. * Otherwise, the default value is false. - * + *

* API name: {@code should_trim_fields} */ public Builder shouldTrimFields(@Nullable Boolean value) { @@ -533,7 +535,7 @@ public Builder shouldTrimFields(@Nullable Boolean value) { /** * Sets the maximum amount of time that the structure analysis make take. If the * analysis is still running when the timeout expires then it will be aborted. - * + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -551,7 +553,7 @@ public Builder timestampField(@Nullable String value) { /** * The Java time format of the timestamp field in the text. - * + *

* API name: {@code timestamp_format} */ public Builder timestampFormat(@Nullable String value) { @@ -561,7 +563,7 @@ public Builder timestampFormat(@Nullable String value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(List value) { @@ -571,7 +573,7 @@ public Builder value(List value) { /** * Request body. - * + *

* API name: {@code value} */ public Builder value(TJsonDocument... value) { @@ -593,7 +595,6 @@ public Builder addValue(TJsonDocument value) { /** * Serializer for TJsonDocument. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tJsonDocumentSerializer(@Nullable JsonpSerializer value) { this.tJsonDocumentSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Latest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Latest.java index 0af8a8119..da1be844b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Latest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Latest.java @@ -55,7 +55,7 @@ protected Latest(Builder builder) { /** * Specifies the date field that is used to identify the latest documents. - * + *

* API name: {@code sort} */ public String sort() { @@ -64,7 +64,7 @@ public String sort() { /** * Specifies an array of one or more fields that are used to group the data. - * + *

* API name: {@code unique_key} */ public List uniqueKey() { @@ -107,7 +107,7 @@ public static class Builder implements ObjectBuilder { /** * Specifies the date field that is used to identify the latest documents. - * + *

* API name: {@code sort} */ public Builder sort(String value) { @@ -117,7 +117,7 @@ public Builder sort(String value) { /** * Specifies an array of one or more fields that are used to group the data. - * + *

* API name: {@code unique_key} */ public Builder uniqueKey(List value) { @@ -127,7 +127,7 @@ public Builder uniqueKey(List value) { /** * Specifies an array of one or more fields that are used to group the data. - * + *

* API name: {@code unique_key} */ public Builder uniqueKey(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java index 8fbb5aae5..aaa3afa13 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformRequest.java @@ -89,7 +89,7 @@ protected PreviewTransformRequest(AbstractBuilder builder) { /** * The destination for the transform. - * + *

* API name: {@code dest} */ @Nullable @@ -99,7 +99,7 @@ public Destination dest() { /** * Free text description of the transform. - * + *

* API name: {@code description} */ @Nullable @@ -112,7 +112,7 @@ public String description() { * transform is running continuously. Also determines the retry interval in the * event of transient failures while the transform is searching or indexing. The * minimum value is 1s and the maximum is 1h. - * + *

* API name: {@code frequency} */ @Nullable @@ -123,7 +123,7 @@ public JsonValue frequency() { /** * The pivot method transforms the data by aggregating and grouping it. These * objects define the group by fields and the aggregation to reduce the data. - * + *

* API name: {@code pivot} */ @Nullable @@ -133,7 +133,7 @@ public Pivot pivot() { /** * The source of the data for the transform. - * + *

* API name: {@code source} */ @Nullable @@ -143,7 +143,7 @@ public Source source() { /** * Defines optional transform settings. - * + *

* API name: {@code settings} */ @Nullable @@ -153,7 +153,7 @@ public Settings settings() { /** * Defines the properties transforms require to run continuously. - * + *

* API name: {@code sync} */ @Nullable @@ -164,7 +164,7 @@ public SyncContainer sync() { /** * Defines a retention policy for the transform. Data that meets the defined * criteria is deleted from the destination index. - * + *

* API name: {@code retention_policy} */ @Nullable @@ -175,7 +175,7 @@ public RetentionPolicyContainer retentionPolicy() { /** * The latest method transforms the data by finding the latest document for each * unique key. - * + *

* API name: {@code latest} */ @Nullable @@ -306,7 +306,7 @@ protected abstract static class AbstractBuilder * API name: {@code dest} */ public BuilderT dest(@Nullable Destination value) { @@ -316,7 +316,7 @@ public BuilderT dest(@Nullable Destination value) { /** * The destination for the transform. - * + *

* API name: {@code dest} */ public BuilderT dest(Function> fn) { @@ -325,7 +325,7 @@ public BuilderT dest(Function> f /** * Free text description of the transform. - * + *

* API name: {@code description} */ public BuilderT description(@Nullable String value) { @@ -338,7 +338,7 @@ public BuilderT description(@Nullable String value) { * transform is running continuously. Also determines the retry interval in the * event of transient failures while the transform is searching or indexing. The * minimum value is 1s and the maximum is 1h. - * + *

* API name: {@code frequency} */ public BuilderT frequency(@Nullable JsonValue value) { @@ -349,7 +349,7 @@ public BuilderT frequency(@Nullable JsonValue value) { /** * The pivot method transforms the data by aggregating and grouping it. These * objects define the group by fields and the aggregation to reduce the data. - * + *

* API name: {@code pivot} */ public BuilderT pivot(@Nullable Pivot value) { @@ -360,7 +360,7 @@ public BuilderT pivot(@Nullable Pivot value) { /** * The pivot method transforms the data by aggregating and grouping it. These * objects define the group by fields and the aggregation to reduce the data. - * + *

* API name: {@code pivot} */ public BuilderT pivot(Function> fn) { @@ -369,7 +369,7 @@ public BuilderT pivot(Function> fn) { /** * The source of the data for the transform. - * + *

* API name: {@code source} */ public BuilderT source(@Nullable Source value) { @@ -379,7 +379,7 @@ public BuilderT source(@Nullable Source value) { /** * The source of the data for the transform. - * + *

* API name: {@code source} */ public BuilderT source(Function> fn) { @@ -388,7 +388,7 @@ public BuilderT source(Function> fn) { /** * Defines optional transform settings. - * + *

* API name: {@code settings} */ public BuilderT settings(@Nullable Settings value) { @@ -398,7 +398,7 @@ public BuilderT settings(@Nullable Settings value) { /** * Defines optional transform settings. - * + *

* API name: {@code settings} */ public BuilderT settings(Function> fn) { @@ -407,7 +407,7 @@ public BuilderT settings(Function> fn) /** * Defines the properties transforms require to run continuously. - * + *

* API name: {@code sync} */ public BuilderT sync(@Nullable SyncContainer value) { @@ -417,7 +417,7 @@ public BuilderT sync(@Nullable SyncContainer value) { /** * Defines the properties transforms require to run continuously. - * + *

* API name: {@code sync} */ public BuilderT sync(Function> fn) { @@ -427,7 +427,7 @@ public BuilderT sync(Function * API name: {@code retention_policy} */ public BuilderT retentionPolicy(@Nullable RetentionPolicyContainer value) { @@ -438,7 +438,7 @@ public BuilderT retentionPolicy(@Nullable RetentionPolicyContainer value) { /** * Defines a retention policy for the transform. Data that meets the defined * criteria is deleted from the destination index. - * + *

* API name: {@code retention_policy} */ public BuilderT retentionPolicy( @@ -449,7 +449,7 @@ public BuilderT retentionPolicy( /** * The latest method transforms the data by finding the latest document for each * unique key. - * + *

* API name: {@code latest} */ public BuilderT latest(@Nullable Latest value) { @@ -460,7 +460,7 @@ public BuilderT latest(@Nullable Latest value) { /** * The latest method transforms the data by finding the latest document for each * unique key. - * + *

* API name: {@code latest} */ public BuilderT latest(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformResponse.java index 007885abb..5eda5fed8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PreviewTransformResponse.java @@ -157,7 +157,6 @@ public Builder addPreview(TTransform value) { /** * Serializer for TTransform. If not set, an attempt will be made to find a * serializer from the JSON context. - * */ public Builder tTransformSerializer(@Nullable JsonpSerializer value) { this.tTransformSerializer = value; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java index dfb5530fd..4648b4b8b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/PutTransformRequest.java @@ -58,7 +58,7 @@ protected PutTransformRequest(AbstractBuilder builder) { * Identifier for the transform. This identifier can contain lowercase * alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must * start and end with alphanumeric characters. - * + *

* API name: {@code transform_id} */ public String transformId() { @@ -68,7 +68,7 @@ public String transformId() { /** * When true, deferrable validations are not run. This behavior may be desired * if the source index does not exist until after the transform is created. - * + *

* API name: {@code defer_validation} */ @Nullable @@ -113,7 +113,7 @@ protected abstract static class AbstractBuilder * API name: {@code transform_id} */ public BuilderT transformId(String value) { @@ -124,7 +124,7 @@ public BuilderT transformId(String value) { /** * When true, deferrable validations are not run. This behavior may be desired * if the source index does not exist until after the transform is created. - * + *

* API name: {@code defer_validation} */ public BuilderT deferValidation(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicy.java index abc6cc7a6..63d6946da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/RetentionPolicy.java @@ -53,7 +53,7 @@ protected RetentionPolicy(Builder builder) { /** * The date field that is used to calculate the age of the document. - * + *

* API name: {@code field} */ public String field() { @@ -64,7 +64,7 @@ public String field() { * Specifies the maximum age of a document in the destination index. Documents * that are older than the configured value are removed from the destination * index. - * + *

* API name: {@code max_age} */ public JsonValue maxAge() { @@ -102,7 +102,7 @@ public static class Builder implements ObjectBuilder { /** * The date field that is used to calculate the age of the document. - * + *

* API name: {@code field} */ public Builder field(String value) { @@ -114,7 +114,7 @@ public Builder field(String value) { * Specifies the maximum age of a document in the destination index. Documents * that are older than the configured value are removed from the destination * index. - * + *

* API name: {@code max_age} */ public Builder maxAge(JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java index 2dbc78a62..d40cd1639 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/Settings.java @@ -61,7 +61,7 @@ protected Settings(Builder builder) { * (default) or as millis since epoch. epoch_millis has been the default for * transforms created before version 7.11. For compatible output set this to * true. - * + *

* API name: {@code dates_as_epoch_millis} */ @Nullable @@ -73,7 +73,7 @@ public Boolean datesAsEpochMillis() { * Specifies a limit on the number of input documents per second. This setting * throttles the transform by adding a wait time between search requests. The * default value is null, which disables throttling. - * + *

* API name: {@code docs_per_second} */ @Nullable @@ -85,7 +85,7 @@ public Number docsPerSecond() { * Defines the initial page size to use for the composite aggregation for each * checkpoint. If circuit breaker exceptions occur, the page size is dynamically * adjusted to a lower value. The minimum value is 10 and the maximum is 10,000. - * + *

* API name: {@code max_page_search_size} */ @Nullable @@ -145,7 +145,7 @@ public static class Builder implements ObjectBuilder { * (default) or as millis since epoch. epoch_millis has been the default for * transforms created before version 7.11. For compatible output set this to * true. - * + *

* API name: {@code dates_as_epoch_millis} */ public Builder datesAsEpochMillis(@Nullable Boolean value) { @@ -157,7 +157,7 @@ public Builder datesAsEpochMillis(@Nullable Boolean value) { * Specifies a limit on the number of input documents per second. This setting * throttles the transform by adding a wait time between search requests. The * default value is null, which disables throttling. - * + *

* API name: {@code docs_per_second} */ public Builder docsPerSecond(@Nullable Number value) { @@ -169,7 +169,7 @@ public Builder docsPerSecond(@Nullable Number value) { * Defines the initial page size to use for the composite aggregation for each * checkpoint. If circuit breaker exceptions occur, the page size is dynamically * adjusted to a lower value. The minimum value is 10 and the maximum is 10,000. - * + *

* API name: {@code max_page_search_size} */ public Builder maxPageSearchSize(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeSync.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeSync.java index 9e9635f4f..77157bbba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeSync.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/TimeSync.java @@ -54,7 +54,7 @@ protected TimeSync(Builder builder) { /** * The time delay between the current time and the latest input data time. - * + *

* API name: {@code delay} */ @Nullable @@ -64,7 +64,7 @@ public JsonValue delay() { /** * The date field that is used to identify new documents in the source. - * + *

* API name: {@code field} */ public String field() { @@ -107,7 +107,7 @@ public static class Builder implements ObjectBuilder { /** * The time delay between the current time and the latest input data time. - * + *

* API name: {@code delay} */ public Builder delay(@Nullable JsonValue value) { @@ -117,7 +117,7 @@ public Builder delay(@Nullable JsonValue value) { /** * The date field that is used to identify new documents in the source. - * + *

* API name: {@code field} */ public Builder field(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java index 2e4819fd2..73dce01cd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/transform/UpdateTransformRequest.java @@ -50,7 +50,7 @@ protected UpdateTransformRequest(Builder builder) { /** * Auto generated - missing in the input spec - * + *

* API name: {@code transform_id} */ @Nullable @@ -71,7 +71,7 @@ public static class Builder extends PutTransformRequest.AbstractBuilder /** * Auto generated - missing in the input spec - * + *

* API name: {@code transform_id} */ public Builder transformId(@Nullable String value) { From 7b1566a0db48b84b2068858bfcbea6e8c0cb787b Mon Sep 17 00:00:00 2001 From: Sylvain Wallez Date: Thu, 9 Sep 2021 13:00:53 +0200 Subject: [PATCH 15/27] Update to latest spec --- .../ElasticsearchAsyncClient.java | 35 + .../elasticsearch/ElasticsearchClient.java | 35 + .../elasticsearch/_global/BulkRequest.java | 84 +- .../_global/ClearScrollRequest.java | 6 + .../elasticsearch/_global/CountRequest.java | 148 +- .../elasticsearch/_global/CreateRequest.java | 64 +- .../_global/DeleteByQueryRequest.java | 243 +- .../DeleteByQueryRethrottleRequest.java | 10 + .../DeleteByQueryRethrottleResponse.java | 2 +- .../elasticsearch/_global/DeleteRequest.java | 72 +- .../_global/DeleteScriptRequest.java | 12 + .../elasticsearch/_global/ExistsRequest.java | 142 +- .../_global/ExistsSourceRequest.java | 104 +- .../elasticsearch/_global/ExplainRequest.java | 117 +- .../_global/FieldCapsRequest.java | 39 + .../elasticsearch/_global/GetRequest.java | 112 +- .../elasticsearch/_global/GetResponse.java | 4 - .../_global/GetScriptRequest.java | 4 + .../_global/GetSourceRequest.java | 41 - .../elasticsearch/_global/IndexRequest.java | 135 +- .../elasticsearch/_global/MgetRequest.java | 91 +- .../elasticsearch/_global/MsearchRequest.java | 54 - .../_global/MsearchTemplateRequest.java | 89 +- .../_global/MtermvectorsRequest.java | 126 +- .../_global/OpenPointInTimeRequest.java | 13 + .../_global/PutScriptRequest.java | 16 + .../_global/RankEvalRequest.java | 10 + .../elasticsearch/_global/ReindexRequest.java | 42 + .../_global/ReindexRethrottleRequest.java | 10 + .../_global/SearchMvtRequest.java | 812 ++++++ .../_global/SearchMvtResponse.java | 111 + .../elasticsearch/_global/SearchRequest.java | 396 ++- .../_global/SearchShardsRequest.java | 55 +- .../_global/SearchTemplateRequest.java | 136 +- .../_global/TermvectorsRequest.java | 116 +- .../_global/UpdateByQueryRequest.java | 285 ++- .../UpdateByQueryRethrottleRequest.java | 10 + .../elasticsearch/_global/UpdateRequest.java | 146 +- .../elasticsearch/_global/mget/Hit.java | 10 +- .../elasticsearch/_global/mget/Operation.java | 10 +- .../_global/mtermvectors/Operation.java | 10 +- .../_global/reindex/Destination.java | 10 +- .../elasticsearch/_global/reindex/Source.java | 35 +- .../_global/search/FieldAndFormat.java | 177 ++ .../_global/search/InnerHits.java | 117 +- .../UpdateByQueryRethrottleNode.java | 2 +- .../elasticsearch/_types/InlineGet.java | 11 +- .../elasticsearch/_types/MainError.java | 67 - .../elasticsearch/_types/ScriptField.java | 32 + .../_types/WriteResponseBase.java | 37 - .../DateHistogramAggregation.java | 31 + .../aggregations/DateRangeAggregation.java | 31 + .../aggregations/FiltersAggregation.java | 30 + .../aggregations/HistogramAggregation.java | 31 + .../MovingPercentilesAggregation.java | 31 + .../_types/aggregations/RangeAggregation.java | 31 + .../RegressionInferenceOptions.java | 15 +- .../_types/query_dsl/BoostingQuery.java | 43 +- .../_types/query_dsl/BoundingBox.java | 181 ++ .../_types/query_dsl/CombinedFieldsQuery.java | 155 +- .../_types/query_dsl/CommonTermsQuery.java | 263 ++ .../_types/query_dsl/ConstantScoreQuery.java | 15 +- .../_types/query_dsl/DisMaxQuery.java | 22 +- .../_types/query_dsl/ExistsQuery.java | 15 +- .../query_dsl/FunctionScoreContainer.java | 407 +-- .../_types/query_dsl/FuzzyQuery.java | 264 ++ .../_types/query_dsl/GeoBoundingBoxQuery.java | 148 ++ .../_types/query_dsl/GeoPolygonQuery.java | 116 + .../_types/query_dsl/GeoShapeQuery.java | 116 + .../_types/query_dsl/HasChildQuery.java | 28 +- .../_types/query_dsl/HasParentQuery.java | 28 +- .../_types/query_dsl/IdsQuery.java | 41 +- .../_types/query_dsl/IntervalsAllOf.java | 256 ++ .../_types/query_dsl/IntervalsAnyOf.java | 194 ++ .../_types/query_dsl/IntervalsContainer.java | 284 +++ .../_types/query_dsl/IntervalsFilter.java | 382 +++ .../_types/query_dsl/IntervalsFuzzy.java | 270 ++ .../_types/query_dsl/IntervalsMatch.java | 277 +++ .../_types/query_dsl/IntervalsPrefix.java | 177 ++ .../_types/query_dsl/IntervalsQuery.java | 280 +++ .../_types/query_dsl/IntervalsWildcard.java | 177 ++ .../query_dsl/MatchBoolPrefixQuery.java | 357 +++ .../query_dsl/MatchPhrasePrefixQuery.java | 237 ++ .../_types/query_dsl/MatchPhraseQuery.java | 204 ++ .../_types/query_dsl/MatchQuery.java | 476 ++++ .../_types/query_dsl/MoreLikeThisQuery.java | 62 +- .../_types/query_dsl/MultiMatchQuery.java | 44 +- .../_types/query_dsl/NestedQuery.java | 28 +- .../_types/query_dsl/PercolateQuery.java | 54 +- .../_types/query_dsl/PinnedQuery.java | 62 +- .../_types/query_dsl/PrefixQuery.java | 173 ++ .../_types/query_dsl/QueryBase.java | 20 +- .../_types/query_dsl/QueryContainer.java | 380 ++- .../_types/query_dsl/QueryStringQuery.java | 14 +- .../_types/query_dsl/RankFeatureFunction.java | 37 + .../RankFeatureFunctionLogarithm.java | 116 + .../RankFeatureFunctionSaturation.java | 123 + .../query_dsl/RankFeatureFunctionSigmoid.java | 140 ++ .../_types/query_dsl/RankFeatureQuery.java | 258 ++ .../_types/query_dsl/RegexpQuery.java | 233 ++ .../_types/query_dsl/ScriptQuery.java | 15 +- .../_types/query_dsl/ScriptScoreQuery.java | 50 +- .../query_dsl/SimpleQueryStringQuery.java | 14 +- .../_types/query_dsl/SpanContainingQuery.java | 29 +- .../query_dsl/SpanFieldMaskingQuery.java | 29 +- .../_types/query_dsl/SpanFirstQuery.java | 29 +- .../_types/query_dsl/SpanMultiTermQuery.java | 24 +- .../_types/query_dsl/SpanNearQuery.java | 22 +- .../_types/query_dsl/SpanNotQuery.java | 28 +- .../_types/query_dsl/SpanOrQuery.java | 21 +- .../_types/query_dsl/SpanQuery.java | 580 ++--- .../_types/query_dsl/SpanTermQuery.java | 111 + .../_types/query_dsl/SpanWithinQuery.java | 29 +- .../_types/query_dsl/TermQuery.java | 143 ++ .../_types/query_dsl/TermsSetQuery.java | 120 + .../_types/query_dsl/WildcardQuery.java | 172 ++ .../autoscaling/AutoscalingAsyncClient.java | 80 +- .../api/autoscaling/AutoscalingClient.java | 75 +- .../elasticsearch/api/cat/CatAsyncClient.java | 65 +- .../elasticsearch/api/cat/CatClient.java | 64 +- .../elasticsearch/api/ccr/CcrAsyncClient.java | 87 +- .../elasticsearch/api/ccr/CcrClient.java | 85 +- .../api/cluster/ClusterAsyncClient.java | 53 +- .../api/cluster/ClusterClient.java | 51 +- .../DanglingIndicesAsyncClient.java | 59 +- .../DanglingIndicesClient.java | 57 +- .../api/features/FeaturesAsyncClient.java | 47 +- .../api/features/FeaturesClient.java | 47 +- .../api/indices/IndicesAsyncClient.java | 101 - .../api/indices/IndicesClient.java | 101 - .../api/ingest/IngestAsyncClient.java | 14 +- .../api/ingest/IngestClient.java | 14 +- .../api/logstash/LogstashAsyncClient.java | 41 +- .../api/logstash/LogstashClient.java | 41 +- .../api/migration/MigrationAsyncClient.java | 14 +- .../api/migration/MigrationClient.java | 14 +- .../elasticsearch/api/ml/MlAsyncClient.java | 126 +- .../elasticsearch/api/ml/MlClient.java | 124 +- .../api/monitoring/MonitoringAsyncClient.java | 8 +- .../api/monitoring/MonitoringClient.java | 7 +- .../api/rollup/RollupAsyncClient.java | 103 +- .../api/rollup/RollupClient.java | 100 +- .../SearchableSnapshotsAsyncClient.java | 46 +- .../SearchableSnapshotsClient.java | 45 +- .../api/snapshot/SnapshotAsyncClient.java | 4 +- .../api/snapshot/SnapshotClient.java | 4 +- .../elasticsearch/api/sql/SqlAsyncClient.java | 12 +- .../elasticsearch/api/sql/SqlClient.java | 12 +- .../elasticsearch/api/ssl/SslAsyncClient.java | 8 +- .../elasticsearch/api/ssl/SslClient.java | 8 +- .../api/tasks/TasksAsyncClient.java | 12 +- .../elasticsearch/api/tasks/TasksClient.java | 12 +- .../async_search/DeleteRequest.java | 4 + .../async_search/GetRequest.java | 20 + .../async_search/StatusRequest.java | 4 + .../async_search/SubmitRequest.java | 19 +- .../autoscaling/AutoscalingPolicy.java | 191 ++ .../DeleteAutoscalingPolicyRequest.java | 128 + .../DeleteAutoscalingPolicyResponse.java | 83 + .../GetAutoscalingCapacityRequest.java | 72 + .../GetAutoscalingCapacityResponse.java | 155 ++ .../GetAutoscalingPolicyRequest.java | 128 + .../GetAutoscalingPolicyResponse.java | 121 + .../PutAutoscalingPolicyRequest.java | 188 ++ .../PutAutoscalingPolicyResponse.java | 82 + .../AutoscalingCapacity.java | 153 ++ .../AutoscalingDecider.java | 185 ++ .../AutoscalingDeciders.java | 279 +++ .../AutoscalingNode.java | 115 + .../AutoscalingResources.java | 140 ++ .../elasticsearch/cat/AliasesRequest.java | 12 + .../elasticsearch/cat/AllocationRequest.java | 43 +- .../elasticsearch/cat/CountRequest.java | 6 + .../elasticsearch/cat/FielddataRequest.java | 10 + .../elasticsearch/cat/HealthRequest.java | 4 + .../elasticsearch/cat/IndicesRequest.java | 32 + .../cat/MlDataFrameAnalyticsRequest.java | 205 ++ .../cat/MlDataFrameAnalyticsResponse.java | 157 ++ .../elasticsearch/cat/MlDatafeedsRequest.java | 172 ++ .../cat/MlDatafeedsResponse.java | 155 ++ .../elasticsearch/cat/MlJobsRequest.java | 203 ++ .../elasticsearch/cat/MlJobsResponse.java | 155 ++ .../cat/MlTrainedModelsRequest.java | 266 ++ .../cat/MlTrainedModelsResponse.java | 156 ++ .../elasticsearch/cat/NodeattrsRequest.java | 71 + .../elasticsearch/cat/NodeattrsResponse.java | 155 ++ .../elasticsearch/cat/NodesRequest.java | 8 + .../elasticsearch/cat/RecoveryRequest.java | 23 + .../elasticsearch/cat/SegmentsRequest.java | 10 + .../elasticsearch/cat/ShardsRequest.java | 10 + .../elasticsearch/cat/SnapshotsRequest.java | 10 + .../elasticsearch/cat/TasksRequest.java | 13 + .../elasticsearch/cat/TemplatesRequest.java | 4 + .../elasticsearch/cat/ThreadPoolRequest.java | 9 + .../elasticsearch/cat/TransformsRequest.java | 20 + .../DataFrameAnalyticsRecord.java | 639 +++++ .../cat/ml_datafeeds/DatafeedsRecord.java | 503 ++++ .../elasticsearch/cat/ml_jobs/JobsRecord.java | 2180 +++++++++++++++++ .../TrainedModelsRecord.java | 708 ++++++ .../cat/nodeattrs/NodeAttributesRecord.java | 364 +++ .../ccr/DeleteAutoFollowPatternRequest.java | 4 + .../elasticsearch/ccr/FollowInfoRequest.java | 9 + .../elasticsearch/ccr/FollowRequest.java | 562 +++++ .../elasticsearch/ccr/FollowResponse.java | 164 ++ .../elasticsearch/ccr/FollowStatsRequest.java | 156 ++ .../ccr/FollowStatsResponse.java | 156 ++ .../ccr/ForgetFollowerRequest.java | 281 +++ .../ccr/ForgetFollowerResponse.java | 124 + .../ccr/PauseAutoFollowPatternRequest.java | 6 + .../elasticsearch/ccr/PauseFollowRequest.java | 128 + .../ccr/PauseFollowResponse.java | 81 + .../ccr/PutAutoFollowPatternRequest.java | 4 + .../ccr/ResumeAutoFollowPatternRequest.java | 6 + .../ccr/ResumeFollowRequest.java | 464 ++++ .../ccr/ResumeFollowResponse.java | 82 + .../elasticsearch/ccr/UnfollowRequest.java | 128 + .../elasticsearch/ccr/UnfollowResponse.java | 81 + .../cluster/AllocationExplainResponse.java | 30 + .../DeleteComponentTemplateRequest.java | 12 + .../DeleteVotingConfigExclusionsRequest.java | 89 +- .../DeleteVotingConfigExclusionsResponse.java | 84 +- .../ExistsComponentTemplateRequest.java | 165 +- .../ExistsComponentTemplateResponse.java | 84 +- .../cluster/GetComponentTemplateRequest.java | 14 + .../cluster/GetSettingsRequest.java | 16 + .../elasticsearch/cluster/HealthRequest.java | 6 + .../cluster/PendingTasksRequest.java | 10 + .../PostVotingConfigExclusionsRequest.java | 240 ++ .../PostVotingConfigExclusionsResponse.java | 45 + .../cluster/PutComponentTemplateRequest.java | 14 + .../cluster/PutSettingsRequest.java | 12 + .../cluster/RemoteInfoRequest.java | 84 +- .../cluster/RemoteInfoResponse.java | 8 +- .../elasticsearch/cluster/StateRequest.java | 59 + .../elasticsearch/cluster/StatsRequest.java | 40 +- .../DeleteDanglingIndexRequest.java | 216 ++ .../DeleteDanglingIndexResponse.java | 82 + .../ImportDanglingIndexRequest.java | 216 ++ .../ImportDanglingIndexResponse.java | 82 + .../ListDanglingIndicesRequest.java | 72 + .../ListDanglingIndicesResponse.java | 159 ++ .../list_dangling_indices/DanglingIndex.java | 216 ++ .../enrich/DeletePolicyRequest.java | 4 + .../enrich/ExecutePolicyRequest.java | 8 + .../enrich/GetPolicyRequest.java | 6 + .../enrich/PutPolicyRequest.java | 4 + .../enrich/stats/ExecutingPolicy.java | 2 +- .../elasticsearch/eql/SearchRequest.java | 4 + .../elasticsearch/features/Feature.java | 139 ++ .../features/GetFeaturesRequest.java | 131 +- .../features/GetFeaturesResponse.java | 67 +- .../features/ResetFeaturesRequest.java | 132 +- .../features/ResetFeaturesResponse.java | 67 +- .../elasticsearch/graph/ExploreRequest.java | 82 +- .../ilm/DeleteLifecycleRequest.java | 34 +- .../ilm/ExplainLifecycleRequest.java | 14 + .../ilm/GetLifecycleRequest.java | 30 +- .../elasticsearch/ilm/MoveToStepRequest.java | 4 + .../ilm/PutLifecycleRequest.java | 38 +- .../ilm/RemovePolicyRequest.java | 4 + .../elasticsearch/ilm/RetryRequest.java | 6 + .../elasticsearch/ilm/StartRequest.java | 90 +- .../elasticsearch/ilm/StopRequest.java | 90 +- .../indices/AddBlockRequest.java | 36 + .../clients/elasticsearch/indices/Alias.java | 32 +- .../elasticsearch/indices/AnalyzeRequest.java | 4 + .../indices/ClearCacheRequest.java | 47 + .../elasticsearch/indices/CloneRequest.java | 22 + .../elasticsearch/indices/CloseRequest.java | 38 + .../indices/CreateDataStreamRequest.java | 4 + .../elasticsearch/indices/CreateRequest.java | 16 + .../indices/DataStreamsStatsRequest.java | 33 +- .../indices/DeleteAliasRequest.java | 26 + .../indices/DeleteDataStreamRequest.java | 6 + .../indices/DeleteIndexTemplateRequest.java | 4 + .../elasticsearch/indices/DeleteRequest.java | 33 + .../indices/DeleteTemplateRequest.java | 12 + .../indices/ExistsAliasRequest.java | 38 + .../elasticsearch/indices/ExistsRequest.java | 36 + .../indices/ExistsTemplateRequest.java | 20 + .../indices/ExistsTypeRequest.java | 41 + .../elasticsearch/indices/FlushRequest.java | 49 + .../indices/ForcemergeRequest.java | 43 + .../elasticsearch/indices/FreezeRequest.java | 36 + .../indices/GetAliasRequest.java | 38 + .../indices/GetDataStreamRequest.java | 12 + .../indices/GetFieldMappingRequest.java | 109 +- .../indices/GetMappingRequest.java | 97 +- .../elasticsearch/indices/GetRequest.java | 6 + .../indices/GetSettingsRequest.java | 53 + .../indices/GetTemplateRequest.java | 20 + .../elasticsearch/indices/IndexSettings.java | 16 - .../indices/MigrateToDataStreamRequest.java | 4 + .../elasticsearch/indices/OpenRequest.java | 38 + .../indices/PromoteDataStreamRequest.java | 4 + .../indices/PutAliasRequest.java | 51 +- .../indices/PutMappingRequest.java | 137 +- .../indices/PutSettingsRequest.java | 47 + .../indices/PutTemplateRequest.java | 14 + .../indices/RecoveryRequest.java | 17 + .../elasticsearch/indices/RefreshRequest.java | 29 + .../indices/ReloadSearchAnalyzersRequest.java | 26 + .../indices/ResolveIndexRequest.java | 12 + .../indices/RolloverRequest.java | 28 + .../indices/SegmentsRequest.java | 33 + .../indices/ShardStoresRequest.java | 38 + .../elasticsearch/indices/ShrinkRequest.java | 22 + .../indices/SimulateIndexTemplateRequest.java | 8 +- .../indices/SimulateTemplateResponse.java | 34 +- .../elasticsearch/indices/SplitRequest.java | 22 + .../elasticsearch/indices/StatsRequest.java | 85 + .../indices/UnfreezeRequest.java | 36 + .../indices/UpdateAliasesRequest.java | 8 + .../indices/ValidateQueryRequest.java | 82 + .../indices/recovery/RecoveryBytes.java | 61 + .../simulate_template/Overlapping.java | 167 ++ .../indices/simulate_template/Template.java | 290 +++ .../ingest/DeletePipelineRequest.java | 12 + .../ingest/GetPipelineRequest.java | 12 + .../ingest/PutPipelineRequest.java | 112 + .../elasticsearch/ingest/SimulateRequest.java | 311 +++ .../ingest/SimulateResponse.java | 157 ++ .../ingest/simulate/Document.java | 177 ++ .../ingest/simulate/DocumentSimulation.java | 308 +++ .../elasticsearch/ingest/simulate/Ingest.java | 146 ++ .../ingest/simulate/PipelineSimulation.java | 299 +++ .../elasticsearch/license/GetRequest.java | 12 + .../elasticsearch/license/PostRequest.java | 4 + .../license/PostStartBasicRequest.java | 4 + .../license/PostStartTrialRequest.java | 4 + .../logstash/DeletePipelineRequest.java | 129 + .../logstash/DeletePipelineResponse.java | 45 + .../logstash/GetPipelineRequest.java | 153 ++ .../logstash/GetPipelineResponse.java | 145 ++ .../elasticsearch/logstash/Pipeline.java | 250 ++ .../logstash/PipelineMetadata.java | 139 ++ .../logstash/PipelineSettings.java | 261 ++ .../logstash/PutPipelineRequest.java | 188 ++ .../logstash/PutPipelineResponse.java | 45 + .../migration/DeprecationsRequest.java | 138 ++ .../migration/DeprecationsResponse.java | 333 +++ .../migration/deprecations/Deprecation.java | 192 ++ .../elasticsearch/ml/AnalysisConfig.java | 276 ++- .../elasticsearch/ml/AnalysisLimits.java | 65 +- .../ml/CategorizationAnalyzer.java | 140 +- .../elasticsearch/ml/ChunkingConfig.java | 18 + .../elasticsearch/ml/CloseJobRequest.java | 18 + .../elasticsearch/ml/DataDescription.java | 30 + .../elasticsearch/ml/DatafeedConfig.java | 937 +++++++ .../elasticsearch/ml/DataframeAnalysis.java | 647 +++-- .../ml/DataframeAnalysisClassification.java | 16 + .../ml/DataframeAnalysisContainer.java | 62 +- .../ml/DataframeAnalysisOutlierDetection.java | 150 +- .../ml/DataframeAnalysisRegression.java | 14 + .../ml/DataframeAnalyticsDestination.java | 4 +- .../ml/DataframeAnalyticsSource.java | 82 +- .../ml/DelayedDataCheckConfig.java | 16 + .../ml/DeleteCalendarEventRequest.java | 8 + .../ml/DeleteCalendarJobRequest.java | 8 + .../ml/DeleteCalendarRequest.java | 4 + .../ml/DeleteDataFrameAnalyticsRequest.java | 14 + .../ml/DeleteDatafeedRequest.java | 8 + .../elasticsearch/ml/DeleteFilterRequest.java | 4 + .../ml/DeleteForecastRequest.java | 20 + .../elasticsearch/ml/DeleteJobRequest.java | 12 + .../ml/DeleteModelSnapshotRequest.java | 8 + .../ml/DeleteTrainedModelAliasRequest.java | 8 + .../ml/DeleteTrainedModelRequest.java | 4 + .../elasticsearch/ml/DetectionRule.java | 33 + .../clients/elasticsearch/ml/Detector.java | 140 +- .../clients/elasticsearch/ml/FilterRef.java | 25 +- .../elasticsearch/ml/FlushJobRequest.java | 10 + .../elasticsearch/ml/ForecastRequest.java | 220 ++ .../elasticsearch/ml/ForecastResponse.java | 114 + .../elasticsearch/ml/GetBucketsRequest.java | 16 + .../ml/GetCalendarEventsRequest.java | 8 + .../ml/GetCategoriesRequest.java | 8 + .../ml/GetDataFrameAnalyticsRequest.java | 8 + .../ml/GetDataFrameAnalyticsStatsRequest.java | 8 + .../ml/GetDatafeedStatsRequest.java | 12 + .../elasticsearch/ml/GetDatafeedsRequest.java | 16 + .../elasticsearch/ml/GetFiltersRequest.java | 12 + .../elasticsearch/ml/GetJobStatsRequest.java | 10 + .../elasticsearch/ml/GetJobsRequest.java | 22 + .../ml/GetOverallBucketsRequest.java | 6 + .../elasticsearch/ml/GetRecordsRequest.java | 442 ++++ .../elasticsearch/ml/GetRecordsResponse.java | 181 ++ .../ml/GetTrainedModelsRequest.java | 20 +- .../ml/GetTrainedModelsStatsRequest.java | 20 +- .../elastic/clients/elasticsearch/ml/Job.java | 491 ++-- .../clients/elasticsearch/ml/JobBlocked.java | 146 ++ .../clients/elasticsearch/ml/JobConfig.java | 669 +++++ .../elasticsearch/ml/ModelPlotConfig.java | 86 +- .../elasticsearch/ml/OpenJobRequest.java | 4 + .../ml/PerPartitionCategorization.java | 14 +- .../ml/PostCalendarEventsRequest.java | 7 +- .../elasticsearch/ml/PostDataRequest.java | 279 +++ .../elasticsearch/ml/PostDataResponse.java | 455 ++++ .../ml/PreviewDatafeedRequest.java | 32 +- .../elasticsearch/ml/PutCalendarRequest.java | 4 + .../ml/PutDataFrameAnalyticsRequest.java | 349 +-- .../elasticsearch/ml/PutDatafeedRequest.java | 24 + .../elasticsearch/ml/PutFilterRequest.java | 4 + .../elasticsearch/ml/PutJobRequest.java | 336 ++- .../elasticsearch/ml/PutJobResponse.java | 191 +- .../ml/PutTrainedModelRequest.java | 332 ++- .../ml/PutTrainedModelResponse.java | 47 +- .../elasticsearch/ml/ResetJobRequest.java | 162 ++ .../elasticsearch/ml/ResetJobResponse.java | 81 + .../ml/RevertModelSnapshotRequest.java | 8 + .../elasticsearch/ml/RuleCondition.java | 20 + .../ml/SetUpgradeModeRequest.java | 8 + .../ml/StartDataFrameAnalyticsRequest.java | 4 + .../ml/StartDatafeedRequest.java | 4 + .../ml/StartDatafeedResponse.java | 39 +- .../ml/StopDataFrameAnalyticsRequest.java | 8 + .../elasticsearch/ml/StopDatafeedRequest.java | 10 + .../elasticsearch/ml/TrainedModelConfig.java | 13 +- .../elasticsearch/ml/UpdateFilterRequest.java | 4 + .../ml/UpdateModelSnapshotRequest.java | 8 + .../elasticsearch/ml/ValidateRequest.java | 389 +++ .../elasticsearch/ml/ValidateResponse.java | 81 + .../ConfusionMatrixThreshold.java | 204 ++ .../DataframeOutlierDetectionSummary.java | 22 +- .../ml/put_trained_model/AggregateOutput.java | 239 ++ .../ml/put_trained_model/Definition.java | 206 ++ .../ml/put_trained_model/Ensemble.java | 337 +++ .../FrequencyEncodingPreprocessor.java | 186 ++ .../ml/put_trained_model/Input.java | 143 ++ .../OneHotEncodingPreprocessor.java | 160 ++ .../ml/put_trained_model/Preprocessor.java | 194 ++ .../TargetMeanEncodingPreprocessor.java | 210 ++ .../ml/put_trained_model/TrainedModel.java | 229 ++ .../put_trained_model/TrainedModelTree.java | 296 +++ .../TrainedModelTreeNode.java | 360 +++ .../ml/put_trained_model/Weights.java | 115 + .../elasticsearch/monitoring/BulkRequest.java | 199 +- .../monitoring/BulkResponse.java | 121 +- .../nodes/HotThreadsRequest.java | 113 +- .../elasticsearch/nodes/InfoRequest.java | 33 +- .../nodes/ReloadSecureSettingsRequest.java | 46 +- .../elasticsearch/nodes/StatsRequest.java | 47 +- .../elasticsearch/nodes/UsageRequest.java | 53 +- .../clients/elasticsearch/package-info.java | 27 + .../rollup/DeleteJobRequest.java | 128 + .../rollup/DeleteJobResponse.java | 161 ++ .../elasticsearch/rollup/GetJobsRequest.java | 138 ++ .../elasticsearch/rollup/GetJobsResponse.java | 157 ++ .../rollup/GetRollupCapsRequest.java | 138 ++ .../rollup/GetRollupCapsResponse.java | 87 + .../rollup/GetRollupIndexCapsRequest.java | 128 + .../rollup/GetRollupIndexCapsResponse.java | 87 + .../elasticsearch/rollup/PutJobRequest.java | 388 +++ .../elasticsearch/rollup/PutJobResponse.java | 81 + .../elasticsearch/rollup/RollupRequest.java | 114 +- .../elasticsearch/rollup/RollupResponse.java | 38 +- .../rollup/RollupSearchRequest.java | 25 + .../elasticsearch/rollup/StartJobRequest.java | 129 + .../rollup/StartJobResponse.java | 115 + .../elasticsearch/rollup/StopJobRequest.java | 197 ++ .../elasticsearch/rollup/StopJobResponse.java | 115 + .../rollup/delete_job/TaskFailure.java | 196 ++ .../rollup/delete_job/TaskFailureReason.java | 139 ++ .../rollup/get_jobs/RollupJob.java | 184 ++ .../get_jobs/RollupJobConfiguration.java | 337 +++ .../rollup/get_jobs/RollupJobStats.java | 379 +++ .../rollup/get_jobs/RollupJobStatus.java | 198 ++ .../get_rollup_caps/RollupCapabilities.java | 159 ++ .../RollupCapabilitySummary.java | 215 ++ .../IndexCapabilities.java | 156 ++ .../RollupJobSummary.java | 213 ++ .../RollupJobSummaryField.java | 178 ++ .../ClearCacheRequest.java | 26 + .../searchable_snapshots/MountRequest.java | 22 + .../searchable_snapshots/StatsRequest.java | 135 +- .../searchable_snapshots/StatsResponse.java | 50 +- .../security/ApplicationPrivileges.java | 19 + .../security/ChangePasswordRequest.java | 14 + .../security/ClearApiKeyCacheRequest.java | 14 +- .../ClearCachedPrivilegesRequest.java | 4 + .../security/ClearCachedRealmsRequest.java | 12 + .../security/ClearCachedRolesRequest.java | 6 + .../ClearCachedServiceTokensRequest.java | 14 + .../security/CreateApiKeyRequest.java | 10 + .../security/CreateServiceTokenRequest.java | 12 + .../security/DeletePrivilegesRequest.java | 18 + .../security/DeleteRoleMappingRequest.java | 14 + .../security/DeleteRoleRequest.java | 14 + .../security/DeleteServiceTokenRequest.java | 22 + .../security/DeleteUserRequest.java | 14 + .../security/DisableUserRequest.java | 14 + .../security/EnableUserRequest.java | 14 + .../security/GetApiKeyRequest.java | 20 + .../security/GetPrivilegesRequest.java | 8 + .../security/GetRoleMappingRequest.java | 4 + .../security/GetRoleRequest.java | 4 + .../security/GetServiceAccountsRequest.java | 8 + .../GetServiceCredentialsRequest.java | 8 + .../GetServiceCredentialsResponse.java | 97 +- .../security/GetUserPrivilegesResponse.java | 24 +- .../security/GlobalPrivilege.java | 123 + .../security/HasPrivilegesRequest.java | 4 + .../security/IndicesPrivileges.java | 46 + .../security/PutPrivilegesRequest.java | 10 + .../security/PutRoleMappingRequest.java | 14 + .../security/PutRoleRequest.java | 76 + .../security/PutUserRequest.java | 14 + .../get_service_accounts/RoleDescriptor.java | 26 +- .../NodesCredentials.java | 195 ++ .../NodesCredentialsFileToken.java | 143 ++ .../shutdown/DeleteNodeRequest.java | 68 +- .../shutdown/DeleteNodeResponse.java | 52 +- .../shutdown/GetNodeRequest.java | 91 +- .../shutdown/GetNodeResponse.java | 68 +- .../shutdown/PutNodeRequest.java | 68 +- .../shutdown/PutNodeResponse.java | 52 +- .../shutdown/get_node/NodeShutdownStatus.java | 306 +++ .../get_node/PersistentTaskStatus.java | 116 + .../shutdown/get_node/PluginsStatus.java | 115 + .../get_node/ShardMigrationStatus.java | 116 + .../elasticsearch/slm/Configuration.java | 245 +- .../slm/DeleteLifecycleRequest.java | 4 + .../slm/ExecuteLifecycleRequest.java | 4 + .../slm/GetLifecycleRequest.java | 6 + .../clients/elasticsearch/slm/Policy.java | 11 +- .../slm/PutLifecycleRequest.java | 118 +- .../clients/elasticsearch/slm/Retention.java | 18 + .../snapshot/CleanupRepositoryRequest.java | 12 + .../elasticsearch/snapshot/CloneRequest.java | 16 + .../snapshot/CreateRepositoryRequest.java | 16 + .../elasticsearch/snapshot/CreateRequest.java | 147 ++ .../snapshot/DeleteRepositoryRequest.java | 17 + .../elasticsearch/snapshot/DeleteRequest.java | 12 + .../snapshot/GetRepositoryRequest.java | 16 + .../elasticsearch/snapshot/GetRequest.java | 51 + .../elasticsearch/snapshot/GetResponse.java | 62 + .../snapshot/RestoreRequest.java | 16 + .../elasticsearch/snapshot/StatusRequest.java | 20 + .../snapshot/VerifyRepositoryRequest.java | 12 + .../elasticsearch/sql/QueryRequest.java | 4 + .../ssl/CertificatesRequest.java | 72 + .../ssl/CertificatesResponse.java | 156 ++ .../certificates/CertificateInformation.java | 268 ++ .../elasticsearch/tasks/CancelRequest.java | 319 +++ .../elasticsearch/tasks/CancelResponse.java | 222 ++ .../elasticsearch/tasks/GetRequest.java | 191 ++ .../elasticsearch/tasks/GetResponse.java | 223 ++ .../clients/elasticsearch/tasks/Info.java | 486 ++++ .../elasticsearch/tasks/ListRequest.java | 359 +++ .../elasticsearch/tasks/ListResponse.java | 271 ++ .../clients/elasticsearch/tasks/State.java | 413 ++++ .../clients/elasticsearch/tasks/Status.java | 580 +++++ .../tasks/TaskExecutingNode.java | 112 + .../text_structure/FindStructureRequest.java | 4 + .../transform/DeleteTransformRequest.java | 12 + .../transform/GetTransformRequest.java | 24 + .../transform/GetTransformStatsRequest.java | 20 + .../transform/PreviewTransformRequest.java | 50 +- .../transform/StartTransformRequest.java | 8 + .../transform/StopTransformRequest.java | 32 + .../watcher/AckWatchRequest.java | 10 + .../clients/elasticsearch/watcher/Action.java | 37 + .../elasticsearch/watcher/ActionWebhook.java | 140 ++ .../watcher/ActivateWatchRequest.java | 4 + .../watcher/DeactivateWatchRequest.java | 4 + .../watcher/DeleteWatchRequest.java | 4 + .../watcher/ExecuteWatchRequest.java | 8 + .../watcher/GetWatchRequest.java | 4 + .../clients/elasticsearch/watcher/Index.java | 31 + .../elasticsearch/watcher/IndicesOptions.java | 43 +- .../elasticsearch/watcher/Logging.java | 46 +- .../watcher/PutWatchRequest.java | 18 + .../elasticsearch/watcher/QueryWatch.java | 252 ++ .../watcher/QueryWatchesRequest.java | 245 +- .../watcher/QueryWatchesResponse.java | 90 +- .../watcher/ScheduleContainer.java | 9 +- .../elasticsearch/watcher/StatsRequest.java | 10 + .../elasticsearch/xpack/InfoRequest.java | 9 + .../elasticsearch/xpack/UsageRequest.java | 4 + 579 files changed, 52408 insertions(+), 6418 deletions(-) create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchMvtRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchMvtResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/FieldAndFormat.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CommonTermsQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FuzzyQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoBoundingBoxQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoPolygonQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsContainer.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilter.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunction.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionLogarithm.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSaturation.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSigmoid.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RegexpQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanTermQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsSetQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/AutoscalingPolicy.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingCapacity.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDecider.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDeciders.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingNode.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingResources.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodeattrs/NodeAttributesRecord.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/list_dangling_indices/DanglingIndex.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/features/Feature.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Overlapping.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Template.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/SimulateResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Document.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/DocumentSimulation.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/Ingest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ingest/simulate/PipelineSimulation.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/DeletePipelineResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/GetPipelineResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/Pipeline.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineMetadata.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PipelineSettings.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/logstash/PutPipelineResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/migration/DeprecationsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/migration/deprecations/Deprecation.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/DatafeedConfig.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ForecastResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/GetRecordsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobBlocked.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/JobConfig.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/PostDataResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ResetJobResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/ValidateResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/evaluate_data_frame/ConfusionMatrixThreshold.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/AggregateOutput.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Definition.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Ensemble.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/FrequencyEncodingPreprocessor.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Input.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/OneHotEncodingPreprocessor.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Preprocessor.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TargetMeanEncodingPreprocessor.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModel.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTree.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/TrainedModelTreeNode.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ml/put_trained_model/Weights.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/package-info.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/DeleteJobResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetJobsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupCapsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/GetRollupIndexCapsResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/PutJobResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StartJobResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/StopJobResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/delete_job/TaskFailure.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/delete_job/TaskFailureReason.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJob.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobConfiguration.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobStats.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_jobs/RollupJobStatus.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupCapabilities.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_caps/RollupCapabilitySummary.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/IndexCapabilities.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/RollupJobSummary.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/rollup/get_rollup_index_caps/RollupJobSummaryField.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/GlobalPrivilege.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentials.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/security/get_service_credentials/NodesCredentialsFileToken.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/NodeShutdownStatus.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PersistentTaskStatus.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/PluginsStatus.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/shutdown/get_node/ShardMigrationStatus.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/CertificatesResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/ssl/certificates/CertificateInformation.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/CancelResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/GetResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/Info.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListRequest.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/ListResponse.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/State.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/Status.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/tasks/TaskExecutingNode.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/ActionWebhook.java create mode 100644 java-client/src/main/java/co/elastic/clients/elasticsearch/watcher/QueryWatch.java diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java index 22b3436dd..b73048fc1 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchAsyncClient.java @@ -85,6 +85,8 @@ import co.elastic.clients.elasticsearch._global.ReindexRethrottleResponse; import co.elastic.clients.elasticsearch._global.ScriptsPainlessExecuteRequest; import co.elastic.clients.elasticsearch._global.ScriptsPainlessExecuteResponse; +import co.elastic.clients.elasticsearch._global.SearchMvtRequest; +import co.elastic.clients.elasticsearch._global.SearchMvtResponse; import co.elastic.clients.elasticsearch._global.SearchRequest; import co.elastic.clients.elasticsearch._global.SearchResponse; import co.elastic.clients.elasticsearch._global.SearchShardsRequest; @@ -1255,6 +1257,39 @@ public final CompletableFuture> search( return search(fn.apply(new SearchRequest.Builder()).build(), tDocumentClass); } + // ----- Endpoint: search_mvt + + /** + * Searches a vector tile for geospatial values. Returns results as a binary + * Mapbox vector tile. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture searchMvt(SearchMvtRequest request) throws IOException { + return this.transport.performRequestAsync(request, SearchMvtRequest.ENDPOINT, this.requestOptions); + } + + /** + * Searches a vector tile for geospatial values. Returns results as a binary + * Mapbox vector tile. + * + * @param fn + * a function that initializes a freshly created builder. This + * function can either return its builder argument after having set + * its properties or return another builder. + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture searchMvt( + Function> fn) throws IOException { + return searchMvt(fn.apply(new SearchMvtRequest.Builder()).build()); + } + // ----- Endpoint: search_shards /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java index 8ee6d48f5..f63181a3a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java @@ -85,6 +85,8 @@ import co.elastic.clients.elasticsearch._global.ReindexRethrottleResponse; import co.elastic.clients.elasticsearch._global.ScriptsPainlessExecuteRequest; import co.elastic.clients.elasticsearch._global.ScriptsPainlessExecuteResponse; +import co.elastic.clients.elasticsearch._global.SearchMvtRequest; +import co.elastic.clients.elasticsearch._global.SearchMvtResponse; import co.elastic.clients.elasticsearch._global.SearchRequest; import co.elastic.clients.elasticsearch._global.SearchResponse; import co.elastic.clients.elasticsearch._global.SearchShardsRequest; @@ -1248,6 +1250,39 @@ public final SearchResponse search( return search(fn.apply(new SearchRequest.Builder()).build(), tDocumentClass); } + // ----- Endpoint: search_mvt + + /** + * Searches a vector tile for geospatial values. Returns results as a binary + * Mapbox vector tile. + * + * @see Documentation + * on elastic.co + */ + + public SearchMvtResponse searchMvt(SearchMvtRequest request) throws IOException { + return this.transport.performRequest(request, SearchMvtRequest.ENDPOINT, this.requestOptions); + } + + /** + * Searches a vector tile for geospatial values. Returns results as a binary + * Mapbox vector tile. + * + * @param fn + * a function that initializes a freshly created builder. This + * function can either return its builder argument after having set + * its properties or return another builder. + * @see Documentation + * on elastic.co + */ + + public final SearchMvtResponse searchMvt(Function> fn) + throws IOException { + return searchMvt(fn.apply(new SearchMvtRequest.Builder()).build()); + } + // ----- Endpoint: search_shards /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/BulkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/BulkRequest.java index 5e90fe292..0f4472023 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/BulkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/BulkRequest.java @@ -63,7 +63,7 @@ public final class BulkRequest extends RequestBase implements ToJsonp { private final JsonValue refresh; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final JsonValue source; @@ -109,8 +109,7 @@ protected BulkRequest(Builder builder) { } /** - * A comma-separated list of index names to search; use _all or - * empty string to perform the operation on all indices + * Default index for items which don't provide one *

* API name: {@code index} */ @@ -120,8 +119,7 @@ public String index() { } /** - * A comma-separated list of document types to search; leave empty to perform - * the operation on all types + * Default document type for items which don't provide one *

* API name: {@code type} */ @@ -131,6 +129,8 @@ public String type() { } /** + * The pipeline id to preprocess incoming documents with + *

* API name: {@code pipeline} */ @Nullable @@ -139,6 +139,11 @@ public String pipeline() { } /** + * If true then refresh the affected shards to make this operation + * visible to search, if wait_for then wait for a refresh to make + * this operation visible to search, if false (the default) then do + * nothing with refreshes. + *

* API name: {@code refresh} */ @Nullable @@ -147,14 +152,19 @@ public JsonValue refresh() { } /** + * Specific routing value + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * True or false to return the _source field or not, or default list of fields + * to return, can be overridden on each sub-request + *

* API name: {@code _source} */ @Nullable @@ -163,6 +173,9 @@ public JsonValue source() { } /** + * Default list of fields to exclude from the returned _source field, can be + * overridden on each sub-request + *

* API name: {@code _source_excludes} */ @Nullable @@ -171,6 +184,9 @@ public List sourceExcludes() { } /** + * Default list of fields to extract and return from the _source field, can be + * overridden on each sub-request + *

* API name: {@code _source_includes} */ @Nullable @@ -179,6 +195,8 @@ public List sourceIncludes() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -187,6 +205,12 @@ public JsonValue timeout() { } /** + * Sets the number of shard copies that must be active before proceeding with + * the bulk operation. Defaults to 1, meaning the primary shard only. Set to + * all for all shard copies, otherwise set to any non-negative + * value less than or equal to the total number of copies for the shard (number + * of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -195,6 +219,8 @@ public JsonValue waitForActiveShards() { } /** + * Sets require_alias for all incoming documents. Defaults to unset (false) + *

* API name: {@code require_alias} */ @Nullable @@ -243,7 +269,7 @@ public static class Builder implements ObjectBuilder implements ObjectBuilder tSourceSerializer; /** - * A comma-separated list of index names to search; use _all or - * empty string to perform the operation on all indices + * Default index for items which don't provide one *

* API name: {@code index} */ @@ -280,8 +305,7 @@ public Builder index(@Nullable String value) { } /** - * A comma-separated list of document types to search; leave empty to perform - * the operation on all types + * Default document type for items which don't provide one *

* API name: {@code type} */ @@ -291,6 +315,8 @@ public Builder type(@Nullable String value) { } /** + * The pipeline id to preprocess incoming documents with + *

* API name: {@code pipeline} */ public Builder pipeline(@Nullable String value) { @@ -299,6 +325,11 @@ public Builder pipeline(@Nullable String value) { } /** + * If true then refresh the affected shards to make this operation + * visible to search, if wait_for then wait for a refresh to make + * this operation visible to search, if false (the default) then do + * nothing with refreshes. + *

* API name: {@code refresh} */ public Builder refresh(@Nullable JsonValue value) { @@ -307,14 +338,19 @@ public Builder refresh(@Nullable JsonValue value) { } /** + * Specific routing value + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * True or false to return the _source field or not, or default list of fields + * to return, can be overridden on each sub-request + *

* API name: {@code _source} */ public Builder source(@Nullable JsonValue value) { @@ -323,6 +359,9 @@ public Builder source(@Nullable JsonValue value) { } /** + * Default list of fields to exclude from the returned _source field, can be + * overridden on each sub-request + *

* API name: {@code _source_excludes} */ public Builder sourceExcludes(@Nullable List value) { @@ -331,6 +370,9 @@ public Builder sourceExcludes(@Nullable List value) { } /** + * Default list of fields to exclude from the returned _source field, can be + * overridden on each sub-request + *

* API name: {@code _source_excludes} */ public Builder sourceExcludes(String... value) { @@ -350,6 +392,9 @@ public Builder addSourceExcludes(String value) { } /** + * Default list of fields to extract and return from the _source field, can be + * overridden on each sub-request + *

* API name: {@code _source_includes} */ public Builder sourceIncludes(@Nullable List value) { @@ -358,6 +403,9 @@ public Builder sourceIncludes(@Nullable List value) { } /** + * Default list of fields to extract and return from the _source field, can be + * overridden on each sub-request + *

* API name: {@code _source_includes} */ public Builder sourceIncludes(String... value) { @@ -377,6 +425,8 @@ public Builder addSourceIncludes(String value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -385,6 +435,12 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Sets the number of shard copies that must be active before proceeding with + * the bulk operation. Defaults to 1, meaning the primary shard only. Set to + * all for all shard copies, otherwise set to any non-negative + * value less than or equal to the total number of copies for the shard (number + * of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { @@ -393,6 +449,8 @@ public Builder waitForActiveShards(@Nullable JsonValue value) { } /** + * Sets require_alias for all incoming documents. Defaults to unset (false) + *

* API name: {@code require_alias} */ public Builder requireAlias(@Nullable Boolean value) { @@ -529,7 +587,7 @@ protected static void setupBulkRequestDeserializer( params.put("refresh", request.refresh.toString()); } if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } if (request.source != null) { params.put("_source", request.source.toString()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ClearScrollRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ClearScrollRequest.java index 3d0414796..f2735778d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ClearScrollRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ClearScrollRequest.java @@ -56,6 +56,8 @@ protected ClearScrollRequest(Builder builder) { } /** + * A comma-separated list of scroll IDs to clear + *

* API name: {@code scroll_id} */ @Nullable @@ -86,6 +88,8 @@ public static class Builder implements ObjectBuilder { private List scrollId; /** + * A comma-separated list of scroll IDs to clear + *

* API name: {@code scroll_id} */ public Builder scrollId(@Nullable List value) { @@ -94,6 +98,8 @@ public Builder scrollId(@Nullable List value) { } /** + * A comma-separated list of scroll IDs to clear + *

* API name: {@code scroll_id} */ public Builder scrollId(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/CountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/CountRequest.java index 1ad682052..a5ad86811 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/CountRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/CountRequest.java @@ -53,9 +53,6 @@ public final class CountRequest extends RequestBase implements ToJsonp { @Nullable private final List index; - @Nullable - private final List type; - @Nullable private final Boolean allowNoIndices; @@ -93,7 +90,7 @@ public final class CountRequest extends RequestBase implements ToJsonp { private final String queryOnQueryString; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final Number terminateAfter; @@ -109,7 +106,6 @@ public final class CountRequest extends RequestBase implements ToJsonp { protected CountRequest(Builder builder) { this.index = builder.index; - this.type = builder.type; this.allowNoIndices = builder.allowNoIndices; this.analyzer = builder.analyzer; this.analyzeWildcard = builder.analyzeWildcard; @@ -130,6 +126,8 @@ protected CountRequest(Builder builder) { } /** + * A comma-separated list of indices to restrict the results + *

* API name: {@code index} */ @Nullable @@ -138,14 +136,10 @@ public List index() { } /** - * API name: {@code type} - */ - @Nullable - public List type() { - return this.type; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -154,6 +148,8 @@ public Boolean allowNoIndices() { } /** + * The analyzer to use for the query string + *

* API name: {@code analyzer} */ @Nullable @@ -162,6 +158,9 @@ public String analyzer() { } /** + * Specify whether wildcard and prefix queries should be analyzed (default: + * false) + *

* API name: {@code analyze_wildcard} */ @Nullable @@ -170,6 +169,8 @@ public Boolean analyzeWildcard() { } /** + * The default operator for query string query (AND or OR) + *

* API name: {@code default_operator} */ @Nullable @@ -178,6 +179,9 @@ public JsonValue defaultOperator() { } /** + * The field to use as default where no field prefix is given in the query + * string + *

* API name: {@code df} */ @Nullable @@ -186,6 +190,9 @@ public String df() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -194,6 +201,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete, expanded or aliased indices should be ignored + * when throttled + *

* API name: {@code ignore_throttled} */ @Nullable @@ -202,6 +212,9 @@ public Boolean ignoreThrottled() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -210,6 +223,9 @@ public Boolean ignoreUnavailable() { } /** + * Specify whether format-based query failures (such as providing text to a + * numeric field) should be ignored + *

* API name: {@code lenient} */ @Nullable @@ -218,6 +234,9 @@ public Boolean lenient() { } /** + * Include only documents with a specific _score value in the + * result + *

* API name: {@code min_score} */ @Nullable @@ -226,6 +245,9 @@ public Number minScore() { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ @Nullable @@ -242,14 +264,19 @@ public String queryOnQueryString() { } /** + * A comma-separated list of specific routing values + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * The maximum count for each shard, upon reaching which the query execution + * will terminate early + *

* API name: {@code terminate_after} */ @Nullable @@ -258,6 +285,8 @@ public Number terminateAfter() { } /** + * Query in the Lucene query string syntax + *

* API name: {@code q} */ @Nullable @@ -302,9 +331,6 @@ public static class Builder implements ObjectBuilder { @Nullable private List index; - @Nullable - private List type; - @Nullable private Boolean allowNoIndices; @@ -342,7 +368,7 @@ public static class Builder implements ObjectBuilder { private String queryOnQueryString; @Nullable - private JsonValue routing; + private String routing; @Nullable private Number terminateAfter; @@ -354,6 +380,8 @@ public static class Builder implements ObjectBuilder { private QueryContainer query; /** + * A comma-separated list of indices to restrict the results + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -362,6 +390,8 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of indices to restrict the results + *

* API name: {@code index} */ public Builder index(String... value) { @@ -381,33 +411,10 @@ public Builder addIndex(String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable List value) { - this.type = value; - return this; - } - - /** - * API name: {@code type} - */ - public Builder type(String... value) { - this.type = Arrays.asList(value); - return this; - } - - /** - * Add a value to {@link #type(List)}, creating the list if needed. - */ - public Builder addType(String value) { - if (this.type == null) { - this.type = new ArrayList<>(); - } - this.type.add(value); - return this; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -416,6 +423,8 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * The analyzer to use for the query string + *

* API name: {@code analyzer} */ public Builder analyzer(@Nullable String value) { @@ -424,6 +433,9 @@ public Builder analyzer(@Nullable String value) { } /** + * Specify whether wildcard and prefix queries should be analyzed (default: + * false) + *

* API name: {@code analyze_wildcard} */ public Builder analyzeWildcard(@Nullable Boolean value) { @@ -432,6 +444,8 @@ public Builder analyzeWildcard(@Nullable Boolean value) { } /** + * The default operator for query string query (AND or OR) + *

* API name: {@code default_operator} */ public Builder defaultOperator(@Nullable JsonValue value) { @@ -440,6 +454,9 @@ public Builder defaultOperator(@Nullable JsonValue value) { } /** + * The field to use as default where no field prefix is given in the query + * string + *

* API name: {@code df} */ public Builder df(@Nullable String value) { @@ -448,6 +465,9 @@ public Builder df(@Nullable String value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -456,6 +476,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete, expanded or aliased indices should be ignored + * when throttled + *

* API name: {@code ignore_throttled} */ public Builder ignoreThrottled(@Nullable Boolean value) { @@ -464,6 +487,9 @@ public Builder ignoreThrottled(@Nullable Boolean value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -472,6 +498,9 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Specify whether format-based query failures (such as providing text to a + * numeric field) should be ignored + *

* API name: {@code lenient} */ public Builder lenient(@Nullable Boolean value) { @@ -480,6 +509,9 @@ public Builder lenient(@Nullable Boolean value) { } /** + * Include only documents with a specific _score value in the + * result + *

* API name: {@code min_score} */ public Builder minScore(@Nullable Number value) { @@ -488,6 +520,9 @@ public Builder minScore(@Nullable Number value) { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ public Builder preference(@Nullable String value) { @@ -504,14 +539,19 @@ public Builder queryOnQueryString(@Nullable String value) { } /** + * A comma-separated list of specific routing values + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * The maximum count for each shard, upon reaching which the query execution + * will terminate early + *

* API name: {@code terminate_after} */ public Builder terminateAfter(@Nullable Number value) { @@ -520,6 +560,8 @@ public Builder terminateAfter(@Nullable Number value) { } /** + * Query in the Lucene query string syntax + *

* API name: {@code q} */ public Builder q(@Nullable String value) { @@ -583,14 +625,11 @@ protected static void setupCountRequestDeserializer(DelegatingDeserializer { final int _index = 1 << 0; - final int _type = 1 << 1; int propsSet = 0; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == 0) { StringBuilder buf = new StringBuilder(); @@ -604,15 +643,6 @@ protected static void setupCountRequestDeserializer(DelegatingDeserializer v).collect(Collectors.joining(","))); - buf.append("/"); - buf.append(request.type.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/_count"); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, @@ -657,7 +687,7 @@ protected static void setupCountRequestDeserializer(DelegatingDeserializer extends RequestBase implements ToJso private final JsonValue refresh; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final JsonValue timeout; @@ -100,6 +100,8 @@ protected CreateRequest(Builder builder) { } /** + * Document ID + *

* API name: {@code id} */ public String id() { @@ -107,6 +109,8 @@ public String id() { } /** + * The name of the index + *

* API name: {@code index} */ public String index() { @@ -114,6 +118,8 @@ public String index() { } /** + * The type of the document + *

* API name: {@code type} */ @Nullable @@ -122,6 +128,8 @@ public String type() { } /** + * The pipeline id to preprocess incoming documents with + *

* API name: {@code pipeline} */ @Nullable @@ -130,6 +138,11 @@ public String pipeline() { } /** + * If true then refresh the affected shards to make this operation + * visible to search, if wait_for then wait for a refresh to make + * this operation visible to search, if false (the default) then do + * nothing with refreshes. + *

* API name: {@code refresh} */ @Nullable @@ -138,14 +151,18 @@ public JsonValue refresh() { } /** + * Specific routing value + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -154,6 +171,8 @@ public JsonValue timeout() { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ @Nullable @@ -162,6 +181,8 @@ public Number version() { } /** + * Specific version type + *

* API name: {@code version_type} */ @Nullable @@ -170,6 +191,12 @@ public JsonValue versionType() { } /** + * Sets the number of shard copies that must be active before proceeding with + * the index operation. Defaults to 1, meaning the primary shard only. Set to + * all for all shard copies, otherwise set to any non-negative + * value less than or equal to the total number of copies for the shard (number + * of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -214,7 +241,7 @@ public static class Builder implements ObjectBuilder implements ObjectBuilder tDocumentSerializer; /** + * Document ID + *

* API name: {@code id} */ public Builder id(String value) { @@ -242,6 +271,8 @@ public Builder id(String value) { } /** + * The name of the index + *

* API name: {@code index} */ public Builder index(String value) { @@ -250,6 +281,8 @@ public Builder index(String value) { } /** + * The type of the document + *

* API name: {@code type} */ public Builder type(@Nullable String value) { @@ -258,6 +291,8 @@ public Builder type(@Nullable String value) { } /** + * The pipeline id to preprocess incoming documents with + *

* API name: {@code pipeline} */ public Builder pipeline(@Nullable String value) { @@ -266,6 +301,11 @@ public Builder pipeline(@Nullable String value) { } /** + * If true then refresh the affected shards to make this operation + * visible to search, if wait_for then wait for a refresh to make + * this operation visible to search, if false (the default) then do + * nothing with refreshes. + *

* API name: {@code refresh} */ public Builder refresh(@Nullable JsonValue value) { @@ -274,14 +314,18 @@ public Builder refresh(@Nullable JsonValue value) { } /** + * Specific routing value + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -290,6 +334,8 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ public Builder version(@Nullable Number value) { @@ -298,6 +344,8 @@ public Builder version(@Nullable Number value) { } /** + * Specific version type + *

* API name: {@code version_type} */ public Builder versionType(@Nullable JsonValue value) { @@ -306,6 +354,12 @@ public Builder versionType(@Nullable JsonValue value) { } /** + * Sets the number of shard copies that must be active before proceeding with + * the index operation. Defaults to 1, meaning the primary shard only. Set to + * all for all shard copies, otherwise set to any non-negative + * value less than or equal to the total number of copies for the shard (number + * of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { @@ -424,7 +478,7 @@ protected static void setupCreateRequestDeserializer( params.put("refresh", request.refresh.toString()); } if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } if (request.timeout != null) { params.put("timeout", request.timeout.toString()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteByQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteByQueryRequest.java index ee6860158..6c735add2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteByQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteByQueryRequest.java @@ -54,9 +54,6 @@ public final class DeleteByQueryRequest extends RequestBase implements ToJsonp { private final List index; - @Nullable - private final List type; - @Nullable private final Boolean allowNoIndices; @@ -100,7 +97,7 @@ public final class DeleteByQueryRequest extends RequestBase implements ToJsonp { private final Number requestsPerSecond; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final String q; @@ -167,7 +164,6 @@ public final class DeleteByQueryRequest extends RequestBase implements ToJsonp { protected DeleteByQueryRequest(Builder builder) { this.index = Objects.requireNonNull(builder.index, "index"); - this.type = builder.type; this.allowNoIndices = builder.allowNoIndices; this.analyzer = builder.analyzer; this.analyzeWildcard = builder.analyzeWildcard; @@ -207,6 +203,9 @@ protected DeleteByQueryRequest(Builder builder) { } /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public List index() { @@ -214,14 +213,10 @@ public List index() { } /** - * API name: {@code type} - */ - @Nullable - public List type() { - return this.type; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -230,6 +225,8 @@ public Boolean allowNoIndices() { } /** + * The analyzer to use for the query string + *

* API name: {@code analyzer} */ @Nullable @@ -238,6 +235,9 @@ public String analyzer() { } /** + * Specify whether wildcard and prefix queries should be analyzed (default: + * false) + *

* API name: {@code analyze_wildcard} */ @Nullable @@ -246,6 +246,8 @@ public Boolean analyzeWildcard() { } /** + * What to do when the delete by query hits version conflicts? + *

* API name: {@code conflicts} */ @Nullable @@ -254,6 +256,8 @@ public JsonValue conflicts() { } /** + * The default operator for query string query (AND or OR) + *

* API name: {@code default_operator} */ @Nullable @@ -262,6 +266,9 @@ public JsonValue defaultOperator() { } /** + * The field to use as default where no field prefix is given in the query + * string + *

* API name: {@code df} */ @Nullable @@ -270,6 +277,9 @@ public String df() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -278,6 +288,8 @@ public JsonValue expandWildcards() { } /** + * Starting offset (default: 0) + *

* API name: {@code from} */ @Nullable @@ -286,6 +298,9 @@ public Number from() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -294,6 +309,9 @@ public Boolean ignoreUnavailable() { } /** + * Specify whether format-based query failures (such as providing text to a + * numeric field) should be ignored + *

* API name: {@code lenient} */ @Nullable @@ -302,6 +320,9 @@ public Boolean lenient() { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ @Nullable @@ -310,6 +331,8 @@ public String preference() { } /** + * Should the affected indexes be refreshed? + *

* API name: {@code refresh} */ @Nullable @@ -318,6 +341,9 @@ public Boolean refresh() { } /** + * Specify if request cache should be used for this request or not, defaults to + * index level setting + *

* API name: {@code request_cache} */ @Nullable @@ -326,6 +352,9 @@ public Boolean requestCache() { } /** + * The throttle for this request in sub-requests per second. -1 means no + * throttle. + *

* API name: {@code requests_per_second} */ @Nullable @@ -334,14 +363,18 @@ public Number requestsPerSecond() { } /** + * A comma-separated list of specific routing values + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * Query in the Lucene query string syntax + *

* API name: {@code q} */ @Nullable @@ -350,6 +383,9 @@ public String q() { } /** + * Specify how long a consistent view of the index should be maintained for + * scrolled search + *

* API name: {@code scroll} */ @Nullable @@ -358,6 +394,8 @@ public JsonValue scroll() { } /** + * Size on the scroll request powering the delete by query + *

* API name: {@code scroll_size} */ @Nullable @@ -366,6 +404,8 @@ public Number scrollSize() { } /** + * Explicit timeout for each search request. Defaults to no timeout. + *

* API name: {@code search_timeout} */ @Nullable @@ -374,6 +414,8 @@ public JsonValue searchTimeout() { } /** + * Search operation type + *

* API name: {@code search_type} */ @Nullable @@ -390,6 +432,9 @@ public Number size() { } /** + * The number of slices this task should be divided into. Defaults to 1, meaning + * the task isn't sliced into subtasks. Can be set to auto. + *

* API name: {@code slices} */ @Nullable @@ -398,6 +443,8 @@ public Number slices() { } /** + * A comma-separated list of : pairs + *

* API name: {@code sort} */ @Nullable @@ -406,6 +453,9 @@ public List sort() { } /** + * True or false to return the _source field or not, or a list of fields to + * return + *

* API name: {@code _source} */ @Nullable @@ -414,6 +464,8 @@ public JsonValue source() { } /** + * A list of fields to exclude from the returned _source field + *

* API name: {@code _source_excludes} */ @Nullable @@ -422,6 +474,8 @@ public List sourceExcludes() { } /** + * A list of fields to extract and return from the _source field + *

* API name: {@code _source_includes} */ @Nullable @@ -430,6 +484,8 @@ public List sourceIncludes() { } /** + * Specific 'tag' of the request for logging and statistical purposes + *

* API name: {@code stats} */ @Nullable @@ -438,6 +494,9 @@ public List stats() { } /** + * The maximum number of documents to collect for each shard, upon reaching + * which the query execution will terminate early. + *

* API name: {@code terminate_after} */ @Nullable @@ -446,6 +505,9 @@ public Number terminateAfter() { } /** + * Time each individual bulk request should wait for shards that are + * unavailable. + *

* API name: {@code timeout} */ @Nullable @@ -454,6 +516,8 @@ public JsonValue timeout() { } /** + * Specify whether to return document version as part of a hit + *

* API name: {@code version} */ @Nullable @@ -462,6 +526,12 @@ public Boolean version() { } /** + * Sets the number of shard copies that must be active before proceeding with + * the delete by query operation. Defaults to 1, meaning the primary shard only. + * Set to all for all shard copies, otherwise set to any + * non-negative value less than or equal to the total number of copies for the + * shard (number of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -470,6 +540,8 @@ public JsonValue waitForActiveShards() { } /** + * Should the request should block until the delete by query is complete. + *

* API name: {@code wait_for_completion} */ @Nullable @@ -541,9 +613,6 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder implements ObjectBuilder { private List index; - @Nullable - private List type; - @Nullable private Boolean allowNoIndices; @@ -587,7 +656,7 @@ public static class Builder implements ObjectBuilder { private Number requestsPerSecond; @Nullable - private JsonValue routing; + private String routing; @Nullable private String q; @@ -650,6 +719,9 @@ public static class Builder implements ObjectBuilder { private SlicedScroll slice; /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(List value) { @@ -658,6 +730,9 @@ public Builder index(List value) { } /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -677,33 +752,10 @@ public Builder addIndex(String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable List value) { - this.type = value; - return this; - } - - /** - * API name: {@code type} - */ - public Builder type(String... value) { - this.type = Arrays.asList(value); - return this; - } - - /** - * Add a value to {@link #type(List)}, creating the list if needed. - */ - public Builder addType(String value) { - if (this.type == null) { - this.type = new ArrayList<>(); - } - this.type.add(value); - return this; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -712,6 +764,8 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * The analyzer to use for the query string + *

* API name: {@code analyzer} */ public Builder analyzer(@Nullable String value) { @@ -720,6 +774,9 @@ public Builder analyzer(@Nullable String value) { } /** + * Specify whether wildcard and prefix queries should be analyzed (default: + * false) + *

* API name: {@code analyze_wildcard} */ public Builder analyzeWildcard(@Nullable Boolean value) { @@ -728,6 +785,8 @@ public Builder analyzeWildcard(@Nullable Boolean value) { } /** + * What to do when the delete by query hits version conflicts? + *

* API name: {@code conflicts} */ public Builder conflicts(@Nullable JsonValue value) { @@ -736,6 +795,8 @@ public Builder conflicts(@Nullable JsonValue value) { } /** + * The default operator for query string query (AND or OR) + *

* API name: {@code default_operator} */ public Builder defaultOperator(@Nullable JsonValue value) { @@ -744,6 +805,9 @@ public Builder defaultOperator(@Nullable JsonValue value) { } /** + * The field to use as default where no field prefix is given in the query + * string + *

* API name: {@code df} */ public Builder df(@Nullable String value) { @@ -752,6 +816,9 @@ public Builder df(@Nullable String value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -760,6 +827,8 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Starting offset (default: 0) + *

* API name: {@code from} */ public Builder from(@Nullable Number value) { @@ -768,6 +837,9 @@ public Builder from(@Nullable Number value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -776,6 +848,9 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Specify whether format-based query failures (such as providing text to a + * numeric field) should be ignored + *

* API name: {@code lenient} */ public Builder lenient(@Nullable Boolean value) { @@ -784,6 +859,9 @@ public Builder lenient(@Nullable Boolean value) { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ public Builder preference(@Nullable String value) { @@ -792,6 +870,8 @@ public Builder preference(@Nullable String value) { } /** + * Should the affected indexes be refreshed? + *

* API name: {@code refresh} */ public Builder refresh(@Nullable Boolean value) { @@ -800,6 +880,9 @@ public Builder refresh(@Nullable Boolean value) { } /** + * Specify if request cache should be used for this request or not, defaults to + * index level setting + *

* API name: {@code request_cache} */ public Builder requestCache(@Nullable Boolean value) { @@ -808,6 +891,9 @@ public Builder requestCache(@Nullable Boolean value) { } /** + * The throttle for this request in sub-requests per second. -1 means no + * throttle. + *

* API name: {@code requests_per_second} */ public Builder requestsPerSecond(@Nullable Number value) { @@ -816,14 +902,18 @@ public Builder requestsPerSecond(@Nullable Number value) { } /** + * A comma-separated list of specific routing values + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * Query in the Lucene query string syntax + *

* API name: {@code q} */ public Builder q(@Nullable String value) { @@ -832,6 +922,9 @@ public Builder q(@Nullable String value) { } /** + * Specify how long a consistent view of the index should be maintained for + * scrolled search + *

* API name: {@code scroll} */ public Builder scroll(@Nullable JsonValue value) { @@ -840,6 +933,8 @@ public Builder scroll(@Nullable JsonValue value) { } /** + * Size on the scroll request powering the delete by query + *

* API name: {@code scroll_size} */ public Builder scrollSize(@Nullable Number value) { @@ -848,6 +943,8 @@ public Builder scrollSize(@Nullable Number value) { } /** + * Explicit timeout for each search request. Defaults to no timeout. + *

* API name: {@code search_timeout} */ public Builder searchTimeout(@Nullable JsonValue value) { @@ -856,6 +953,8 @@ public Builder searchTimeout(@Nullable JsonValue value) { } /** + * Search operation type + *

* API name: {@code search_type} */ public Builder searchType(@Nullable JsonValue value) { @@ -872,6 +971,9 @@ public Builder size(@Nullable Number value) { } /** + * The number of slices this task should be divided into. Defaults to 1, meaning + * the task isn't sliced into subtasks. Can be set to auto. + *

* API name: {@code slices} */ public Builder slices(@Nullable Number value) { @@ -880,6 +982,8 @@ public Builder slices(@Nullable Number value) { } /** + * A comma-separated list of : pairs + *

* API name: {@code sort} */ public Builder sort(@Nullable List value) { @@ -888,6 +992,8 @@ public Builder sort(@Nullable List value) { } /** + * A comma-separated list of : pairs + *

* API name: {@code sort} */ public Builder sort(String... value) { @@ -907,6 +1013,9 @@ public Builder addSort(String value) { } /** + * True or false to return the _source field or not, or a list of fields to + * return + *

* API name: {@code _source} */ public Builder source(@Nullable JsonValue value) { @@ -915,6 +1024,8 @@ public Builder source(@Nullable JsonValue value) { } /** + * A list of fields to exclude from the returned _source field + *

* API name: {@code _source_excludes} */ public Builder sourceExcludes(@Nullable List value) { @@ -923,6 +1034,8 @@ public Builder sourceExcludes(@Nullable List value) { } /** + * A list of fields to exclude from the returned _source field + *

* API name: {@code _source_excludes} */ public Builder sourceExcludes(String... value) { @@ -942,6 +1055,8 @@ public Builder addSourceExcludes(String value) { } /** + * A list of fields to extract and return from the _source field + *

* API name: {@code _source_includes} */ public Builder sourceIncludes(@Nullable List value) { @@ -950,6 +1065,8 @@ public Builder sourceIncludes(@Nullable List value) { } /** + * A list of fields to extract and return from the _source field + *

* API name: {@code _source_includes} */ public Builder sourceIncludes(String... value) { @@ -969,6 +1086,8 @@ public Builder addSourceIncludes(String value) { } /** + * Specific 'tag' of the request for logging and statistical purposes + *

* API name: {@code stats} */ public Builder stats(@Nullable List value) { @@ -977,6 +1096,8 @@ public Builder stats(@Nullable List value) { } /** + * Specific 'tag' of the request for logging and statistical purposes + *

* API name: {@code stats} */ public Builder stats(String... value) { @@ -996,6 +1117,9 @@ public Builder addStats(String value) { } /** + * The maximum number of documents to collect for each shard, upon reaching + * which the query execution will terminate early. + *

* API name: {@code terminate_after} */ public Builder terminateAfter(@Nullable Number value) { @@ -1004,6 +1128,9 @@ public Builder terminateAfter(@Nullable Number value) { } /** + * Time each individual bulk request should wait for shards that are + * unavailable. + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -1012,6 +1139,8 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Specify whether to return document version as part of a hit + *

* API name: {@code version} */ public Builder version(@Nullable Boolean value) { @@ -1020,6 +1149,12 @@ public Builder version(@Nullable Boolean value) { } /** + * Sets the number of shard copies that must be active before proceeding with + * the delete by query operation. Defaults to 1, meaning the primary shard only. + * Set to all for all shard copies, otherwise set to any + * non-negative value less than or equal to the total number of copies for the + * shard (number of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { @@ -1028,6 +1163,8 @@ public Builder waitForActiveShards(@Nullable JsonValue value) { } /** + * Should the request should block until the delete by query is complete. + *

* API name: {@code wait_for_completion} */ public Builder waitForCompletion(@Nullable Boolean value) { @@ -1117,14 +1254,11 @@ protected static void setupDeleteByQueryRequestDeserializer( // Request path request -> { final int _index = 1 << 0; - final int _type = 1 << 1; int propsSet = 0; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == (_index)) { StringBuilder buf = new StringBuilder(); @@ -1133,15 +1267,6 @@ protected static void setupDeleteByQueryRequestDeserializer( buf.append("/_delete_by_query"); return buf.toString(); } - if (propsSet == (_index | _type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/"); - buf.append(request.type.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/_delete_by_query"); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, @@ -1192,7 +1317,7 @@ protected static void setupDeleteByQueryRequestDeserializer( params.put("requests_per_second", request.requestsPerSecond.toString()); } if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } if (request.q != null) { params.put("q", request.q); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteByQueryRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteByQueryRethrottleRequest.java index d1bdc8654..4f8d766e9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteByQueryRethrottleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteByQueryRethrottleRequest.java @@ -55,6 +55,8 @@ protected DeleteByQueryRethrottleRequest(Builder builder) { } /** + * The task id to rethrottle + *

* API name: {@code task_id} */ public String taskId() { @@ -62,6 +64,9 @@ public String taskId() { } /** + * The throttle to set on this request in floating sub-requests per second. -1 + * means set no throttle. + *

* API name: {@code requests_per_second} */ @Nullable @@ -81,6 +86,8 @@ public static class Builder implements ObjectBuilder * API name: {@code task_id} */ public Builder taskId(String value) { @@ -89,6 +96,9 @@ public Builder taskId(String value) { } /** + * The throttle to set on this request in floating sub-requests per second. -1 + * means set no throttle. + *

* API name: {@code requests_per_second} */ public Builder requestsPerSecond(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteByQueryRethrottleResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteByQueryRethrottleResponse.java index 458ee48bc..a19134729 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteByQueryRethrottleResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteByQueryRethrottleResponse.java @@ -23,7 +23,7 @@ package co.elastic.clients.elasticsearch._global; -import co.elastic.clients.elasticsearch.task.ListResponse; +import co.elastic.clients.elasticsearch.tasks.ListResponse; import co.elastic.clients.json.DelegatingDeserializer; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteRequest.java index bc4679494..0b8fddb1d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteRequest.java @@ -58,7 +58,7 @@ public final class DeleteRequest extends RequestBase { private final JsonValue refresh; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final JsonValue timeout; @@ -91,6 +91,8 @@ protected DeleteRequest(Builder builder) { } /** + * The document ID + *

* API name: {@code id} */ public String id() { @@ -98,6 +100,8 @@ public String id() { } /** + * The name of the index + *

* API name: {@code index} */ public String index() { @@ -105,6 +109,8 @@ public String index() { } /** + * The type of the document + *

* API name: {@code type} */ @Nullable @@ -113,6 +119,9 @@ public String type() { } /** + * only perform the delete operation if the last operation that has changed the + * document has the specified primary term + *

* API name: {@code if_primary_term} */ @Nullable @@ -121,6 +130,9 @@ public Number ifPrimaryTerm() { } /** + * only perform the delete operation if the last operation that has changed the + * document has the specified sequence number + *

* API name: {@code if_seq_no} */ @Nullable @@ -129,6 +141,11 @@ public Number ifSeqNo() { } /** + * If true then refresh the affected shards to make this operation + * visible to search, if wait_for then wait for a refresh to make + * this operation visible to search, if false (the default) then do + * nothing with refreshes. + *

* API name: {@code refresh} */ @Nullable @@ -137,14 +154,18 @@ public JsonValue refresh() { } /** + * Specific routing value + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -153,6 +174,8 @@ public JsonValue timeout() { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ @Nullable @@ -161,6 +184,8 @@ public Number version() { } /** + * Specific version type + *

* API name: {@code version_type} */ @Nullable @@ -169,6 +194,12 @@ public JsonValue versionType() { } /** + * Sets the number of shard copies that must be active before proceeding with + * the delete operation. Defaults to 1, meaning the primary shard only. Set to + * all for all shard copies, otherwise set to any non-negative + * value less than or equal to the total number of copies for the shard (number + * of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -199,7 +230,7 @@ public static class Builder implements ObjectBuilder { private JsonValue refresh; @Nullable - private JsonValue routing; + private String routing; @Nullable private JsonValue timeout; @@ -214,6 +245,8 @@ public static class Builder implements ObjectBuilder { private JsonValue waitForActiveShards; /** + * The document ID + *

* API name: {@code id} */ public Builder id(String value) { @@ -222,6 +255,8 @@ public Builder id(String value) { } /** + * The name of the index + *

* API name: {@code index} */ public Builder index(String value) { @@ -230,6 +265,8 @@ public Builder index(String value) { } /** + * The type of the document + *

* API name: {@code type} */ public Builder type(@Nullable String value) { @@ -238,6 +275,9 @@ public Builder type(@Nullable String value) { } /** + * only perform the delete operation if the last operation that has changed the + * document has the specified primary term + *

* API name: {@code if_primary_term} */ public Builder ifPrimaryTerm(@Nullable Number value) { @@ -246,6 +286,9 @@ public Builder ifPrimaryTerm(@Nullable Number value) { } /** + * only perform the delete operation if the last operation that has changed the + * document has the specified sequence number + *

* API name: {@code if_seq_no} */ public Builder ifSeqNo(@Nullable Number value) { @@ -254,6 +297,11 @@ public Builder ifSeqNo(@Nullable Number value) { } /** + * If true then refresh the affected shards to make this operation + * visible to search, if wait_for then wait for a refresh to make + * this operation visible to search, if false (the default) then do + * nothing with refreshes. + *

* API name: {@code refresh} */ public Builder refresh(@Nullable JsonValue value) { @@ -262,14 +310,18 @@ public Builder refresh(@Nullable JsonValue value) { } /** + * Specific routing value + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -278,6 +330,8 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ public Builder version(@Nullable Number value) { @@ -286,6 +340,8 @@ public Builder version(@Nullable Number value) { } /** + * Specific version type + *

* API name: {@code version_type} */ public Builder versionType(@Nullable JsonValue value) { @@ -294,6 +350,12 @@ public Builder versionType(@Nullable JsonValue value) { } /** + * Sets the number of shard copies that must be active before proceeding with + * the delete operation. Defaults to 1, meaning the primary shard only. Set to + * all for all shard copies, otherwise set to any non-negative + * value less than or equal to the total number of copies for the shard (number + * of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { @@ -376,7 +438,7 @@ public DeleteRequest build() { params.put("refresh", request.refresh.toString()); } if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } if (request.timeout != null) { params.put("timeout", request.timeout.toString()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteScriptRequest.java index 5a232f7a6..d48b7a346 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteScriptRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/DeleteScriptRequest.java @@ -59,6 +59,8 @@ protected DeleteScriptRequest(Builder builder) { } /** + * Script ID + *

* API name: {@code id} */ public String id() { @@ -66,6 +68,8 @@ public String id() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -74,6 +78,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -96,6 +102,8 @@ public static class Builder implements ObjectBuilder { private JsonValue timeout; /** + * Script ID + *

* API name: {@code id} */ public Builder id(String value) { @@ -104,6 +112,8 @@ public Builder id(String value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -112,6 +122,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExistsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExistsRequest.java index 9ff601f72..f9259a95a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExistsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExistsRequest.java @@ -51,9 +51,6 @@ public final class ExistsRequest extends RequestBase { private final String index; - @Nullable - private final String type; - @Nullable private final String preference; @@ -64,10 +61,10 @@ public final class ExistsRequest extends RequestBase { private final Boolean refresh; @Nullable - private final JsonValue routing; + private final String routing; @Nullable - private final Boolean sourceEnabled; + private final JsonValue source; @Nullable private final List sourceExcludes; @@ -90,12 +87,11 @@ protected ExistsRequest(Builder builder) { this.id = Objects.requireNonNull(builder.id, "id"); this.index = Objects.requireNonNull(builder.index, "index"); - this.type = builder.type; this.preference = builder.preference; this.realtime = builder.realtime; this.refresh = builder.refresh; this.routing = builder.routing; - this.sourceEnabled = builder.sourceEnabled; + this.source = builder.source; this.sourceExcludes = builder.sourceExcludes; this.sourceIncludes = builder.sourceIncludes; this.storedFields = builder.storedFields; @@ -105,6 +101,8 @@ protected ExistsRequest(Builder builder) { } /** + * The document ID + *

* API name: {@code id} */ public String id() { @@ -112,6 +110,8 @@ public String id() { } /** + * The name of the index + *

* API name: {@code index} */ public String index() { @@ -119,14 +119,9 @@ public String index() { } /** - * API name: {@code type} - */ - @Nullable - public String type() { - return this.type; - } - - /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ @Nullable @@ -135,6 +130,8 @@ public String preference() { } /** + * Specify whether to perform the operation in realtime or search mode + *

* API name: {@code realtime} */ @Nullable @@ -143,6 +140,8 @@ public Boolean realtime() { } /** + * Refresh the shard containing the document before performing the operation + *

* API name: {@code refresh} */ @Nullable @@ -151,23 +150,30 @@ public Boolean refresh() { } /** + * Specific routing value + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** - * API name: {@code source_enabled} + * True or false to return the _source field or not, or a list of fields to + * return + *

+ * API name: {@code _source} */ @Nullable - public Boolean sourceEnabled() { - return this.sourceEnabled; + public JsonValue source() { + return this.source; } /** - * API name: {@code source_excludes} + * A list of fields to exclude from the returned _source field + *

+ * API name: {@code _source_excludes} */ @Nullable public List sourceExcludes() { @@ -175,7 +181,9 @@ public List sourceExcludes() { } /** - * API name: {@code source_includes} + * A list of fields to extract and return from the _source field + *

+ * API name: {@code _source_includes} */ @Nullable public List sourceIncludes() { @@ -183,6 +191,8 @@ public List sourceIncludes() { } /** + * A comma-separated list of stored fields to return in the response + *

* API name: {@code stored_fields} */ @Nullable @@ -191,6 +201,8 @@ public List storedFields() { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ @Nullable @@ -199,6 +211,8 @@ public Number version() { } /** + * Specific version type + *

* API name: {@code version_type} */ @Nullable @@ -216,9 +230,6 @@ public static class Builder implements ObjectBuilder { private String index; - @Nullable - private String type; - @Nullable private String preference; @@ -229,10 +240,10 @@ public static class Builder implements ObjectBuilder { private Boolean refresh; @Nullable - private JsonValue routing; + private String routing; @Nullable - private Boolean sourceEnabled; + private JsonValue source; @Nullable private List sourceExcludes; @@ -250,6 +261,8 @@ public static class Builder implements ObjectBuilder { private JsonValue versionType; /** + * The document ID + *

* API name: {@code id} */ public Builder id(String value) { @@ -258,6 +271,8 @@ public Builder id(String value) { } /** + * The name of the index + *

* API name: {@code index} */ public Builder index(String value) { @@ -266,14 +281,9 @@ public Builder index(String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable String value) { - this.type = value; - return this; - } - - /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ public Builder preference(@Nullable String value) { @@ -282,6 +292,8 @@ public Builder preference(@Nullable String value) { } /** + * Specify whether to perform the operation in realtime or search mode + *

* API name: {@code realtime} */ public Builder realtime(@Nullable Boolean value) { @@ -290,6 +302,8 @@ public Builder realtime(@Nullable Boolean value) { } /** + * Refresh the shard containing the document before performing the operation + *

* API name: {@code refresh} */ public Builder refresh(@Nullable Boolean value) { @@ -298,23 +312,30 @@ public Builder refresh(@Nullable Boolean value) { } /** + * Specific routing value + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** - * API name: {@code source_enabled} + * True or false to return the _source field or not, or a list of fields to + * return + *

+ * API name: {@code _source} */ - public Builder sourceEnabled(@Nullable Boolean value) { - this.sourceEnabled = value; + public Builder source(@Nullable JsonValue value) { + this.source = value; return this; } /** - * API name: {@code source_excludes} + * A list of fields to exclude from the returned _source field + *

+ * API name: {@code _source_excludes} */ public Builder sourceExcludes(@Nullable List value) { this.sourceExcludes = value; @@ -322,7 +343,9 @@ public Builder sourceExcludes(@Nullable List value) { } /** - * API name: {@code source_excludes} + * A list of fields to exclude from the returned _source field + *

+ * API name: {@code _source_excludes} */ public Builder sourceExcludes(String... value) { this.sourceExcludes = Arrays.asList(value); @@ -341,7 +364,9 @@ public Builder addSourceExcludes(String value) { } /** - * API name: {@code source_includes} + * A list of fields to extract and return from the _source field + *

+ * API name: {@code _source_includes} */ public Builder sourceIncludes(@Nullable List value) { this.sourceIncludes = value; @@ -349,7 +374,9 @@ public Builder sourceIncludes(@Nullable List value) { } /** - * API name: {@code source_includes} + * A list of fields to extract and return from the _source field + *

+ * API name: {@code _source_includes} */ public Builder sourceIncludes(String... value) { this.sourceIncludes = Arrays.asList(value); @@ -368,6 +395,8 @@ public Builder addSourceIncludes(String value) { } /** + * A comma-separated list of stored fields to return in the response + *

* API name: {@code stored_fields} */ public Builder storedFields(@Nullable List value) { @@ -376,6 +405,8 @@ public Builder storedFields(@Nullable List value) { } /** + * A comma-separated list of stored fields to return in the response + *

* API name: {@code stored_fields} */ public Builder storedFields(String... value) { @@ -395,6 +426,8 @@ public Builder addStoredFields(String value) { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ public Builder version(@Nullable Number value) { @@ -403,6 +436,8 @@ public Builder version(@Nullable Number value) { } /** + * Specific version type + *

* API name: {@code version_type} */ public Builder versionType(@Nullable JsonValue value) { @@ -438,7 +473,6 @@ public ExistsRequest build() { request -> { final int _id = 1 << 0; final int _index = 1 << 1; - final int _type = 1 << 2; int propsSet = 0; @@ -446,8 +480,6 @@ public ExistsRequest build() { propsSet |= _id; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == (_index | _id)) { StringBuilder buf = new StringBuilder(); @@ -458,16 +490,6 @@ public ExistsRequest build() { buf.append(request.id); return buf.toString(); } - if (propsSet == (_index | _type | _id)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index); - buf.append("/"); - buf.append(request.type); - buf.append("/"); - buf.append(request.id); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, @@ -485,17 +507,17 @@ public ExistsRequest build() { params.put("refresh", String.valueOf(request.refresh)); } if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } - if (request.sourceEnabled != null) { - params.put("source_enabled", String.valueOf(request.sourceEnabled)); + if (request.source != null) { + params.put("_source", request.source.toString()); } if (request.sourceExcludes != null) { - params.put("source_excludes", + params.put("_source_excludes", request.sourceExcludes.stream().map(v -> v).collect(Collectors.joining(","))); } if (request.sourceIncludes != null) { - params.put("source_includes", + params.put("_source_includes", request.sourceIncludes.stream().map(v -> v).collect(Collectors.joining(","))); } if (request.storedFields != null) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExistsSourceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExistsSourceRequest.java index 5a3d6bf50..5118fe6d3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExistsSourceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExistsSourceRequest.java @@ -64,10 +64,10 @@ public final class ExistsSourceRequest extends RequestBase { private final Boolean refresh; @Nullable - private final JsonValue routing; + private final String routing; @Nullable - private final Boolean sourceEnabled; + private final JsonValue source; @Nullable private final List sourceExcludes; @@ -92,7 +92,7 @@ protected ExistsSourceRequest(Builder builder) { this.realtime = builder.realtime; this.refresh = builder.refresh; this.routing = builder.routing; - this.sourceEnabled = builder.sourceEnabled; + this.source = builder.source; this.sourceExcludes = builder.sourceExcludes; this.sourceIncludes = builder.sourceIncludes; this.version = builder.version; @@ -101,6 +101,8 @@ protected ExistsSourceRequest(Builder builder) { } /** + * The document ID + *

* API name: {@code id} */ public String id() { @@ -108,6 +110,8 @@ public String id() { } /** + * The name of the index + *

* API name: {@code index} */ public String index() { @@ -115,6 +119,8 @@ public String index() { } /** + * The type of the document; deprecated and optional starting with 7.0 + *

* API name: {@code type} */ @Nullable @@ -123,6 +129,9 @@ public String type() { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ @Nullable @@ -131,6 +140,8 @@ public String preference() { } /** + * Specify whether to perform the operation in realtime or search mode + *

* API name: {@code realtime} */ @Nullable @@ -139,6 +150,8 @@ public Boolean realtime() { } /** + * Refresh the shard containing the document before performing the operation + *

* API name: {@code refresh} */ @Nullable @@ -147,23 +160,30 @@ public Boolean refresh() { } /** + * Specific routing value + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** - * API name: {@code source_enabled} + * True or false to return the _source field or not, or a list of fields to + * return + *

+ * API name: {@code _source} */ @Nullable - public Boolean sourceEnabled() { - return this.sourceEnabled; + public JsonValue source() { + return this.source; } /** - * API name: {@code source_excludes} + * A list of fields to exclude from the returned _source field + *

+ * API name: {@code _source_excludes} */ @Nullable public List sourceExcludes() { @@ -171,7 +191,9 @@ public List sourceExcludes() { } /** - * API name: {@code source_includes} + * A list of fields to extract and return from the _source field + *

+ * API name: {@code _source_includes} */ @Nullable public List sourceIncludes() { @@ -179,6 +201,8 @@ public List sourceIncludes() { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ @Nullable @@ -187,6 +211,8 @@ public Number version() { } /** + * Specific version type + *

* API name: {@code version_type} */ @Nullable @@ -217,10 +243,10 @@ public static class Builder implements ObjectBuilder { private Boolean refresh; @Nullable - private JsonValue routing; + private String routing; @Nullable - private Boolean sourceEnabled; + private JsonValue source; @Nullable private List sourceExcludes; @@ -235,6 +261,8 @@ public static class Builder implements ObjectBuilder { private JsonValue versionType; /** + * The document ID + *

* API name: {@code id} */ public Builder id(String value) { @@ -243,6 +271,8 @@ public Builder id(String value) { } /** + * The name of the index + *

* API name: {@code index} */ public Builder index(String value) { @@ -251,6 +281,8 @@ public Builder index(String value) { } /** + * The type of the document; deprecated and optional starting with 7.0 + *

* API name: {@code type} */ public Builder type(@Nullable String value) { @@ -259,6 +291,9 @@ public Builder type(@Nullable String value) { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ public Builder preference(@Nullable String value) { @@ -267,6 +302,8 @@ public Builder preference(@Nullable String value) { } /** + * Specify whether to perform the operation in realtime or search mode + *

* API name: {@code realtime} */ public Builder realtime(@Nullable Boolean value) { @@ -275,6 +312,8 @@ public Builder realtime(@Nullable Boolean value) { } /** + * Refresh the shard containing the document before performing the operation + *

* API name: {@code refresh} */ public Builder refresh(@Nullable Boolean value) { @@ -283,23 +322,30 @@ public Builder refresh(@Nullable Boolean value) { } /** + * Specific routing value + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** - * API name: {@code source_enabled} + * True or false to return the _source field or not, or a list of fields to + * return + *

+ * API name: {@code _source} */ - public Builder sourceEnabled(@Nullable Boolean value) { - this.sourceEnabled = value; + public Builder source(@Nullable JsonValue value) { + this.source = value; return this; } /** - * API name: {@code source_excludes} + * A list of fields to exclude from the returned _source field + *

+ * API name: {@code _source_excludes} */ public Builder sourceExcludes(@Nullable List value) { this.sourceExcludes = value; @@ -307,7 +353,9 @@ public Builder sourceExcludes(@Nullable List value) { } /** - * API name: {@code source_excludes} + * A list of fields to exclude from the returned _source field + *

+ * API name: {@code _source_excludes} */ public Builder sourceExcludes(String... value) { this.sourceExcludes = Arrays.asList(value); @@ -326,7 +374,9 @@ public Builder addSourceExcludes(String value) { } /** - * API name: {@code source_includes} + * A list of fields to extract and return from the _source field + *

+ * API name: {@code _source_includes} */ public Builder sourceIncludes(@Nullable List value) { this.sourceIncludes = value; @@ -334,7 +384,9 @@ public Builder sourceIncludes(@Nullable List value) { } /** - * API name: {@code source_includes} + * A list of fields to extract and return from the _source field + *

+ * API name: {@code _source_includes} */ public Builder sourceIncludes(String... value) { this.sourceIncludes = Arrays.asList(value); @@ -353,6 +405,8 @@ public Builder addSourceIncludes(String value) { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ public Builder version(@Nullable Number value) { @@ -361,6 +415,8 @@ public Builder version(@Nullable Number value) { } /** + * Specific version type + *

* API name: {@code version_type} */ public Builder versionType(@Nullable JsonValue value) { @@ -444,17 +500,17 @@ public ExistsSourceRequest build() { params.put("refresh", String.valueOf(request.refresh)); } if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } - if (request.sourceEnabled != null) { - params.put("source_enabled", String.valueOf(request.sourceEnabled)); + if (request.source != null) { + params.put("_source", request.source.toString()); } if (request.sourceExcludes != null) { - params.put("source_excludes", + params.put("_source_excludes", request.sourceExcludes.stream().map(v -> v).collect(Collectors.joining(","))); } if (request.sourceIncludes != null) { - params.put("source_includes", + params.put("_source_includes", request.sourceIncludes.stream().map(v -> v).collect(Collectors.joining(","))); } if (request.version != null) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExplainRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExplainRequest.java index 8211d1e9e..106d08c3d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExplainRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ExplainRequest.java @@ -54,9 +54,6 @@ public final class ExplainRequest extends RequestBase implements ToJsonp { private final String index; - @Nullable - private final String type; - @Nullable private final String analyzer; @@ -79,7 +76,7 @@ public final class ExplainRequest extends RequestBase implements ToJsonp { private final String queryOnQueryString; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final JsonValue source; @@ -105,7 +102,6 @@ protected ExplainRequest(Builder builder) { this.id = Objects.requireNonNull(builder.id, "id"); this.index = Objects.requireNonNull(builder.index, "index"); - this.type = builder.type; this.analyzer = builder.analyzer; this.analyzeWildcard = builder.analyzeWildcard; this.defaultOperator = builder.defaultOperator; @@ -124,6 +120,8 @@ protected ExplainRequest(Builder builder) { } /** + * The document ID + *

* API name: {@code id} */ public String id() { @@ -131,6 +129,8 @@ public String id() { } /** + * The name of the index + *

* API name: {@code index} */ public String index() { @@ -138,14 +138,8 @@ public String index() { } /** - * API name: {@code type} - */ - @Nullable - public String type() { - return this.type; - } - - /** + * The analyzer for the query string query + *

* API name: {@code analyzer} */ @Nullable @@ -154,6 +148,9 @@ public String analyzer() { } /** + * Specify whether wildcards and prefix queries in the query string query should + * be analyzed (default: false) + *

* API name: {@code analyze_wildcard} */ @Nullable @@ -162,6 +159,8 @@ public Boolean analyzeWildcard() { } /** + * The default operator for query string query (AND or OR) + *

* API name: {@code default_operator} */ @Nullable @@ -170,6 +169,8 @@ public JsonValue defaultOperator() { } /** + * The default field for query string query (default: _all) + *

* API name: {@code df} */ @Nullable @@ -178,6 +179,9 @@ public String df() { } /** + * Specify whether format-based query failures (such as providing text to a + * numeric field) should be ignored + *

* API name: {@code lenient} */ @Nullable @@ -186,6 +190,9 @@ public Boolean lenient() { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ @Nullable @@ -202,14 +209,19 @@ public String queryOnQueryString() { } /** + * Specific routing value + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * True or false to return the _source field or not, or a list of fields to + * return + *

* API name: {@code _source} */ @Nullable @@ -218,6 +230,8 @@ public JsonValue source() { } /** + * A list of fields to exclude from the returned _source field + *

* API name: {@code _source_excludes} */ @Nullable @@ -226,6 +240,8 @@ public List sourceExcludes() { } /** + * A list of fields to extract and return from the _source field + *

* API name: {@code _source_includes} */ @Nullable @@ -234,6 +250,8 @@ public List sourceIncludes() { } /** + * A comma-separated list of stored fields to return in the response + *

* API name: {@code stored_fields} */ @Nullable @@ -242,6 +260,8 @@ public List storedFields() { } /** + * Query in the Lucene query string syntax + *

* API name: {@code q} */ @Nullable @@ -287,9 +307,6 @@ public static class Builder implements ObjectBuilder { private String index; - @Nullable - private String type; - @Nullable private String analyzer; @@ -312,7 +329,7 @@ public static class Builder implements ObjectBuilder { private String queryOnQueryString; @Nullable - private JsonValue routing; + private String routing; @Nullable private JsonValue source; @@ -333,6 +350,8 @@ public static class Builder implements ObjectBuilder { private QueryContainer query; /** + * The document ID + *

* API name: {@code id} */ public Builder id(String value) { @@ -341,6 +360,8 @@ public Builder id(String value) { } /** + * The name of the index + *

* API name: {@code index} */ public Builder index(String value) { @@ -349,14 +370,8 @@ public Builder index(String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable String value) { - this.type = value; - return this; - } - - /** + * The analyzer for the query string query + *

* API name: {@code analyzer} */ public Builder analyzer(@Nullable String value) { @@ -365,6 +380,9 @@ public Builder analyzer(@Nullable String value) { } /** + * Specify whether wildcards and prefix queries in the query string query should + * be analyzed (default: false) + *

* API name: {@code analyze_wildcard} */ public Builder analyzeWildcard(@Nullable Boolean value) { @@ -373,6 +391,8 @@ public Builder analyzeWildcard(@Nullable Boolean value) { } /** + * The default operator for query string query (AND or OR) + *

* API name: {@code default_operator} */ public Builder defaultOperator(@Nullable JsonValue value) { @@ -381,6 +401,8 @@ public Builder defaultOperator(@Nullable JsonValue value) { } /** + * The default field for query string query (default: _all) + *

* API name: {@code df} */ public Builder df(@Nullable String value) { @@ -389,6 +411,9 @@ public Builder df(@Nullable String value) { } /** + * Specify whether format-based query failures (such as providing text to a + * numeric field) should be ignored + *

* API name: {@code lenient} */ public Builder lenient(@Nullable Boolean value) { @@ -397,6 +422,9 @@ public Builder lenient(@Nullable Boolean value) { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ public Builder preference(@Nullable String value) { @@ -413,14 +441,19 @@ public Builder queryOnQueryString(@Nullable String value) { } /** + * Specific routing value + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * True or false to return the _source field or not, or a list of fields to + * return + *

* API name: {@code _source} */ public Builder source(@Nullable JsonValue value) { @@ -429,6 +462,8 @@ public Builder source(@Nullable JsonValue value) { } /** + * A list of fields to exclude from the returned _source field + *

* API name: {@code _source_excludes} */ public Builder sourceExcludes(@Nullable List value) { @@ -437,6 +472,8 @@ public Builder sourceExcludes(@Nullable List value) { } /** + * A list of fields to exclude from the returned _source field + *

* API name: {@code _source_excludes} */ public Builder sourceExcludes(String... value) { @@ -456,6 +493,8 @@ public Builder addSourceExcludes(String value) { } /** + * A list of fields to extract and return from the _source field + *

* API name: {@code _source_includes} */ public Builder sourceIncludes(@Nullable List value) { @@ -464,6 +503,8 @@ public Builder sourceIncludes(@Nullable List value) { } /** + * A list of fields to extract and return from the _source field + *

* API name: {@code _source_includes} */ public Builder sourceIncludes(String... value) { @@ -483,6 +524,8 @@ public Builder addSourceIncludes(String value) { } /** + * A comma-separated list of stored fields to return in the response + *

* API name: {@code stored_fields} */ public Builder storedFields(@Nullable List value) { @@ -491,6 +534,8 @@ public Builder storedFields(@Nullable List value) { } /** + * A comma-separated list of stored fields to return in the response + *

* API name: {@code stored_fields} */ public Builder storedFields(String... value) { @@ -510,6 +555,8 @@ public Builder addStoredFields(String value) { } /** + * Query in the Lucene query string syntax + *

* API name: {@code q} */ public Builder q(@Nullable String value) { @@ -574,7 +621,6 @@ protected static void setupExplainRequestDeserializer(DelegatingDeserializer { final int _id = 1 << 0; final int _index = 1 << 1; - final int _type = 1 << 2; int propsSet = 0; @@ -582,8 +628,6 @@ protected static void setupExplainRequestDeserializer(DelegatingDeserializer_all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -93,6 +96,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -101,6 +108,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -109,6 +119,8 @@ public JsonValue expandWildcards() { } /** + * A comma-separated list of field names + *

* API name: {@code fields} */ @Nullable @@ -117,6 +129,9 @@ public List fields() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -125,6 +140,8 @@ public Boolean ignoreUnavailable() { } /** + * Indicates whether unmapped fields should be included in the response. + *

* API name: {@code include_unmapped} */ @Nullable @@ -188,6 +205,9 @@ public static class Builder implements ObjectBuilder { private FieldCapabilitiesBodyIndexFilter indexFilter; /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -196,6 +216,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -215,6 +238,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -223,6 +250,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -231,6 +261,8 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * A comma-separated list of field names + *

* API name: {@code fields} */ public Builder fields(@Nullable List value) { @@ -239,6 +271,8 @@ public Builder fields(@Nullable List value) { } /** + * A comma-separated list of field names + *

* API name: {@code fields} */ public Builder fields(String... value) { @@ -258,6 +292,9 @@ public Builder addFields(String value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -266,6 +303,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Indicates whether unmapped fields should be included in the response. + *

* API name: {@code include_unmapped} */ public Builder includeUnmapped(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetRequest.java index 9cc8f5510..c2820c15c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetRequest.java @@ -50,9 +50,6 @@ public class GetRequest extends RequestBase { private final String index; - @Nullable - private final String type; - @Nullable private final String preference; @@ -63,10 +60,10 @@ public class GetRequest extends RequestBase { private final Boolean refresh; @Nullable - private final JsonValue routing; + private final String routing; @Nullable - private final Boolean sourceEnabled; + private final JsonValue source; @Nullable private final List sourceExcludes; @@ -83,27 +80,22 @@ public class GetRequest extends RequestBase { @Nullable private final JsonValue versionType; - @Nullable - private final JsonValue source; - // --------------------------------------------------------------------------------------------- protected GetRequest(AbstractBuilder builder) { this.id = Objects.requireNonNull(builder.id, "id"); this.index = Objects.requireNonNull(builder.index, "index"); - this.type = builder.type; this.preference = builder.preference; this.realtime = builder.realtime; this.refresh = builder.refresh; this.routing = builder.routing; - this.sourceEnabled = builder.sourceEnabled; + this.source = builder.source; this.sourceExcludes = builder.sourceExcludes; this.sourceIncludes = builder.sourceIncludes; this.storedFields = builder.storedFields; this.version = builder.version; this.versionType = builder.versionType; - this.source = builder.source; } @@ -125,14 +117,6 @@ public String index() { return this.index; } - /** - * API name: {@code type} - */ - @Nullable - public String type() { - return this.type; - } - /** * Specifies the node or shard the operation should be performed on. Random by * default. @@ -171,16 +155,19 @@ public Boolean refresh() { * API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** - * API name: {@code source_enabled} + * True or false to return the _source field or not, or a list of fields to + * return. + *

+ * API name: {@code _source} */ @Nullable - public Boolean sourceEnabled() { - return this.sourceEnabled; + public JsonValue source() { + return this.source; } /** @@ -204,6 +191,8 @@ public List sourceIncludes() { } /** + * A comma-separated list of stored fields to return in the response + *

* API name: {@code stored_fields} */ @Nullable @@ -232,17 +221,6 @@ public JsonValue versionType() { return this.versionType; } - /** - * True or false to return the _source field or not, or a list of fields to - * return. - *

- * API name: {@code _source} - */ - @Nullable - public JsonValue source() { - return this.source; - } - // --------------------------------------------------------------------------------------------- /** @@ -271,9 +249,6 @@ protected abstract static class AbstractBuilder sourceExcludes; @@ -304,9 +279,6 @@ protected abstract static class AbstractBuilder @@ -327,14 +299,6 @@ public BuilderT index(String value) { return self(); } - /** - * API name: {@code type} - */ - public BuilderT type(@Nullable String value) { - this.type = value; - return self(); - } - /** * Specifies the node or shard the operation should be performed on. Random by * default. @@ -372,16 +336,19 @@ public BuilderT refresh(@Nullable Boolean value) { *

* API name: {@code routing} */ - public BuilderT routing(@Nullable JsonValue value) { + public BuilderT routing(@Nullable String value) { this.routing = value; return self(); } /** - * API name: {@code source_enabled} + * True or false to return the _source field or not, or a list of fields to + * return. + *

+ * API name: {@code _source} */ - public BuilderT sourceEnabled(@Nullable Boolean value) { - this.sourceEnabled = value; + public BuilderT source(@Nullable JsonValue value) { + this.source = value; return self(); } @@ -448,6 +415,8 @@ public BuilderT addSourceIncludes(String value) { } /** + * A comma-separated list of stored fields to return in the response + *

* API name: {@code stored_fields} */ public BuilderT storedFields(@Nullable List value) { @@ -456,6 +425,8 @@ public BuilderT storedFields(@Nullable List value) { } /** + * A comma-separated list of stored fields to return in the response + *

* API name: {@code stored_fields} */ public BuilderT storedFields(String... value) { @@ -495,17 +466,6 @@ public BuilderT versionType(@Nullable JsonValue value) { return self(); } - /** - * True or false to return the _source field or not, or a list of fields to - * return. - *

- * API name: {@code _source} - */ - public BuilderT source(@Nullable JsonValue value) { - this.source = value; - return self(); - } - protected abstract BuilderT self(); } @@ -526,7 +486,6 @@ public BuilderT source(@Nullable JsonValue value) { request -> { final int _id = 1 << 0; final int _index = 1 << 1; - final int _type = 1 << 2; int propsSet = 0; @@ -534,8 +493,6 @@ public BuilderT source(@Nullable JsonValue value) { propsSet |= _id; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == (_index | _id)) { StringBuilder buf = new StringBuilder(); @@ -546,16 +503,6 @@ public BuilderT source(@Nullable JsonValue value) { buf.append(request.id); return buf.toString(); } - if (propsSet == (_index | _type | _id)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index); - buf.append("/"); - buf.append(request.type); - buf.append("/"); - buf.append(request.id); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, @@ -573,10 +520,10 @@ public BuilderT source(@Nullable JsonValue value) { params.put("refresh", String.valueOf(request.refresh)); } if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } - if (request.sourceEnabled != null) { - params.put("source_enabled", String.valueOf(request.sourceEnabled)); + if (request.source != null) { + params.put("_source", request.source.toString()); } if (request.sourceExcludes != null) { params.put("_source_excludes", @@ -596,9 +543,6 @@ public BuilderT source(@Nullable JsonValue value) { if (request.versionType != null) { params.put("version_type", request.versionType.toString()); } - if (request.source != null) { - params.put("_source", request.source.toString()); - } return params; }, Endpoint.Simple.emptyMap(), false, null); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetResponse.java index a60d5a3e2..51ddb6a0c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetResponse.java @@ -155,8 +155,6 @@ public TDocument source() { } /** - * deprecated since 7.0.0 - *

* API name: {@code _type} */ @Nullable @@ -356,8 +354,6 @@ public Builder source(@Nullable TDocument value) { } /** - * deprecated since 7.0.0 - *

* API name: {@code _type} */ public Builder type(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetScriptRequest.java index 70b11fbae..7e0b3ba4b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetScriptRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetScriptRequest.java @@ -55,6 +55,8 @@ protected GetScriptRequest(Builder builder) { } /** + * Script ID + *

* API name: {@code id} */ public String id() { @@ -83,6 +85,8 @@ public static class Builder implements ObjectBuilder { private JsonValue masterTimeout; /** + * Script ID + *

* API name: {@code id} */ public Builder id(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetSourceRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetSourceRequest.java index a4be8d7f2..a4ec4c1b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetSourceRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/GetSourceRequest.java @@ -42,16 +42,12 @@ public final class GetSourceRequest extends GetRequest { @Nullable private final String id; - @Nullable - private final String type; - // --------------------------------------------------------------------------------------------- protected GetSourceRequest(Builder builder) { super(builder); this.index = builder.index; this.id = builder.id; - this.type = builder.type; } @@ -75,16 +71,6 @@ public String id() { return this.id; } - /** - * Auto generated - missing in the input spec - *

- * API name: {@code type} - */ - @Nullable - public String type() { - return this.type; - } - // --------------------------------------------------------------------------------------------- /** @@ -97,9 +83,6 @@ public static class Builder extends GetRequest.AbstractBuilder implemen @Nullable private String id; - @Nullable - private String type; - /** * Auto generated - missing in the input spec *

@@ -120,16 +103,6 @@ public Builder id(@Nullable String value) { return this; } - /** - * Auto generated - missing in the input spec - *

- * API name: {@code type} - */ - public Builder type(@Nullable String value) { - this.type = value; - return this; - } - @Override protected Builder self() { return this; @@ -163,7 +136,6 @@ public GetSourceRequest build() { request -> { final int _index = 1 << 0; final int _id = 1 << 1; - final int _type = 1 << 2; int propsSet = 0; @@ -171,8 +143,6 @@ public GetSourceRequest build() { propsSet |= _index; if (request.id() != null) propsSet |= _id; - if (request.type() != null) - propsSet |= _type; if (propsSet == (_index | _id)) { StringBuilder buf = new StringBuilder(); @@ -183,17 +153,6 @@ public GetSourceRequest build() { buf.append(request.id); return buf.toString(); } - if (propsSet == (_index | _type | _id)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index); - buf.append("/"); - buf.append(request.type); - buf.append("/"); - buf.append(request.id); - buf.append("/_source"); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/IndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/IndexRequest.java index 142f03a2d..f849b59b9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/IndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/IndexRequest.java @@ -53,9 +53,6 @@ public final class IndexRequest extends RequestBase implements ToJson private final String index; - @Nullable - private final String type; - @Nullable private final Number ifPrimaryTerm; @@ -72,7 +69,7 @@ public final class IndexRequest extends RequestBase implements ToJson private final JsonValue refresh; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final JsonValue timeout; @@ -100,7 +97,6 @@ protected IndexRequest(Builder builder) { this.id = builder.id; this.index = Objects.requireNonNull(builder.index, "index"); - this.type = builder.type; this.ifPrimaryTerm = builder.ifPrimaryTerm; this.ifSeqNo = builder.ifSeqNo; this.opType = builder.opType; @@ -118,6 +114,8 @@ protected IndexRequest(Builder builder) { } /** + * Document ID + *

* API name: {@code id} */ @Nullable @@ -126,6 +124,8 @@ public String id() { } /** + * The name of the index + *

* API name: {@code index} */ public String index() { @@ -133,14 +133,9 @@ public String index() { } /** - * API name: {@code type} - */ - @Nullable - public String type() { - return this.type; - } - - /** + * only perform the index operation if the last operation that has changed the + * document has the specified primary term + *

* API name: {@code if_primary_term} */ @Nullable @@ -149,6 +144,9 @@ public Number ifPrimaryTerm() { } /** + * only perform the index operation if the last operation that has changed the + * document has the specified sequence number + *

* API name: {@code if_seq_no} */ @Nullable @@ -157,6 +155,10 @@ public Number ifSeqNo() { } /** + * Explicit operation type. Defaults to index for requests with an + * explicit document ID, and to createfor requests without an + * explicit document ID + *

* API name: {@code op_type} */ @Nullable @@ -165,6 +167,8 @@ public JsonValue opType() { } /** + * The pipeline id to preprocess incoming documents with + *

* API name: {@code pipeline} */ @Nullable @@ -173,6 +177,11 @@ public String pipeline() { } /** + * If true then refresh the affected shards to make this operation + * visible to search, if wait_for then wait for a refresh to make + * this operation visible to search, if false (the default) then do + * nothing with refreshes. + *

* API name: {@code refresh} */ @Nullable @@ -181,14 +190,18 @@ public JsonValue refresh() { } /** + * Specific routing value + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -197,6 +210,8 @@ public JsonValue timeout() { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ @Nullable @@ -205,6 +220,8 @@ public Number version() { } /** + * Specific version type + *

* API name: {@code version_type} */ @Nullable @@ -213,6 +230,12 @@ public JsonValue versionType() { } /** + * Sets the number of shard copies that must be active before proceeding with + * the index operation. Defaults to 1, meaning the primary shard only. Set to + * all for all shard copies, otherwise set to any non-negative + * value less than or equal to the total number of copies for the shard (number + * of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -221,6 +244,8 @@ public JsonValue waitForActiveShards() { } /** + * When true, requires destination to be an alias. Default is false + *

* API name: {@code require_alias} */ @Nullable @@ -256,9 +281,6 @@ public static class Builder implements ObjectBuilder implements ObjectBuilder implements ObjectBuilder tDocumentSerializer; /** + * Document ID + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -306,6 +330,8 @@ public Builder id(@Nullable String value) { } /** + * The name of the index + *

* API name: {@code index} */ public Builder index(String value) { @@ -314,14 +340,9 @@ public Builder index(String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable String value) { - this.type = value; - return this; - } - - /** + * only perform the index operation if the last operation that has changed the + * document has the specified primary term + *

* API name: {@code if_primary_term} */ public Builder ifPrimaryTerm(@Nullable Number value) { @@ -330,6 +351,9 @@ public Builder ifPrimaryTerm(@Nullable Number value) { } /** + * only perform the index operation if the last operation that has changed the + * document has the specified sequence number + *

* API name: {@code if_seq_no} */ public Builder ifSeqNo(@Nullable Number value) { @@ -338,6 +362,10 @@ public Builder ifSeqNo(@Nullable Number value) { } /** + * Explicit operation type. Defaults to index for requests with an + * explicit document ID, and to createfor requests without an + * explicit document ID + *

* API name: {@code op_type} */ public Builder opType(@Nullable JsonValue value) { @@ -346,6 +374,8 @@ public Builder opType(@Nullable JsonValue value) { } /** + * The pipeline id to preprocess incoming documents with + *

* API name: {@code pipeline} */ public Builder pipeline(@Nullable String value) { @@ -354,6 +384,11 @@ public Builder pipeline(@Nullable String value) { } /** + * If true then refresh the affected shards to make this operation + * visible to search, if wait_for then wait for a refresh to make + * this operation visible to search, if false (the default) then do + * nothing with refreshes. + *

* API name: {@code refresh} */ public Builder refresh(@Nullable JsonValue value) { @@ -362,14 +397,18 @@ public Builder refresh(@Nullable JsonValue value) { } /** + * Specific routing value + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -378,6 +417,8 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ public Builder version(@Nullable Number value) { @@ -386,6 +427,8 @@ public Builder version(@Nullable Number value) { } /** + * Specific version type + *

* API name: {@code version_type} */ public Builder versionType(@Nullable JsonValue value) { @@ -394,6 +437,12 @@ public Builder versionType(@Nullable JsonValue value) { } /** + * Sets the number of shard copies that must be active before proceeding with + * the index operation. Defaults to 1, meaning the primary shard only. Set to + * all for all shard copies, otherwise set to any non-negative + * value less than or equal to the total number of copies for the shard (number + * of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { @@ -402,6 +451,8 @@ public Builder waitForActiveShards(@Nullable JsonValue value) { } /** + * When true, requires destination to be an alias. Default is false + *

* API name: {@code require_alias} */ public Builder requireAlias(@Nullable Boolean value) { @@ -469,7 +520,6 @@ protected static void setupIndexRequestDeserializer( request -> { final int _id = 1 << 0; final int _index = 1 << 1; - final int _type = 1 << 2; int propsSet = 0; @@ -477,17 +527,11 @@ protected static void setupIndexRequestDeserializer( propsSet |= _id; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == (_index | _id)) return "PUT"; if (propsSet == (_index)) return "POST"; - if (propsSet == (_index | _type)) - return "POST"; - if (propsSet == (_index | _type | _id)) - return "PUT"; throw Endpoint.Simple.noPathTemplateFound("method"); }, @@ -496,7 +540,6 @@ protected static void setupIndexRequestDeserializer( request -> { final int _id = 1 << 0; final int _index = 1 << 1; - final int _type = 1 << 2; int propsSet = 0; @@ -504,8 +547,6 @@ protected static void setupIndexRequestDeserializer( propsSet |= _id; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == (_index | _id)) { StringBuilder buf = new StringBuilder(); @@ -523,24 +564,6 @@ protected static void setupIndexRequestDeserializer( buf.append("/_doc"); return buf.toString(); } - if (propsSet == (_index | _type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index); - buf.append("/"); - buf.append(request.type); - return buf.toString(); - } - if (propsSet == (_index | _type | _id)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index); - buf.append("/"); - buf.append(request.type); - buf.append("/"); - buf.append(request.id); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, @@ -564,7 +587,7 @@ protected static void setupIndexRequestDeserializer( params.put("refresh", request.refresh.toString()); } if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } if (request.timeout != null) { params.put("timeout", request.timeout.toString()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MgetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MgetRequest.java index 824d64761..1b2812b02 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MgetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MgetRequest.java @@ -52,9 +52,6 @@ public final class MgetRequest extends RequestBase implements ToJsonp { @Nullable private final String index; - @Nullable - private final String type; - @Nullable private final String preference; @@ -65,7 +62,7 @@ public final class MgetRequest extends RequestBase implements ToJsonp { private final Boolean refresh; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final JsonValue source; @@ -90,7 +87,6 @@ public final class MgetRequest extends RequestBase implements ToJsonp { protected MgetRequest(Builder builder) { this.index = builder.index; - this.type = builder.type; this.preference = builder.preference; this.realtime = builder.realtime; this.refresh = builder.refresh; @@ -105,6 +101,8 @@ protected MgetRequest(Builder builder) { } /** + * The name of the index + *

* API name: {@code index} */ @Nullable @@ -113,14 +111,9 @@ public String index() { } /** - * API name: {@code type} - */ - @Nullable - public String type() { - return this.type; - } - - /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ @Nullable @@ -129,6 +122,8 @@ public String preference() { } /** + * Specify whether to perform the operation in realtime or search mode + *

* API name: {@code realtime} */ @Nullable @@ -137,6 +132,8 @@ public Boolean realtime() { } /** + * Refresh the shard containing the document before performing the operation + *

* API name: {@code refresh} */ @Nullable @@ -145,14 +142,19 @@ public Boolean refresh() { } /** + * Specific routing value + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * True or false to return the _source field or not, or a list of fields to + * return + *

* API name: {@code _source} */ @Nullable @@ -161,6 +163,8 @@ public JsonValue source() { } /** + * A list of fields to exclude from the returned _source field + *

* API name: {@code _source_excludes} */ @Nullable @@ -169,6 +173,8 @@ public List sourceExcludes() { } /** + * A list of fields to extract and return from the _source field + *

* API name: {@code _source_includes} */ @Nullable @@ -177,6 +183,8 @@ public List sourceIncludes() { } /** + * A comma-separated list of stored fields to return in the response + *

* API name: {@code stored_fields} */ @Nullable @@ -245,9 +253,6 @@ public static class Builder implements ObjectBuilder { @Nullable private String index; - @Nullable - private String type; - @Nullable private String preference; @@ -258,7 +263,7 @@ public static class Builder implements ObjectBuilder { private Boolean refresh; @Nullable - private JsonValue routing; + private String routing; @Nullable private JsonValue source; @@ -279,6 +284,8 @@ public static class Builder implements ObjectBuilder { private List ids; /** + * The name of the index + *

* API name: {@code index} */ public Builder index(@Nullable String value) { @@ -287,14 +294,9 @@ public Builder index(@Nullable String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable String value) { - this.type = value; - return this; - } - - /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ public Builder preference(@Nullable String value) { @@ -303,6 +305,8 @@ public Builder preference(@Nullable String value) { } /** + * Specify whether to perform the operation in realtime or search mode + *

* API name: {@code realtime} */ public Builder realtime(@Nullable Boolean value) { @@ -311,6 +315,8 @@ public Builder realtime(@Nullable Boolean value) { } /** + * Refresh the shard containing the document before performing the operation + *

* API name: {@code refresh} */ public Builder refresh(@Nullable Boolean value) { @@ -319,14 +325,19 @@ public Builder refresh(@Nullable Boolean value) { } /** + * Specific routing value + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * True or false to return the _source field or not, or a list of fields to + * return + *

* API name: {@code _source} */ public Builder source(@Nullable JsonValue value) { @@ -335,6 +346,8 @@ public Builder source(@Nullable JsonValue value) { } /** + * A list of fields to exclude from the returned _source field + *

* API name: {@code _source_excludes} */ public Builder sourceExcludes(@Nullable List value) { @@ -343,6 +356,8 @@ public Builder sourceExcludes(@Nullable List value) { } /** + * A list of fields to exclude from the returned _source field + *

* API name: {@code _source_excludes} */ public Builder sourceExcludes(String... value) { @@ -362,6 +377,8 @@ public Builder addSourceExcludes(String value) { } /** + * A list of fields to extract and return from the _source field + *

* API name: {@code _source_includes} */ public Builder sourceIncludes(@Nullable List value) { @@ -370,6 +387,8 @@ public Builder sourceIncludes(@Nullable List value) { } /** + * A list of fields to extract and return from the _source field + *

* API name: {@code _source_includes} */ public Builder sourceIncludes(String... value) { @@ -389,6 +408,8 @@ public Builder addSourceIncludes(String value) { } /** + * A comma-separated list of stored fields to return in the response + *

* API name: {@code stored_fields} */ public Builder storedFields(@Nullable List value) { @@ -397,6 +418,8 @@ public Builder storedFields(@Nullable List value) { } /** + * A comma-separated list of stored fields to return in the response + *

* API name: {@code stored_fields} */ public Builder storedFields(String... value) { @@ -525,14 +548,11 @@ protected static void setupMgetRequestDeserializer(DelegatingDeserializer { final int _index = 1 << 0; - final int _type = 1 << 1; int propsSet = 0; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == 0) { StringBuilder buf = new StringBuilder(); @@ -546,15 +566,6 @@ protected static void setupMgetRequestDeserializer(DelegatingDeserializer index; - @Nullable - private final List type; - @Nullable private final Boolean allowNoIndices; @@ -95,7 +92,6 @@ public final class MsearchRequest extends RequestBase implements ToJsonp { protected MsearchRequest(Builder builder) { this.index = builder.index; - this.type = builder.type; this.allowNoIndices = builder.allowNoIndices; this.ccsMinimizeRoundtrips = builder.ccsMinimizeRoundtrips; this.expandWildcards = builder.expandWildcards; @@ -121,14 +117,6 @@ public List index() { return this.index; } - /** - * API name: {@code type} - */ - @Nullable - public List type() { - return this.type; - } - /** * If false, the request returns an error if any wildcard expression, index * alias, or _all value targets only missing or closed indices. This behavior @@ -286,9 +274,6 @@ public static class Builder implements ObjectBuilder { @Nullable private List index; - @Nullable - private List type; - @Nullable private Boolean allowNoIndices; @@ -355,33 +340,6 @@ public Builder addIndex(String value) { return this; } - /** - * API name: {@code type} - */ - public Builder type(@Nullable List value) { - this.type = value; - return this; - } - - /** - * API name: {@code type} - */ - public Builder type(String... value) { - this.type = Arrays.asList(value); - return this; - } - - /** - * Add a value to {@link #type(List)}, creating the list if needed. - */ - public Builder addType(String value) { - if (this.type == null) { - this.type = new ArrayList<>(); - } - this.type.add(value); - return this; - } - /** * If false, the request returns an error if any wildcard expression, index * alias, or _all value targets only missing or closed indices. This behavior @@ -580,14 +538,11 @@ protected static void setupMsearchRequestDeserializer(DelegatingDeserializer { final int _index = 1 << 0; - final int _type = 1 << 1; int propsSet = 0; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == 0) { StringBuilder buf = new StringBuilder(); @@ -601,15 +556,6 @@ protected static void setupMsearchRequestDeserializer(DelegatingDeserializer v).collect(Collectors.joining(","))); - buf.append("/"); - buf.append(request.type.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/_msearch"); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchTemplateRequest.java index 0dce46033..d3cb1dfcd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MsearchTemplateRequest.java @@ -54,9 +54,6 @@ public final class MsearchTemplateRequest extends RequestBase implements ToJsonp @Nullable private final List index; - @Nullable - private final List type; - @Nullable private final Boolean ccsMinimizeRoundtrips; @@ -79,7 +76,6 @@ public final class MsearchTemplateRequest extends RequestBase implements ToJsonp protected MsearchTemplateRequest(Builder builder) { this.index = builder.index; - this.type = builder.type; this.ccsMinimizeRoundtrips = builder.ccsMinimizeRoundtrips; this.maxConcurrentSearches = builder.maxConcurrentSearches; this.searchType = builder.searchType; @@ -90,6 +86,8 @@ protected MsearchTemplateRequest(Builder builder) { } /** + * A comma-separated list of index names to use as default + *

* API name: {@code index} */ @Nullable @@ -98,14 +96,9 @@ public List index() { } /** - * API name: {@code type} - */ - @Nullable - public List type() { - return this.type; - } - - /** + * Indicates whether network round-trips should be minimized as part of + * cross-cluster search requests execution + *

* API name: {@code ccs_minimize_roundtrips} */ @Nullable @@ -114,6 +107,9 @@ public Boolean ccsMinimizeRoundtrips() { } /** + * Controls the maximum number of concurrent searches the multi search api will + * execute + *

* API name: {@code max_concurrent_searches} */ @Nullable @@ -122,6 +118,8 @@ public Number maxConcurrentSearches() { } /** + * Search operation type + *

* API name: {@code search_type} */ @Nullable @@ -130,6 +128,9 @@ public JsonValue searchType() { } /** + * Indicates whether hits.total should be rendered as an integer or an object in + * the rest search response + *

* API name: {@code rest_total_hits_as_int} */ @Nullable @@ -138,6 +139,9 @@ public Boolean restTotalHitsAsInt() { } /** + * Specify whether aggregation and suggester names should be prefixed by their + * respective types in the response + *

* API name: {@code typed_keys} */ @Nullable @@ -176,9 +180,6 @@ public static class Builder implements ObjectBuilder { @Nullable private List index; - @Nullable - private List type; - @Nullable private Boolean ccsMinimizeRoundtrips; @@ -197,6 +198,8 @@ public static class Builder implements ObjectBuilder { private List value; /** + * A comma-separated list of index names to use as default + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -205,6 +208,8 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names to use as default + *

* API name: {@code index} */ public Builder index(String... value) { @@ -224,33 +229,9 @@ public Builder addIndex(String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable List value) { - this.type = value; - return this; - } - - /** - * API name: {@code type} - */ - public Builder type(String... value) { - this.type = Arrays.asList(value); - return this; - } - - /** - * Add a value to {@link #type(List)}, creating the list if needed. - */ - public Builder addType(String value) { - if (this.type == null) { - this.type = new ArrayList<>(); - } - this.type.add(value); - return this; - } - - /** + * Indicates whether network round-trips should be minimized as part of + * cross-cluster search requests execution + *

* API name: {@code ccs_minimize_roundtrips} */ public Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { @@ -259,6 +240,9 @@ public Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { } /** + * Controls the maximum number of concurrent searches the multi search api will + * execute + *

* API name: {@code max_concurrent_searches} */ public Builder maxConcurrentSearches(@Nullable Number value) { @@ -267,6 +251,8 @@ public Builder maxConcurrentSearches(@Nullable Number value) { } /** + * Search operation type + *

* API name: {@code search_type} */ public Builder searchType(@Nullable JsonValue value) { @@ -275,6 +261,9 @@ public Builder searchType(@Nullable JsonValue value) { } /** + * Indicates whether hits.total should be rendered as an integer or an object in + * the rest search response + *

* API name: {@code rest_total_hits_as_int} */ public Builder restTotalHitsAsInt(@Nullable Boolean value) { @@ -283,6 +272,9 @@ public Builder restTotalHitsAsInt(@Nullable Boolean value) { } /** + * Specify whether aggregation and suggester names should be prefixed by their + * respective types in the response + *

* API name: {@code typed_keys} */ public Builder typedKeys(@Nullable Boolean value) { @@ -377,14 +369,11 @@ protected static void setupMsearchTemplateRequestDeserializer( // Request path request -> { final int _index = 1 << 0; - final int _type = 1 << 1; int propsSet = 0; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == 0) { StringBuilder buf = new StringBuilder(); @@ -400,16 +389,6 @@ protected static void setupMsearchTemplateRequestDeserializer( buf.append("/template"); return buf.toString(); } - if (propsSet == (_index | _type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/"); - buf.append(request.type.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/_msearch"); - buf.append("/template"); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MtermvectorsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MtermvectorsRequest.java index d9702e536..794793a51 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MtermvectorsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/MtermvectorsRequest.java @@ -53,9 +53,6 @@ public final class MtermvectorsRequest extends RequestBase implements ToJsonp { @Nullable private final String index; - @Nullable - private final String type; - @Nullable private final List fields; @@ -78,7 +75,7 @@ public final class MtermvectorsRequest extends RequestBase implements ToJsonp { private final Boolean realtime; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final Boolean termStatistics; @@ -100,7 +97,6 @@ public final class MtermvectorsRequest extends RequestBase implements ToJsonp { protected MtermvectorsRequest(Builder builder) { this.index = builder.index; - this.type = builder.type; this.fields = builder.fields; this.fieldStatistics = builder.fieldStatistics; this.offsets = builder.offsets; @@ -118,6 +114,8 @@ protected MtermvectorsRequest(Builder builder) { } /** + * The index in which the document resides. + *

* API name: {@code index} */ @Nullable @@ -126,14 +124,9 @@ public String index() { } /** - * API name: {@code type} - */ - @Nullable - public String type() { - return this.type; - } - - /** + * A comma-separated list of fields to return. Applies to all returned documents + * unless otherwise specified in body "params" or "docs". + *

* API name: {@code fields} */ @Nullable @@ -142,6 +135,10 @@ public List fields() { } /** + * Specifies if document count, sum of document frequencies and sum of total + * term frequencies should be returned. Applies to all returned documents unless + * otherwise specified in body "params" or "docs". + *

* API name: {@code field_statistics} */ @Nullable @@ -150,6 +147,10 @@ public Boolean fieldStatistics() { } /** + * Specifies if term offsets should be returned. Applies to all returned + * documents unless otherwise specified in body "params" or + * "docs". + *

* API name: {@code offsets} */ @Nullable @@ -158,6 +159,10 @@ public Boolean offsets() { } /** + * Specifies if term payloads should be returned. Applies to all returned + * documents unless otherwise specified in body "params" or + * "docs". + *

* API name: {@code payloads} */ @Nullable @@ -166,6 +171,10 @@ public Boolean payloads() { } /** + * Specifies if term positions should be returned. Applies to all returned + * documents unless otherwise specified in body "params" or + * "docs". + *

* API name: {@code positions} */ @Nullable @@ -174,6 +183,10 @@ public Boolean positions() { } /** + * Specify the node or shard the operation should be performed on (default: + * random) .Applies to all returned documents unless otherwise specified in body + * "params" or "docs". + *

* API name: {@code preference} */ @Nullable @@ -182,6 +195,9 @@ public String preference() { } /** + * Specifies if requests are real-time as opposed to near-real-time (default: + * true). + *

* API name: {@code realtime} */ @Nullable @@ -190,14 +206,21 @@ public Boolean realtime() { } /** + * Specific routing value. Applies to all returned documents unless otherwise + * specified in body "params" or "docs". + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * Specifies if total term frequency and document frequency should be returned. + * Applies to all returned documents unless otherwise specified in body + * "params" or "docs". + *

* API name: {@code term_statistics} */ @Nullable @@ -206,6 +229,8 @@ public Boolean termStatistics() { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ @Nullable @@ -214,6 +239,8 @@ public Number version() { } /** + * Specific version type + *

* API name: {@code version_type} */ @Nullable @@ -282,9 +309,6 @@ public static class Builder implements ObjectBuilder { @Nullable private String index; - @Nullable - private String type; - @Nullable private List fields; @@ -307,7 +331,7 @@ public static class Builder implements ObjectBuilder { private Boolean realtime; @Nullable - private JsonValue routing; + private String routing; @Nullable private Boolean termStatistics; @@ -325,6 +349,8 @@ public static class Builder implements ObjectBuilder { private List ids; /** + * The index in which the document resides. + *

* API name: {@code index} */ public Builder index(@Nullable String value) { @@ -333,14 +359,9 @@ public Builder index(@Nullable String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable String value) { - this.type = value; - return this; - } - - /** + * A comma-separated list of fields to return. Applies to all returned documents + * unless otherwise specified in body "params" or "docs". + *

* API name: {@code fields} */ public Builder fields(@Nullable List value) { @@ -349,6 +370,9 @@ public Builder fields(@Nullable List value) { } /** + * A comma-separated list of fields to return. Applies to all returned documents + * unless otherwise specified in body "params" or "docs". + *

* API name: {@code fields} */ public Builder fields(String... value) { @@ -368,6 +392,10 @@ public Builder addFields(String value) { } /** + * Specifies if document count, sum of document frequencies and sum of total + * term frequencies should be returned. Applies to all returned documents unless + * otherwise specified in body "params" or "docs". + *

* API name: {@code field_statistics} */ public Builder fieldStatistics(@Nullable Boolean value) { @@ -376,6 +404,10 @@ public Builder fieldStatistics(@Nullable Boolean value) { } /** + * Specifies if term offsets should be returned. Applies to all returned + * documents unless otherwise specified in body "params" or + * "docs". + *

* API name: {@code offsets} */ public Builder offsets(@Nullable Boolean value) { @@ -384,6 +416,10 @@ public Builder offsets(@Nullable Boolean value) { } /** + * Specifies if term payloads should be returned. Applies to all returned + * documents unless otherwise specified in body "params" or + * "docs". + *

* API name: {@code payloads} */ public Builder payloads(@Nullable Boolean value) { @@ -392,6 +428,10 @@ public Builder payloads(@Nullable Boolean value) { } /** + * Specifies if term positions should be returned. Applies to all returned + * documents unless otherwise specified in body "params" or + * "docs". + *

* API name: {@code positions} */ public Builder positions(@Nullable Boolean value) { @@ -400,6 +440,10 @@ public Builder positions(@Nullable Boolean value) { } /** + * Specify the node or shard the operation should be performed on (default: + * random) .Applies to all returned documents unless otherwise specified in body + * "params" or "docs". + *

* API name: {@code preference} */ public Builder preference(@Nullable String value) { @@ -408,6 +452,9 @@ public Builder preference(@Nullable String value) { } /** + * Specifies if requests are real-time as opposed to near-real-time (default: + * true). + *

* API name: {@code realtime} */ public Builder realtime(@Nullable Boolean value) { @@ -416,14 +463,21 @@ public Builder realtime(@Nullable Boolean value) { } /** + * Specific routing value. Applies to all returned documents unless otherwise + * specified in body "params" or "docs". + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * Specifies if total term frequency and document frequency should be returned. + * Applies to all returned documents unless otherwise specified in body + * "params" or "docs". + *

* API name: {@code term_statistics} */ public Builder termStatistics(@Nullable Boolean value) { @@ -432,6 +486,8 @@ public Builder termStatistics(@Nullable Boolean value) { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ public Builder version(@Nullable Number value) { @@ -440,6 +496,8 @@ public Builder version(@Nullable Number value) { } /** + * Specific version type + *

* API name: {@code version_type} */ public Builder versionType(@Nullable JsonValue value) { @@ -557,14 +615,11 @@ protected static void setupMtermvectorsRequestDeserializer(DelegatingDeserialize // Request path request -> { final int _index = 1 << 0; - final int _type = 1 << 1; int propsSet = 0; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == 0) { StringBuilder buf = new StringBuilder(); @@ -578,15 +633,6 @@ protected static void setupMtermvectorsRequestDeserializer(DelegatingDeserialize buf.append("/_mtermvectors"); return buf.toString(); } - if (propsSet == (_index | _type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index); - buf.append("/"); - buf.append(request.type); - buf.append("/_mtermvectors"); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, @@ -616,7 +662,7 @@ protected static void setupMtermvectorsRequestDeserializer(DelegatingDeserialize params.put("realtime", String.valueOf(request.realtime)); } if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } if (request.termStatistics != null) { params.put("term_statistics", String.valueOf(request.termStatistics)); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/OpenPointInTimeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/OpenPointInTimeRequest.java index e52061149..dd2046128 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/OpenPointInTimeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/OpenPointInTimeRequest.java @@ -59,6 +59,9 @@ protected OpenPointInTimeRequest(Builder builder) { } /** + * A comma-separated list of index names to open point in time; use + * _all or empty string to perform the operation on all indices + *

* API name: {@code index} */ public List index() { @@ -66,6 +69,8 @@ public List index() { } /** + * Specific the time to live for the point in time + *

* API name: {@code keep_alive} */ @Nullable @@ -85,6 +90,9 @@ public static class Builder implements ObjectBuilder { private JsonValue keepAlive; /** + * A comma-separated list of index names to open point in time; use + * _all or empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(List value) { @@ -93,6 +101,9 @@ public Builder index(List value) { } /** + * A comma-separated list of index names to open point in time; use + * _all or empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -112,6 +123,8 @@ public Builder addIndex(String value) { } /** + * Specific the time to live for the point in time + *

* API name: {@code keep_alive} */ public Builder keepAlive(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/PutScriptRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/PutScriptRequest.java index fcc4f159d..80a1c077c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/PutScriptRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/PutScriptRequest.java @@ -72,6 +72,8 @@ protected PutScriptRequest(Builder builder) { } /** + * Script ID + *

* API name: {@code id} */ public String id() { @@ -79,6 +81,8 @@ public String id() { } /** + * Script context + *

* API name: {@code context} */ @Nullable @@ -87,6 +91,8 @@ public String context() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -95,6 +101,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -151,6 +159,8 @@ public static class Builder implements ObjectBuilder { private StoredScript script; /** + * Script ID + *

* API name: {@code id} */ public Builder id(String value) { @@ -159,6 +169,8 @@ public Builder id(String value) { } /** + * Script context + *

* API name: {@code context} */ public Builder context(@Nullable String value) { @@ -167,6 +179,8 @@ public Builder context(@Nullable String value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -175,6 +189,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/RankEvalRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/RankEvalRequest.java index c768d7292..03fdb3953 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/RankEvalRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/RankEvalRequest.java @@ -110,6 +110,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -128,6 +131,8 @@ public Boolean ignoreUnavailable() { } /** + * Search operation type + *

* API name: {@code search_type} */ @Nullable @@ -257,6 +262,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -275,6 +283,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Search operation type + *

* API name: {@code search_type} */ public Builder searchType(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ReindexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ReindexRequest.java index 5f3696644..35ee8557b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ReindexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ReindexRequest.java @@ -110,6 +110,8 @@ protected ReindexRequest(Builder builder) { } /** + * Should the affected indexes be refreshed? + *

* API name: {@code refresh} */ @Nullable @@ -118,6 +120,9 @@ public Boolean refresh() { } /** + * The throttle to set on this request in sub-requests per second. -1 means no + * throttle. + *

* API name: {@code requests_per_second} */ @Nullable @@ -126,6 +131,8 @@ public Number requestsPerSecond() { } /** + * Control how long to keep the search context alive + *

* API name: {@code scroll} */ @Nullable @@ -134,6 +141,9 @@ public JsonValue scroll() { } /** + * The number of slices this task should be divided into. Defaults to 1, meaning + * the task isn't sliced into subtasks. Can be set to auto. + *

* API name: {@code slices} */ @Nullable @@ -142,6 +152,9 @@ public Number slices() { } /** + * Time each individual bulk request should wait for shards that are + * unavailable. + *

* API name: {@code timeout} */ @Nullable @@ -150,6 +163,12 @@ public JsonValue timeout() { } /** + * Sets the number of shard copies that must be active before proceeding with + * the reindex operation. Defaults to 1, meaning the primary shard only. Set to + * all for all shard copies, otherwise set to any non-negative + * value less than or equal to the total number of copies for the shard (number + * of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -158,6 +177,8 @@ public JsonValue waitForActiveShards() { } /** + * Should the request should block until the reindex is complete. + *

* API name: {@code wait_for_completion} */ @Nullable @@ -320,6 +341,8 @@ public static class Builder implements ObjectBuilder { private Source source; /** + * Should the affected indexes be refreshed? + *

* API name: {@code refresh} */ public Builder refresh(@Nullable Boolean value) { @@ -328,6 +351,9 @@ public Builder refresh(@Nullable Boolean value) { } /** + * The throttle to set on this request in sub-requests per second. -1 means no + * throttle. + *

* API name: {@code requests_per_second} */ public Builder requestsPerSecond(@Nullable Number value) { @@ -336,6 +362,8 @@ public Builder requestsPerSecond(@Nullable Number value) { } /** + * Control how long to keep the search context alive + *

* API name: {@code scroll} */ public Builder scroll(@Nullable JsonValue value) { @@ -344,6 +372,9 @@ public Builder scroll(@Nullable JsonValue value) { } /** + * The number of slices this task should be divided into. Defaults to 1, meaning + * the task isn't sliced into subtasks. Can be set to auto. + *

* API name: {@code slices} */ public Builder slices(@Nullable Number value) { @@ -352,6 +383,9 @@ public Builder slices(@Nullable Number value) { } /** + * Time each individual bulk request should wait for shards that are + * unavailable. + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -360,6 +394,12 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Sets the number of shard copies that must be active before proceeding with + * the reindex operation. Defaults to 1, meaning the primary shard only. Set to + * all for all shard copies, otherwise set to any non-negative + * value less than or equal to the total number of copies for the shard (number + * of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { @@ -368,6 +408,8 @@ public Builder waitForActiveShards(@Nullable JsonValue value) { } /** + * Should the request should block until the reindex is complete. + *

* API name: {@code wait_for_completion} */ public Builder waitForCompletion(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ReindexRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ReindexRethrottleRequest.java index 637b41d75..827d4489c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ReindexRethrottleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/ReindexRethrottleRequest.java @@ -55,6 +55,8 @@ protected ReindexRethrottleRequest(Builder builder) { } /** + * The task id to rethrottle + *

* API name: {@code task_id} */ public String taskId() { @@ -62,6 +64,9 @@ public String taskId() { } /** + * The throttle to set on this request in floating sub-requests per second. -1 + * means set no throttle. + *

* API name: {@code requests_per_second} */ @Nullable @@ -81,6 +86,8 @@ public static class Builder implements ObjectBuilder { private Number requestsPerSecond; /** + * The task id to rethrottle + *

* API name: {@code task_id} */ public Builder taskId(String value) { @@ -89,6 +96,9 @@ public Builder taskId(String value) { } /** + * The throttle to set on this request in floating sub-requests per second. -1 + * means set no throttle. + *

* API name: {@code requests_per_second} */ public Builder requestsPerSecond(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchMvtRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchMvtRequest.java new file mode 100644 index 000000000..f429de9e1 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchMvtRequest.java @@ -0,0 +1,812 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._global; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.elasticsearch._types.aggregations.AggregationContainer; +import co.elastic.clients.elasticsearch._types.mapping.RuntimeField; +import co.elastic.clients.elasticsearch._types.query_dsl.QueryContainer; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Number; +import java.lang.String; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import java.util.stream.Collectors; +import javax.annotation.Nullable; + +// typedef: _global.search_mvt.Request +public final class SearchMvtRequest extends RequestBase implements ToJsonp { + private final List index; + + private final String field; + + private final Number zoom; + + private final Number x; + + private final Number y; + + @Nullable + private final Map aggs; + + @Nullable + private final Boolean exactBounds; + + @Nullable + private final Number extent; + + @Nullable + private final List fields; + + @Nullable + private final Number gridPrecision; + + @Nullable + private final JsonValue gridType; + + @Nullable + private final QueryContainer query; + + @Nullable + private final Map runtimeMappings; + + @Nullable + private final Number size; + + @Nullable + private final List sort; + + // --------------------------------------------------------------------------------------------- + + protected SearchMvtRequest(Builder builder) { + + this.index = Objects.requireNonNull(builder.index, "index"); + this.field = Objects.requireNonNull(builder.field, "field"); + this.zoom = Objects.requireNonNull(builder.zoom, "zoom"); + this.x = Objects.requireNonNull(builder.x, "x"); + this.y = Objects.requireNonNull(builder.y, "y"); + this.aggs = builder.aggs; + this.exactBounds = builder.exactBounds; + this.extent = builder.extent; + this.fields = builder.fields; + this.gridPrecision = builder.gridPrecision; + this.gridType = builder.gridType; + this.query = builder.query; + this.runtimeMappings = builder.runtimeMappings; + this.size = builder.size; + this.sort = builder.sort; + + } + + /** + * Comma-separated list of data streams, indices, or aliases to search + *

+ * API name: {@code index} + */ + public List index() { + return this.index; + } + + /** + * Field containing geospatial data to return + *

+ * API name: {@code field} + */ + public String field() { + return this.field; + } + + /** + * Zoom level for the vector tile to search + *

+ * API name: {@code zoom} + */ + public Number zoom() { + return this.zoom; + } + + /** + * X coordinate for the vector tile to search + *

+ * API name: {@code x} + */ + public Number x() { + return this.x; + } + + /** + * Y coordinate for the vector tile to search + *

+ * API name: {@code y} + */ + public Number y() { + return this.y; + } + + /** + * Sub-aggregations for the geotile_grid. Supports the following aggregation + * types: - avg - cardinality - max - min - sum + *

+ * API name: {@code aggs} + */ + @Nullable + public Map aggs() { + return this.aggs; + } + + /** + * If false, the meta layer’s feature is the bounding box of the tile. If true, + * the meta layer’s feature is a bounding box resulting from a geo_bounds + * aggregation. The aggregation runs on values that intersect the + * // tile with wrap_longitude set to false. The resulting bounding + * box may be larger than the vector tile. + *

+ * API name: {@code exact_bounds} + */ + @Nullable + public Boolean exactBounds() { + return this.exactBounds; + } + + /** + * Size, in pixels, of a side of the tile. Vector tiles are square with equal + * sides. + *

+ * API name: {@code extent} + */ + @Nullable + public Number extent() { + return this.extent; + } + + /** + * Fields to return in the hits layer. Supports wildcards + * (*). This parameter does not support fields with array values. + * Fields with array values may return inconsistent results. + *

+ * API name: {@code fields} + */ + @Nullable + public List fields() { + return this.fields; + } + + /** + * Additional zoom levels available through the aggs layer. For example, if + * is 7 and grid_precision is 8, you can zoom in up to level 15. Accepts + * 0-8. If 0, results don’t include the aggs layer. + *

+ * API name: {@code grid_precision} + */ + @Nullable + public Number gridPrecision() { + return this.gridPrecision; + } + + /** + * Determines the geometry type for features in the aggs layer. In the aggs + * layer, each feature represents a geotile_grid cell. If 'grid' each feature is + * a Polygon of the cells bounding box. If 'point' each feature is a Point that + * is the centroid of the cell. + *

+ * API name: {@code grid_type} + */ + @Nullable + public JsonValue gridType() { + return this.gridType; + } + + /** + * Query DSL used to filter documents for the search. + *

+ * API name: {@code query} + */ + @Nullable + public QueryContainer query() { + return this.query; + } + + /** + * Defines one or more runtime fields in the search request. These fields take + * precedence over mapped fields with the same name. + *

+ * API name: {@code runtime_mappings} + */ + @Nullable + public Map runtimeMappings() { + return this.runtimeMappings; + } + + /** + * Maximum number of features to return in the hits layer. Accepts 0-10000. If + * 0, results don’t include the hits layer. + *

+ * API name: {@code size} + */ + @Nullable + public Number size() { + return this.size; + } + + /** + * Sorts features in the hits layer. By default, the API calculates a bounding + * box for each feature. It sorts features based on this box’s diagonal length, + * from longest to shortest. + *

+ * API name: {@code sort} + */ + @Nullable + public List sort() { + return this.sort; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.aggs != null) { + + generator.writeKey("aggs"); + generator.writeStartObject(); + for (Map.Entry item0 : this.aggs.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().toJsonp(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.exactBounds != null) { + + generator.writeKey("exact_bounds"); + generator.write(this.exactBounds); + + } + if (this.extent != null) { + + generator.writeKey("extent"); + generator.write(this.extent.doubleValue()); + + } + if (this.fields != null) { + + generator.writeKey("fields"); + generator.writeStartArray(); + for (String item0 : this.fields) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (this.gridPrecision != null) { + + generator.writeKey("grid_precision"); + generator.write(this.gridPrecision.doubleValue()); + + } + if (this.gridType != null) { + + generator.writeKey("grid_type"); + generator.write(this.gridType); + + } + if (this.query != null) { + + generator.writeKey("query"); + this.query.toJsonp(generator, mapper); + + } + if (this.runtimeMappings != null) { + + generator.writeKey("runtime_mappings"); + generator.writeStartObject(); + for (Map.Entry item0 : this.runtimeMappings.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().toJsonp(generator, mapper); + + } + generator.writeEnd(); + + } + if (this.size != null) { + + generator.writeKey("size"); + generator.write(this.size.doubleValue()); + + } + if (this.sort != null) { + + generator.writeKey("sort"); + generator.writeStartArray(); + for (JsonValue item0 : this.sort) { + generator.write(item0); + + } + generator.writeEnd(); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SearchMvtRequest}. + */ + public static class Builder implements ObjectBuilder { + private List index; + + private String field; + + private Number zoom; + + private Number x; + + private Number y; + + @Nullable + private Map aggs; + + @Nullable + private Boolean exactBounds; + + @Nullable + private Number extent; + + @Nullable + private List fields; + + @Nullable + private Number gridPrecision; + + @Nullable + private JsonValue gridType; + + @Nullable + private QueryContainer query; + + @Nullable + private Map runtimeMappings; + + @Nullable + private Number size; + + @Nullable + private List sort; + + /** + * Comma-separated list of data streams, indices, or aliases to search + *

+ * API name: {@code index} + */ + public Builder index(List value) { + this.index = value; + return this; + } + + /** + * Comma-separated list of data streams, indices, or aliases to search + *

+ * API name: {@code index} + */ + public Builder index(String... value) { + this.index = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #index(List)}, creating the list if needed. + */ + public Builder addIndex(String value) { + if (this.index == null) { + this.index = new ArrayList<>(); + } + this.index.add(value); + return this; + } + + /** + * Field containing geospatial data to return + *

+ * API name: {@code field} + */ + public Builder field(String value) { + this.field = value; + return this; + } + + /** + * Zoom level for the vector tile to search + *

+ * API name: {@code zoom} + */ + public Builder zoom(Number value) { + this.zoom = value; + return this; + } + + /** + * X coordinate for the vector tile to search + *

+ * API name: {@code x} + */ + public Builder x(Number value) { + this.x = value; + return this; + } + + /** + * Y coordinate for the vector tile to search + *

+ * API name: {@code y} + */ + public Builder y(Number value) { + this.y = value; + return this; + } + + /** + * Sub-aggregations for the geotile_grid. Supports the following aggregation + * types: - avg - cardinality - max - min - sum + *

+ * API name: {@code aggs} + */ + public Builder aggs(@Nullable Map value) { + this.aggs = value; + return this; + } + + /** + * Add a key/value to {@link #aggs(Map)}, creating the map if needed. + */ + public Builder putAggs(String key, AggregationContainer value) { + if (this.aggs == null) { + this.aggs = new HashMap<>(); + } + this.aggs.put(key, value); + return this; + } + + /** + * Set {@link #aggs(Map)} to a singleton map. + */ + public Builder aggs(String key, + Function> fn) { + return this.aggs(Collections.singletonMap(key, fn.apply(new AggregationContainer.Builder()).build())); + } + + /** + * Add a key/value to {@link #aggs(Map)}, creating the map if needed. + */ + public Builder putAggs(String key, + Function> fn) { + return this.putAggs(key, fn.apply(new AggregationContainer.Builder()).build()); + } + + /** + * If false, the meta layer’s feature is the bounding box of the tile. If true, + * the meta layer’s feature is a bounding box resulting from a geo_bounds + * aggregation. The aggregation runs on values that intersect the + * // tile with wrap_longitude set to false. The resulting bounding + * box may be larger than the vector tile. + *

+ * API name: {@code exact_bounds} + */ + public Builder exactBounds(@Nullable Boolean value) { + this.exactBounds = value; + return this; + } + + /** + * Size, in pixels, of a side of the tile. Vector tiles are square with equal + * sides. + *

+ * API name: {@code extent} + */ + public Builder extent(@Nullable Number value) { + this.extent = value; + return this; + } + + /** + * Fields to return in the hits layer. Supports wildcards + * (*). This parameter does not support fields with array values. + * Fields with array values may return inconsistent results. + *

+ * API name: {@code fields} + */ + public Builder fields(@Nullable List value) { + this.fields = value; + return this; + } + + /** + * Fields to return in the hits layer. Supports wildcards + * (*). This parameter does not support fields with array values. + * Fields with array values may return inconsistent results. + *

+ * API name: {@code fields} + */ + public Builder fields(String... value) { + this.fields = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #fields(List)}, creating the list if needed. + */ + public Builder addFields(String value) { + if (this.fields == null) { + this.fields = new ArrayList<>(); + } + this.fields.add(value); + return this; + } + + /** + * Additional zoom levels available through the aggs layer. For example, if + * is 7 and grid_precision is 8, you can zoom in up to level 15. Accepts + * 0-8. If 0, results don’t include the aggs layer. + *

+ * API name: {@code grid_precision} + */ + public Builder gridPrecision(@Nullable Number value) { + this.gridPrecision = value; + return this; + } + + /** + * Determines the geometry type for features in the aggs layer. In the aggs + * layer, each feature represents a geotile_grid cell. If 'grid' each feature is + * a Polygon of the cells bounding box. If 'point' each feature is a Point that + * is the centroid of the cell. + *

+ * API name: {@code grid_type} + */ + public Builder gridType(@Nullable JsonValue value) { + this.gridType = value; + return this; + } + + /** + * Query DSL used to filter documents for the search. + *

+ * API name: {@code query} + */ + public Builder query(@Nullable QueryContainer value) { + this.query = value; + return this; + } + + /** + * Query DSL used to filter documents for the search. + *

+ * API name: {@code query} + */ + public Builder query(Function> fn) { + return this.query(fn.apply(new QueryContainer.Builder()).build()); + } + + /** + * Defines one or more runtime fields in the search request. These fields take + * precedence over mapped fields with the same name. + *

+ * API name: {@code runtime_mappings} + */ + public Builder runtimeMappings(@Nullable Map value) { + this.runtimeMappings = value; + return this; + } + + /** + * Add a key/value to {@link #runtimeMappings(Map)}, creating the map if needed. + */ + public Builder putRuntimeMappings(String key, RuntimeField value) { + if (this.runtimeMappings == null) { + this.runtimeMappings = new HashMap<>(); + } + this.runtimeMappings.put(key, value); + return this; + } + + /** + * Set {@link #runtimeMappings(Map)} to a singleton map. + */ + public Builder runtimeMappings(String key, Function> fn) { + return this.runtimeMappings(Collections.singletonMap(key, fn.apply(new RuntimeField.Builder()).build())); + } + + /** + * Add a key/value to {@link #runtimeMappings(Map)}, creating the map if needed. + */ + public Builder putRuntimeMappings(String key, Function> fn) { + return this.putRuntimeMappings(key, fn.apply(new RuntimeField.Builder()).build()); + } + + /** + * Maximum number of features to return in the hits layer. Accepts 0-10000. If + * 0, results don’t include the hits layer. + *

+ * API name: {@code size} + */ + public Builder size(@Nullable Number value) { + this.size = value; + return this; + } + + /** + * Sorts features in the hits layer. By default, the API calculates a bounding + * box for each feature. It sorts features based on this box’s diagonal length, + * from longest to shortest. + *

+ * API name: {@code sort} + */ + public Builder sort(@Nullable List value) { + this.sort = value; + return this; + } + + /** + * Sorts features in the hits layer. By default, the API calculates a bounding + * box for each feature. It sorts features based on this box’s diagonal length, + * from longest to shortest. + *

+ * API name: {@code sort} + */ + public Builder sort(JsonValue... value) { + this.sort = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #sort(List)}, creating the list if needed. + */ + public Builder addSort(JsonValue value) { + if (this.sort == null) { + this.sort = new ArrayList<>(); + } + this.sort.add(value); + return this; + } + + /** + * Builds a {@link SearchMvtRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SearchMvtRequest build() { + + return new SearchMvtRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for SearchMvtRequest + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, SearchMvtRequest::setupSearchMvtRequestDeserializer); + + protected static void setupSearchMvtRequestDeserializer(DelegatingDeserializer op) { + + op.add(Builder::aggs, JsonpDeserializer.stringMapDeserializer(AggregationContainer.DESERIALIZER), "aggs"); + op.add(Builder::exactBounds, JsonpDeserializer.booleanDeserializer(), "exact_bounds"); + op.add(Builder::extent, JsonpDeserializer.numberDeserializer(), "extent"); + op.add(Builder::fields, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "fields"); + op.add(Builder::gridPrecision, JsonpDeserializer.numberDeserializer(), "grid_precision"); + op.add(Builder::gridType, JsonpDeserializer.jsonValueDeserializer(), "grid_type"); + op.add(Builder::query, QueryContainer.DESERIALIZER, "query"); + op.add(Builder::runtimeMappings, JsonpDeserializer.stringMapDeserializer(RuntimeField.DESERIALIZER), + "runtime_mappings"); + op.add(Builder::size, JsonpDeserializer.numberDeserializer(), "size"); + op.add(Builder::sort, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.jsonValueDeserializer()), "sort"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code search_mvt}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + final int _field = 1 << 1; + final int _zoom = 1 << 2; + final int _x = 1 << 3; + final int _y = 1 << 4; + + int propsSet = 0; + + if (request.index() != null) + propsSet |= _index; + if (request.field() != null) + propsSet |= _field; + if (request.zoom() != null) + propsSet |= _zoom; + if (request.x() != null) + propsSet |= _x; + if (request.y() != null) + propsSet |= _y; + + if (propsSet == (_index | _field | _zoom | _x | _y)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + buf.append(request.index.stream().map(v -> v).collect(Collectors.joining(","))); + buf.append("/_mvt"); + buf.append("/"); + buf.append(request.field); + buf.append("/"); + buf.append(request.zoom.toString()); + buf.append("/"); + buf.append(request.x.toString()); + buf.append("/"); + buf.append(request.y.toString()); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + return params; + + }, Endpoint.Simple.emptyMap(), true, SearchMvtResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchMvtResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchMvtResponse.java new file mode 100644 index 000000000..d53471930 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchMvtResponse.java @@ -0,0 +1,111 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._global; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _global.search_mvt.Response +public final class SearchMvtResponse implements ToJsonp { + private final JsonValue value; + + // --------------------------------------------------------------------------------------------- + + protected SearchMvtResponse(Builder builder) { + + this.value = Objects.requireNonNull(builder.value, "value"); + + } + + /** + * Response value. + *

+ * API name: {@code value} + */ + public JsonValue value() { + return this.value; + } + + /** + * Serialize this value to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.write(this.value); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SearchMvtResponse}. + */ + public static class Builder implements ObjectBuilder { + private JsonValue value; + + /** + * Response value. + *

+ * API name: {@code value} + */ + public Builder value(JsonValue value) { + this.value = value; + return this; + } + + /** + * Builds a {@link SearchMvtResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SearchMvtResponse build() { + + return new SearchMvtResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for SearchMvtResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, SearchMvtResponse::setupSearchMvtResponseDeserializer); + + protected static void setupSearchMvtResponseDeserializer(DelegatingDeserializer op) { + + op.add(Builder::value, JsonpDeserializer.jsonValueDeserializer(), "value"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchRequest.java index c1b673129..737619000 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchRequest.java @@ -62,9 +62,6 @@ public final class SearchRequest extends RequestBase implements ToJsonp { @Nullable private final List index; - @Nullable - private final List type; - @Nullable private final Boolean allowNoIndices; @@ -117,7 +114,7 @@ public final class SearchRequest extends RequestBase implements ToJsonp { private final Boolean requestCache; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final JsonValue scroll; @@ -250,7 +247,6 @@ public final class SearchRequest extends RequestBase implements ToJsonp { protected SearchRequest(Builder builder) { this.index = builder.index; - this.type = builder.type; this.allowNoIndices = builder.allowNoIndices; this.allowPartialSearchResults = builder.allowPartialSearchResults; this.analyzer = builder.analyzer; @@ -315,6 +311,9 @@ protected SearchRequest(Builder builder) { } /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -323,14 +322,10 @@ public List index() { } /** - * API name: {@code type} - */ - @Nullable - public List type() { - return this.type; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -339,6 +334,9 @@ public Boolean allowNoIndices() { } /** + * Indicate if an error should be returned if there is a partial search failure + * or timeout + *

* API name: {@code allow_partial_search_results} */ @Nullable @@ -347,6 +345,8 @@ public Boolean allowPartialSearchResults() { } /** + * The analyzer to use for the query string + *

* API name: {@code analyzer} */ @Nullable @@ -355,6 +355,9 @@ public String analyzer() { } /** + * Specify whether wildcard and prefix queries should be analyzed (default: + * false) + *

* API name: {@code analyze_wildcard} */ @Nullable @@ -363,6 +366,11 @@ public Boolean analyzeWildcard() { } /** + * The number of shard results that should be reduced at once on the + * coordinating node. This value should be used as a protection mechanism to + * reduce the memory overhead per search request if the potential number of + * shards in the request can be large. + *

* API name: {@code batched_reduce_size} */ @Nullable @@ -371,6 +379,9 @@ public Number batchedReduceSize() { } /** + * Indicates whether network round-trips should be minimized as part of + * cross-cluster search requests execution + *

* API name: {@code ccs_minimize_roundtrips} */ @Nullable @@ -379,6 +390,8 @@ public Boolean ccsMinimizeRoundtrips() { } /** + * The default operator for query string query (AND or OR) + *

* API name: {@code default_operator} */ @Nullable @@ -387,6 +400,9 @@ public JsonValue defaultOperator() { } /** + * The field to use as default where no field prefix is given in the query + * string + *

* API name: {@code df} */ @Nullable @@ -395,6 +411,9 @@ public String df() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -403,6 +422,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete, expanded or aliased indices should be ignored + * when throttled + *

* API name: {@code ignore_throttled} */ @Nullable @@ -411,6 +433,9 @@ public Boolean ignoreThrottled() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -419,6 +444,9 @@ public Boolean ignoreUnavailable() { } /** + * Specify whether format-based query failures (such as providing text to a + * numeric field) should be ignored + *

* API name: {@code lenient} */ @Nullable @@ -427,6 +455,10 @@ public Boolean lenient() { } /** + * The number of concurrent shard requests per node this search executes + * concurrently. This value should be used to limit the impact of the search on + * the cluster in order to limit the number of concurrent shard requests + *

* API name: {@code max_concurrent_shard_requests} */ @Nullable @@ -435,6 +467,9 @@ public Number maxConcurrentShardRequests() { } /** + * The minimum compatible version that all shards involved in search should have + * for this request to be successful + *

* API name: {@code min_compatible_shard_node} */ @Nullable @@ -443,6 +478,9 @@ public String minCompatibleShardNode() { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ @Nullable @@ -451,6 +489,13 @@ public String preference() { } /** + * A threshold that enforces a pre-filter roundtrip to prefilter search shards + * based on query rewriting if the number of shards the search request expands + * to exceeds the threshold. This filter roundtrip can limit the number of + * shards significantly if for instance a shard can not match any documents + * based on its rewrite method ie. if date filters are mandatory to match but + * the shard bounds and the query are disjoint. + *

* API name: {@code pre_filter_shard_size} */ @Nullable @@ -459,6 +504,9 @@ public Number preFilterShardSize() { } /** + * Specify if request cache should be used for this request or not, defaults to + * index level setting + *

* API name: {@code request_cache} */ @Nullable @@ -467,14 +515,19 @@ public Boolean requestCache() { } /** + * A comma-separated list of specific routing values + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * Specify how long a consistent view of the index should be maintained for + * scrolled search + *

* API name: {@code scroll} */ @Nullable @@ -483,6 +536,8 @@ public JsonValue scroll() { } /** + * Search operation type + *

* API name: {@code search_type} */ @Nullable @@ -491,6 +546,8 @@ public JsonValue searchType() { } /** + * Specifies which field to use for suggestions. + *

* API name: {@code suggest_field} */ @Nullable @@ -499,6 +556,8 @@ public String suggestField() { } /** + * Specify suggest mode + *

* API name: {@code suggest_mode} */ @Nullable @@ -507,6 +566,8 @@ public JsonValue suggestMode() { } /** + * How many suggestions to return in response + *

* API name: {@code suggest_size} */ @Nullable @@ -515,6 +576,8 @@ public Number suggestSize() { } /** + * The source text for which the suggestions should be returned. + *

* API name: {@code suggest_text} */ @Nullable @@ -523,6 +586,9 @@ public String suggestText() { } /** + * Specify whether aggregation and suggester names should be prefixed by their + * respective types in the response + *

* API name: {@code typed_keys} */ @Nullable @@ -531,6 +597,9 @@ public Boolean typedKeys() { } /** + * Indicates whether hits.total should be rendered as an integer or an object in + * the rest search response + *

* API name: {@code rest_total_hits_as_int} */ @Nullable @@ -539,6 +608,8 @@ public Boolean restTotalHitsAsInt() { } /** + * A list of fields to exclude from the returned _source field + *

* API name: {@code _source_excludes} */ @Nullable @@ -547,6 +618,8 @@ public List sourceExcludes() { } /** + * A list of fields to extract and return from the _source field + *

* API name: {@code _source_includes} */ @Nullable @@ -555,6 +628,8 @@ public List sourceIncludes() { } /** + * Query in the Lucene query string syntax + *

* API name: {@code q} */ @Nullable @@ -587,6 +662,9 @@ public FieldCollapse collapse() { } /** + * If true, returns detailed information about score computation as part of a + * hit. + *

* API name: {@code explain} */ @Nullable @@ -595,6 +673,10 @@ public Boolean explain() { } /** + * Starting document offset. By default, you cannot page through more than + * 10,000 hits using the from and size parameters. To page through more hits, + * use the search_after parameter. + *

* API name: {@code from} */ @Nullable @@ -611,6 +693,11 @@ public Highlight highlight() { } /** + * Number of hits matching the query to count accurately. If true, the exact + * number of hits is returned at the cost of some performance. If false, the + * response does not include the total number of hits matching the query. + * Defaults to 10,000 hits. + *

* API name: {@code track_total_hits} */ @Nullable @@ -619,6 +706,8 @@ public JsonValue trackTotalHits() { } /** + * Boosts the _score of documents from specified indices. + *

* API name: {@code indices_boost} */ @Nullable @@ -627,6 +716,9 @@ public List> indicesBoost() { } /** + * Array of wildcard (*) patterns. The request returns doc values for field + * names matching these patterns in the hits.fields property of the response. + *

* API name: {@code docvalue_fields} */ @Nullable @@ -635,6 +727,9 @@ public JsonValue docvalueFields() { } /** + * Minimum _score for matching documents. Documents with a lower _score are not + * included in the search results. + *

* API name: {@code min_score} */ @Nullable @@ -659,6 +754,8 @@ public Boolean profile() { } /** + * Defines the search definition using the Query DSL. + *

* API name: {@code query} */ @Nullable @@ -675,6 +772,8 @@ public List rescore() { } /** + * Retrieve a script evaluation (based on different fields) for each hit. + *

* API name: {@code script_fields} */ @Nullable @@ -691,6 +790,10 @@ public List searchAfter() { } /** + * The number of hits to return. By default, you cannot page through more than + * 10,000 hits using the from and size parameters. To page through more hits, + * use the search_after parameter. + *

* API name: {@code size} */ @Nullable @@ -715,6 +818,9 @@ public List sort() { } /** + * Indicates which source fields are returned for matching documents. These + * fields are returned in the hits._source property of the search response. + *

* API name: {@code _source} */ @Nullable @@ -723,6 +829,9 @@ public JsonValue source() { } /** + * Array of wildcard (*) patterns. The request returns values for field names + * matching these patterns in the hits.fields property of the response. + *

* API name: {@code fields} */ @Nullable @@ -739,6 +848,11 @@ public JsonValue suggest() { } /** + * Maximum number of documents to collect for each shard. If a query reaches + * this limit, Elasticsearch terminates the query early. Elasticsearch collects + * documents before sorting. Defaults to 0, which does not terminate query + * execution early. + *

* API name: {@code terminate_after} */ @Nullable @@ -747,6 +861,10 @@ public Number terminateAfter() { } /** + * Specifies the period of time to wait for a response from each shard. If no + * response is received before the timeout expires, the request fails and + * returns an error. Defaults to no timeout. + *

* API name: {@code timeout} */ @Nullable @@ -755,6 +873,9 @@ public String timeout() { } /** + * If true, calculate and return document scores, even if the scores are not + * used for sorting. + *

* API name: {@code track_scores} */ @Nullable @@ -763,6 +884,8 @@ public Boolean trackScores() { } /** + * If true, returns document version as part of a hit. + *

* API name: {@code version} */ @Nullable @@ -771,6 +894,9 @@ public Boolean version() { } /** + * If true, returns sequence number and primary term of the last modification of + * each hit. See Optimistic concurrency control. + *

* API name: {@code seq_no_primary_term} */ @Nullable @@ -779,6 +905,11 @@ public Boolean seqNoPrimaryTerm() { } /** + * List of stored fields to return as part of a hit. If no fields are specified, + * no stored fields are included in the response. If this field is specified, + * the _source parameter defaults to false. You can pass _source: true to return + * both source fields and stored fields in the search response. + *

* API name: {@code stored_fields} */ @Nullable @@ -787,6 +918,9 @@ public List storedFields() { } /** + * Limits the search to a point in time (PIT). If you provide a PIT, you cannot + * specify an in the request path. + *

* API name: {@code pit} */ @Nullable @@ -795,6 +929,9 @@ public PointInTimeReference pit() { } /** + * Defines one or more runtime fields in the search request. These fields take + * precedence over mapped fields with the same name. + *

* API name: {@code runtime_mappings} */ @Nullable @@ -803,6 +940,10 @@ public Map runtimeMappings() { } /** + * Stats groups to associate with the search. Each group maintains a statistics + * aggregation for its associated searches. You can retrieve these stats using + * the indices stats API. + *

* API name: {@code stats} */ @Nullable @@ -1084,9 +1225,6 @@ public static class Builder implements ObjectBuilder { @Nullable private List index; - @Nullable - private List type; - @Nullable private Boolean allowNoIndices; @@ -1139,7 +1277,7 @@ public static class Builder implements ObjectBuilder { private Boolean requestCache; @Nullable - private JsonValue routing; + private String routing; @Nullable private JsonValue scroll; @@ -1268,6 +1406,9 @@ public static class Builder implements ObjectBuilder { private List stats; /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -1276,6 +1417,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -1295,33 +1439,10 @@ public Builder addIndex(String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable List value) { - this.type = value; - return this; - } - - /** - * API name: {@code type} - */ - public Builder type(String... value) { - this.type = Arrays.asList(value); - return this; - } - - /** - * Add a value to {@link #type(List)}, creating the list if needed. - */ - public Builder addType(String value) { - if (this.type == null) { - this.type = new ArrayList<>(); - } - this.type.add(value); - return this; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -1330,6 +1451,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Indicate if an error should be returned if there is a partial search failure + * or timeout + *

* API name: {@code allow_partial_search_results} */ public Builder allowPartialSearchResults(@Nullable Boolean value) { @@ -1338,6 +1462,8 @@ public Builder allowPartialSearchResults(@Nullable Boolean value) { } /** + * The analyzer to use for the query string + *

* API name: {@code analyzer} */ public Builder analyzer(@Nullable String value) { @@ -1346,6 +1472,9 @@ public Builder analyzer(@Nullable String value) { } /** + * Specify whether wildcard and prefix queries should be analyzed (default: + * false) + *

* API name: {@code analyze_wildcard} */ public Builder analyzeWildcard(@Nullable Boolean value) { @@ -1354,6 +1483,11 @@ public Builder analyzeWildcard(@Nullable Boolean value) { } /** + * The number of shard results that should be reduced at once on the + * coordinating node. This value should be used as a protection mechanism to + * reduce the memory overhead per search request if the potential number of + * shards in the request can be large. + *

* API name: {@code batched_reduce_size} */ public Builder batchedReduceSize(@Nullable Number value) { @@ -1362,6 +1496,9 @@ public Builder batchedReduceSize(@Nullable Number value) { } /** + * Indicates whether network round-trips should be minimized as part of + * cross-cluster search requests execution + *

* API name: {@code ccs_minimize_roundtrips} */ public Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { @@ -1370,6 +1507,8 @@ public Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { } /** + * The default operator for query string query (AND or OR) + *

* API name: {@code default_operator} */ public Builder defaultOperator(@Nullable JsonValue value) { @@ -1378,6 +1517,9 @@ public Builder defaultOperator(@Nullable JsonValue value) { } /** + * The field to use as default where no field prefix is given in the query + * string + *

* API name: {@code df} */ public Builder df(@Nullable String value) { @@ -1386,6 +1528,9 @@ public Builder df(@Nullable String value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -1394,6 +1539,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete, expanded or aliased indices should be ignored + * when throttled + *

* API name: {@code ignore_throttled} */ public Builder ignoreThrottled(@Nullable Boolean value) { @@ -1402,6 +1550,9 @@ public Builder ignoreThrottled(@Nullable Boolean value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -1410,6 +1561,9 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Specify whether format-based query failures (such as providing text to a + * numeric field) should be ignored + *

* API name: {@code lenient} */ public Builder lenient(@Nullable Boolean value) { @@ -1418,6 +1572,10 @@ public Builder lenient(@Nullable Boolean value) { } /** + * The number of concurrent shard requests per node this search executes + * concurrently. This value should be used to limit the impact of the search on + * the cluster in order to limit the number of concurrent shard requests + *

* API name: {@code max_concurrent_shard_requests} */ public Builder maxConcurrentShardRequests(@Nullable Number value) { @@ -1426,6 +1584,9 @@ public Builder maxConcurrentShardRequests(@Nullable Number value) { } /** + * The minimum compatible version that all shards involved in search should have + * for this request to be successful + *

* API name: {@code min_compatible_shard_node} */ public Builder minCompatibleShardNode(@Nullable String value) { @@ -1434,6 +1595,9 @@ public Builder minCompatibleShardNode(@Nullable String value) { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ public Builder preference(@Nullable String value) { @@ -1442,6 +1606,13 @@ public Builder preference(@Nullable String value) { } /** + * A threshold that enforces a pre-filter roundtrip to prefilter search shards + * based on query rewriting if the number of shards the search request expands + * to exceeds the threshold. This filter roundtrip can limit the number of + * shards significantly if for instance a shard can not match any documents + * based on its rewrite method ie. if date filters are mandatory to match but + * the shard bounds and the query are disjoint. + *

* API name: {@code pre_filter_shard_size} */ public Builder preFilterShardSize(@Nullable Number value) { @@ -1450,6 +1621,9 @@ public Builder preFilterShardSize(@Nullable Number value) { } /** + * Specify if request cache should be used for this request or not, defaults to + * index level setting + *

* API name: {@code request_cache} */ public Builder requestCache(@Nullable Boolean value) { @@ -1458,14 +1632,19 @@ public Builder requestCache(@Nullable Boolean value) { } /** + * A comma-separated list of specific routing values + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * Specify how long a consistent view of the index should be maintained for + * scrolled search + *

* API name: {@code scroll} */ public Builder scroll(@Nullable JsonValue value) { @@ -1474,6 +1653,8 @@ public Builder scroll(@Nullable JsonValue value) { } /** + * Search operation type + *

* API name: {@code search_type} */ public Builder searchType(@Nullable JsonValue value) { @@ -1482,6 +1663,8 @@ public Builder searchType(@Nullable JsonValue value) { } /** + * Specifies which field to use for suggestions. + *

* API name: {@code suggest_field} */ public Builder suggestField(@Nullable String value) { @@ -1490,6 +1673,8 @@ public Builder suggestField(@Nullable String value) { } /** + * Specify suggest mode + *

* API name: {@code suggest_mode} */ public Builder suggestMode(@Nullable JsonValue value) { @@ -1498,6 +1683,8 @@ public Builder suggestMode(@Nullable JsonValue value) { } /** + * How many suggestions to return in response + *

* API name: {@code suggest_size} */ public Builder suggestSize(@Nullable Number value) { @@ -1506,6 +1693,8 @@ public Builder suggestSize(@Nullable Number value) { } /** + * The source text for which the suggestions should be returned. + *

* API name: {@code suggest_text} */ public Builder suggestText(@Nullable String value) { @@ -1514,6 +1703,9 @@ public Builder suggestText(@Nullable String value) { } /** + * Specify whether aggregation and suggester names should be prefixed by their + * respective types in the response + *

* API name: {@code typed_keys} */ public Builder typedKeys(@Nullable Boolean value) { @@ -1522,6 +1714,9 @@ public Builder typedKeys(@Nullable Boolean value) { } /** + * Indicates whether hits.total should be rendered as an integer or an object in + * the rest search response + *

* API name: {@code rest_total_hits_as_int} */ public Builder restTotalHitsAsInt(@Nullable Boolean value) { @@ -1530,6 +1725,8 @@ public Builder restTotalHitsAsInt(@Nullable Boolean value) { } /** + * A list of fields to exclude from the returned _source field + *

* API name: {@code _source_excludes} */ public Builder sourceExcludes(@Nullable List value) { @@ -1538,6 +1735,8 @@ public Builder sourceExcludes(@Nullable List value) { } /** + * A list of fields to exclude from the returned _source field + *

* API name: {@code _source_excludes} */ public Builder sourceExcludes(String... value) { @@ -1557,6 +1756,8 @@ public Builder addSourceExcludes(String value) { } /** + * A list of fields to extract and return from the _source field + *

* API name: {@code _source_includes} */ public Builder sourceIncludes(@Nullable List value) { @@ -1565,6 +1766,8 @@ public Builder sourceIncludes(@Nullable List value) { } /** + * A list of fields to extract and return from the _source field + *

* API name: {@code _source_includes} */ public Builder sourceIncludes(String... value) { @@ -1584,6 +1787,8 @@ public Builder addSourceIncludes(String value) { } /** + * Query in the Lucene query string syntax + *

* API name: {@code q} */ public Builder q(@Nullable String value) { @@ -1678,6 +1883,9 @@ public Builder collapse(Function * API name: {@code explain} */ public Builder explain(@Nullable Boolean value) { @@ -1686,6 +1894,10 @@ public Builder explain(@Nullable Boolean value) { } /** + * Starting document offset. By default, you cannot page through more than + * 10,000 hits using the from and size parameters. To page through more hits, + * use the search_after parameter. + *

* API name: {@code from} */ public Builder from(@Nullable Number value) { @@ -1709,6 +1921,11 @@ public Builder highlight(Function> f } /** + * Number of hits matching the query to count accurately. If true, the exact + * number of hits is returned at the cost of some performance. If false, the + * response does not include the total number of hits matching the query. + * Defaults to 10,000 hits. + *

* API name: {@code track_total_hits} */ public Builder trackTotalHits(@Nullable JsonValue value) { @@ -1717,6 +1934,8 @@ public Builder trackTotalHits(@Nullable JsonValue value) { } /** + * Boosts the _score of documents from specified indices. + *

* API name: {@code indices_boost} */ public Builder indicesBoost(@Nullable List> value) { @@ -1725,6 +1944,8 @@ public Builder indicesBoost(@Nullable List> value) { } /** + * Boosts the _score of documents from specified indices. + *

* API name: {@code indices_boost} */ public Builder indicesBoost(Map... value) { @@ -1744,6 +1965,9 @@ public Builder addIndicesBoost(Map value) { } /** + * Array of wildcard (*) patterns. The request returns doc values for field + * names matching these patterns in the hits.fields property of the response. + *

* API name: {@code docvalue_fields} */ public Builder docvalueFields(@Nullable JsonValue value) { @@ -1752,6 +1976,9 @@ public Builder docvalueFields(@Nullable JsonValue value) { } /** + * Minimum _score for matching documents. Documents with a lower _score are not + * included in the search results. + *

* API name: {@code min_score} */ public Builder minScore(@Nullable Number value) { @@ -1783,6 +2010,8 @@ public Builder profile(@Nullable Boolean value) { } /** + * Defines the search definition using the Query DSL. + *

* API name: {@code query} */ public Builder query(@Nullable QueryContainer value) { @@ -1791,6 +2020,8 @@ public Builder query(@Nullable QueryContainer value) { } /** + * Defines the search definition using the Query DSL. + *

* API name: {@code query} */ public Builder query(Function> fn) { @@ -1839,6 +2070,8 @@ public Builder addRescore(Function> fn) } /** + * Retrieve a script evaluation (based on different fields) for each hit. + *

* API name: {@code script_fields} */ public Builder scriptFields(@Nullable Map value) { @@ -1899,6 +2132,10 @@ public Builder addSearchAfter(JsonValue value) { } /** + * The number of hits to return. By default, you cannot page through more than + * 10,000 hits using the from and size parameters. To page through more hits, + * use the search_after parameter. + *

* API name: {@code size} */ public Builder size(@Nullable Number value) { @@ -1949,6 +2186,9 @@ public Builder addSort(JsonValue value) { } /** + * Indicates which source fields are returned for matching documents. These + * fields are returned in the hits._source property of the search response. + *

* API name: {@code _source} */ public Builder source(@Nullable JsonValue value) { @@ -1957,6 +2197,9 @@ public Builder source(@Nullable JsonValue value) { } /** + * Array of wildcard (*) patterns. The request returns values for field names + * matching these patterns in the hits.fields property of the response. + *

* API name: {@code fields} */ public Builder fields(@Nullable List value) { @@ -1965,6 +2208,9 @@ public Builder fields(@Nullable List value) { } /** + * Array of wildcard (*) patterns. The request returns values for field names + * matching these patterns in the hits.fields property of the response. + *

* API name: {@code fields} */ public Builder fields(JsonValue... value) { @@ -1992,6 +2238,11 @@ public Builder suggest(@Nullable JsonValue value) { } /** + * Maximum number of documents to collect for each shard. If a query reaches + * this limit, Elasticsearch terminates the query early. Elasticsearch collects + * documents before sorting. Defaults to 0, which does not terminate query + * execution early. + *

* API name: {@code terminate_after} */ public Builder terminateAfter(@Nullable Number value) { @@ -2000,6 +2251,10 @@ public Builder terminateAfter(@Nullable Number value) { } /** + * Specifies the period of time to wait for a response from each shard. If no + * response is received before the timeout expires, the request fails and + * returns an error. Defaults to no timeout. + *

* API name: {@code timeout} */ public Builder timeout(@Nullable String value) { @@ -2008,6 +2263,9 @@ public Builder timeout(@Nullable String value) { } /** + * If true, calculate and return document scores, even if the scores are not + * used for sorting. + *

* API name: {@code track_scores} */ public Builder trackScores(@Nullable Boolean value) { @@ -2016,6 +2274,8 @@ public Builder trackScores(@Nullable Boolean value) { } /** + * If true, returns document version as part of a hit. + *

* API name: {@code version} */ public Builder version(@Nullable Boolean value) { @@ -2024,6 +2284,9 @@ public Builder version(@Nullable Boolean value) { } /** + * If true, returns sequence number and primary term of the last modification of + * each hit. See Optimistic concurrency control. + *

* API name: {@code seq_no_primary_term} */ public Builder seqNoPrimaryTerm(@Nullable Boolean value) { @@ -2032,6 +2295,11 @@ public Builder seqNoPrimaryTerm(@Nullable Boolean value) { } /** + * List of stored fields to return as part of a hit. If no fields are specified, + * no stored fields are included in the response. If this field is specified, + * the _source parameter defaults to false. You can pass _source: true to return + * both source fields and stored fields in the search response. + *

* API name: {@code stored_fields} */ public Builder storedFields(@Nullable List value) { @@ -2040,6 +2308,11 @@ public Builder storedFields(@Nullable List value) { } /** + * List of stored fields to return as part of a hit. If no fields are specified, + * no stored fields are included in the response. If this field is specified, + * the _source parameter defaults to false. You can pass _source: true to return + * both source fields and stored fields in the search response. + *

* API name: {@code stored_fields} */ public Builder storedFields(String... value) { @@ -2059,6 +2332,9 @@ public Builder addStoredFields(String value) { } /** + * Limits the search to a point in time (PIT). If you provide a PIT, you cannot + * specify an in the request path. + *

* API name: {@code pit} */ public Builder pit(@Nullable PointInTimeReference value) { @@ -2067,6 +2343,9 @@ public Builder pit(@Nullable PointInTimeReference value) { } /** + * Limits the search to a point in time (PIT). If you provide a PIT, you cannot + * specify an in the request path. + *

* API name: {@code pit} */ public Builder pit(Function> fn) { @@ -2074,6 +2353,9 @@ public Builder pit(Function * API name: {@code runtime_mappings} */ public Builder runtimeMappings(@Nullable Map value) { @@ -2107,6 +2389,10 @@ public Builder putRuntimeMappings(String key, Function * API name: {@code stats} */ public Builder stats(@Nullable List value) { @@ -2115,6 +2401,10 @@ public Builder stats(@Nullable List value) { } /** + * Stats groups to associate with the search. Each group maintains a statistics + * aggregation for its associated searches. You can retrieve these stats using + * the indices stats API. + *

* API name: {@code stats} */ public Builder stats(String... value) { @@ -2213,14 +2503,11 @@ protected static void setupSearchRequestDeserializer(DelegatingDeserializer { final int _index = 1 << 0; - final int _type = 1 << 1; int propsSet = 0; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == 0) { StringBuilder buf = new StringBuilder(); @@ -2234,15 +2521,6 @@ protected static void setupSearchRequestDeserializer(DelegatingDeserializer v).collect(Collectors.joining(","))); - buf.append("/"); - buf.append(request.type.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/_search"); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, @@ -2302,7 +2580,7 @@ protected static void setupSearchRequestDeserializer(DelegatingDeserializer_all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -88,6 +91,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -96,6 +103,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -104,6 +114,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -112,6 +125,9 @@ public Boolean ignoreUnavailable() { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ @Nullable @@ -120,6 +136,9 @@ public Boolean local() { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ @Nullable @@ -128,10 +147,12 @@ public String preference() { } /** + * Specific routing value + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } @@ -160,9 +181,12 @@ public static class Builder implements ObjectBuilder { private String preference; @Nullable - private JsonValue routing; + private String routing; /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -171,6 +195,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -190,6 +217,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -198,6 +229,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -206,6 +240,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -214,6 +251,9 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { @@ -222,6 +262,9 @@ public Builder local(@Nullable Boolean value) { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ public Builder preference(@Nullable String value) { @@ -230,9 +273,11 @@ public Builder preference(@Nullable String value) { } /** + * Specific routing value + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } @@ -305,7 +350,7 @@ public SearchShardsRequest build() { params.put("preference", request.preference); } if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } return params; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchTemplateRequest.java index 712215857..76935ea30 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/SearchTemplateRequest.java @@ -50,9 +50,6 @@ public final class SearchTemplateRequest extends RequestBase implements ToJsonp @Nullable private final List index; - @Nullable - private final List type; - @Nullable private final Boolean allowNoIndices; @@ -78,7 +75,7 @@ public final class SearchTemplateRequest extends RequestBase implements ToJsonp private final Boolean profile; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final JsonValue scroll; @@ -106,7 +103,6 @@ public final class SearchTemplateRequest extends RequestBase implements ToJsonp protected SearchTemplateRequest(Builder builder) { this.index = builder.index; - this.type = builder.type; this.allowNoIndices = builder.allowNoIndices; this.ccsMinimizeRoundtrips = builder.ccsMinimizeRoundtrips; this.expandWildcards = builder.expandWildcards; @@ -127,6 +123,9 @@ protected SearchTemplateRequest(Builder builder) { } /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -135,14 +134,10 @@ public List index() { } /** - * API name: {@code type} - */ - @Nullable - public List type() { - return this.type; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -151,6 +146,9 @@ public Boolean allowNoIndices() { } /** + * Indicates whether network round-trips should be minimized as part of + * cross-cluster search requests execution + *

* API name: {@code ccs_minimize_roundtrips} */ @Nullable @@ -159,6 +157,9 @@ public Boolean ccsMinimizeRoundtrips() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -177,6 +178,9 @@ public Boolean explain() { } /** + * Whether specified concrete, expanded or aliased indices should be ignored + * when throttled + *

* API name: {@code ignore_throttled} */ @Nullable @@ -185,6 +189,9 @@ public Boolean ignoreThrottled() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -193,6 +200,9 @@ public Boolean ignoreUnavailable() { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ @Nullable @@ -201,6 +211,8 @@ public String preference() { } /** + * Specify whether to profile the query execution + *

* API name: {@code profile} */ @Nullable @@ -209,14 +221,19 @@ public Boolean profile() { } /** + * A comma-separated list of specific routing values + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * Specify how long a consistent view of the index should be maintained for + * scrolled search + *

* API name: {@code scroll} */ @Nullable @@ -225,6 +242,8 @@ public JsonValue scroll() { } /** + * Search operation type + *

* API name: {@code search_type} */ @Nullable @@ -243,6 +262,9 @@ public Boolean totalHitsAsInteger() { } /** + * Specify whether aggregation and suggester names should be prefixed by their + * respective types in the response + *

* API name: {@code typed_keys} */ @Nullable @@ -321,9 +343,6 @@ public static class Builder implements ObjectBuilder { @Nullable private List index; - @Nullable - private List type; - @Nullable private Boolean allowNoIndices; @@ -349,7 +368,7 @@ public static class Builder implements ObjectBuilder { private Boolean profile; @Nullable - private JsonValue routing; + private String routing; @Nullable private JsonValue scroll; @@ -373,6 +392,9 @@ public static class Builder implements ObjectBuilder { private String source; /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -381,6 +403,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -400,33 +425,10 @@ public Builder addIndex(String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable List value) { - this.type = value; - return this; - } - - /** - * API name: {@code type} - */ - public Builder type(String... value) { - this.type = Arrays.asList(value); - return this; - } - - /** - * Add a value to {@link #type(List)}, creating the list if needed. - */ - public Builder addType(String value) { - if (this.type == null) { - this.type = new ArrayList<>(); - } - this.type.add(value); - return this; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -435,6 +437,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Indicates whether network round-trips should be minimized as part of + * cross-cluster search requests execution + *

* API name: {@code ccs_minimize_roundtrips} */ public Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { @@ -443,6 +448,9 @@ public Builder ccsMinimizeRoundtrips(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -461,6 +469,9 @@ public Builder explain(@Nullable Boolean value) { } /** + * Whether specified concrete, expanded or aliased indices should be ignored + * when throttled + *

* API name: {@code ignore_throttled} */ public Builder ignoreThrottled(@Nullable Boolean value) { @@ -469,6 +480,9 @@ public Builder ignoreThrottled(@Nullable Boolean value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -477,6 +491,9 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ public Builder preference(@Nullable String value) { @@ -485,6 +502,8 @@ public Builder preference(@Nullable String value) { } /** + * Specify whether to profile the query execution + *

* API name: {@code profile} */ public Builder profile(@Nullable Boolean value) { @@ -493,14 +512,19 @@ public Builder profile(@Nullable Boolean value) { } /** + * A comma-separated list of specific routing values + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * Specify how long a consistent view of the index should be maintained for + * scrolled search + *

* API name: {@code scroll} */ public Builder scroll(@Nullable JsonValue value) { @@ -509,6 +533,8 @@ public Builder scroll(@Nullable JsonValue value) { } /** + * Search operation type + *

* API name: {@code search_type} */ public Builder searchType(@Nullable JsonValue value) { @@ -527,6 +553,9 @@ public Builder totalHitsAsInteger(@Nullable Boolean value) { } /** + * Specify whether aggregation and suggester names should be prefixed by their + * respective types in the response + *

* API name: {@code typed_keys} */ public Builder typedKeys(@Nullable Boolean value) { @@ -614,14 +643,11 @@ protected static void setupSearchTemplateRequestDeserializer( // Request path request -> { final int _index = 1 << 0; - final int _type = 1 << 1; int propsSet = 0; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == 0) { StringBuilder buf = new StringBuilder(); @@ -637,16 +663,6 @@ protected static void setupSearchTemplateRequestDeserializer( buf.append("/template"); return buf.toString(); } - if (propsSet == (_index | _type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/"); - buf.append(request.type.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/_search"); - buf.append("/template"); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, @@ -679,7 +695,7 @@ protected static void setupSearchTemplateRequestDeserializer( params.put("profile", String.valueOf(request.profile)); } if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } if (request.scroll != null) { params.put("scroll", request.scroll.toString()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/TermvectorsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/TermvectorsRequest.java index 824db4905..c0ac77281 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/TermvectorsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/TermvectorsRequest.java @@ -59,9 +59,6 @@ public final class TermvectorsRequest extends RequestBase implements @Nullable private final String id; - @Nullable - private final String type; - @Nullable private final List fields; @@ -84,7 +81,7 @@ public final class TermvectorsRequest extends RequestBase implements private final Boolean realtime; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final Boolean termStatistics; @@ -113,7 +110,6 @@ protected TermvectorsRequest(Builder builder) { this.index = Objects.requireNonNull(builder.index, "index"); this.id = builder.id; - this.type = builder.type; this.fields = builder.fields; this.fieldStatistics = builder.fieldStatistics; this.offsets = builder.offsets; @@ -133,6 +129,8 @@ protected TermvectorsRequest(Builder builder) { } /** + * The index in which the document resides. + *

* API name: {@code index} */ public String index() { @@ -140,6 +138,8 @@ public String index() { } /** + * The id of the document, when not specified a doc param should be supplied. + *

* API name: {@code id} */ @Nullable @@ -148,14 +148,8 @@ public String id() { } /** - * API name: {@code type} - */ - @Nullable - public String type() { - return this.type; - } - - /** + * A comma-separated list of fields to return. + *

* API name: {@code fields} */ @Nullable @@ -164,6 +158,9 @@ public List fields() { } /** + * Specifies if document count, sum of document frequencies and sum of total + * term frequencies should be returned. + *

* API name: {@code field_statistics} */ @Nullable @@ -172,6 +169,8 @@ public Boolean fieldStatistics() { } /** + * Specifies if term offsets should be returned. + *

* API name: {@code offsets} */ @Nullable @@ -180,6 +179,8 @@ public Boolean offsets() { } /** + * Specifies if term payloads should be returned. + *

* API name: {@code payloads} */ @Nullable @@ -188,6 +189,8 @@ public Boolean payloads() { } /** + * Specifies if term positions should be returned. + *

* API name: {@code positions} */ @Nullable @@ -196,6 +199,9 @@ public Boolean positions() { } /** + * Specify the node or shard the operation should be performed on (default: + * random). + *

* API name: {@code preference} */ @Nullable @@ -204,6 +210,9 @@ public String preference() { } /** + * Specifies if request is real-time as opposed to near-real-time (default: + * true). + *

* API name: {@code realtime} */ @Nullable @@ -212,14 +221,18 @@ public Boolean realtime() { } /** + * Specific routing value. + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * Specifies if total term frequency and document frequency should be returned. + *

* API name: {@code term_statistics} */ @Nullable @@ -228,6 +241,8 @@ public Boolean termStatistics() { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ @Nullable @@ -236,6 +251,8 @@ public Number version() { } /** + * Specific version type + *

* API name: {@code version_type} */ @Nullable @@ -316,9 +333,6 @@ public static class Builder implements ObjectBuilder fields; @@ -341,7 +355,7 @@ public static class Builder implements ObjectBuilder implements ObjectBuilder tDocumentSerializer; /** + * The index in which the document resides. + *

* API name: {@code index} */ public Builder index(String value) { @@ -373,6 +389,8 @@ public Builder index(String value) { } /** + * The id of the document, when not specified a doc param should be supplied. + *

* API name: {@code id} */ public Builder id(@Nullable String value) { @@ -381,14 +399,8 @@ public Builder id(@Nullable String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable String value) { - this.type = value; - return this; - } - - /** + * A comma-separated list of fields to return. + *

* API name: {@code fields} */ public Builder fields(@Nullable List value) { @@ -397,6 +409,8 @@ public Builder fields(@Nullable List value) { } /** + * A comma-separated list of fields to return. + *

* API name: {@code fields} */ public Builder fields(String... value) { @@ -416,6 +430,9 @@ public Builder addFields(String value) { } /** + * Specifies if document count, sum of document frequencies and sum of total + * term frequencies should be returned. + *

* API name: {@code field_statistics} */ public Builder fieldStatistics(@Nullable Boolean value) { @@ -424,6 +441,8 @@ public Builder fieldStatistics(@Nullable Boolean value) { } /** + * Specifies if term offsets should be returned. + *

* API name: {@code offsets} */ public Builder offsets(@Nullable Boolean value) { @@ -432,6 +451,8 @@ public Builder offsets(@Nullable Boolean value) { } /** + * Specifies if term payloads should be returned. + *

* API name: {@code payloads} */ public Builder payloads(@Nullable Boolean value) { @@ -440,6 +461,8 @@ public Builder payloads(@Nullable Boolean value) { } /** + * Specifies if term positions should be returned. + *

* API name: {@code positions} */ public Builder positions(@Nullable Boolean value) { @@ -448,6 +471,9 @@ public Builder positions(@Nullable Boolean value) { } /** + * Specify the node or shard the operation should be performed on (default: + * random). + *

* API name: {@code preference} */ public Builder preference(@Nullable String value) { @@ -456,6 +482,9 @@ public Builder preference(@Nullable String value) { } /** + * Specifies if request is real-time as opposed to near-real-time (default: + * true). + *

* API name: {@code realtime} */ public Builder realtime(@Nullable Boolean value) { @@ -464,14 +493,18 @@ public Builder realtime(@Nullable Boolean value) { } /** + * Specific routing value. + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * Specifies if total term frequency and document frequency should be returned. + *

* API name: {@code term_statistics} */ public Builder termStatistics(@Nullable Boolean value) { @@ -480,6 +513,8 @@ public Builder termStatistics(@Nullable Boolean value) { } /** + * Explicit version number for concurrency control + *

* API name: {@code version} */ public Builder version(@Nullable Number value) { @@ -488,6 +523,8 @@ public Builder version(@Nullable Number value) { } /** + * Specific version type + *

* API name: {@code version_type} */ public Builder versionType(@Nullable JsonValue value) { @@ -597,7 +634,6 @@ protected static void setupTermvectorsRequestDeserializer( request -> { final int _index = 1 << 0; final int _id = 1 << 1; - final int _type = 1 << 2; int propsSet = 0; @@ -605,8 +641,6 @@ protected static void setupTermvectorsRequestDeserializer( propsSet |= _index; if (request.id() != null) propsSet |= _id; - if (request.type() != null) - propsSet |= _type; if (propsSet == (_index | _id)) { StringBuilder buf = new StringBuilder(); @@ -624,26 +658,6 @@ protected static void setupTermvectorsRequestDeserializer( buf.append("/_termvectors"); return buf.toString(); } - if (propsSet == (_index | _type | _id)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index); - buf.append("/"); - buf.append(request.type); - buf.append("/"); - buf.append(request.id); - buf.append("/_termvectors"); - return buf.toString(); - } - if (propsSet == (_index | _type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index); - buf.append("/"); - buf.append(request.type); - buf.append("/_termvectors"); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, @@ -673,7 +687,7 @@ protected static void setupTermvectorsRequestDeserializer( params.put("realtime", String.valueOf(request.realtime)); } if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } if (request.termStatistics != null) { params.put("term_statistics", String.valueOf(request.termStatistics)); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateByQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateByQueryRequest.java index a1a555977..3744c17cc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateByQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateByQueryRequest.java @@ -54,9 +54,6 @@ public final class UpdateByQueryRequest extends RequestBase implements ToJsonp { private final List index; - @Nullable - private final List type; - @Nullable private final Boolean allowNoIndices; @@ -103,7 +100,7 @@ public final class UpdateByQueryRequest extends RequestBase implements ToJsonp { private final Number requestsPerSecond; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final JsonValue scroll; @@ -127,7 +124,7 @@ public final class UpdateByQueryRequest extends RequestBase implements ToJsonp { private final List sort; @Nullable - private final Boolean sourceEnabled; + private final JsonValue source; @Nullable private final List sourceExcludes; @@ -176,7 +173,6 @@ public final class UpdateByQueryRequest extends RequestBase implements ToJsonp { protected UpdateByQueryRequest(Builder builder) { this.index = Objects.requireNonNull(builder.index, "index"); - this.type = builder.type; this.allowNoIndices = builder.allowNoIndices; this.analyzer = builder.analyzer; this.analyzeWildcard = builder.analyzeWildcard; @@ -200,7 +196,7 @@ protected UpdateByQueryRequest(Builder builder) { this.size = builder.size; this.slices = builder.slices; this.sort = builder.sort; - this.sourceEnabled = builder.sourceEnabled; + this.source = builder.source; this.sourceExcludes = builder.sourceExcludes; this.sourceIncludes = builder.sourceIncludes; this.stats = builder.stats; @@ -219,6 +215,9 @@ protected UpdateByQueryRequest(Builder builder) { } /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public List index() { @@ -226,14 +225,10 @@ public List index() { } /** - * API name: {@code type} - */ - @Nullable - public List type() { - return this.type; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -242,6 +237,8 @@ public Boolean allowNoIndices() { } /** + * The analyzer to use for the query string + *

* API name: {@code analyzer} */ @Nullable @@ -250,6 +247,9 @@ public String analyzer() { } /** + * Specify whether wildcard and prefix queries should be analyzed (default: + * false) + *

* API name: {@code analyze_wildcard} */ @Nullable @@ -258,6 +258,8 @@ public Boolean analyzeWildcard() { } /** + * The default operator for query string query (AND or OR) + *

* API name: {@code default_operator} */ @Nullable @@ -266,6 +268,9 @@ public JsonValue defaultOperator() { } /** + * The field to use as default where no field prefix is given in the query + * string + *

* API name: {@code df} */ @Nullable @@ -274,6 +279,9 @@ public String df() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -282,6 +290,8 @@ public JsonValue expandWildcards() { } /** + * Starting offset (default: 0) + *

* API name: {@code from} */ @Nullable @@ -290,6 +300,9 @@ public Number from() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -298,6 +311,9 @@ public Boolean ignoreUnavailable() { } /** + * Specify whether format-based query failures (such as providing text to a + * numeric field) should be ignored + *

* API name: {@code lenient} */ @Nullable @@ -306,6 +322,8 @@ public Boolean lenient() { } /** + * Ingest pipeline to set on index requests made by this action. (default: none) + *

* API name: {@code pipeline} */ @Nullable @@ -314,6 +332,9 @@ public String pipeline() { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ @Nullable @@ -330,6 +351,8 @@ public String queryOnQueryString() { } /** + * Should the affected indexes be refreshed? + *

* API name: {@code refresh} */ @Nullable @@ -338,6 +361,9 @@ public Boolean refresh() { } /** + * Specify if request cache should be used for this request or not, defaults to + * index level setting + *

* API name: {@code request_cache} */ @Nullable @@ -346,6 +372,9 @@ public Boolean requestCache() { } /** + * The throttle to set on this request in sub-requests per second. -1 means no + * throttle. + *

* API name: {@code requests_per_second} */ @Nullable @@ -354,14 +383,19 @@ public Number requestsPerSecond() { } /** + * A comma-separated list of specific routing values + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * Specify how long a consistent view of the index should be maintained for + * scrolled search + *

* API name: {@code scroll} */ @Nullable @@ -370,6 +404,8 @@ public JsonValue scroll() { } /** + * Size on the scroll request powering the update by query + *

* API name: {@code scroll_size} */ @Nullable @@ -378,6 +414,8 @@ public Number scrollSize() { } /** + * Explicit timeout for each search request. Defaults to no timeout. + *

* API name: {@code search_timeout} */ @Nullable @@ -386,6 +424,8 @@ public JsonValue searchTimeout() { } /** + * Search operation type + *

* API name: {@code search_type} */ @Nullable @@ -402,6 +442,9 @@ public Number size() { } /** + * The number of slices this task should be divided into. Defaults to 1, meaning + * the task isn't sliced into subtasks. Can be set to auto. + *

* API name: {@code slices} */ @Nullable @@ -410,6 +453,8 @@ public Number slices() { } /** + * A comma-separated list of : pairs + *

* API name: {@code sort} */ @Nullable @@ -418,15 +463,20 @@ public List sort() { } /** - * API name: {@code source_enabled} + * True or false to return the _source field or not, or a list of fields to + * return + *

+ * API name: {@code _source} */ @Nullable - public Boolean sourceEnabled() { - return this.sourceEnabled; + public JsonValue source() { + return this.source; } /** - * API name: {@code source_excludes} + * A list of fields to exclude from the returned _source field + *

+ * API name: {@code _source_excludes} */ @Nullable public List sourceExcludes() { @@ -434,7 +484,9 @@ public List sourceExcludes() { } /** - * API name: {@code source_includes} + * A list of fields to extract and return from the _source field + *

+ * API name: {@code _source_includes} */ @Nullable public List sourceIncludes() { @@ -442,6 +494,8 @@ public List sourceIncludes() { } /** + * Specific 'tag' of the request for logging and statistical purposes + *

* API name: {@code stats} */ @Nullable @@ -450,6 +504,9 @@ public List stats() { } /** + * The maximum number of documents to collect for each shard, upon reaching + * which the query execution will terminate early. + *

* API name: {@code terminate_after} */ @Nullable @@ -458,6 +515,9 @@ public Number terminateAfter() { } /** + * Time each individual bulk request should wait for shards that are + * unavailable. + *

* API name: {@code timeout} */ @Nullable @@ -466,6 +526,8 @@ public JsonValue timeout() { } /** + * Specify whether to return document version as part of a hit + *

* API name: {@code version} */ @Nullable @@ -474,6 +536,9 @@ public Boolean version() { } /** + * Should the document increment the version number (internal) on hit or not + * (reindex) + *

* API name: {@code version_type} */ @Nullable @@ -482,6 +547,12 @@ public Boolean versionType() { } /** + * Sets the number of shard copies that must be active before proceeding with + * the update by query operation. Defaults to 1, meaning the primary shard only. + * Set to all for all shard copies, otherwise set to any + * non-negative value less than or equal to the total number of copies for the + * shard (number of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -490,6 +561,9 @@ public JsonValue waitForActiveShards() { } /** + * Should the request should block until the update by query operation is + * complete. + *

* API name: {@code wait_for_completion} */ @Nullable @@ -589,9 +663,6 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder implements ObjectBuilder { private List index; - @Nullable - private List type; - @Nullable private Boolean allowNoIndices; @@ -638,7 +709,7 @@ public static class Builder implements ObjectBuilder { private Number requestsPerSecond; @Nullable - private JsonValue routing; + private String routing; @Nullable private JsonValue scroll; @@ -662,7 +733,7 @@ public static class Builder implements ObjectBuilder { private List sort; @Nullable - private Boolean sourceEnabled; + private JsonValue source; @Nullable private List sourceExcludes; @@ -707,6 +778,9 @@ public static class Builder implements ObjectBuilder { private JsonValue conflicts; /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(List value) { @@ -715,6 +789,9 @@ public Builder index(List value) { } /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -734,33 +811,10 @@ public Builder addIndex(String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable List value) { - this.type = value; - return this; - } - - /** - * API name: {@code type} - */ - public Builder type(String... value) { - this.type = Arrays.asList(value); - return this; - } - - /** - * Add a value to {@link #type(List)}, creating the list if needed. - */ - public Builder addType(String value) { - if (this.type == null) { - this.type = new ArrayList<>(); - } - this.type.add(value); - return this; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -769,6 +823,8 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * The analyzer to use for the query string + *

* API name: {@code analyzer} */ public Builder analyzer(@Nullable String value) { @@ -777,6 +833,9 @@ public Builder analyzer(@Nullable String value) { } /** + * Specify whether wildcard and prefix queries should be analyzed (default: + * false) + *

* API name: {@code analyze_wildcard} */ public Builder analyzeWildcard(@Nullable Boolean value) { @@ -785,6 +844,8 @@ public Builder analyzeWildcard(@Nullable Boolean value) { } /** + * The default operator for query string query (AND or OR) + *

* API name: {@code default_operator} */ public Builder defaultOperator(@Nullable JsonValue value) { @@ -793,6 +854,9 @@ public Builder defaultOperator(@Nullable JsonValue value) { } /** + * The field to use as default where no field prefix is given in the query + * string + *

* API name: {@code df} */ public Builder df(@Nullable String value) { @@ -801,6 +865,9 @@ public Builder df(@Nullable String value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -809,6 +876,8 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Starting offset (default: 0) + *

* API name: {@code from} */ public Builder from(@Nullable Number value) { @@ -817,6 +886,9 @@ public Builder from(@Nullable Number value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -825,6 +897,9 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Specify whether format-based query failures (such as providing text to a + * numeric field) should be ignored + *

* API name: {@code lenient} */ public Builder lenient(@Nullable Boolean value) { @@ -833,6 +908,8 @@ public Builder lenient(@Nullable Boolean value) { } /** + * Ingest pipeline to set on index requests made by this action. (default: none) + *

* API name: {@code pipeline} */ public Builder pipeline(@Nullable String value) { @@ -841,6 +918,9 @@ public Builder pipeline(@Nullable String value) { } /** + * Specify the node or shard the operation should be performed on (default: + * random) + *

* API name: {@code preference} */ public Builder preference(@Nullable String value) { @@ -857,6 +937,8 @@ public Builder queryOnQueryString(@Nullable String value) { } /** + * Should the affected indexes be refreshed? + *

* API name: {@code refresh} */ public Builder refresh(@Nullable Boolean value) { @@ -865,6 +947,9 @@ public Builder refresh(@Nullable Boolean value) { } /** + * Specify if request cache should be used for this request or not, defaults to + * index level setting + *

* API name: {@code request_cache} */ public Builder requestCache(@Nullable Boolean value) { @@ -873,6 +958,9 @@ public Builder requestCache(@Nullable Boolean value) { } /** + * The throttle to set on this request in sub-requests per second. -1 means no + * throttle. + *

* API name: {@code requests_per_second} */ public Builder requestsPerSecond(@Nullable Number value) { @@ -881,14 +969,19 @@ public Builder requestsPerSecond(@Nullable Number value) { } /** + * A comma-separated list of specific routing values + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * Specify how long a consistent view of the index should be maintained for + * scrolled search + *

* API name: {@code scroll} */ public Builder scroll(@Nullable JsonValue value) { @@ -897,6 +990,8 @@ public Builder scroll(@Nullable JsonValue value) { } /** + * Size on the scroll request powering the update by query + *

* API name: {@code scroll_size} */ public Builder scrollSize(@Nullable Number value) { @@ -905,6 +1000,8 @@ public Builder scrollSize(@Nullable Number value) { } /** + * Explicit timeout for each search request. Defaults to no timeout. + *

* API name: {@code search_timeout} */ public Builder searchTimeout(@Nullable JsonValue value) { @@ -913,6 +1010,8 @@ public Builder searchTimeout(@Nullable JsonValue value) { } /** + * Search operation type + *

* API name: {@code search_type} */ public Builder searchType(@Nullable JsonValue value) { @@ -929,6 +1028,9 @@ public Builder size(@Nullable Number value) { } /** + * The number of slices this task should be divided into. Defaults to 1, meaning + * the task isn't sliced into subtasks. Can be set to auto. + *

* API name: {@code slices} */ public Builder slices(@Nullable Number value) { @@ -937,6 +1039,8 @@ public Builder slices(@Nullable Number value) { } /** + * A comma-separated list of : pairs + *

* API name: {@code sort} */ public Builder sort(@Nullable List value) { @@ -945,6 +1049,8 @@ public Builder sort(@Nullable List value) { } /** + * A comma-separated list of : pairs + *

* API name: {@code sort} */ public Builder sort(String... value) { @@ -964,15 +1070,20 @@ public Builder addSort(String value) { } /** - * API name: {@code source_enabled} + * True or false to return the _source field or not, or a list of fields to + * return + *

+ * API name: {@code _source} */ - public Builder sourceEnabled(@Nullable Boolean value) { - this.sourceEnabled = value; + public Builder source(@Nullable JsonValue value) { + this.source = value; return this; } /** - * API name: {@code source_excludes} + * A list of fields to exclude from the returned _source field + *

+ * API name: {@code _source_excludes} */ public Builder sourceExcludes(@Nullable List value) { this.sourceExcludes = value; @@ -980,7 +1091,9 @@ public Builder sourceExcludes(@Nullable List value) { } /** - * API name: {@code source_excludes} + * A list of fields to exclude from the returned _source field + *

+ * API name: {@code _source_excludes} */ public Builder sourceExcludes(String... value) { this.sourceExcludes = Arrays.asList(value); @@ -999,7 +1112,9 @@ public Builder addSourceExcludes(String value) { } /** - * API name: {@code source_includes} + * A list of fields to extract and return from the _source field + *

+ * API name: {@code _source_includes} */ public Builder sourceIncludes(@Nullable List value) { this.sourceIncludes = value; @@ -1007,7 +1122,9 @@ public Builder sourceIncludes(@Nullable List value) { } /** - * API name: {@code source_includes} + * A list of fields to extract and return from the _source field + *

+ * API name: {@code _source_includes} */ public Builder sourceIncludes(String... value) { this.sourceIncludes = Arrays.asList(value); @@ -1026,6 +1143,8 @@ public Builder addSourceIncludes(String value) { } /** + * Specific 'tag' of the request for logging and statistical purposes + *

* API name: {@code stats} */ public Builder stats(@Nullable List value) { @@ -1034,6 +1153,8 @@ public Builder stats(@Nullable List value) { } /** + * Specific 'tag' of the request for logging and statistical purposes + *

* API name: {@code stats} */ public Builder stats(String... value) { @@ -1053,6 +1174,9 @@ public Builder addStats(String value) { } /** + * The maximum number of documents to collect for each shard, upon reaching + * which the query execution will terminate early. + *

* API name: {@code terminate_after} */ public Builder terminateAfter(@Nullable Number value) { @@ -1061,6 +1185,9 @@ public Builder terminateAfter(@Nullable Number value) { } /** + * Time each individual bulk request should wait for shards that are + * unavailable. + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -1069,6 +1196,8 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Specify whether to return document version as part of a hit + *

* API name: {@code version} */ public Builder version(@Nullable Boolean value) { @@ -1077,6 +1206,9 @@ public Builder version(@Nullable Boolean value) { } /** + * Should the document increment the version number (internal) on hit or not + * (reindex) + *

* API name: {@code version_type} */ public Builder versionType(@Nullable Boolean value) { @@ -1085,6 +1217,12 @@ public Builder versionType(@Nullable Boolean value) { } /** + * Sets the number of shard copies that must be active before proceeding with + * the update by query operation. Defaults to 1, meaning the primary shard only. + * Set to all for all shard copies, otherwise set to any + * non-negative value less than or equal to the total number of copies for the + * shard (number of replicas + 1) + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { @@ -1093,6 +1231,9 @@ public Builder waitForActiveShards(@Nullable JsonValue value) { } /** + * Should the request should block until the update by query operation is + * complete. + *

* API name: {@code wait_for_completion} */ public Builder waitForCompletion(@Nullable Boolean value) { @@ -1200,14 +1341,11 @@ protected static void setupUpdateByQueryRequestDeserializer( // Request path request -> { final int _index = 1 << 0; - final int _type = 1 << 1; int propsSet = 0; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == (_index)) { StringBuilder buf = new StringBuilder(); @@ -1216,15 +1354,6 @@ protected static void setupUpdateByQueryRequestDeserializer( buf.append("/_update_by_query"); return buf.toString(); } - if (propsSet == (_index | _type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/"); - buf.append(request.type.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/_update_by_query"); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, @@ -1278,7 +1407,7 @@ protected static void setupUpdateByQueryRequestDeserializer( params.put("requests_per_second", request.requestsPerSecond.toString()); } if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } if (request.scroll != null) { params.put("scroll", request.scroll.toString()); @@ -1301,15 +1430,15 @@ protected static void setupUpdateByQueryRequestDeserializer( if (request.sort != null) { params.put("sort", request.sort.stream().map(v -> v).collect(Collectors.joining(","))); } - if (request.sourceEnabled != null) { - params.put("source_enabled", String.valueOf(request.sourceEnabled)); + if (request.source != null) { + params.put("_source", request.source.toString()); } if (request.sourceExcludes != null) { - params.put("source_excludes", + params.put("_source_excludes", request.sourceExcludes.stream().map(v -> v).collect(Collectors.joining(","))); } if (request.sourceIncludes != null) { - params.put("source_includes", + params.put("_source_includes", request.sourceIncludes.stream().map(v -> v).collect(Collectors.joining(","))); } if (request.stats != null) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateByQueryRethrottleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateByQueryRethrottleRequest.java index 7bfc453b9..7b57ac801 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateByQueryRethrottleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateByQueryRethrottleRequest.java @@ -55,6 +55,8 @@ protected UpdateByQueryRethrottleRequest(Builder builder) { } /** + * The task id to rethrottle + *

* API name: {@code task_id} */ public String taskId() { @@ -62,6 +64,9 @@ public String taskId() { } /** + * The throttle to set on this request in floating sub-requests per second. -1 + * means set no throttle. + *

* API name: {@code requests_per_second} */ @Nullable @@ -81,6 +86,8 @@ public static class Builder implements ObjectBuilder * API name: {@code task_id} */ public Builder taskId(String value) { @@ -89,6 +96,9 @@ public Builder taskId(String value) { } /** + * The throttle to set on this request in floating sub-requests per second. -1 + * means set no throttle. + *

* API name: {@code requests_per_second} */ public Builder requestsPerSecond(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateRequest.java index 314edb302..ba0251a88 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/UpdateRequest.java @@ -78,10 +78,7 @@ public final class UpdateRequest extends RequestBas private final Number retryOnConflict; @Nullable - private final JsonValue routing; - - @Nullable - private final Boolean sourceEnabled; + private final String routing; @Nullable private final JsonValue timeout; @@ -136,7 +133,6 @@ protected UpdateRequest(Builder builder) { this.requireAlias = builder.requireAlias; this.retryOnConflict = builder.retryOnConflict; this.routing = builder.routing; - this.sourceEnabled = builder.sourceEnabled; this.timeout = builder.timeout; this.waitForActiveShards = builder.waitForActiveShards; this.sourceExcludes = builder.sourceExcludes; @@ -154,6 +150,8 @@ protected UpdateRequest(Builder builder) { } /** + * Document ID + *

* API name: {@code id} */ public String id() { @@ -161,6 +159,8 @@ public String id() { } /** + * The name of the index + *

* API name: {@code index} */ public String index() { @@ -168,6 +168,8 @@ public String index() { } /** + * The type of the document + *

* API name: {@code type} */ @Nullable @@ -176,6 +178,8 @@ public String type() { } /** + * Only perform the operation if the document has this primary term. + *

* API name: {@code if_primary_term} */ @Nullable @@ -184,6 +188,8 @@ public Number ifPrimaryTerm() { } /** + * Only perform the operation if the document has this sequence number. + *

* API name: {@code if_seq_no} */ @Nullable @@ -192,6 +198,8 @@ public Number ifSeqNo() { } /** + * The script language. + *

* API name: {@code lang} */ @Nullable @@ -200,6 +208,10 @@ public String lang() { } /** + * If 'true', Elasticsearch refreshes the affected shards to make this operation + * visible to search, if 'wait_for' then wait for a refresh to make this + * operation visible to search, if 'false' do nothing with refreshes. + *

* API name: {@code refresh} */ @Nullable @@ -208,6 +220,8 @@ public JsonValue refresh() { } /** + * If true, the destination must be an index alias. + *

* API name: {@code require_alias} */ @Nullable @@ -216,6 +230,9 @@ public Boolean requireAlias() { } /** + * Specify how many times should the operation be retried when a conflict + * occurs. + *

* API name: {@code retry_on_conflict} */ @Nullable @@ -224,22 +241,20 @@ public Number retryOnConflict() { } /** + * Custom value used to route operations to a specific shard. + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** - * API name: {@code source_enabled} - */ - @Nullable - public Boolean sourceEnabled() { - return this.sourceEnabled; - } - - /** + * Period to wait for dynamic mapping updates and active shards. This guarantees + * Elasticsearch waits for at least the timeout before failing. The actual wait + * time could be longer, particularly when multiple waits occur. + *

* API name: {@code timeout} */ @Nullable @@ -248,6 +263,11 @@ public JsonValue timeout() { } /** + * The number of shard copies that must be active before proceeding with the + * operations. Set to 'all' or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). Defaults to 1 meaning the primary + * shard. + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -256,6 +276,8 @@ public JsonValue waitForActiveShards() { } /** + * Specify the source fields you want to exclude. + *

* API name: {@code _source_excludes} */ @Nullable @@ -264,6 +286,8 @@ public List sourceExcludes() { } /** + * Specify the source fields you want to retrieve. + *

* API name: {@code _source_includes} */ @Nullable @@ -272,6 +296,9 @@ public List sourceIncludes() { } /** + * Set to false to disable setting 'result' in the response to 'noop' if no + * change to the document occurred. + *

* API name: {@code detect_noop} */ @Nullable @@ -280,6 +307,8 @@ public Boolean detectNoop() { } /** + * A partial update to an existing document. + *

* API name: {@code doc} */ @Nullable @@ -288,6 +317,8 @@ public TPartialDocument doc() { } /** + * Set to true to use the contents of 'doc' as the value of 'upsert' + *

* API name: {@code doc_as_upsert} */ @Nullable @@ -296,6 +327,8 @@ public Boolean docAsUpsert() { } /** + * Script to execute to update the document. + *

* API name: {@code script} */ @Nullable @@ -304,6 +337,8 @@ public JsonValue script() { } /** + * Set to true to execute the script whether or not the document exists. + *

* API name: {@code scripted_upsert} */ @Nullable @@ -312,6 +347,9 @@ public Boolean scriptedUpsert() { } /** + * Set to false to disable source retrieval. You can also specify a + * comma-separated list of the fields you want to retrieve. + *

* API name: {@code _source} */ @Nullable @@ -320,6 +358,9 @@ public JsonValue source() { } /** + * If the document does not already exist, the contents of 'upsert' are inserted + * as a new document. If the document exists, the 'script' is executed. + *

* API name: {@code upsert} */ @Nullable @@ -417,10 +458,7 @@ public static class Builder private Number retryOnConflict; @Nullable - private JsonValue routing; - - @Nullable - private Boolean sourceEnabled; + private String routing; @Nullable private JsonValue timeout; @@ -462,6 +500,8 @@ public static class Builder private JsonpSerializer tPartialDocumentSerializer; /** + * Document ID + *

* API name: {@code id} */ public Builder id(String value) { @@ -470,6 +510,8 @@ public Builder id(String value) { } /** + * The name of the index + *

* API name: {@code index} */ public Builder index(String value) { @@ -478,6 +520,8 @@ public Builder index(String value) { } /** + * The type of the document + *

* API name: {@code type} */ public Builder type(@Nullable String value) { @@ -486,6 +530,8 @@ public Builder type(@Nullable String value) { } /** + * Only perform the operation if the document has this primary term. + *

* API name: {@code if_primary_term} */ public Builder ifPrimaryTerm(@Nullable Number value) { @@ -494,6 +540,8 @@ public Builder ifPrimaryTerm(@Nullable Number value } /** + * Only perform the operation if the document has this sequence number. + *

* API name: {@code if_seq_no} */ public Builder ifSeqNo(@Nullable Number value) { @@ -502,6 +550,8 @@ public Builder ifSeqNo(@Nullable Number value) { } /** + * The script language. + *

* API name: {@code lang} */ public Builder lang(@Nullable String value) { @@ -510,6 +560,10 @@ public Builder lang(@Nullable String value) { } /** + * If 'true', Elasticsearch refreshes the affected shards to make this operation + * visible to search, if 'wait_for' then wait for a refresh to make this + * operation visible to search, if 'false' do nothing with refreshes. + *

* API name: {@code refresh} */ public Builder refresh(@Nullable JsonValue value) { @@ -518,6 +572,8 @@ public Builder refresh(@Nullable JsonValue value) { } /** + * If true, the destination must be an index alias. + *

* API name: {@code require_alias} */ public Builder requireAlias(@Nullable Boolean value) { @@ -526,6 +582,9 @@ public Builder requireAlias(@Nullable Boolean value } /** + * Specify how many times should the operation be retried when a conflict + * occurs. + *

* API name: {@code retry_on_conflict} */ public Builder retryOnConflict(@Nullable Number value) { @@ -534,22 +593,20 @@ public Builder retryOnConflict(@Nullable Number val } /** + * Custom value used to route operations to a specific shard. + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** - * API name: {@code source_enabled} - */ - public Builder sourceEnabled(@Nullable Boolean value) { - this.sourceEnabled = value; - return this; - } - - /** + * Period to wait for dynamic mapping updates and active shards. This guarantees + * Elasticsearch waits for at least the timeout before failing. The actual wait + * time could be longer, particularly when multiple waits occur. + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -558,6 +615,11 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * The number of shard copies that must be active before proceeding with the + * operations. Set to 'all' or any positive integer up to the total number of + * shards in the index (number_of_replicas+1). Defaults to 1 meaning the primary + * shard. + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { @@ -566,6 +628,8 @@ public Builder waitForActiveShards(@Nullable JsonVa } /** + * Specify the source fields you want to exclude. + *

* API name: {@code _source_excludes} */ public Builder sourceExcludes(@Nullable List value) { @@ -574,6 +638,8 @@ public Builder sourceExcludes(@Nullable List * API name: {@code _source_excludes} */ public Builder sourceExcludes(String... value) { @@ -593,6 +659,8 @@ public Builder addSourceExcludes(String value) { } /** + * Specify the source fields you want to retrieve. + *

* API name: {@code _source_includes} */ public Builder sourceIncludes(@Nullable List value) { @@ -601,6 +669,8 @@ public Builder sourceIncludes(@Nullable List * API name: {@code _source_includes} */ public Builder sourceIncludes(String... value) { @@ -620,6 +690,9 @@ public Builder addSourceIncludes(String value) { } /** + * Set to false to disable setting 'result' in the response to 'noop' if no + * change to the document occurred. + *

* API name: {@code detect_noop} */ public Builder detectNoop(@Nullable Boolean value) { @@ -628,6 +701,8 @@ public Builder detectNoop(@Nullable Boolean value) } /** + * A partial update to an existing document. + *

* API name: {@code doc} */ public Builder doc(@Nullable TPartialDocument value) { @@ -636,6 +711,8 @@ public Builder doc(@Nullable TPartialDocument value } /** + * Set to true to use the contents of 'doc' as the value of 'upsert' + *

* API name: {@code doc_as_upsert} */ public Builder docAsUpsert(@Nullable Boolean value) { @@ -644,6 +721,8 @@ public Builder docAsUpsert(@Nullable Boolean value) } /** + * Script to execute to update the document. + *

* API name: {@code script} */ public Builder script(@Nullable JsonValue value) { @@ -652,6 +731,8 @@ public Builder script(@Nullable JsonValue value) { } /** + * Set to true to execute the script whether or not the document exists. + *

* API name: {@code scripted_upsert} */ public Builder scriptedUpsert(@Nullable Boolean value) { @@ -660,6 +741,9 @@ public Builder scriptedUpsert(@Nullable Boolean val } /** + * Set to false to disable source retrieval. You can also specify a + * comma-separated list of the fields you want to retrieve. + *

* API name: {@code _source} */ public Builder source(@Nullable JsonValue value) { @@ -668,6 +752,9 @@ public Builder source(@Nullable JsonValue value) { } /** + * If the document does not already exist, the contents of 'upsert' are inserted + * as a new document. If the document exists, the 'script' is executed. + *

* API name: {@code upsert} */ public Builder upsert(@Nullable TDocument value) { @@ -807,10 +894,7 @@ protected static void setupUpdateRequestDeserializ params.put("retry_on_conflict", request.retryOnConflict.toString()); } if (request.routing != null) { - params.put("routing", request.routing.toString()); - } - if (request.sourceEnabled != null) { - params.put("source_enabled", String.valueOf(request.sourceEnabled)); + params.put("routing", request.routing); } if (request.timeout != null) { params.put("timeout", request.timeout.toString()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/mget/Hit.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/mget/Hit.java index d9bec3b0c..ff4fceb34 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/mget/Hit.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/mget/Hit.java @@ -64,7 +64,7 @@ public final class Hit implements ToJsonp { private final Number primaryTerm; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final Number seqNo; @@ -150,7 +150,7 @@ public Number primaryTerm() { * API name: {@code _routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } @@ -290,7 +290,7 @@ public static class Builder implements ObjectBuilder> private Number primaryTerm; @Nullable - private JsonValue routing; + private String routing; @Nullable private Number seqNo; @@ -376,7 +376,7 @@ public Builder primaryTerm(@Nullable Number value) { /** * API name: {@code _routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } @@ -455,7 +455,7 @@ protected static void setupHitDeserializer(DelegatingDeserializer { private String index; @Nullable - private JsonValue routing; + private String routing; @Nullable private JsonValue source; @@ -255,7 +255,7 @@ public Builder index(@Nullable String value) { /** * API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } @@ -343,7 +343,7 @@ protected static void setupOperationDeserializer(DelegatingDeserializer { private Boolean positions; - private JsonValue routing; + private String routing; private Boolean termStatistics; @@ -372,7 +372,7 @@ public Builder positions(Boolean value) { /** * API name: {@code routing} */ - public Builder routing(JsonValue value) { + public Builder routing(String value) { this.routing = value; return this; } @@ -432,7 +432,7 @@ protected static void setupOperationDeserializer(DelegatingDeserializer { private String pipeline; @Nullable - private JsonValue routing; + private String routing; @Nullable private JsonValue versionType; @@ -191,7 +191,7 @@ public Builder pipeline(@Nullable String value) { /** * API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } @@ -229,7 +229,7 @@ protected static void setupDestinationDeserializer(DelegatingDeserializer sort; @Nullable - private final List source; + private final List sourceFields; // --------------------------------------------------------------------------------------------- @@ -75,7 +75,7 @@ protected Source(Builder builder) { this.size = builder.size; this.slice = builder.slice; this.sort = builder.sort; - this.source = builder.source; + this.sourceFields = builder.sourceFields; } @@ -130,8 +130,8 @@ public List sort() { * API name: {@code _source} */ @Nullable - public List source() { - return this.source; + public List sourceFields() { + return this.sourceFields; } /** @@ -188,11 +188,11 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - if (this.source != null) { + if (this.sourceFields != null) { generator.writeKey("_source"); generator.writeStartArray(); - for (String item0 : this.source) { + for (String item0 : this.sourceFields) { generator.write(item0); } @@ -226,7 +226,7 @@ public static class Builder implements ObjectBuilder { private List sort; @Nullable - private List source; + private List sourceFields; /** * API name: {@code index} @@ -338,27 +338,27 @@ public Builder addSort(JsonValue value) { /** * API name: {@code _source} */ - public Builder source(@Nullable List value) { - this.source = value; + public Builder sourceFields(@Nullable List value) { + this.sourceFields = value; return this; } /** * API name: {@code _source} */ - public Builder source(String... value) { - this.source = Arrays.asList(value); + public Builder sourceFields(String... value) { + this.sourceFields = Arrays.asList(value); return this; } /** - * Add a value to {@link #source(List)}, creating the list if needed. + * Add a value to {@link #sourceFields(List)}, creating the list if needed. */ - public Builder addSource(String value) { - if (this.source == null) { - this.source = new ArrayList<>(); + public Builder addSourceFields(String value) { + if (this.sourceFields == null) { + this.sourceFields = new ArrayList<>(); } - this.source.add(value); + this.sourceFields.add(value); return this; } @@ -390,7 +390,8 @@ protected static void setupSourceDeserializer(DelegatingDeserializer { + private String field; + + @Nullable + private String format; + + @Nullable + private Boolean includeUnmapped; + + /** + * API name: {@code field} + */ + public Builder field(String value) { + this.field = value; + return this; + } + + /** + * API name: {@code format} + */ + public Builder format(@Nullable String value) { + this.format = value; + return this; + } + + /** + * API name: {@code include_unmapped} + */ + public Builder includeUnmapped(@Nullable Boolean value) { + this.includeUnmapped = value; + return this; + } + + /** + * Builds a {@link FieldAndFormat}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public FieldAndFormat build() { + + return new FieldAndFormat(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for FieldAndFormat + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, FieldAndFormat::setupFieldAndFormatDeserializer); + + protected static void setupFieldAndFormatDeserializer(DelegatingDeserializer op) { + + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); + op.add(Builder::format, JsonpDeserializer.stringDeserializer(), "format"); + op.add(Builder::includeUnmapped, JsonpDeserializer.booleanDeserializer(), "include_unmapped"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/InnerHits.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/InnerHits.java index 164640368..27838aae6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/InnerHits.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_global/search/InnerHits.java @@ -60,7 +60,7 @@ public final class InnerHits implements ToJsonp { private final FieldCollapse collapse; @Nullable - private final List docvalueFields; + private final List docvalueFields; @Nullable private final Boolean explain; @@ -86,6 +86,12 @@ public final class InnerHits implements ToJsonp { @Nullable private final JsonValue source; + @Nullable + private final List storedField; + + @Nullable + private final Boolean trackScores; + @Nullable private final Boolean version; @@ -106,6 +112,8 @@ protected InnerHits(Builder builder) { this.fields = builder.fields; this.sort = builder.sort; this.source = builder.source; + this.storedField = builder.storedField; + this.trackScores = builder.trackScores; this.version = builder.version; } @@ -146,7 +154,7 @@ public FieldCollapse collapse() { * API name: {@code docvalue_fields} */ @Nullable - public List docvalueFields() { + public List docvalueFields() { return this.docvalueFields; } @@ -214,6 +222,22 @@ public JsonValue source() { return this.source; } + /** + * API name: {@code stored_field} + */ + @Nullable + public List storedField() { + return this.storedField; + } + + /** + * API name: {@code track_scores} + */ + @Nullable + public Boolean trackScores() { + return this.trackScores; + } + /** * API name: {@code version} */ @@ -261,8 +285,8 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("docvalue_fields"); generator.writeStartArray(); - for (String item0 : this.docvalueFields) { - generator.write(item0); + for (FieldAndFormat item0 : this.docvalueFields) { + item0.toJsonp(generator, mapper); } generator.writeEnd(); @@ -331,6 +355,23 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("_source"); generator.write(this.source); + } + if (this.storedField != null) { + + generator.writeKey("stored_field"); + generator.writeStartArray(); + for (String item0 : this.storedField) { + generator.write(item0); + + } + generator.writeEnd(); + + } + if (this.trackScores != null) { + + generator.writeKey("track_scores"); + generator.write(this.trackScores); + } if (this.version != null) { @@ -360,7 +401,7 @@ public static class Builder implements ObjectBuilder { private FieldCollapse collapse; @Nullable - private List docvalueFields; + private List docvalueFields; @Nullable private Boolean explain; @@ -386,6 +427,12 @@ public static class Builder implements ObjectBuilder { @Nullable private JsonValue source; + @Nullable + private List storedField; + + @Nullable + private Boolean trackScores; + @Nullable private Boolean version; @@ -431,7 +478,7 @@ public Builder collapse(Function value) { + public Builder docvalueFields(@Nullable List value) { this.docvalueFields = value; return this; } @@ -439,7 +486,7 @@ public Builder docvalueFields(@Nullable List value) { /** * API name: {@code docvalue_fields} */ - public Builder docvalueFields(String... value) { + public Builder docvalueFields(FieldAndFormat... value) { this.docvalueFields = Arrays.asList(value); return this; } @@ -447,7 +494,7 @@ public Builder docvalueFields(String... value) { /** * Add a value to {@link #docvalueFields(List)}, creating the list if needed. */ - public Builder addDocvalueFields(String value) { + public Builder addDocvalueFields(FieldAndFormat value) { if (this.docvalueFields == null) { this.docvalueFields = new ArrayList<>(); } @@ -455,6 +502,20 @@ public Builder addDocvalueFields(String value) { return this; } + /** + * Set {@link #docvalueFields(List)} to a singleton list. + */ + public Builder docvalueFields(Function> fn) { + return this.docvalueFields(fn.apply(new FieldAndFormat.Builder()).build()); + } + + /** + * Add a value to {@link #docvalueFields(List)}, creating the list if needed. + */ + public Builder addDocvalueFields(Function> fn) { + return this.addDocvalueFields(fn.apply(new FieldAndFormat.Builder()).build()); + } + /** * API name: {@code explain} */ @@ -589,6 +650,41 @@ public Builder source(@Nullable JsonValue value) { return this; } + /** + * API name: {@code stored_field} + */ + public Builder storedField(@Nullable List value) { + this.storedField = value; + return this; + } + + /** + * API name: {@code stored_field} + */ + public Builder storedField(String... value) { + this.storedField = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #storedField(List)}, creating the list if needed. + */ + public Builder addStoredField(String value) { + if (this.storedField == null) { + this.storedField = new ArrayList<>(); + } + this.storedField.add(value); + return this; + } + + /** + * API name: {@code track_scores} + */ + public Builder trackScores(@Nullable Boolean value) { + this.trackScores = value; + return this; + } + /** * API name: {@code version} */ @@ -623,7 +719,7 @@ protected static void setupInnerHitsDeserializer(DelegatingDeserializer implements ToJsonp { private final Number primaryTerm; @Nullable - private final JsonValue routing; + private final String routing; private final TDocument source; @@ -108,7 +109,7 @@ public Number primaryTerm() { * API name: {@code _routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } @@ -180,7 +181,7 @@ public static class Builder implements ObjectBuilder primaryTerm(Number value) { /** * API name: {@code _routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } @@ -287,7 +288,7 @@ protected static void setupInlineGetDeserializer( op.add(Builder::found, JsonpDeserializer.booleanDeserializer(), "found"); op.add(Builder::seqNo, JsonpDeserializer.numberDeserializer(), "_seq_no"); op.add(Builder::primaryTerm, JsonpDeserializer.numberDeserializer(), "_primary_term"); - op.add(Builder::routing, JsonpDeserializer.jsonValueDeserializer(), "_routing"); + op.add(Builder::routing, JsonpDeserializer.stringDeserializer(), "_routing"); op.add(Builder::source, tDocumentDeserializer, "_source"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/MainError.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/MainError.java index 4edcbad17..e769b19c6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/MainError.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/MainError.java @@ -31,13 +31,8 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.String; -import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; -import java.util.List; import java.util.Map; -import java.util.Objects; -import java.util.function.Function; import javax.annotation.Nullable; // typedef: _types.MainError @@ -45,14 +40,11 @@ public final class MainError extends ErrorCause { @Nullable private final Map headers; - private final List rootCause; - // --------------------------------------------------------------------------------------------- protected MainError(Builder builder) { super(builder); this.headers = builder.headers; - this.rootCause = Objects.requireNonNull(builder.rootCause, "root_cause"); } @@ -64,13 +56,6 @@ public Map headers() { return this.headers; } - /** - * API name: {@code root_cause} - */ - public List rootCause() { - return this.rootCause; - } - protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); if (this.headers != null) { @@ -86,14 +71,6 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { } - generator.writeKey("root_cause"); - generator.writeStartArray(); - for (ErrorCause item0 : this.rootCause) { - item0.toJsonp(generator, mapper); - - } - generator.writeEnd(); - } // --------------------------------------------------------------------------------------------- @@ -105,8 +82,6 @@ public static class Builder extends ErrorCause.AbstractBuilder implemen @Nullable private Map headers; - private List rootCause; - /** * API name: {@code headers} */ @@ -126,47 +101,6 @@ public Builder putHeaders(String key, String value) { return this; } - /** - * API name: {@code root_cause} - */ - public Builder rootCause(List value) { - this.rootCause = value; - return this; - } - - /** - * API name: {@code root_cause} - */ - public Builder rootCause(ErrorCause... value) { - this.rootCause = Arrays.asList(value); - return this; - } - - /** - * Add a value to {@link #rootCause(List)}, creating the list if needed. - */ - public Builder addRootCause(ErrorCause value) { - if (this.rootCause == null) { - this.rootCause = new ArrayList<>(); - } - this.rootCause.add(value); - return this; - } - - /** - * Set {@link #rootCause(List)} to a singleton list. - */ - public Builder rootCause(Function> fn) { - return this.rootCause(fn.apply(new ErrorCause.Builder()).build()); - } - - /** - * Add a value to {@link #rootCause(List)}, creating the list if needed. - */ - public Builder addRootCause(Function> fn) { - return this.addRootCause(fn.apply(new ErrorCause.Builder()).build()); - } - @Override protected Builder self() { return this; @@ -196,7 +130,6 @@ protected static void setupMainErrorDeserializer(DelegatingDeserializer { private JsonValue script; + @Nullable + private Boolean ignoreFailure; + /** * API name: {@code script} */ @@ -86,6 +109,14 @@ public Builder script(JsonValue value) { return this; } + /** + * API name: {@code ignore_failure} + */ + public Builder ignoreFailure(@Nullable Boolean value) { + this.ignoreFailure = value; + return this; + } + /** * Builds a {@link ScriptField}. * @@ -109,6 +140,7 @@ public ScriptField build() { protected static void setupScriptFieldDeserializer(DelegatingDeserializer op) { op.add(Builder::script, JsonpDeserializer.jsonValueDeserializer(), "script"); + op.add(Builder::ignoreFailure, JsonpDeserializer.booleanDeserializer(), "ignore_failure"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WriteResponseBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WriteResponseBase.java index 1deb953f1..061ed741b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WriteResponseBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/WriteResponseBase.java @@ -61,9 +61,6 @@ public abstract class WriteResponseBase implements ToJsonp { @Nullable private final Boolean forcedRefresh; - @Nullable - private final ErrorCause error; - // --------------------------------------------------------------------------------------------- protected WriteResponseBase(AbstractBuilder builder) { @@ -77,7 +74,6 @@ protected WriteResponseBase(AbstractBuilder builder) { this.type = builder.type; this.version = Objects.requireNonNull(builder.version, "_version"); this.forcedRefresh = builder.forcedRefresh; - this.error = builder.error; } @@ -146,14 +142,6 @@ public Boolean forcedRefresh() { return this.forcedRefresh; } - /** - * API name: {@code error} - */ - @Nullable - public ErrorCause error() { - return this.error; - } - /** * Serialize this object to JSON. */ @@ -199,12 +187,6 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.forcedRefresh); } - if (this.error != null) { - - generator.writeKey("error"); - this.error.toJsonp(generator, mapper); - - } } @@ -229,9 +211,6 @@ protected abstract static class AbstractBuilder> fn) { - return this.error(fn.apply(new ErrorCause.Builder()).build()); - } - protected abstract BuilderT self(); } @@ -343,7 +307,6 @@ protected static > void setupWriteRes op.add(AbstractBuilder::type, JsonpDeserializer.stringDeserializer(), "_type"); op.add(AbstractBuilder::version, JsonpDeserializer.numberDeserializer(), "_version"); op.add(AbstractBuilder::forcedRefresh, JsonpDeserializer.booleanDeserializer(), "forced_refresh"); - op.add(AbstractBuilder::error, ErrorCause.DESERIALIZER, "error"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java index 1776461d2..7ba05263e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/aggregations/DateHistogramAggregation.java @@ -31,6 +31,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.JsonValue; import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; import java.lang.Number; import java.lang.String; import java.util.HashMap; @@ -82,6 +83,9 @@ public final class DateHistogramAggregation extends BucketAggregationBase { @Nullable private final String timeZone; + @Nullable + private final Boolean keyed; + // --------------------------------------------------------------------------------------------- protected DateHistogramAggregation(Builder builder) { @@ -100,6 +104,7 @@ protected DateHistogramAggregation(Builder builder) { this.params = builder.params; this.script = builder.script; this.timeZone = builder.timeZone; + this.keyed = builder.keyed; } @@ -215,6 +220,14 @@ public String timeZone() { return this.timeZone; } + /** + * API name: {@code keyed} + */ + @Nullable + public Boolean keyed() { + return this.keyed; + } + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); if (this.calendarInterval != null) { @@ -307,6 +320,12 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.timeZone); } + if (this.keyed != null) { + + generator.writeKey("keyed"); + generator.write(this.keyed); + + } } @@ -360,6 +379,9 @@ public static class Builder extends BucketAggregationBase.AbstractBuilder * API name: {@code results_field} */ + @Nullable public String resultsField() { return this.resultsField; } @@ -84,9 +85,12 @@ public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("results_field"); - generator.write(this.resultsField); + if (this.resultsField != null) { + + generator.writeKey("results_field"); + generator.write(this.resultsField); + } if (this.numTopFeatureImportanceValues != null) { generator.writeKey("num_top_feature_importance_values"); @@ -102,6 +106,7 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link RegressionInferenceOptions}. */ public static class Builder implements ObjectBuilder { + @Nullable private String resultsField; @Nullable @@ -113,7 +118,7 @@ public static class Builder implements ObjectBuilder *

* API name: {@code results_field} */ - public Builder resultsField(String value) { + public Builder resultsField(@Nullable String value) { this.resultsField = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java index 606d1f7a6..e35280f18 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/BoostingQuery.java @@ -31,34 +31,31 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Number; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; // typedef: _types.query_dsl.BoostingQuery public final class BoostingQuery extends QueryBase { - @Nullable private final Number negativeBoost; - @Nullable private final QueryContainer negative; - @Nullable private final QueryContainer positive; // --------------------------------------------------------------------------------------------- protected BoostingQuery(Builder builder) { super(builder); - this.negativeBoost = builder.negativeBoost; - this.negative = builder.negative; - this.positive = builder.positive; + this.negativeBoost = Objects.requireNonNull(builder.negativeBoost, "negative_boost"); + this.negative = Objects.requireNonNull(builder.negative, "negative"); + this.positive = Objects.requireNonNull(builder.positive, "positive"); } /** * API name: {@code negative_boost} */ - @Nullable public Number negativeBoost() { return this.negativeBoost; } @@ -66,7 +63,6 @@ public Number negativeBoost() { /** * API name: {@code negative} */ - @Nullable public QueryContainer negative() { return this.negative; } @@ -74,31 +70,21 @@ public QueryContainer negative() { /** * API name: {@code positive} */ - @Nullable public QueryContainer positive() { return this.positive; } protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.negativeBoost != null) { - generator.writeKey("negative_boost"); - generator.write(this.negativeBoost.doubleValue()); + generator.writeKey("negative_boost"); + generator.write(this.negativeBoost.doubleValue()); - } - if (this.negative != null) { - - generator.writeKey("negative"); - this.negative.toJsonp(generator, mapper); - - } - if (this.positive != null) { - - generator.writeKey("positive"); - this.positive.toJsonp(generator, mapper); + generator.writeKey("negative"); + this.negative.toJsonp(generator, mapper); - } + generator.writeKey("positive"); + this.positive.toJsonp(generator, mapper); } @@ -108,19 +94,16 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link BoostingQuery}. */ public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable private Number negativeBoost; - @Nullable private QueryContainer negative; - @Nullable private QueryContainer positive; /** * API name: {@code negative_boost} */ - public Builder negativeBoost(@Nullable Number value) { + public Builder negativeBoost(Number value) { this.negativeBoost = value; return this; } @@ -128,7 +111,7 @@ public Builder negativeBoost(@Nullable Number value) { /** * API name: {@code negative} */ - public Builder negative(@Nullable QueryContainer value) { + public Builder negative(QueryContainer value) { this.negative = value; return this; } @@ -143,7 +126,7 @@ public Builder negative(Function { @Nullable private JsonValue topLeft; + @Nullable + private JsonValue topRight; + + @Nullable + private JsonValue bottomLeft; + + @Nullable + private Number top; + + @Nullable + private Number left; + + @Nullable + private Number right; + + @Nullable + private Number bottom; + @Nullable private String wkt; @@ -143,6 +270,54 @@ public Builder topLeft(@Nullable JsonValue value) { return this; } + /** + * API name: {@code top_right} + */ + public Builder topRight(@Nullable JsonValue value) { + this.topRight = value; + return this; + } + + /** + * API name: {@code bottom_left} + */ + public Builder bottomLeft(@Nullable JsonValue value) { + this.bottomLeft = value; + return this; + } + + /** + * API name: {@code top} + */ + public Builder top(@Nullable Number value) { + this.top = value; + return this; + } + + /** + * API name: {@code left} + */ + public Builder left(@Nullable Number value) { + this.left = value; + return this; + } + + /** + * API name: {@code right} + */ + public Builder right(@Nullable Number value) { + this.right = value; + return this; + } + + /** + * API name: {@code bottom} + */ + public Builder bottom(@Nullable Number value) { + this.bottom = value; + return this; + } + /** * API name: {@code wkt} */ @@ -175,6 +350,12 @@ protected static void setupBoundingBoxDeserializer(DelegatingDeserializer fields; + private final String query; - private final List fields; + @Nullable + private final Boolean autoGenerateSynonymsPhraseQuery; + + @Nullable + private final JsonValue operator; @Nullable - private final String operator; + private final JsonValue mimimumShouldMatch; + + @Nullable + private final JsonValue zeroTermsQuery; // --------------------------------------------------------------------------------------------- protected CombinedFieldsQuery(Builder builder) { - - this.query = Objects.requireNonNull(builder.query, "query"); + super(builder); this.fields = Objects.requireNonNull(builder.fields, "fields"); + this.query = Objects.requireNonNull(builder.query, "query"); + this.autoGenerateSynonymsPhraseQuery = builder.autoGenerateSynonymsPhraseQuery; this.operator = builder.operator; + this.mimimumShouldMatch = builder.mimimumShouldMatch; + this.zeroTermsQuery = builder.zeroTermsQuery; } + /** + * API name: {@code fields} + */ + public List fields() { + return this.fields; + } + /** * API name: {@code query} */ @@ -65,33 +85,39 @@ public String query() { } /** - * API name: {@code fields} + * API name: {@code auto_generate_synonyms_phrase_query} */ - public List fields() { - return this.fields; + @Nullable + public Boolean autoGenerateSynonymsPhraseQuery() { + return this.autoGenerateSynonymsPhraseQuery; } /** * API name: {@code operator} */ @Nullable - public String operator() { + public JsonValue operator() { return this.operator; } /** - * Serialize this object to JSON. + * API name: {@code mimimum_should_match} */ - public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - toJsonpInternal(generator, mapper); - generator.writeEnd(); + @Nullable + public JsonValue mimimumShouldMatch() { + return this.mimimumShouldMatch; } - protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + /** + * API name: {@code zero_terms_query} + */ + @Nullable + public JsonValue zeroTermsQuery() { + return this.zeroTermsQuery; + } - generator.writeKey("query"); - generator.write(this.query); + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); generator.writeKey("fields"); generator.writeStartArray(); @@ -101,12 +127,33 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { } generator.writeEnd(); + generator.writeKey("query"); + generator.write(this.query); + + if (this.autoGenerateSynonymsPhraseQuery != null) { + + generator.writeKey("auto_generate_synonyms_phrase_query"); + generator.write(this.autoGenerateSynonymsPhraseQuery); + + } if (this.operator != null) { generator.writeKey("operator"); generator.write(this.operator); } + if (this.mimimumShouldMatch != null) { + + generator.writeKey("mimimum_should_match"); + generator.write(this.mimimumShouldMatch); + + } + if (this.zeroTermsQuery != null) { + + generator.writeKey("zero_terms_query"); + generator.write(this.zeroTermsQuery); + + } } @@ -115,21 +162,24 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { /** * Builder for {@link CombinedFieldsQuery}. */ - public static class Builder implements ObjectBuilder { + public static class Builder extends QueryBase.AbstractBuilder + implements + ObjectBuilder { + private List fields; + private String query; - private List fields; + @Nullable + private Boolean autoGenerateSynonymsPhraseQuery; @Nullable - private String operator; + private JsonValue operator; - /** - * API name: {@code query} - */ - public Builder query(String value) { - this.query = value; - return this; - } + @Nullable + private JsonValue mimimumShouldMatch; + + @Nullable + private JsonValue zeroTermsQuery; /** * API name: {@code fields} @@ -158,14 +208,51 @@ public Builder addFields(String value) { return this; } + /** + * API name: {@code query} + */ + public Builder query(String value) { + this.query = value; + return this; + } + + /** + * API name: {@code auto_generate_synonyms_phrase_query} + */ + public Builder autoGenerateSynonymsPhraseQuery(@Nullable Boolean value) { + this.autoGenerateSynonymsPhraseQuery = value; + return this; + } + /** * API name: {@code operator} */ - public Builder operator(@Nullable String value) { + public Builder operator(@Nullable JsonValue value) { this.operator = value; return this; } + /** + * API name: {@code mimimum_should_match} + */ + public Builder mimimumShouldMatch(@Nullable JsonValue value) { + this.mimimumShouldMatch = value; + return this; + } + + /** + * API name: {@code zero_terms_query} + */ + public Builder zeroTermsQuery(@Nullable JsonValue value) { + this.zeroTermsQuery = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + /** * Builds a {@link CombinedFieldsQuery}. * @@ -187,10 +274,14 @@ public CombinedFieldsQuery build() { .createForObject(Builder::new, CombinedFieldsQuery::setupCombinedFieldsQueryDeserializer); protected static void setupCombinedFieldsQueryDeserializer(DelegatingDeserializer op) { - - op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); + QueryBase.setupQueryBaseDeserializer(op); op.add(Builder::fields, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "fields"); - op.add(Builder::operator, JsonpDeserializer.stringDeserializer(), "operator"); + op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); + op.add(Builder::autoGenerateSynonymsPhraseQuery, JsonpDeserializer.booleanDeserializer(), + "auto_generate_synonyms_phrase_query"); + op.add(Builder::operator, JsonpDeserializer.jsonValueDeserializer(), "operator"); + op.add(Builder::mimimumShouldMatch, JsonpDeserializer.jsonValueDeserializer(), "mimimum_should_match"); + op.add(Builder::zeroTermsQuery, JsonpDeserializer.jsonValueDeserializer(), "zero_terms_query"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CommonTermsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CommonTermsQuery.java new file mode 100644 index 000000000..78b4e861e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/CommonTermsQuery.java @@ -0,0 +1,263 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Number; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.CommonTermsQuery +public final class CommonTermsQuery extends QueryBase { + @Nullable + private final String analyzer; + + @Nullable + private final Number cutoffFrequency; + + @Nullable + private final JsonValue highFreqOperator; + + @Nullable + private final JsonValue lowFreqOperator; + + @Nullable + private final JsonValue minimumShouldMatch; + + private final String query; + + // --------------------------------------------------------------------------------------------- + + protected CommonTermsQuery(Builder builder) { + super(builder); + this.analyzer = builder.analyzer; + this.cutoffFrequency = builder.cutoffFrequency; + this.highFreqOperator = builder.highFreqOperator; + this.lowFreqOperator = builder.lowFreqOperator; + this.minimumShouldMatch = builder.minimumShouldMatch; + this.query = Objects.requireNonNull(builder.query, "query"); + + } + + /** + * API name: {@code analyzer} + */ + @Nullable + public String analyzer() { + return this.analyzer; + } + + /** + * API name: {@code cutoff_frequency} + */ + @Nullable + public Number cutoffFrequency() { + return this.cutoffFrequency; + } + + /** + * API name: {@code high_freq_operator} + */ + @Nullable + public JsonValue highFreqOperator() { + return this.highFreqOperator; + } + + /** + * API name: {@code low_freq_operator} + */ + @Nullable + public JsonValue lowFreqOperator() { + return this.lowFreqOperator; + } + + /** + * API name: {@code minimum_should_match} + */ + @Nullable + public JsonValue minimumShouldMatch() { + return this.minimumShouldMatch; + } + + /** + * API name: {@code query} + */ + public String query() { + return this.query; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + if (this.analyzer != null) { + + generator.writeKey("analyzer"); + generator.write(this.analyzer); + + } + if (this.cutoffFrequency != null) { + + generator.writeKey("cutoff_frequency"); + generator.write(this.cutoffFrequency.doubleValue()); + + } + if (this.highFreqOperator != null) { + + generator.writeKey("high_freq_operator"); + generator.write(this.highFreqOperator); + + } + if (this.lowFreqOperator != null) { + + generator.writeKey("low_freq_operator"); + generator.write(this.lowFreqOperator); + + } + if (this.minimumShouldMatch != null) { + + generator.writeKey("minimum_should_match"); + generator.write(this.minimumShouldMatch); + + } + + generator.writeKey("query"); + generator.write(this.query); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link CommonTermsQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private String analyzer; + + @Nullable + private Number cutoffFrequency; + + @Nullable + private JsonValue highFreqOperator; + + @Nullable + private JsonValue lowFreqOperator; + + @Nullable + private JsonValue minimumShouldMatch; + + private String query; + + /** + * API name: {@code analyzer} + */ + public Builder analyzer(@Nullable String value) { + this.analyzer = value; + return this; + } + + /** + * API name: {@code cutoff_frequency} + */ + public Builder cutoffFrequency(@Nullable Number value) { + this.cutoffFrequency = value; + return this; + } + + /** + * API name: {@code high_freq_operator} + */ + public Builder highFreqOperator(@Nullable JsonValue value) { + this.highFreqOperator = value; + return this; + } + + /** + * API name: {@code low_freq_operator} + */ + public Builder lowFreqOperator(@Nullable JsonValue value) { + this.lowFreqOperator = value; + return this; + } + + /** + * API name: {@code minimum_should_match} + */ + public Builder minimumShouldMatch(@Nullable JsonValue value) { + this.minimumShouldMatch = value; + return this; + } + + /** + * API name: {@code query} + */ + public Builder query(String value) { + this.query = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link CommonTermsQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public CommonTermsQuery build() { + + return new CommonTermsQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for CommonTermsQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, CommonTermsQuery::setupCommonTermsQueryDeserializer); + + protected static void setupCommonTermsQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::analyzer, JsonpDeserializer.stringDeserializer(), "analyzer"); + op.add(Builder::cutoffFrequency, JsonpDeserializer.numberDeserializer(), "cutoff_frequency"); + op.add(Builder::highFreqOperator, JsonpDeserializer.jsonValueDeserializer(), "high_freq_operator"); + op.add(Builder::lowFreqOperator, JsonpDeserializer.jsonValueDeserializer(), "low_freq_operator"); + op.add(Builder::minimumShouldMatch, JsonpDeserializer.jsonValueDeserializer(), "minimum_should_match"); + op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ConstantScoreQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ConstantScoreQuery.java index 040f476ec..6fc6348e8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ConstantScoreQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ConstantScoreQuery.java @@ -30,38 +30,34 @@ import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; // typedef: _types.query_dsl.ConstantScoreQuery public final class ConstantScoreQuery extends QueryBase { - @Nullable private final QueryContainer filter; // --------------------------------------------------------------------------------------------- protected ConstantScoreQuery(Builder builder) { super(builder); - this.filter = builder.filter; + this.filter = Objects.requireNonNull(builder.filter, "filter"); } /** * API name: {@code filter} */ - @Nullable public QueryContainer filter() { return this.filter; } protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.filter != null) { - generator.writeKey("filter"); - this.filter.toJsonp(generator, mapper); - - } + generator.writeKey("filter"); + this.filter.toJsonp(generator, mapper); } @@ -73,13 +69,12 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable private QueryContainer filter; /** * API name: {@code filter} */ - public Builder filter(@Nullable QueryContainer value) { + public Builder filter(QueryContainer value) { this.filter = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DisMaxQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DisMaxQuery.java index 3238a467f..8f5676039 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DisMaxQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/DisMaxQuery.java @@ -34,12 +34,12 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; // typedef: _types.query_dsl.DisMaxQuery public final class DisMaxQuery extends QueryBase { - @Nullable private final List queries; @Nullable @@ -49,7 +49,7 @@ public final class DisMaxQuery extends QueryBase { protected DisMaxQuery(Builder builder) { super(builder); - this.queries = builder.queries; + this.queries = Objects.requireNonNull(builder.queries, "queries"); this.tieBreaker = builder.tieBreaker; } @@ -57,7 +57,6 @@ protected DisMaxQuery(Builder builder) { /** * API name: {@code queries} */ - @Nullable public List queries() { return this.queries; } @@ -72,17 +71,15 @@ public Number tieBreaker() { protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.queries != null) { - - generator.writeKey("queries"); - generator.writeStartArray(); - for (QueryContainer item0 : this.queries) { - item0.toJsonp(generator, mapper); - } - generator.writeEnd(); + generator.writeKey("queries"); + generator.writeStartArray(); + for (QueryContainer item0 : this.queries) { + item0.toJsonp(generator, mapper); } + generator.writeEnd(); + if (this.tieBreaker != null) { generator.writeKey("tie_breaker"); @@ -98,7 +95,6 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link DisMaxQuery}. */ public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable private List queries; @Nullable @@ -107,7 +103,7 @@ public static class Builder extends QueryBase.AbstractBuilder implement /** * API name: {@code queries} */ - public Builder queries(@Nullable List value) { + public Builder queries(List value) { this.queries = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ExistsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ExistsQuery.java index 0d7df4212..e45c9f500 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ExistsQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ExistsQuery.java @@ -31,37 +31,33 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.Objects; import javax.annotation.Nullable; // typedef: _types.query_dsl.ExistsQuery public final class ExistsQuery extends QueryBase { - @Nullable private final String field; // --------------------------------------------------------------------------------------------- protected ExistsQuery(Builder builder) { super(builder); - this.field = builder.field; + this.field = Objects.requireNonNull(builder.field, "field"); } /** * API name: {@code field} */ - @Nullable public String field() { return this.field; } protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.field != null) { - generator.writeKey("field"); - generator.write(this.field); - - } + generator.writeKey("field"); + generator.write(this.field); } @@ -71,13 +67,12 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link ExistsQuery}. */ public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable private String field; /** * API name: {@code field} */ - public Builder field(@Nullable String value) { + public Builder field(String value) { this.field = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreContainer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreContainer.java index 14232247c..45bb0d223 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreContainer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FunctionScoreContainer.java @@ -23,38 +23,51 @@ package co.elastic.clients.elasticsearch._types.query_dsl; -import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.BuildFunctionDeserializer; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; -import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.StringEnum; +import co.elastic.clients.util.TaggedUnion; import jakarta.json.JsonValue; import jakarta.json.stream.JsonGenerator; import java.lang.Number; +import java.lang.Object; import java.util.function.Function; import javax.annotation.Nullable; -// typedef: _types.query_dsl.FunctionScoreContainer -public final class FunctionScoreContainer implements ToJsonp { - @Nullable - private final JsonValue exp; +public class FunctionScoreContainer extends TaggedUnion implements ToJsonp { - @Nullable - private final JsonValue gauss; + public enum Tag implements StringEnum { - @Nullable - private final JsonValue linear; + exp("exp"), - @Nullable - private final FieldValueFactorScoreFunction fieldValueFactor; + gauss("gauss"), - @Nullable - private final RandomScoreFunction randomScore; + linear("linear"), - @Nullable - private final ScriptScoreFunction scriptScore; + fieldValueFactor("field_value_factor"), + + randomScore("random_score"), + + scriptScore("script_score"), + + ; + + private final String jsonValue; + + Tag(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static StringEnum.Deserializer DESERIALIZER = new StringEnum.Deserializer<>(Tag.values()); + } @Nullable private final QueryContainer filter; @@ -62,132 +75,155 @@ public final class FunctionScoreContainer implements ToJsonp { @Nullable private final Number weight; - // --------------------------------------------------------------------------------------------- - - protected FunctionScoreContainer(Builder builder) { - - this.exp = builder.exp; - this.gauss = builder.gauss; - this.linear = builder.linear; - this.fieldValueFactor = builder.fieldValueFactor; - this.randomScore = builder.randomScore; - this.scriptScore = builder.scriptScore; + private FunctionScoreContainer(Builder builder) { + super(builder.$tag, builder.$variant); this.filter = builder.filter; this.weight = builder.weight; } /** - * API name: {@code exp} + * API name: {@code filter} */ @Nullable - public JsonValue exp() { - return this.exp; + public QueryContainer filter() { + return this.filter; } /** - * API name: {@code gauss} + * API name: {@code weight} */ @Nullable - public JsonValue gauss() { - return this.gauss; + public Number weight() { + return this.weight; } /** - * API name: {@code linear} + * Is this {@link FunctionScoreContainer} of a {@code exp} kind? */ - @Nullable - public JsonValue linear() { - return this.linear; + public boolean isExp() { + return is(Tag.exp); } /** - * API name: {@code field_value_factor} + * Get the {@code exp} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code exp} kind. */ - @Nullable - public FieldValueFactorScoreFunction fieldValueFactor() { - return this.fieldValueFactor; + public JsonValue exp() { + return get(Tag.exp); } /** - * API name: {@code random_score} + * Is this {@link FunctionScoreContainer} of a {@code gauss} kind? */ - @Nullable - public RandomScoreFunction randomScore() { - return this.randomScore; + public boolean isGauss() { + return is(Tag.gauss); } /** - * API name: {@code script_score} + * Get the {@code gauss} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code gauss} kind. */ - @Nullable - public ScriptScoreFunction scriptScore() { - return this.scriptScore; + public JsonValue gauss() { + return get(Tag.gauss); } /** - * API name: {@code filter} + * Is this {@link FunctionScoreContainer} of a {@code linear} kind? */ - @Nullable - public QueryContainer filter() { - return this.filter; + public boolean isLinear() { + return is(Tag.linear); } /** - * API name: {@code weight} + * Get the {@code linear} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code linear} kind. */ - @Nullable - public Number weight() { - return this.weight; + public JsonValue linear() { + return get(Tag.linear); } /** - * Serialize this object to JSON. + * Is this {@link FunctionScoreContainer} of a {@code field_value_factor} kind? */ - public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - toJsonpInternal(generator, mapper); - generator.writeEnd(); + public boolean isFieldValueFactor() { + return is(Tag.fieldValueFactor); } - protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - - if (this.exp != null) { - - generator.writeKey("exp"); - generator.write(this.exp); - - } - if (this.gauss != null) { - - generator.writeKey("gauss"); - generator.write(this.gauss); - - } - if (this.linear != null) { - - generator.writeKey("linear"); - generator.write(this.linear); + /** + * Get the {@code field_value_factor} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code field_value_factor} + * kind. + */ + public FieldValueFactorScoreFunction fieldValueFactor() { + return get(Tag.fieldValueFactor); + } - } - if (this.fieldValueFactor != null) { + /** + * Is this {@link FunctionScoreContainer} of a {@code random_score} kind? + */ + public boolean isRandomScore() { + return is(Tag.randomScore); + } - generator.writeKey("field_value_factor"); - this.fieldValueFactor.toJsonp(generator, mapper); + /** + * Get the {@code random_score} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code random_score} kind. + */ + public RandomScoreFunction randomScore() { + return get(Tag.randomScore); + } - } - if (this.randomScore != null) { + /** + * Is this {@link FunctionScoreContainer} of a {@code script_score} kind? + */ + public boolean isScriptScore() { + return is(Tag.scriptScore); + } - generator.writeKey("random_score"); - this.randomScore.toJsonp(generator, mapper); + /** + * Get the {@code script_score} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code script_score} kind. + */ + public ScriptScoreFunction scriptScore() { + return get(Tag.scriptScore); + } + @Override + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + generator.writeKey(tag.jsonValue); + if (value instanceof ToJsonp) { + ((ToJsonp) value).toJsonp(generator, mapper); + } else { + switch (this.tag) { + case exp : + generator.write(this.get(Tag.exp)); + + break; + case gauss : + generator.write(this.get(Tag.gauss)); + + break; + case linear : + generator.write(this.get(Tag.linear)); + + break; + } } - if (this.scriptScore != null) { - generator.writeKey("script_score"); - this.scriptScore.toJsonp(generator, mapper); - - } if (this.filter != null) { generator.writeKey("filter"); @@ -201,31 +237,11 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { } + generator.writeEnd(); } - - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link FunctionScoreContainer}. - */ - public static class Builder implements ObjectBuilder { - @Nullable - private JsonValue exp; - - @Nullable - private JsonValue gauss; - - @Nullable - private JsonValue linear; - - @Nullable - private FieldValueFactorScoreFunction fieldValueFactor; - - @Nullable - private RandomScoreFunction randomScore; - - @Nullable - private ScriptScoreFunction scriptScore; + public static class Builder { + private Tag $tag; + private Object $variant; @Nullable private QueryContainer filter; @@ -234,120 +250,124 @@ public static class Builder implements ObjectBuilder { private Number weight; /** - * API name: {@code exp} + * API name: {@code filter} */ - public Builder exp(@Nullable JsonValue value) { - this.exp = value; + public Builder filter(@Nullable QueryContainer value) { + this.filter = value; return this; } /** - * API name: {@code gauss} + * API name: {@code filter} */ - public Builder gauss(@Nullable JsonValue value) { - this.gauss = value; - return this; + public Builder filter(Function> fn) { + return this.filter(fn.apply(new QueryContainer.Builder()).build()); } /** - * API name: {@code linear} + * API name: {@code weight} */ - public Builder linear(@Nullable JsonValue value) { - this.linear = value; + public Builder weight(@Nullable Number value) { + this.weight = value; return this; } - /** - * API name: {@code field_value_factor} - */ - public Builder fieldValueFactor(@Nullable FieldValueFactorScoreFunction value) { - this.fieldValueFactor = value; - return this; + public ContainerBuilder exp(JsonValue v) { + this.$variant = v; + this.$tag = Tag.exp; + return new ContainerBuilder(); } - /** - * API name: {@code field_value_factor} - */ - public Builder fieldValueFactor( - Function> fn) { - return this.fieldValueFactor(fn.apply(new FieldValueFactorScoreFunction.Builder()).build()); + public ContainerBuilder gauss(JsonValue v) { + this.$variant = v; + this.$tag = Tag.gauss; + return new ContainerBuilder(); } - /** - * API name: {@code random_score} - */ - public Builder randomScore(@Nullable RandomScoreFunction value) { - this.randomScore = value; - return this; + public ContainerBuilder linear(JsonValue v) { + this.$variant = v; + this.$tag = Tag.linear; + return new ContainerBuilder(); } - /** - * API name: {@code random_score} - */ - public Builder randomScore(Function> fn) { - return this.randomScore(fn.apply(new RandomScoreFunction.Builder()).build()); + public ContainerBuilder fieldValueFactor(FieldValueFactorScoreFunction v) { + this.$variant = v; + this.$tag = Tag.fieldValueFactor; + return new ContainerBuilder(); } - /** - * API name: {@code script_score} - */ - public Builder scriptScore(@Nullable ScriptScoreFunction value) { - this.scriptScore = value; - return this; + public ContainerBuilder fieldValueFactor( + Function> f) { + return this.fieldValueFactor(f.apply(new FieldValueFactorScoreFunction.Builder()).build()); } - /** - * API name: {@code script_score} - */ - public Builder scriptScore(Function> fn) { - return this.scriptScore(fn.apply(new ScriptScoreFunction.Builder()).build()); + public ContainerBuilder randomScore(RandomScoreFunction v) { + this.$variant = v; + this.$tag = Tag.randomScore; + return new ContainerBuilder(); } - /** - * API name: {@code filter} - */ - public Builder filter(@Nullable QueryContainer value) { - this.filter = value; - return this; + public ContainerBuilder randomScore( + Function> f) { + return this.randomScore(f.apply(new RandomScoreFunction.Builder()).build()); } - /** - * API name: {@code filter} - */ - public Builder filter(Function> fn) { - return this.filter(fn.apply(new QueryContainer.Builder()).build()); + public ContainerBuilder scriptScore(ScriptScoreFunction v) { + this.$variant = v; + this.$tag = Tag.scriptScore; + return new ContainerBuilder(); } - /** - * API name: {@code weight} - */ - public Builder weight(@Nullable Number value) { - this.weight = value; - return this; + public ContainerBuilder scriptScore( + Function> f) { + return this.scriptScore(f.apply(new ScriptScoreFunction.Builder()).build()); } - /** - * Builds a {@link FunctionScoreContainer}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public FunctionScoreContainer build() { - + protected FunctionScoreContainer build() { return new FunctionScoreContainer(this); } + + public class ContainerBuilder implements ObjectBuilder { + + /** + * API name: {@code filter} + */ + public ContainerBuilder filter(@Nullable QueryContainer value) { + Builder.this.filter = value; + return this; + } + + /** + * API name: {@code filter} + */ + public ContainerBuilder filter(Function> fn) { + return this.filter(fn.apply(new QueryContainer.Builder()).build()); + } + + /** + * API name: {@code weight} + */ + public ContainerBuilder weight(@Nullable Number value) { + Builder.this.weight = value; + return this; + } + + public FunctionScoreContainer build() { + return Builder.this.build(); + } + } } - // --------------------------------------------------------------------------------------------- + // Variants can be recursive data structures. Building the union's deserializer + // lazily + // avoids cyclic dependencies between static class initialization code, which + // can lead to unwanted things like NPEs or stack overflows - /** - * Json deserializer for FunctionScoreContainer - */ - public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer - .createForObject(Builder::new, FunctionScoreContainer::setupFunctionScoreContainerDeserializer); + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .lazy(FunctionScoreContainer::buildDeserializer); - protected static void setupFunctionScoreContainerDeserializer( - DelegatingDeserializer op) { + private static JsonpDeserializer buildDeserializer() { + ObjectDeserializer op = new ObjectDeserializer<>(Builder::new); op.add(Builder::exp, JsonpDeserializer.jsonValueDeserializer(), "exp"); op.add(Builder::gauss, JsonpDeserializer.jsonValueDeserializer(), "gauss"); @@ -358,6 +378,7 @@ protected static void setupFunctionScoreContainerDeserializer( op.add(Builder::filter, QueryContainer.DESERIALIZER, "filter"); op.add(Builder::weight, JsonpDeserializer.numberDeserializer(), "weight"); + return new BuildFunctionDeserializer<>(op, Builder::build); } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FuzzyQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FuzzyQuery.java new file mode 100644 index 000000000..24776646b --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/FuzzyQuery.java @@ -0,0 +1,264 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Number; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.FuzzyQuery +public final class FuzzyQuery extends QueryBase { + @Nullable + private final Number maxExpansions; + + @Nullable + private final Number prefixLength; + + @Nullable + private final String rewrite; + + @Nullable + private final Boolean transpositions; + + @Nullable + private final JsonValue fuzziness; + + private final String value; + + // --------------------------------------------------------------------------------------------- + + protected FuzzyQuery(Builder builder) { + super(builder); + this.maxExpansions = builder.maxExpansions; + this.prefixLength = builder.prefixLength; + this.rewrite = builder.rewrite; + this.transpositions = builder.transpositions; + this.fuzziness = builder.fuzziness; + this.value = Objects.requireNonNull(builder.value, "value"); + + } + + /** + * API name: {@code max_expansions} + */ + @Nullable + public Number maxExpansions() { + return this.maxExpansions; + } + + /** + * API name: {@code prefix_length} + */ + @Nullable + public Number prefixLength() { + return this.prefixLength; + } + + /** + * API name: {@code rewrite} + */ + @Nullable + public String rewrite() { + return this.rewrite; + } + + /** + * API name: {@code transpositions} + */ + @Nullable + public Boolean transpositions() { + return this.transpositions; + } + + /** + * API name: {@code fuzziness} + */ + @Nullable + public JsonValue fuzziness() { + return this.fuzziness; + } + + /** + * API name: {@code value} + */ + public String value() { + return this.value; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + if (this.maxExpansions != null) { + + generator.writeKey("max_expansions"); + generator.write(this.maxExpansions.doubleValue()); + + } + if (this.prefixLength != null) { + + generator.writeKey("prefix_length"); + generator.write(this.prefixLength.doubleValue()); + + } + if (this.rewrite != null) { + + generator.writeKey("rewrite"); + generator.write(this.rewrite); + + } + if (this.transpositions != null) { + + generator.writeKey("transpositions"); + generator.write(this.transpositions); + + } + if (this.fuzziness != null) { + + generator.writeKey("fuzziness"); + generator.write(this.fuzziness); + + } + + generator.writeKey("value"); + generator.write(this.value); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link FuzzyQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Number maxExpansions; + + @Nullable + private Number prefixLength; + + @Nullable + private String rewrite; + + @Nullable + private Boolean transpositions; + + @Nullable + private JsonValue fuzziness; + + private String value; + + /** + * API name: {@code max_expansions} + */ + public Builder maxExpansions(@Nullable Number value) { + this.maxExpansions = value; + return this; + } + + /** + * API name: {@code prefix_length} + */ + public Builder prefixLength(@Nullable Number value) { + this.prefixLength = value; + return this; + } + + /** + * API name: {@code rewrite} + */ + public Builder rewrite(@Nullable String value) { + this.rewrite = value; + return this; + } + + /** + * API name: {@code transpositions} + */ + public Builder transpositions(@Nullable Boolean value) { + this.transpositions = value; + return this; + } + + /** + * API name: {@code fuzziness} + */ + public Builder fuzziness(@Nullable JsonValue value) { + this.fuzziness = value; + return this; + } + + /** + * API name: {@code value} + */ + public Builder value(String value) { + this.value = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link FuzzyQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public FuzzyQuery build() { + + return new FuzzyQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for FuzzyQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, FuzzyQuery::setupFuzzyQueryDeserializer); + + protected static void setupFuzzyQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::maxExpansions, JsonpDeserializer.numberDeserializer(), "max_expansions"); + op.add(Builder::prefixLength, JsonpDeserializer.numberDeserializer(), "prefix_length"); + op.add(Builder::rewrite, JsonpDeserializer.stringDeserializer(), "rewrite"); + op.add(Builder::transpositions, JsonpDeserializer.booleanDeserializer(), "transpositions"); + op.add(Builder::fuzziness, JsonpDeserializer.jsonValueDeserializer(), "fuzziness"); + op.add(Builder::value, JsonpDeserializer.stringDeserializer(), "value"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoBoundingBoxQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoBoundingBoxQuery.java new file mode 100644 index 000000000..98ae40b23 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoBoundingBoxQuery.java @@ -0,0 +1,148 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.GeoBoundingBoxQuery +public final class GeoBoundingBoxQuery extends QueryBase { + @Nullable + private final JsonValue type; + + @Nullable + private final JsonValue validationMethod; + + // --------------------------------------------------------------------------------------------- + + protected GeoBoundingBoxQuery(Builder builder) { + super(builder); + this.type = builder.type; + this.validationMethod = builder.validationMethod; + + } + + /** + * API name: {@code type} + */ + @Nullable + public JsonValue type() { + return this.type; + } + + /** + * API name: {@code validation_method} + */ + @Nullable + public JsonValue validationMethod() { + return this.validationMethod; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + if (this.type != null) { + + generator.writeKey("type"); + generator.write(this.type); + + } + if (this.validationMethod != null) { + + generator.writeKey("validation_method"); + generator.write(this.validationMethod); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GeoBoundingBoxQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private JsonValue type; + + @Nullable + private JsonValue validationMethod; + + /** + * API name: {@code type} + */ + public Builder type(@Nullable JsonValue value) { + this.type = value; + return this; + } + + /** + * API name: {@code validation_method} + */ + public Builder validationMethod(@Nullable JsonValue value) { + this.validationMethod = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GeoBoundingBoxQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GeoBoundingBoxQuery build() { + + return new GeoBoundingBoxQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for GeoBoundingBoxQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, GeoBoundingBoxQuery::setupGeoBoundingBoxQueryDeserializer); + + protected static void setupGeoBoundingBoxQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::type, JsonpDeserializer.jsonValueDeserializer(), "type"); + op.add(Builder::validationMethod, JsonpDeserializer.jsonValueDeserializer(), "validation_method"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoPolygonQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoPolygonQuery.java new file mode 100644 index 000000000..e612ad3a6 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoPolygonQuery.java @@ -0,0 +1,116 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.GeoPolygonQuery +public final class GeoPolygonQuery extends QueryBase { + @Nullable + private final JsonValue validationMethod; + + // --------------------------------------------------------------------------------------------- + + protected GeoPolygonQuery(Builder builder) { + super(builder); + this.validationMethod = builder.validationMethod; + + } + + /** + * API name: {@code validation_method} + */ + @Nullable + public JsonValue validationMethod() { + return this.validationMethod; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + if (this.validationMethod != null) { + + generator.writeKey("validation_method"); + generator.write(this.validationMethod); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GeoPolygonQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private JsonValue validationMethod; + + /** + * API name: {@code validation_method} + */ + public Builder validationMethod(@Nullable JsonValue value) { + this.validationMethod = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GeoPolygonQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GeoPolygonQuery build() { + + return new GeoPolygonQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for GeoPolygonQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, GeoPolygonQuery::setupGeoPolygonQueryDeserializer); + + protected static void setupGeoPolygonQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::validationMethod, JsonpDeserializer.jsonValueDeserializer(), "validation_method"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeQuery.java new file mode 100644 index 000000000..d3c851c0e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/GeoShapeQuery.java @@ -0,0 +1,116 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.GeoShapeQuery +public final class GeoShapeQuery extends QueryBase { + @Nullable + private final Boolean ignoreUnmapped; + + // --------------------------------------------------------------------------------------------- + + protected GeoShapeQuery(Builder builder) { + super(builder); + this.ignoreUnmapped = builder.ignoreUnmapped; + + } + + /** + * API name: {@code ignore_unmapped} + */ + @Nullable + public Boolean ignoreUnmapped() { + return this.ignoreUnmapped; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + if (this.ignoreUnmapped != null) { + + generator.writeKey("ignore_unmapped"); + generator.write(this.ignoreUnmapped); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GeoShapeQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean ignoreUnmapped; + + /** + * API name: {@code ignore_unmapped} + */ + public Builder ignoreUnmapped(@Nullable Boolean value) { + this.ignoreUnmapped = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link GeoShapeQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GeoShapeQuery build() { + + return new GeoShapeQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for GeoShapeQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, GeoShapeQuery::setupGeoShapeQueryDeserializer); + + protected static void setupGeoShapeQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::ignoreUnmapped, JsonpDeserializer.booleanDeserializer(), "ignore_unmapped"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasChildQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasChildQuery.java index dc164da98..690bd2f56 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasChildQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasChildQuery.java @@ -35,6 +35,7 @@ import java.lang.Boolean; import java.lang.Number; import java.lang.String; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -52,13 +53,11 @@ public final class HasChildQuery extends QueryBase { @Nullable private final Number minChildren; - @Nullable private final QueryContainer query; @Nullable private final JsonValue scoreMode; - @Nullable private final String type; // --------------------------------------------------------------------------------------------- @@ -69,9 +68,9 @@ protected HasChildQuery(Builder builder) { this.innerHits = builder.innerHits; this.maxChildren = builder.maxChildren; this.minChildren = builder.minChildren; - this.query = builder.query; + this.query = Objects.requireNonNull(builder.query, "query"); this.scoreMode = builder.scoreMode; - this.type = builder.type; + this.type = Objects.requireNonNull(builder.type, "type"); } @@ -110,7 +109,6 @@ public Number minChildren() { /** * API name: {@code query} */ - @Nullable public QueryContainer query() { return this.query; } @@ -126,7 +124,6 @@ public JsonValue scoreMode() { /** * API name: {@code type} */ - @Nullable public String type() { return this.type; } @@ -157,24 +154,19 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.minChildren.doubleValue()); } - if (this.query != null) { - generator.writeKey("query"); - this.query.toJsonp(generator, mapper); + generator.writeKey("query"); + this.query.toJsonp(generator, mapper); - } if (this.scoreMode != null) { generator.writeKey("score_mode"); generator.write(this.scoreMode); } - if (this.type != null) { - generator.writeKey("type"); - generator.write(this.type); - - } + generator.writeKey("type"); + generator.write(this.type); } @@ -196,13 +188,11 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private Number minChildren; - @Nullable private QueryContainer query; @Nullable private JsonValue scoreMode; - @Nullable private String type; /** @@ -247,7 +237,7 @@ public Builder minChildren(@Nullable Number value) { /** * API name: {@code query} */ - public Builder query(@Nullable QueryContainer value) { + public Builder query(QueryContainer value) { this.query = value; return this; } @@ -270,7 +260,7 @@ public Builder scoreMode(@Nullable JsonValue value) { /** * API name: {@code type} */ - public Builder type(@Nullable String value) { + public Builder type(String value) { this.type = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasParentQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasParentQuery.java index 142accde7..966a6c0cf 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasParentQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/HasParentQuery.java @@ -33,6 +33,7 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.String; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -44,10 +45,8 @@ public final class HasParentQuery extends QueryBase { @Nullable private final InnerHits innerHits; - @Nullable private final String parentType; - @Nullable private final QueryContainer query; @Nullable @@ -59,8 +58,8 @@ protected HasParentQuery(Builder builder) { super(builder); this.ignoreUnmapped = builder.ignoreUnmapped; this.innerHits = builder.innerHits; - this.parentType = builder.parentType; - this.query = builder.query; + this.parentType = Objects.requireNonNull(builder.parentType, "parent_type"); + this.query = Objects.requireNonNull(builder.query, "query"); this.score = builder.score; } @@ -84,7 +83,6 @@ public InnerHits innerHits() { /** * API name: {@code parent_type} */ - @Nullable public String parentType() { return this.parentType; } @@ -92,7 +90,6 @@ public String parentType() { /** * API name: {@code query} */ - @Nullable public QueryContainer query() { return this.query; } @@ -119,18 +116,13 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { this.innerHits.toJsonp(generator, mapper); } - if (this.parentType != null) { - generator.writeKey("parent_type"); - generator.write(this.parentType); + generator.writeKey("parent_type"); + generator.write(this.parentType); - } - if (this.query != null) { + generator.writeKey("query"); + this.query.toJsonp(generator, mapper); - generator.writeKey("query"); - this.query.toJsonp(generator, mapper); - - } if (this.score != null) { generator.writeKey("score"); @@ -152,10 +144,8 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private InnerHits innerHits; - @Nullable private String parentType; - @Nullable private QueryContainer query; @Nullable @@ -187,7 +177,7 @@ public Builder innerHits(Function> f /** * API name: {@code parent_type} */ - public Builder parentType(@Nullable String value) { + public Builder parentType(String value) { this.parentType = value; return this; } @@ -195,7 +185,7 @@ public Builder parentType(@Nullable String value) { /** * API name: {@code query} */ - public Builder query(@Nullable QueryContainer value) { + public Builder query(QueryContainer value) { this.query = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IdsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IdsQuery.java index a93f61e0b..26f2e05cc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IdsQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IdsQuery.java @@ -29,14 +29,17 @@ import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; -import jakarta.json.JsonValue; import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; import javax.annotation.Nullable; // typedef: _types.query_dsl.IdsQuery public final class IdsQuery extends QueryBase { @Nullable - private final JsonValue values; + private final List values; // --------------------------------------------------------------------------------------------- @@ -50,7 +53,7 @@ protected IdsQuery(Builder builder) { * API name: {@code values} */ @Nullable - public JsonValue values() { + public List values() { return this.values; } @@ -59,7 +62,12 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { if (this.values != null) { generator.writeKey("values"); - generator.write(this.values); + generator.writeStartArray(); + for (String item0 : this.values) { + generator.write(item0); + + } + generator.writeEnd(); } @@ -72,16 +80,35 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { */ public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { @Nullable - private JsonValue values; + private List values; /** * API name: {@code values} */ - public Builder values(@Nullable JsonValue value) { + public Builder values(@Nullable List value) { this.values = value; return this; } + /** + * API name: {@code values} + */ + public Builder values(String... value) { + this.values = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #values(List)}, creating the list if needed. + */ + public Builder addValues(String value) { + if (this.values == null) { + this.values = new ArrayList<>(); + } + this.values.add(value); + return this; + } + @Override protected Builder self() { return this; @@ -109,7 +136,7 @@ public IdsQuery build() { protected static void setupIdsQueryDeserializer(DelegatingDeserializer op) { QueryBase.setupQueryBaseDeserializer(op); - op.add(Builder::values, JsonpDeserializer.jsonValueDeserializer(), "values"); + op.add(Builder::values, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "values"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java new file mode 100644 index 000000000..f6e499a51 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAllOf.java @@ -0,0 +1,256 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Number; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.IntervalsAllOf +public final class IntervalsAllOf implements ToJsonp { + private final List intervals; + + @Nullable + private final Number maxGaps; + + @Nullable + private final Boolean ordered; + + @Nullable + private final IntervalsFilter filter; + + // --------------------------------------------------------------------------------------------- + + protected IntervalsAllOf(Builder builder) { + + this.intervals = Objects.requireNonNull(builder.intervals, "intervals"); + this.maxGaps = builder.maxGaps; + this.ordered = builder.ordered; + this.filter = builder.filter; + + } + + /** + * API name: {@code intervals} + */ + public List intervals() { + return this.intervals; + } + + /** + * API name: {@code max_gaps} + */ + @Nullable + public Number maxGaps() { + return this.maxGaps; + } + + /** + * API name: {@code ordered} + */ + @Nullable + public Boolean ordered() { + return this.ordered; + } + + /** + * API name: {@code filter} + */ + @Nullable + public IntervalsFilter filter() { + return this.filter; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("intervals"); + generator.writeStartArray(); + for (IntervalsContainer item0 : this.intervals) { + item0.toJsonp(generator, mapper); + + } + generator.writeEnd(); + + if (this.maxGaps != null) { + + generator.writeKey("max_gaps"); + generator.write(this.maxGaps.doubleValue()); + + } + if (this.ordered != null) { + + generator.writeKey("ordered"); + generator.write(this.ordered); + + } + if (this.filter != null) { + + generator.writeKey("filter"); + this.filter.toJsonp(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IntervalsAllOf}. + */ + public static class Builder implements ObjectBuilder { + private List intervals; + + @Nullable + private Number maxGaps; + + @Nullable + private Boolean ordered; + + @Nullable + private IntervalsFilter filter; + + /** + * API name: {@code intervals} + */ + public Builder intervals(List value) { + this.intervals = value; + return this; + } + + /** + * API name: {@code intervals} + */ + public Builder intervals(IntervalsContainer... value) { + this.intervals = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #intervals(List)}, creating the list if needed. + */ + public Builder addIntervals(IntervalsContainer value) { + if (this.intervals == null) { + this.intervals = new ArrayList<>(); + } + this.intervals.add(value); + return this; + } + + /** + * Set {@link #intervals(List)} to a singleton list. + */ + public Builder intervals(Function> fn) { + return this.intervals(fn.apply(new IntervalsContainer.Builder()).build()); + } + + /** + * Add a value to {@link #intervals(List)}, creating the list if needed. + */ + public Builder addIntervals(Function> fn) { + return this.addIntervals(fn.apply(new IntervalsContainer.Builder()).build()); + } + + /** + * API name: {@code max_gaps} + */ + public Builder maxGaps(@Nullable Number value) { + this.maxGaps = value; + return this; + } + + /** + * API name: {@code ordered} + */ + public Builder ordered(@Nullable Boolean value) { + this.ordered = value; + return this; + } + + /** + * API name: {@code filter} + */ + public Builder filter(@Nullable IntervalsFilter value) { + this.filter = value; + return this; + } + + /** + * API name: {@code filter} + */ + public Builder filter(Function> fn) { + return this.filter(fn.apply(new IntervalsFilter.Builder()).build()); + } + + /** + * Builds a {@link IntervalsAllOf}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IntervalsAllOf build() { + + return new IntervalsAllOf(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for IntervalsAllOf + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, IntervalsAllOf::setupIntervalsAllOfDeserializer); + + protected static void setupIntervalsAllOfDeserializer(DelegatingDeserializer op) { + + op.add(Builder::intervals, JsonpDeserializer.arrayDeserializer(IntervalsContainer.DESERIALIZER), "intervals"); + op.add(Builder::maxGaps, JsonpDeserializer.numberDeserializer(), "max_gaps"); + op.add(Builder::ordered, JsonpDeserializer.booleanDeserializer(), "ordered"); + op.add(Builder::filter, IntervalsFilter.DESERIALIZER, "filter"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java new file mode 100644 index 000000000..903bb5eea --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsAnyOf.java @@ -0,0 +1,194 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.IntervalsAnyOf +public final class IntervalsAnyOf implements ToJsonp { + private final List intervals; + + @Nullable + private final IntervalsFilter filter; + + // --------------------------------------------------------------------------------------------- + + protected IntervalsAnyOf(Builder builder) { + + this.intervals = Objects.requireNonNull(builder.intervals, "intervals"); + this.filter = builder.filter; + + } + + /** + * API name: {@code intervals} + */ + public List intervals() { + return this.intervals; + } + + /** + * API name: {@code filter} + */ + @Nullable + public IntervalsFilter filter() { + return this.filter; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("intervals"); + generator.writeStartArray(); + for (IntervalsContainer item0 : this.intervals) { + item0.toJsonp(generator, mapper); + + } + generator.writeEnd(); + + if (this.filter != null) { + + generator.writeKey("filter"); + this.filter.toJsonp(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IntervalsAnyOf}. + */ + public static class Builder implements ObjectBuilder { + private List intervals; + + @Nullable + private IntervalsFilter filter; + + /** + * API name: {@code intervals} + */ + public Builder intervals(List value) { + this.intervals = value; + return this; + } + + /** + * API name: {@code intervals} + */ + public Builder intervals(IntervalsContainer... value) { + this.intervals = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #intervals(List)}, creating the list if needed. + */ + public Builder addIntervals(IntervalsContainer value) { + if (this.intervals == null) { + this.intervals = new ArrayList<>(); + } + this.intervals.add(value); + return this; + } + + /** + * Set {@link #intervals(List)} to a singleton list. + */ + public Builder intervals(Function> fn) { + return this.intervals(fn.apply(new IntervalsContainer.Builder()).build()); + } + + /** + * Add a value to {@link #intervals(List)}, creating the list if needed. + */ + public Builder addIntervals(Function> fn) { + return this.addIntervals(fn.apply(new IntervalsContainer.Builder()).build()); + } + + /** + * API name: {@code filter} + */ + public Builder filter(@Nullable IntervalsFilter value) { + this.filter = value; + return this; + } + + /** + * API name: {@code filter} + */ + public Builder filter(Function> fn) { + return this.filter(fn.apply(new IntervalsFilter.Builder()).build()); + } + + /** + * Builds a {@link IntervalsAnyOf}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IntervalsAnyOf build() { + + return new IntervalsAnyOf(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for IntervalsAnyOf + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, IntervalsAnyOf::setupIntervalsAnyOfDeserializer); + + protected static void setupIntervalsAnyOfDeserializer(DelegatingDeserializer op) { + + op.add(Builder::intervals, JsonpDeserializer.arrayDeserializer(IntervalsContainer.DESERIALIZER), "intervals"); + op.add(Builder::filter, IntervalsFilter.DESERIALIZER, "filter"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsContainer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsContainer.java new file mode 100644 index 000000000..6ff907521 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsContainer.java @@ -0,0 +1,284 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.BuildFunctionDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.StringEnum; +import co.elastic.clients.util.TaggedUnion; +import jakarta.json.stream.JsonGenerator; +import java.lang.Object; +import java.util.function.Function; +import javax.annotation.Nullable; + +public class IntervalsContainer extends TaggedUnion implements ToJsonp { + + public enum Tag implements StringEnum { + + allOf("all_of"), + + anyOf("any_of"), + + fuzzy("fuzzy"), + + match("match"), + + prefix("prefix"), + + wildcard("wildcard"), + + ; + + private final String jsonValue; + + Tag(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static StringEnum.Deserializer DESERIALIZER = new StringEnum.Deserializer<>(Tag.values()); + } + + private IntervalsContainer(Builder builder) { + super(builder.$tag, builder.$variant); + + } + + /** + * Is this {@link IntervalsContainer} of a {@code all_of} kind? + */ + public boolean isAllOf() { + return is(Tag.allOf); + } + + /** + * Get the {@code all_of} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code all_of} kind. + */ + public IntervalsAllOf allOf() { + return get(Tag.allOf); + } + + /** + * Is this {@link IntervalsContainer} of a {@code any_of} kind? + */ + public boolean isAnyOf() { + return is(Tag.anyOf); + } + + /** + * Get the {@code any_of} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code any_of} kind. + */ + public IntervalsAnyOf anyOf() { + return get(Tag.anyOf); + } + + /** + * Is this {@link IntervalsContainer} of a {@code fuzzy} kind? + */ + public boolean isFuzzy() { + return is(Tag.fuzzy); + } + + /** + * Get the {@code fuzzy} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code fuzzy} kind. + */ + public IntervalsFuzzy fuzzy() { + return get(Tag.fuzzy); + } + + /** + * Is this {@link IntervalsContainer} of a {@code match} kind? + */ + public boolean isMatch() { + return is(Tag.match); + } + + /** + * Get the {@code match} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code match} kind. + */ + public IntervalsMatch match() { + return get(Tag.match); + } + + /** + * Is this {@link IntervalsContainer} of a {@code prefix} kind? + */ + public boolean isPrefix() { + return is(Tag.prefix); + } + + /** + * Get the {@code prefix} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code prefix} kind. + */ + public IntervalsPrefix prefix() { + return get(Tag.prefix); + } + + /** + * Is this {@link IntervalsContainer} of a {@code wildcard} kind? + */ + public boolean isWildcard() { + return is(Tag.wildcard); + } + + /** + * Get the {@code wildcard} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code wildcard} kind. + */ + public IntervalsWildcard wildcard() { + return get(Tag.wildcard); + } + + @Override + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + generator.writeKey(tag.jsonValue); + if (value instanceof ToJsonp) { + ((ToJsonp) value).toJsonp(generator, mapper); + } + + generator.writeEnd(); + } + public static class Builder { + private Tag $tag; + private Object $variant; + + public ObjectBuilder allOf(IntervalsAllOf v) { + this.$variant = v; + this.$tag = Tag.allOf; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder allOf( + Function> f) { + return this.allOf(f.apply(new IntervalsAllOf.Builder()).build()); + } + + public ObjectBuilder anyOf(IntervalsAnyOf v) { + this.$variant = v; + this.$tag = Tag.anyOf; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder anyOf( + Function> f) { + return this.anyOf(f.apply(new IntervalsAnyOf.Builder()).build()); + } + + public ObjectBuilder fuzzy(IntervalsFuzzy v) { + this.$variant = v; + this.$tag = Tag.fuzzy; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder fuzzy( + Function> f) { + return this.fuzzy(f.apply(new IntervalsFuzzy.Builder()).build()); + } + + public ObjectBuilder match(IntervalsMatch v) { + this.$variant = v; + this.$tag = Tag.match; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder match( + Function> f) { + return this.match(f.apply(new IntervalsMatch.Builder()).build()); + } + + public ObjectBuilder prefix(IntervalsPrefix v) { + this.$variant = v; + this.$tag = Tag.prefix; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder prefix( + Function> f) { + return this.prefix(f.apply(new IntervalsPrefix.Builder()).build()); + } + + public ObjectBuilder wildcard(IntervalsWildcard v) { + this.$variant = v; + this.$tag = Tag.wildcard; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder wildcard( + Function> f) { + return this.wildcard(f.apply(new IntervalsWildcard.Builder()).build()); + } + + protected IntervalsContainer build() { + return new IntervalsContainer(this); + } + + } + + // Variants can be recursive data structures. Building the union's deserializer + // lazily + // avoids cyclic dependencies between static class initialization code, which + // can lead to unwanted things like NPEs or stack overflows + + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .lazy(IntervalsContainer::buildDeserializer); + + private static JsonpDeserializer buildDeserializer() { + ObjectDeserializer op = new ObjectDeserializer<>(Builder::new); + + op.add(Builder::allOf, IntervalsAllOf.DESERIALIZER, "all_of"); + op.add(Builder::anyOf, IntervalsAnyOf.DESERIALIZER, "any_of"); + op.add(Builder::fuzzy, IntervalsFuzzy.DESERIALIZER, "fuzzy"); + op.add(Builder::match, IntervalsMatch.DESERIALIZER, "match"); + op.add(Builder::prefix, IntervalsPrefix.DESERIALIZER, "prefix"); + op.add(Builder::wildcard, IntervalsWildcard.DESERIALIZER, "wildcard"); + + return new BuildFunctionDeserializer<>(op, Builder::build); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilter.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilter.java new file mode 100644 index 000000000..a33478e13 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFilter.java @@ -0,0 +1,382 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.BuildFunctionDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.StringEnum; +import co.elastic.clients.util.TaggedUnion; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Object; +import java.util.function.Function; +import javax.annotation.Nullable; + +public class IntervalsFilter extends TaggedUnion implements ToJsonp { + + public enum Tag implements StringEnum { + + after("after"), + + before("before"), + + containedBy("contained_by"), + + containing("containing"), + + notContainedBy("not_contained_by"), + + notContaining("not_containing"), + + notOverlapping("not_overlapping"), + + overlapping("overlapping"), + + script("script"), + + ; + + private final String jsonValue; + + Tag(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static StringEnum.Deserializer DESERIALIZER = new StringEnum.Deserializer<>(Tag.values()); + } + + private IntervalsFilter(Builder builder) { + super(builder.$tag, builder.$variant); + + } + + /** + * Is this {@link IntervalsFilter} of a {@code after} kind? + */ + public boolean isAfter() { + return is(Tag.after); + } + + /** + * Get the {@code after} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code after} kind. + */ + public IntervalsContainer after() { + return get(Tag.after); + } + + /** + * Is this {@link IntervalsFilter} of a {@code before} kind? + */ + public boolean isBefore() { + return is(Tag.before); + } + + /** + * Get the {@code before} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code before} kind. + */ + public IntervalsContainer before() { + return get(Tag.before); + } + + /** + * Is this {@link IntervalsFilter} of a {@code contained_by} kind? + */ + public boolean isContainedBy() { + return is(Tag.containedBy); + } + + /** + * Get the {@code contained_by} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code contained_by} kind. + */ + public IntervalsContainer containedBy() { + return get(Tag.containedBy); + } + + /** + * Is this {@link IntervalsFilter} of a {@code containing} kind? + */ + public boolean isContaining() { + return is(Tag.containing); + } + + /** + * Get the {@code containing} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code containing} kind. + */ + public IntervalsContainer containing() { + return get(Tag.containing); + } + + /** + * Is this {@link IntervalsFilter} of a {@code not_contained_by} kind? + */ + public boolean isNotContainedBy() { + return is(Tag.notContainedBy); + } + + /** + * Get the {@code not_contained_by} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code not_contained_by} + * kind. + */ + public IntervalsContainer notContainedBy() { + return get(Tag.notContainedBy); + } + + /** + * Is this {@link IntervalsFilter} of a {@code not_containing} kind? + */ + public boolean isNotContaining() { + return is(Tag.notContaining); + } + + /** + * Get the {@code not_containing} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code not_containing} kind. + */ + public IntervalsContainer notContaining() { + return get(Tag.notContaining); + } + + /** + * Is this {@link IntervalsFilter} of a {@code not_overlapping} kind? + */ + public boolean isNotOverlapping() { + return is(Tag.notOverlapping); + } + + /** + * Get the {@code not_overlapping} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code not_overlapping} + * kind. + */ + public IntervalsContainer notOverlapping() { + return get(Tag.notOverlapping); + } + + /** + * Is this {@link IntervalsFilter} of a {@code overlapping} kind? + */ + public boolean isOverlapping() { + return is(Tag.overlapping); + } + + /** + * Get the {@code overlapping} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code overlapping} kind. + */ + public IntervalsContainer overlapping() { + return get(Tag.overlapping); + } + + /** + * Is this {@link IntervalsFilter} of a {@code script} kind? + */ + public boolean isScript() { + return is(Tag.script); + } + + /** + * Get the {@code script} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code script} kind. + */ + public JsonValue script() { + return get(Tag.script); + } + + @Override + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + generator.writeKey(tag.jsonValue); + if (value instanceof ToJsonp) { + ((ToJsonp) value).toJsonp(generator, mapper); + } else { + switch (this.tag) { + case script : + generator.write(this.get(Tag.script)); + + break; + } + } + + generator.writeEnd(); + } + public static class Builder { + private Tag $tag; + private Object $variant; + + public ObjectBuilder after(IntervalsContainer v) { + this.$variant = v; + this.$tag = Tag.after; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder after( + Function> f) { + return this.after(f.apply(new IntervalsContainer.Builder()).build()); + } + + public ObjectBuilder before(IntervalsContainer v) { + this.$variant = v; + this.$tag = Tag.before; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder before( + Function> f) { + return this.before(f.apply(new IntervalsContainer.Builder()).build()); + } + + public ObjectBuilder containedBy(IntervalsContainer v) { + this.$variant = v; + this.$tag = Tag.containedBy; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder containedBy( + Function> f) { + return this.containedBy(f.apply(new IntervalsContainer.Builder()).build()); + } + + public ObjectBuilder containing(IntervalsContainer v) { + this.$variant = v; + this.$tag = Tag.containing; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder containing( + Function> f) { + return this.containing(f.apply(new IntervalsContainer.Builder()).build()); + } + + public ObjectBuilder notContainedBy(IntervalsContainer v) { + this.$variant = v; + this.$tag = Tag.notContainedBy; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder notContainedBy( + Function> f) { + return this.notContainedBy(f.apply(new IntervalsContainer.Builder()).build()); + } + + public ObjectBuilder notContaining(IntervalsContainer v) { + this.$variant = v; + this.$tag = Tag.notContaining; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder notContaining( + Function> f) { + return this.notContaining(f.apply(new IntervalsContainer.Builder()).build()); + } + + public ObjectBuilder notOverlapping(IntervalsContainer v) { + this.$variant = v; + this.$tag = Tag.notOverlapping; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder notOverlapping( + Function> f) { + return this.notOverlapping(f.apply(new IntervalsContainer.Builder()).build()); + } + + public ObjectBuilder overlapping(IntervalsContainer v) { + this.$variant = v; + this.$tag = Tag.overlapping; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder overlapping( + Function> f) { + return this.overlapping(f.apply(new IntervalsContainer.Builder()).build()); + } + + public ObjectBuilder script(JsonValue v) { + this.$variant = v; + this.$tag = Tag.script; + return new ObjectBuilder.Constant<>(this.build()); + } + + protected IntervalsFilter build() { + return new IntervalsFilter(this); + } + + } + + // Variants can be recursive data structures. Building the union's deserializer + // lazily + // avoids cyclic dependencies between static class initialization code, which + // can lead to unwanted things like NPEs or stack overflows + + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .lazy(IntervalsFilter::buildDeserializer); + + private static JsonpDeserializer buildDeserializer() { + ObjectDeserializer op = new ObjectDeserializer<>(Builder::new); + + op.add(Builder::after, IntervalsContainer.DESERIALIZER, "after"); + op.add(Builder::before, IntervalsContainer.DESERIALIZER, "before"); + op.add(Builder::containedBy, IntervalsContainer.DESERIALIZER, "contained_by"); + op.add(Builder::containing, IntervalsContainer.DESERIALIZER, "containing"); + op.add(Builder::notContainedBy, IntervalsContainer.DESERIALIZER, "not_contained_by"); + op.add(Builder::notContaining, IntervalsContainer.DESERIALIZER, "not_containing"); + op.add(Builder::notOverlapping, IntervalsContainer.DESERIALIZER, "not_overlapping"); + op.add(Builder::overlapping, IntervalsContainer.DESERIALIZER, "overlapping"); + op.add(Builder::script, JsonpDeserializer.jsonValueDeserializer(), "script"); + + return new BuildFunctionDeserializer<>(op, Builder::build); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java new file mode 100644 index 000000000..2714b5319 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsFuzzy.java @@ -0,0 +1,270 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Number; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.IntervalsFuzzy +public final class IntervalsFuzzy implements ToJsonp { + @Nullable + private final String analyzer; + + @Nullable + private final JsonValue fuzziness; + + @Nullable + private final Number prefixLength; + + private final String term; + + @Nullable + private final Boolean transpositions; + + @Nullable + private final String useField; + + // --------------------------------------------------------------------------------------------- + + protected IntervalsFuzzy(Builder builder) { + + this.analyzer = builder.analyzer; + this.fuzziness = builder.fuzziness; + this.prefixLength = builder.prefixLength; + this.term = Objects.requireNonNull(builder.term, "term"); + this.transpositions = builder.transpositions; + this.useField = builder.useField; + + } + + /** + * API name: {@code analyzer} + */ + @Nullable + public String analyzer() { + return this.analyzer; + } + + /** + * API name: {@code fuzziness} + */ + @Nullable + public JsonValue fuzziness() { + return this.fuzziness; + } + + /** + * API name: {@code prefix_length} + */ + @Nullable + public Number prefixLength() { + return this.prefixLength; + } + + /** + * API name: {@code term} + */ + public String term() { + return this.term; + } + + /** + * API name: {@code transpositions} + */ + @Nullable + public Boolean transpositions() { + return this.transpositions; + } + + /** + * API name: {@code use_field} + */ + @Nullable + public String useField() { + return this.useField; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.analyzer != null) { + + generator.writeKey("analyzer"); + generator.write(this.analyzer); + + } + if (this.fuzziness != null) { + + generator.writeKey("fuzziness"); + generator.write(this.fuzziness); + + } + if (this.prefixLength != null) { + + generator.writeKey("prefix_length"); + generator.write(this.prefixLength.doubleValue()); + + } + + generator.writeKey("term"); + generator.write(this.term); + + if (this.transpositions != null) { + + generator.writeKey("transpositions"); + generator.write(this.transpositions); + + } + if (this.useField != null) { + + generator.writeKey("use_field"); + generator.write(this.useField); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IntervalsFuzzy}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private String analyzer; + + @Nullable + private JsonValue fuzziness; + + @Nullable + private Number prefixLength; + + private String term; + + @Nullable + private Boolean transpositions; + + @Nullable + private String useField; + + /** + * API name: {@code analyzer} + */ + public Builder analyzer(@Nullable String value) { + this.analyzer = value; + return this; + } + + /** + * API name: {@code fuzziness} + */ + public Builder fuzziness(@Nullable JsonValue value) { + this.fuzziness = value; + return this; + } + + /** + * API name: {@code prefix_length} + */ + public Builder prefixLength(@Nullable Number value) { + this.prefixLength = value; + return this; + } + + /** + * API name: {@code term} + */ + public Builder term(String value) { + this.term = value; + return this; + } + + /** + * API name: {@code transpositions} + */ + public Builder transpositions(@Nullable Boolean value) { + this.transpositions = value; + return this; + } + + /** + * API name: {@code use_field} + */ + public Builder useField(@Nullable String value) { + this.useField = value; + return this; + } + + /** + * Builds a {@link IntervalsFuzzy}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IntervalsFuzzy build() { + + return new IntervalsFuzzy(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for IntervalsFuzzy + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, IntervalsFuzzy::setupIntervalsFuzzyDeserializer); + + protected static void setupIntervalsFuzzyDeserializer(DelegatingDeserializer op) { + + op.add(Builder::analyzer, JsonpDeserializer.stringDeserializer(), "analyzer"); + op.add(Builder::fuzziness, JsonpDeserializer.jsonValueDeserializer(), "fuzziness"); + op.add(Builder::prefixLength, JsonpDeserializer.numberDeserializer(), "prefix_length"); + op.add(Builder::term, JsonpDeserializer.stringDeserializer(), "term"); + op.add(Builder::transpositions, JsonpDeserializer.booleanDeserializer(), "transpositions"); + op.add(Builder::useField, JsonpDeserializer.stringDeserializer(), "use_field"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java new file mode 100644 index 000000000..87b0654af --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsMatch.java @@ -0,0 +1,277 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Number; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.IntervalsMatch +public final class IntervalsMatch implements ToJsonp { + @Nullable + private final String analyzer; + + @Nullable + private final Number maxGaps; + + @Nullable + private final Boolean ordered; + + private final String query; + + @Nullable + private final String useField; + + @Nullable + private final IntervalsFilter filter; + + // --------------------------------------------------------------------------------------------- + + protected IntervalsMatch(Builder builder) { + + this.analyzer = builder.analyzer; + this.maxGaps = builder.maxGaps; + this.ordered = builder.ordered; + this.query = Objects.requireNonNull(builder.query, "query"); + this.useField = builder.useField; + this.filter = builder.filter; + + } + + /** + * API name: {@code analyzer} + */ + @Nullable + public String analyzer() { + return this.analyzer; + } + + /** + * API name: {@code max_gaps} + */ + @Nullable + public Number maxGaps() { + return this.maxGaps; + } + + /** + * API name: {@code ordered} + */ + @Nullable + public Boolean ordered() { + return this.ordered; + } + + /** + * API name: {@code query} + */ + public String query() { + return this.query; + } + + /** + * API name: {@code use_field} + */ + @Nullable + public String useField() { + return this.useField; + } + + /** + * API name: {@code filter} + */ + @Nullable + public IntervalsFilter filter() { + return this.filter; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.analyzer != null) { + + generator.writeKey("analyzer"); + generator.write(this.analyzer); + + } + if (this.maxGaps != null) { + + generator.writeKey("max_gaps"); + generator.write(this.maxGaps.doubleValue()); + + } + if (this.ordered != null) { + + generator.writeKey("ordered"); + generator.write(this.ordered); + + } + + generator.writeKey("query"); + generator.write(this.query); + + if (this.useField != null) { + + generator.writeKey("use_field"); + generator.write(this.useField); + + } + if (this.filter != null) { + + generator.writeKey("filter"); + this.filter.toJsonp(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IntervalsMatch}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private String analyzer; + + @Nullable + private Number maxGaps; + + @Nullable + private Boolean ordered; + + private String query; + + @Nullable + private String useField; + + @Nullable + private IntervalsFilter filter; + + /** + * API name: {@code analyzer} + */ + public Builder analyzer(@Nullable String value) { + this.analyzer = value; + return this; + } + + /** + * API name: {@code max_gaps} + */ + public Builder maxGaps(@Nullable Number value) { + this.maxGaps = value; + return this; + } + + /** + * API name: {@code ordered} + */ + public Builder ordered(@Nullable Boolean value) { + this.ordered = value; + return this; + } + + /** + * API name: {@code query} + */ + public Builder query(String value) { + this.query = value; + return this; + } + + /** + * API name: {@code use_field} + */ + public Builder useField(@Nullable String value) { + this.useField = value; + return this; + } + + /** + * API name: {@code filter} + */ + public Builder filter(@Nullable IntervalsFilter value) { + this.filter = value; + return this; + } + + /** + * API name: {@code filter} + */ + public Builder filter(Function> fn) { + return this.filter(fn.apply(new IntervalsFilter.Builder()).build()); + } + + /** + * Builds a {@link IntervalsMatch}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IntervalsMatch build() { + + return new IntervalsMatch(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for IntervalsMatch + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, IntervalsMatch::setupIntervalsMatchDeserializer); + + protected static void setupIntervalsMatchDeserializer(DelegatingDeserializer op) { + + op.add(Builder::analyzer, JsonpDeserializer.stringDeserializer(), "analyzer"); + op.add(Builder::maxGaps, JsonpDeserializer.numberDeserializer(), "max_gaps"); + op.add(Builder::ordered, JsonpDeserializer.booleanDeserializer(), "ordered"); + op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); + op.add(Builder::useField, JsonpDeserializer.stringDeserializer(), "use_field"); + op.add(Builder::filter, IntervalsFilter.DESERIALIZER, "filter"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java new file mode 100644 index 000000000..30834aed7 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsPrefix.java @@ -0,0 +1,177 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.IntervalsPrefix +public final class IntervalsPrefix implements ToJsonp { + @Nullable + private final String analyzer; + + private final String prefix; + + @Nullable + private final String useField; + + // --------------------------------------------------------------------------------------------- + + protected IntervalsPrefix(Builder builder) { + + this.analyzer = builder.analyzer; + this.prefix = Objects.requireNonNull(builder.prefix, "prefix"); + this.useField = builder.useField; + + } + + /** + * API name: {@code analyzer} + */ + @Nullable + public String analyzer() { + return this.analyzer; + } + + /** + * API name: {@code prefix} + */ + public String prefix() { + return this.prefix; + } + + /** + * API name: {@code use_field} + */ + @Nullable + public String useField() { + return this.useField; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.analyzer != null) { + + generator.writeKey("analyzer"); + generator.write(this.analyzer); + + } + + generator.writeKey("prefix"); + generator.write(this.prefix); + + if (this.useField != null) { + + generator.writeKey("use_field"); + generator.write(this.useField); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IntervalsPrefix}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private String analyzer; + + private String prefix; + + @Nullable + private String useField; + + /** + * API name: {@code analyzer} + */ + public Builder analyzer(@Nullable String value) { + this.analyzer = value; + return this; + } + + /** + * API name: {@code prefix} + */ + public Builder prefix(String value) { + this.prefix = value; + return this; + } + + /** + * API name: {@code use_field} + */ + public Builder useField(@Nullable String value) { + this.useField = value; + return this; + } + + /** + * Builds a {@link IntervalsPrefix}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IntervalsPrefix build() { + + return new IntervalsPrefix(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for IntervalsPrefix + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, IntervalsPrefix::setupIntervalsPrefixDeserializer); + + protected static void setupIntervalsPrefixDeserializer(DelegatingDeserializer op) { + + op.add(Builder::analyzer, JsonpDeserializer.stringDeserializer(), "analyzer"); + op.add(Builder::prefix, JsonpDeserializer.stringDeserializer(), "prefix"); + op.add(Builder::useField, JsonpDeserializer.stringDeserializer(), "use_field"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQuery.java new file mode 100644 index 000000000..7d04f0f00 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsQuery.java @@ -0,0 +1,280 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.BuildFunctionDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import co.elastic.clients.util.StringEnum; +import co.elastic.clients.util.TaggedUnion; +import jakarta.json.stream.JsonGenerator; +import java.lang.Object; +import java.util.function.Function; +import javax.annotation.Nullable; + +public class IntervalsQuery extends TaggedUnion implements ToJsonp { + + public enum Tag implements StringEnum { + + allOf("all_of"), + + anyOf("any_of"), + + fuzzy("fuzzy"), + + match("match"), + + prefix("prefix"), + + wildcard("wildcard"), + + ; + + private final String jsonValue; + + Tag(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static StringEnum.Deserializer DESERIALIZER = new StringEnum.Deserializer<>(Tag.values()); + } + + private IntervalsQuery(Builder builder) { + super(builder.$tag, builder.$variant); + + } + + /** + * Is this {@link IntervalsQuery} of a {@code all_of} kind? + */ + public boolean isAllOf() { + return is(Tag.allOf); + } + + /** + * Get the {@code all_of} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code all_of} kind. + */ + public IntervalsAllOf allOf() { + return get(Tag.allOf); + } + + /** + * Is this {@link IntervalsQuery} of a {@code any_of} kind? + */ + public boolean isAnyOf() { + return is(Tag.anyOf); + } + + /** + * Get the {@code any_of} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code any_of} kind. + */ + public IntervalsAnyOf anyOf() { + return get(Tag.anyOf); + } + + /** + * Is this {@link IntervalsQuery} of a {@code fuzzy} kind? + */ + public boolean isFuzzy() { + return is(Tag.fuzzy); + } + + /** + * Get the {@code fuzzy} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code fuzzy} kind. + */ + public IntervalsFuzzy fuzzy() { + return get(Tag.fuzzy); + } + + /** + * Is this {@link IntervalsQuery} of a {@code match} kind? + */ + public boolean isMatch() { + return is(Tag.match); + } + + /** + * Get the {@code match} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code match} kind. + */ + public IntervalsMatch match() { + return get(Tag.match); + } + + /** + * Is this {@link IntervalsQuery} of a {@code prefix} kind? + */ + public boolean isPrefix() { + return is(Tag.prefix); + } + + /** + * Get the {@code prefix} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code prefix} kind. + */ + public IntervalsPrefix prefix() { + return get(Tag.prefix); + } + + /** + * Is this {@link IntervalsQuery} of a {@code wildcard} kind? + */ + public boolean isWildcard() { + return is(Tag.wildcard); + } + + /** + * Get the {@code wildcard} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code wildcard} kind. + */ + public IntervalsWildcard wildcard() { + return get(Tag.wildcard); + } + + @Override + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + generator.writeKey(tag.jsonValue); + if (value instanceof ToJsonp) { + ((ToJsonp) value).toJsonp(generator, mapper); + } + + generator.writeEnd(); + } + public static class Builder { + private Tag $tag; + private Object $variant; + + public ObjectBuilder allOf(IntervalsAllOf v) { + this.$variant = v; + this.$tag = Tag.allOf; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder allOf(Function> f) { + return this.allOf(f.apply(new IntervalsAllOf.Builder()).build()); + } + + public ObjectBuilder anyOf(IntervalsAnyOf v) { + this.$variant = v; + this.$tag = Tag.anyOf; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder anyOf(Function> f) { + return this.anyOf(f.apply(new IntervalsAnyOf.Builder()).build()); + } + + public ObjectBuilder fuzzy(IntervalsFuzzy v) { + this.$variant = v; + this.$tag = Tag.fuzzy; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder fuzzy(Function> f) { + return this.fuzzy(f.apply(new IntervalsFuzzy.Builder()).build()); + } + + public ObjectBuilder match(IntervalsMatch v) { + this.$variant = v; + this.$tag = Tag.match; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder match(Function> f) { + return this.match(f.apply(new IntervalsMatch.Builder()).build()); + } + + public ObjectBuilder prefix(IntervalsPrefix v) { + this.$variant = v; + this.$tag = Tag.prefix; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder prefix( + Function> f) { + return this.prefix(f.apply(new IntervalsPrefix.Builder()).build()); + } + + public ObjectBuilder wildcard(IntervalsWildcard v) { + this.$variant = v; + this.$tag = Tag.wildcard; + return new ObjectBuilder.Constant<>(this.build()); + } + + public ObjectBuilder wildcard( + Function> f) { + return this.wildcard(f.apply(new IntervalsWildcard.Builder()).build()); + } + + protected IntervalsQuery build() { + return new IntervalsQuery(this); + } + + } + + // Variants can be recursive data structures. Building the union's deserializer + // lazily + // avoids cyclic dependencies between static class initialization code, which + // can lead to unwanted things like NPEs or stack overflows + + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .lazy(IntervalsQuery::buildDeserializer); + + private static JsonpDeserializer buildDeserializer() { + ObjectDeserializer op = new ObjectDeserializer<>(Builder::new); + + op.add(Builder::allOf, IntervalsAllOf.DESERIALIZER, "all_of"); + op.add(Builder::anyOf, IntervalsAnyOf.DESERIALIZER, "any_of"); + op.add(Builder::fuzzy, IntervalsFuzzy.DESERIALIZER, "fuzzy"); + op.add(Builder::match, IntervalsMatch.DESERIALIZER, "match"); + op.add(Builder::prefix, IntervalsPrefix.DESERIALIZER, "prefix"); + op.add(Builder::wildcard, IntervalsWildcard.DESERIALIZER, "wildcard"); + + return new BuildFunctionDeserializer<>(op, Builder::build); + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java new file mode 100644 index 000000000..53619ceb6 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/IntervalsWildcard.java @@ -0,0 +1,177 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.IntervalsWildcard +public final class IntervalsWildcard implements ToJsonp { + @Nullable + private final String analyzer; + + private final String pattern; + + @Nullable + private final String useField; + + // --------------------------------------------------------------------------------------------- + + protected IntervalsWildcard(Builder builder) { + + this.analyzer = builder.analyzer; + this.pattern = Objects.requireNonNull(builder.pattern, "pattern"); + this.useField = builder.useField; + + } + + /** + * API name: {@code analyzer} + */ + @Nullable + public String analyzer() { + return this.analyzer; + } + + /** + * API name: {@code pattern} + */ + public String pattern() { + return this.pattern; + } + + /** + * API name: {@code use_field} + */ + @Nullable + public String useField() { + return this.useField; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.analyzer != null) { + + generator.writeKey("analyzer"); + generator.write(this.analyzer); + + } + + generator.writeKey("pattern"); + generator.write(this.pattern); + + if (this.useField != null) { + + generator.writeKey("use_field"); + generator.write(this.useField); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link IntervalsWildcard}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private String analyzer; + + private String pattern; + + @Nullable + private String useField; + + /** + * API name: {@code analyzer} + */ + public Builder analyzer(@Nullable String value) { + this.analyzer = value; + return this; + } + + /** + * API name: {@code pattern} + */ + public Builder pattern(String value) { + this.pattern = value; + return this; + } + + /** + * API name: {@code use_field} + */ + public Builder useField(@Nullable String value) { + this.useField = value; + return this; + } + + /** + * Builds a {@link IntervalsWildcard}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public IntervalsWildcard build() { + + return new IntervalsWildcard(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for IntervalsWildcard + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, IntervalsWildcard::setupIntervalsWildcardDeserializer); + + protected static void setupIntervalsWildcardDeserializer(DelegatingDeserializer op) { + + op.add(Builder::analyzer, JsonpDeserializer.stringDeserializer(), "analyzer"); + op.add(Builder::pattern, JsonpDeserializer.stringDeserializer(), "pattern"); + op.add(Builder::useField, JsonpDeserializer.stringDeserializer(), "use_field"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java new file mode 100644 index 000000000..b8360d165 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchBoolPrefixQuery.java @@ -0,0 +1,357 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Number; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.MatchBoolPrefixQuery +public final class MatchBoolPrefixQuery extends QueryBase { + @Nullable + private final String analyzer; + + @Nullable + private final JsonValue fuzziness; + + @Nullable + private final String fuzzyRewrite; + + @Nullable + private final Boolean fuzzyTranspositions; + + @Nullable + private final Number maxExpansions; + + @Nullable + private final JsonValue minimumShouldMatch; + + @Nullable + private final JsonValue operator; + + @Nullable + private final Number prefixLength; + + private final String query; + + // --------------------------------------------------------------------------------------------- + + protected MatchBoolPrefixQuery(Builder builder) { + super(builder); + this.analyzer = builder.analyzer; + this.fuzziness = builder.fuzziness; + this.fuzzyRewrite = builder.fuzzyRewrite; + this.fuzzyTranspositions = builder.fuzzyTranspositions; + this.maxExpansions = builder.maxExpansions; + this.minimumShouldMatch = builder.minimumShouldMatch; + this.operator = builder.operator; + this.prefixLength = builder.prefixLength; + this.query = Objects.requireNonNull(builder.query, "query"); + + } + + /** + * API name: {@code analyzer} + */ + @Nullable + public String analyzer() { + return this.analyzer; + } + + /** + * API name: {@code fuzziness} + */ + @Nullable + public JsonValue fuzziness() { + return this.fuzziness; + } + + /** + * API name: {@code fuzzy_rewrite} + */ + @Nullable + public String fuzzyRewrite() { + return this.fuzzyRewrite; + } + + /** + * API name: {@code fuzzy_transpositions} + */ + @Nullable + public Boolean fuzzyTranspositions() { + return this.fuzzyTranspositions; + } + + /** + * API name: {@code max_expansions} + */ + @Nullable + public Number maxExpansions() { + return this.maxExpansions; + } + + /** + * API name: {@code minimum_should_match} + */ + @Nullable + public JsonValue minimumShouldMatch() { + return this.minimumShouldMatch; + } + + /** + * API name: {@code operator} + */ + @Nullable + public JsonValue operator() { + return this.operator; + } + + /** + * API name: {@code prefix_length} + */ + @Nullable + public Number prefixLength() { + return this.prefixLength; + } + + /** + * API name: {@code query} + */ + public String query() { + return this.query; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + if (this.analyzer != null) { + + generator.writeKey("analyzer"); + generator.write(this.analyzer); + + } + if (this.fuzziness != null) { + + generator.writeKey("fuzziness"); + generator.write(this.fuzziness); + + } + if (this.fuzzyRewrite != null) { + + generator.writeKey("fuzzy_rewrite"); + generator.write(this.fuzzyRewrite); + + } + if (this.fuzzyTranspositions != null) { + + generator.writeKey("fuzzy_transpositions"); + generator.write(this.fuzzyTranspositions); + + } + if (this.maxExpansions != null) { + + generator.writeKey("max_expansions"); + generator.write(this.maxExpansions.doubleValue()); + + } + if (this.minimumShouldMatch != null) { + + generator.writeKey("minimum_should_match"); + generator.write(this.minimumShouldMatch); + + } + if (this.operator != null) { + + generator.writeKey("operator"); + generator.write(this.operator); + + } + if (this.prefixLength != null) { + + generator.writeKey("prefix_length"); + generator.write(this.prefixLength.doubleValue()); + + } + + generator.writeKey("query"); + generator.write(this.query); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MatchBoolPrefixQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private String analyzer; + + @Nullable + private JsonValue fuzziness; + + @Nullable + private String fuzzyRewrite; + + @Nullable + private Boolean fuzzyTranspositions; + + @Nullable + private Number maxExpansions; + + @Nullable + private JsonValue minimumShouldMatch; + + @Nullable + private JsonValue operator; + + @Nullable + private Number prefixLength; + + private String query; + + /** + * API name: {@code analyzer} + */ + public Builder analyzer(@Nullable String value) { + this.analyzer = value; + return this; + } + + /** + * API name: {@code fuzziness} + */ + public Builder fuzziness(@Nullable JsonValue value) { + this.fuzziness = value; + return this; + } + + /** + * API name: {@code fuzzy_rewrite} + */ + public Builder fuzzyRewrite(@Nullable String value) { + this.fuzzyRewrite = value; + return this; + } + + /** + * API name: {@code fuzzy_transpositions} + */ + public Builder fuzzyTranspositions(@Nullable Boolean value) { + this.fuzzyTranspositions = value; + return this; + } + + /** + * API name: {@code max_expansions} + */ + public Builder maxExpansions(@Nullable Number value) { + this.maxExpansions = value; + return this; + } + + /** + * API name: {@code minimum_should_match} + */ + public Builder minimumShouldMatch(@Nullable JsonValue value) { + this.minimumShouldMatch = value; + return this; + } + + /** + * API name: {@code operator} + */ + public Builder operator(@Nullable JsonValue value) { + this.operator = value; + return this; + } + + /** + * API name: {@code prefix_length} + */ + public Builder prefixLength(@Nullable Number value) { + this.prefixLength = value; + return this; + } + + /** + * API name: {@code query} + */ + public Builder query(String value) { + this.query = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link MatchBoolPrefixQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MatchBoolPrefixQuery build() { + + return new MatchBoolPrefixQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for MatchBoolPrefixQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, MatchBoolPrefixQuery::setupMatchBoolPrefixQueryDeserializer); + + protected static void setupMatchBoolPrefixQueryDeserializer( + DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::analyzer, JsonpDeserializer.stringDeserializer(), "analyzer"); + op.add(Builder::fuzziness, JsonpDeserializer.jsonValueDeserializer(), "fuzziness"); + op.add(Builder::fuzzyRewrite, JsonpDeserializer.stringDeserializer(), "fuzzy_rewrite"); + op.add(Builder::fuzzyTranspositions, JsonpDeserializer.booleanDeserializer(), "fuzzy_transpositions"); + op.add(Builder::maxExpansions, JsonpDeserializer.numberDeserializer(), "max_expansions"); + op.add(Builder::minimumShouldMatch, JsonpDeserializer.jsonValueDeserializer(), "minimum_should_match"); + op.add(Builder::operator, JsonpDeserializer.jsonValueDeserializer(), "operator"); + op.add(Builder::prefixLength, JsonpDeserializer.numberDeserializer(), "prefix_length"); + op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java new file mode 100644 index 000000000..6d92cafcd --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhrasePrefixQuery.java @@ -0,0 +1,237 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Number; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.MatchPhrasePrefixQuery +public final class MatchPhrasePrefixQuery extends QueryBase { + @Nullable + private final String analyzer; + + @Nullable + private final Number maxExpansions; + + private final String query; + + @Nullable + private final Number slop; + + @Nullable + private final JsonValue zeroTermsQuery; + + // --------------------------------------------------------------------------------------------- + + protected MatchPhrasePrefixQuery(Builder builder) { + super(builder); + this.analyzer = builder.analyzer; + this.maxExpansions = builder.maxExpansions; + this.query = Objects.requireNonNull(builder.query, "query"); + this.slop = builder.slop; + this.zeroTermsQuery = builder.zeroTermsQuery; + + } + + /** + * API name: {@code analyzer} + */ + @Nullable + public String analyzer() { + return this.analyzer; + } + + /** + * API name: {@code max_expansions} + */ + @Nullable + public Number maxExpansions() { + return this.maxExpansions; + } + + /** + * API name: {@code query} + */ + public String query() { + return this.query; + } + + /** + * API name: {@code slop} + */ + @Nullable + public Number slop() { + return this.slop; + } + + /** + * API name: {@code zero_terms_query} + */ + @Nullable + public JsonValue zeroTermsQuery() { + return this.zeroTermsQuery; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + if (this.analyzer != null) { + + generator.writeKey("analyzer"); + generator.write(this.analyzer); + + } + if (this.maxExpansions != null) { + + generator.writeKey("max_expansions"); + generator.write(this.maxExpansions.doubleValue()); + + } + + generator.writeKey("query"); + generator.write(this.query); + + if (this.slop != null) { + + generator.writeKey("slop"); + generator.write(this.slop.doubleValue()); + + } + if (this.zeroTermsQuery != null) { + + generator.writeKey("zero_terms_query"); + generator.write(this.zeroTermsQuery); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MatchPhrasePrefixQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder + implements + ObjectBuilder { + @Nullable + private String analyzer; + + @Nullable + private Number maxExpansions; + + private String query; + + @Nullable + private Number slop; + + @Nullable + private JsonValue zeroTermsQuery; + + /** + * API name: {@code analyzer} + */ + public Builder analyzer(@Nullable String value) { + this.analyzer = value; + return this; + } + + /** + * API name: {@code max_expansions} + */ + public Builder maxExpansions(@Nullable Number value) { + this.maxExpansions = value; + return this; + } + + /** + * API name: {@code query} + */ + public Builder query(String value) { + this.query = value; + return this; + } + + /** + * API name: {@code slop} + */ + public Builder slop(@Nullable Number value) { + this.slop = value; + return this; + } + + /** + * API name: {@code zero_terms_query} + */ + public Builder zeroTermsQuery(@Nullable JsonValue value) { + this.zeroTermsQuery = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link MatchPhrasePrefixQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MatchPhrasePrefixQuery build() { + + return new MatchPhrasePrefixQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for MatchPhrasePrefixQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, MatchPhrasePrefixQuery::setupMatchPhrasePrefixQueryDeserializer); + + protected static void setupMatchPhrasePrefixQueryDeserializer( + DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::analyzer, JsonpDeserializer.stringDeserializer(), "analyzer"); + op.add(Builder::maxExpansions, JsonpDeserializer.numberDeserializer(), "max_expansions"); + op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); + op.add(Builder::slop, JsonpDeserializer.numberDeserializer(), "slop"); + op.add(Builder::zeroTermsQuery, JsonpDeserializer.jsonValueDeserializer(), "zero_terms_query"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java new file mode 100644 index 000000000..57d54e05d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchPhraseQuery.java @@ -0,0 +1,204 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Number; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.MatchPhraseQuery +public final class MatchPhraseQuery extends QueryBase { + @Nullable + private final String analyzer; + + private final String query; + + @Nullable + private final Number slop; + + @Nullable + private final JsonValue zeroTermsQuery; + + // --------------------------------------------------------------------------------------------- + + protected MatchPhraseQuery(Builder builder) { + super(builder); + this.analyzer = builder.analyzer; + this.query = Objects.requireNonNull(builder.query, "query"); + this.slop = builder.slop; + this.zeroTermsQuery = builder.zeroTermsQuery; + + } + + /** + * API name: {@code analyzer} + */ + @Nullable + public String analyzer() { + return this.analyzer; + } + + /** + * API name: {@code query} + */ + public String query() { + return this.query; + } + + /** + * API name: {@code slop} + */ + @Nullable + public Number slop() { + return this.slop; + } + + /** + * API name: {@code zero_terms_query} + */ + @Nullable + public JsonValue zeroTermsQuery() { + return this.zeroTermsQuery; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + if (this.analyzer != null) { + + generator.writeKey("analyzer"); + generator.write(this.analyzer); + + } + + generator.writeKey("query"); + generator.write(this.query); + + if (this.slop != null) { + + generator.writeKey("slop"); + generator.write(this.slop.doubleValue()); + + } + if (this.zeroTermsQuery != null) { + + generator.writeKey("zero_terms_query"); + generator.write(this.zeroTermsQuery); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MatchPhraseQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private String analyzer; + + private String query; + + @Nullable + private Number slop; + + @Nullable + private JsonValue zeroTermsQuery; + + /** + * API name: {@code analyzer} + */ + public Builder analyzer(@Nullable String value) { + this.analyzer = value; + return this; + } + + /** + * API name: {@code query} + */ + public Builder query(String value) { + this.query = value; + return this; + } + + /** + * API name: {@code slop} + */ + public Builder slop(@Nullable Number value) { + this.slop = value; + return this; + } + + /** + * API name: {@code zero_terms_query} + */ + public Builder zeroTermsQuery(@Nullable JsonValue value) { + this.zeroTermsQuery = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link MatchPhraseQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MatchPhraseQuery build() { + + return new MatchPhraseQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for MatchPhraseQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, MatchPhraseQuery::setupMatchPhraseQueryDeserializer); + + protected static void setupMatchPhraseQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::analyzer, JsonpDeserializer.stringDeserializer(), "analyzer"); + op.add(Builder::query, JsonpDeserializer.stringDeserializer(), "query"); + op.add(Builder::slop, JsonpDeserializer.numberDeserializer(), "slop"); + op.add(Builder::zeroTermsQuery, JsonpDeserializer.jsonValueDeserializer(), "zero_terms_query"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java new file mode 100644 index 000000000..dd50ab0f3 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MatchQuery.java @@ -0,0 +1,476 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Number; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.MatchQuery +public final class MatchQuery extends QueryBase { + @Nullable + private final String analyzer; + + @Nullable + private final Boolean autoGenerateSynonymsPhraseQuery; + + @Nullable + private final Number cutoffFrequency; + + @Nullable + private final JsonValue fuzziness; + + @Nullable + private final String fuzzyRewrite; + + @Nullable + private final Boolean fuzzyTranspositions; + + @Nullable + private final Boolean lenient; + + @Nullable + private final Number maxExpansions; + + @Nullable + private final JsonValue minimumShouldMatch; + + @Nullable + private final JsonValue operator; + + @Nullable + private final Number prefixLength; + + private final JsonValue query; + + @Nullable + private final JsonValue zeroTermsQuery; + + // --------------------------------------------------------------------------------------------- + + protected MatchQuery(Builder builder) { + super(builder); + this.analyzer = builder.analyzer; + this.autoGenerateSynonymsPhraseQuery = builder.autoGenerateSynonymsPhraseQuery; + this.cutoffFrequency = builder.cutoffFrequency; + this.fuzziness = builder.fuzziness; + this.fuzzyRewrite = builder.fuzzyRewrite; + this.fuzzyTranspositions = builder.fuzzyTranspositions; + this.lenient = builder.lenient; + this.maxExpansions = builder.maxExpansions; + this.minimumShouldMatch = builder.minimumShouldMatch; + this.operator = builder.operator; + this.prefixLength = builder.prefixLength; + this.query = Objects.requireNonNull(builder.query, "query"); + this.zeroTermsQuery = builder.zeroTermsQuery; + + } + + /** + * API name: {@code analyzer} + */ + @Nullable + public String analyzer() { + return this.analyzer; + } + + /** + * API name: {@code auto_generate_synonyms_phrase_query} + */ + @Nullable + public Boolean autoGenerateSynonymsPhraseQuery() { + return this.autoGenerateSynonymsPhraseQuery; + } + + /** + * API name: {@code cutoff_frequency} + */ + @Nullable + public Number cutoffFrequency() { + return this.cutoffFrequency; + } + + /** + * API name: {@code fuzziness} + */ + @Nullable + public JsonValue fuzziness() { + return this.fuzziness; + } + + /** + * API name: {@code fuzzy_rewrite} + */ + @Nullable + public String fuzzyRewrite() { + return this.fuzzyRewrite; + } + + /** + * API name: {@code fuzzy_transpositions} + */ + @Nullable + public Boolean fuzzyTranspositions() { + return this.fuzzyTranspositions; + } + + /** + * API name: {@code lenient} + */ + @Nullable + public Boolean lenient() { + return this.lenient; + } + + /** + * API name: {@code max_expansions} + */ + @Nullable + public Number maxExpansions() { + return this.maxExpansions; + } + + /** + * API name: {@code minimum_should_match} + */ + @Nullable + public JsonValue minimumShouldMatch() { + return this.minimumShouldMatch; + } + + /** + * API name: {@code operator} + */ + @Nullable + public JsonValue operator() { + return this.operator; + } + + /** + * API name: {@code prefix_length} + */ + @Nullable + public Number prefixLength() { + return this.prefixLength; + } + + /** + * API name: {@code query} + */ + public JsonValue query() { + return this.query; + } + + /** + * API name: {@code zero_terms_query} + */ + @Nullable + public JsonValue zeroTermsQuery() { + return this.zeroTermsQuery; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + if (this.analyzer != null) { + + generator.writeKey("analyzer"); + generator.write(this.analyzer); + + } + if (this.autoGenerateSynonymsPhraseQuery != null) { + + generator.writeKey("auto_generate_synonyms_phrase_query"); + generator.write(this.autoGenerateSynonymsPhraseQuery); + + } + if (this.cutoffFrequency != null) { + + generator.writeKey("cutoff_frequency"); + generator.write(this.cutoffFrequency.doubleValue()); + + } + if (this.fuzziness != null) { + + generator.writeKey("fuzziness"); + generator.write(this.fuzziness); + + } + if (this.fuzzyRewrite != null) { + + generator.writeKey("fuzzy_rewrite"); + generator.write(this.fuzzyRewrite); + + } + if (this.fuzzyTranspositions != null) { + + generator.writeKey("fuzzy_transpositions"); + generator.write(this.fuzzyTranspositions); + + } + if (this.lenient != null) { + + generator.writeKey("lenient"); + generator.write(this.lenient); + + } + if (this.maxExpansions != null) { + + generator.writeKey("max_expansions"); + generator.write(this.maxExpansions.doubleValue()); + + } + if (this.minimumShouldMatch != null) { + + generator.writeKey("minimum_should_match"); + generator.write(this.minimumShouldMatch); + + } + if (this.operator != null) { + + generator.writeKey("operator"); + generator.write(this.operator); + + } + if (this.prefixLength != null) { + + generator.writeKey("prefix_length"); + generator.write(this.prefixLength.doubleValue()); + + } + + generator.writeKey("query"); + generator.write(this.query); + + if (this.zeroTermsQuery != null) { + + generator.writeKey("zero_terms_query"); + generator.write(this.zeroTermsQuery); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MatchQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private String analyzer; + + @Nullable + private Boolean autoGenerateSynonymsPhraseQuery; + + @Nullable + private Number cutoffFrequency; + + @Nullable + private JsonValue fuzziness; + + @Nullable + private String fuzzyRewrite; + + @Nullable + private Boolean fuzzyTranspositions; + + @Nullable + private Boolean lenient; + + @Nullable + private Number maxExpansions; + + @Nullable + private JsonValue minimumShouldMatch; + + @Nullable + private JsonValue operator; + + @Nullable + private Number prefixLength; + + private JsonValue query; + + @Nullable + private JsonValue zeroTermsQuery; + + /** + * API name: {@code analyzer} + */ + public Builder analyzer(@Nullable String value) { + this.analyzer = value; + return this; + } + + /** + * API name: {@code auto_generate_synonyms_phrase_query} + */ + public Builder autoGenerateSynonymsPhraseQuery(@Nullable Boolean value) { + this.autoGenerateSynonymsPhraseQuery = value; + return this; + } + + /** + * API name: {@code cutoff_frequency} + */ + public Builder cutoffFrequency(@Nullable Number value) { + this.cutoffFrequency = value; + return this; + } + + /** + * API name: {@code fuzziness} + */ + public Builder fuzziness(@Nullable JsonValue value) { + this.fuzziness = value; + return this; + } + + /** + * API name: {@code fuzzy_rewrite} + */ + public Builder fuzzyRewrite(@Nullable String value) { + this.fuzzyRewrite = value; + return this; + } + + /** + * API name: {@code fuzzy_transpositions} + */ + public Builder fuzzyTranspositions(@Nullable Boolean value) { + this.fuzzyTranspositions = value; + return this; + } + + /** + * API name: {@code lenient} + */ + public Builder lenient(@Nullable Boolean value) { + this.lenient = value; + return this; + } + + /** + * API name: {@code max_expansions} + */ + public Builder maxExpansions(@Nullable Number value) { + this.maxExpansions = value; + return this; + } + + /** + * API name: {@code minimum_should_match} + */ + public Builder minimumShouldMatch(@Nullable JsonValue value) { + this.minimumShouldMatch = value; + return this; + } + + /** + * API name: {@code operator} + */ + public Builder operator(@Nullable JsonValue value) { + this.operator = value; + return this; + } + + /** + * API name: {@code prefix_length} + */ + public Builder prefixLength(@Nullable Number value) { + this.prefixLength = value; + return this; + } + + /** + * API name: {@code query} + */ + public Builder query(JsonValue value) { + this.query = value; + return this; + } + + /** + * API name: {@code zero_terms_query} + */ + public Builder zeroTermsQuery(@Nullable JsonValue value) { + this.zeroTermsQuery = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link MatchQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MatchQuery build() { + + return new MatchQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for MatchQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, MatchQuery::setupMatchQueryDeserializer); + + protected static void setupMatchQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::analyzer, JsonpDeserializer.stringDeserializer(), "analyzer"); + op.add(Builder::autoGenerateSynonymsPhraseQuery, JsonpDeserializer.booleanDeserializer(), + "auto_generate_synonyms_phrase_query"); + op.add(Builder::cutoffFrequency, JsonpDeserializer.numberDeserializer(), "cutoff_frequency"); + op.add(Builder::fuzziness, JsonpDeserializer.jsonValueDeserializer(), "fuzziness"); + op.add(Builder::fuzzyRewrite, JsonpDeserializer.stringDeserializer(), "fuzzy_rewrite"); + op.add(Builder::fuzzyTranspositions, JsonpDeserializer.booleanDeserializer(), "fuzzy_transpositions"); + op.add(Builder::lenient, JsonpDeserializer.booleanDeserializer(), "lenient"); + op.add(Builder::maxExpansions, JsonpDeserializer.numberDeserializer(), "max_expansions"); + op.add(Builder::minimumShouldMatch, JsonpDeserializer.jsonValueDeserializer(), "minimum_should_match"); + op.add(Builder::operator, JsonpDeserializer.jsonValueDeserializer(), "operator"); + op.add(Builder::prefixLength, JsonpDeserializer.numberDeserializer(), "prefix_length"); + op.add(Builder::query, JsonpDeserializer.jsonValueDeserializer(), "query"); + op.add(Builder::zeroTermsQuery, JsonpDeserializer.jsonValueDeserializer(), "zero_terms_query"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java index 378259c25..c88a9027b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MoreLikeThisQuery.java @@ -39,6 +39,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Objects; import javax.annotation.Nullable; // typedef: _types.query_dsl.MoreLikeThisQuery @@ -49,13 +50,15 @@ public final class MoreLikeThisQuery extends QueryBase { @Nullable private final Number boostTerms; + @Nullable + private final Boolean failOnUnsupportedField; + @Nullable private final List fields; @Nullable private final Boolean include; - @Nullable private final List like; @Nullable @@ -83,7 +86,7 @@ public final class MoreLikeThisQuery extends QueryBase { private final Map perFieldAnalyzer; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final List stopWords; @@ -103,9 +106,10 @@ protected MoreLikeThisQuery(Builder builder) { super(builder); this.analyzer = builder.analyzer; this.boostTerms = builder.boostTerms; + this.failOnUnsupportedField = builder.failOnUnsupportedField; this.fields = builder.fields; this.include = builder.include; - this.like = builder.like; + this.like = Objects.requireNonNull(builder.like, "like"); this.maxDocFreq = builder.maxDocFreq; this.maxQueryTerms = builder.maxQueryTerms; this.maxWordLength = builder.maxWordLength; @@ -138,6 +142,14 @@ public Number boostTerms() { return this.boostTerms; } + /** + * API name: {@code fail_on_unsupported_field} + */ + @Nullable + public Boolean failOnUnsupportedField() { + return this.failOnUnsupportedField; + } + /** * API name: {@code fields} */ @@ -157,7 +169,6 @@ public Boolean include() { /** * API name: {@code like} */ - @Nullable public List like() { return this.like; } @@ -230,7 +241,7 @@ public Map perFieldAnalyzer() { * API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } @@ -279,6 +290,12 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("boost_terms"); generator.write(this.boostTerms.doubleValue()); + } + if (this.failOnUnsupportedField != null) { + + generator.writeKey("fail_on_unsupported_field"); + generator.write(this.failOnUnsupportedField); + } if (this.fields != null) { @@ -297,17 +314,15 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.include); } - if (this.like != null) { - - generator.writeKey("like"); - generator.writeStartArray(); - for (JsonValue item0 : this.like) { - generator.write(item0); - } - generator.writeEnd(); + generator.writeKey("like"); + generator.writeStartArray(); + for (JsonValue item0 : this.like) { + generator.write(item0); } + generator.writeEnd(); + if (this.maxDocFreq != null) { generator.writeKey("max_doc_freq"); @@ -417,13 +432,15 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private Number boostTerms; + @Nullable + private Boolean failOnUnsupportedField; + @Nullable private List fields; @Nullable private Boolean include; - @Nullable private List like; @Nullable @@ -451,7 +468,7 @@ public static class Builder extends QueryBase.AbstractBuilder implement private Map perFieldAnalyzer; @Nullable - private JsonValue routing; + private String routing; @Nullable private List stopWords; @@ -481,6 +498,14 @@ public Builder boostTerms(@Nullable Number value) { return this; } + /** + * API name: {@code fail_on_unsupported_field} + */ + public Builder failOnUnsupportedField(@Nullable Boolean value) { + this.failOnUnsupportedField = value; + return this; + } + /** * API name: {@code fields} */ @@ -519,7 +544,7 @@ public Builder include(@Nullable Boolean value) { /** * API name: {@code like} */ - public Builder like(@Nullable List value) { + public Builder like(List value) { this.like = value; return this; } @@ -622,7 +647,7 @@ public Builder putPerFieldAnalyzer(String key, String value) { /** * API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } @@ -726,6 +751,7 @@ protected static void setupMoreLikeThisQueryDeserializer(DelegatingDeserializer< QueryBase.setupQueryBaseDeserializer(op); op.add(Builder::analyzer, JsonpDeserializer.stringDeserializer(), "analyzer"); op.add(Builder::boostTerms, JsonpDeserializer.numberDeserializer(), "boost_terms"); + op.add(Builder::failOnUnsupportedField, JsonpDeserializer.booleanDeserializer(), "fail_on_unsupported_field"); op.add(Builder::fields, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "fields"); op.add(Builder::include, JsonpDeserializer.booleanDeserializer(), "include"); op.add(Builder::like, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.jsonValueDeserializer()), "like"); @@ -738,7 +764,7 @@ protected static void setupMoreLikeThisQueryDeserializer(DelegatingDeserializer< op.add(Builder::minWordLength, JsonpDeserializer.numberDeserializer(), "min_word_length"); op.add(Builder::perFieldAnalyzer, JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.stringDeserializer()), "per_field_analyzer"); - op.add(Builder::routing, JsonpDeserializer.jsonValueDeserializer(), "routing"); + op.add(Builder::routing, JsonpDeserializer.stringDeserializer(), "routing"); op.add(Builder::stopWords, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "stop_words"); op.add(Builder::unlike, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.jsonValueDeserializer()), diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java index 1afb6ea0b..7434fbe00 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/MultiMatchQuery.java @@ -37,6 +37,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.Objects; import javax.annotation.Nullable; // typedef: _types.query_dsl.MultiMatchQuery @@ -77,7 +78,6 @@ public final class MultiMatchQuery extends QueryBase { @Nullable private final Number prefixLength; - @Nullable private final String query; @Nullable @@ -89,9 +89,6 @@ public final class MultiMatchQuery extends QueryBase { @Nullable private final JsonValue type; - @Nullable - private final Boolean useDisMax; - @Nullable private final JsonValue zeroTermsQuery; @@ -111,11 +108,10 @@ protected MultiMatchQuery(Builder builder) { this.minimumShouldMatch = builder.minimumShouldMatch; this.operator = builder.operator; this.prefixLength = builder.prefixLength; - this.query = builder.query; + this.query = Objects.requireNonNull(builder.query, "query"); this.slop = builder.slop; this.tieBreaker = builder.tieBreaker; this.type = builder.type; - this.useDisMax = builder.useDisMax; this.zeroTermsQuery = builder.zeroTermsQuery; } @@ -219,7 +215,6 @@ public Number prefixLength() { /** * API name: {@code query} */ - @Nullable public String query() { return this.query; } @@ -248,14 +243,6 @@ public JsonValue type() { return this.type; } - /** - * API name: {@code use_dis_max} - */ - @Nullable - public Boolean useDisMax() { - return this.useDisMax; - } - /** * API name: {@code zero_terms_query} */ @@ -343,12 +330,10 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.prefixLength.doubleValue()); } - if (this.query != null) { - generator.writeKey("query"); - generator.write(this.query); + generator.writeKey("query"); + generator.write(this.query); - } if (this.slop != null) { generator.writeKey("slop"); @@ -366,12 +351,6 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("type"); generator.write(this.type); - } - if (this.useDisMax != null) { - - generator.writeKey("use_dis_max"); - generator.write(this.useDisMax); - } if (this.zeroTermsQuery != null) { @@ -424,7 +403,6 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private Number prefixLength; - @Nullable private String query; @Nullable @@ -436,9 +414,6 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private JsonValue type; - @Nullable - private Boolean useDisMax; - @Nullable private JsonValue zeroTermsQuery; @@ -560,7 +535,7 @@ public Builder prefixLength(@Nullable Number value) { /** * API name: {@code query} */ - public Builder query(@Nullable String value) { + public Builder query(String value) { this.query = value; return this; } @@ -589,14 +564,6 @@ public Builder type(@Nullable JsonValue value) { return this; } - /** - * API name: {@code use_dis_max} - */ - public Builder useDisMax(@Nullable Boolean value) { - this.useDisMax = value; - return this; - } - /** * API name: {@code zero_terms_query} */ @@ -649,7 +616,6 @@ protected static void setupMultiMatchQueryDeserializer(DelegatingDeserializer implement @Nullable private InnerHits innerHits; - @Nullable private String path; - @Nullable private QueryContainer query; @Nullable @@ -188,7 +178,7 @@ public Builder innerHits(Function> f /** * API name: {@code path} */ - public Builder path(@Nullable String value) { + public Builder path(String value) { this.path = value; return this; } @@ -196,7 +186,7 @@ public Builder path(@Nullable String value) { /** * API name: {@code query} */ - public Builder query(@Nullable QueryContainer value) { + public Builder query(QueryContainer value) { this.query = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java index afa11ee69..924805926 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PercolateQuery.java @@ -36,6 +36,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.Objects; import javax.annotation.Nullable; // typedef: _types.query_dsl.PercolateQuery @@ -46,7 +47,6 @@ public final class PercolateQuery extends QueryBase { @Nullable private final List documents; - @Nullable private final String field; @Nullable @@ -55,11 +55,14 @@ public final class PercolateQuery extends QueryBase { @Nullable private final String index; + @Nullable + private final String name; + @Nullable private final String preference; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final Number version; @@ -70,9 +73,10 @@ protected PercolateQuery(Builder builder) { super(builder); this.document = builder.document; this.documents = builder.documents; - this.field = builder.field; + this.field = Objects.requireNonNull(builder.field, "field"); this.id = builder.id; this.index = builder.index; + this.name = builder.name; this.preference = builder.preference; this.routing = builder.routing; this.version = builder.version; @@ -98,7 +102,6 @@ public List documents() { /** * API name: {@code field} */ - @Nullable public String field() { return this.field; } @@ -119,6 +122,14 @@ public String index() { return this.index; } + /** + * API name: {@code name} + */ + @Nullable + public String name() { + return this.name; + } + /** * API name: {@code preference} */ @@ -131,7 +142,7 @@ public String preference() { * API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } @@ -162,12 +173,10 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeEnd(); } - if (this.field != null) { - generator.writeKey("field"); - generator.write(this.field); + generator.writeKey("field"); + generator.write(this.field); - } if (this.id != null) { generator.writeKey("id"); @@ -179,6 +188,12 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("index"); generator.write(this.index); + } + if (this.name != null) { + + generator.writeKey("name"); + generator.write(this.name); + } if (this.preference != null) { @@ -213,7 +228,6 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private List documents; - @Nullable private String field; @Nullable @@ -222,11 +236,14 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private String index; + @Nullable + private String name; + @Nullable private String preference; @Nullable - private JsonValue routing; + private String routing; @Nullable private Number version; @@ -269,7 +286,7 @@ public Builder addDocuments(JsonValue value) { /** * API name: {@code field} */ - public Builder field(@Nullable String value) { + public Builder field(String value) { this.field = value; return this; } @@ -290,6 +307,14 @@ public Builder index(@Nullable String value) { return this; } + /** + * API name: {@code name} + */ + public Builder name(@Nullable String value) { + this.name = value; + return this; + } + /** * API name: {@code preference} */ @@ -301,7 +326,7 @@ public Builder preference(@Nullable String value) { /** * API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } @@ -347,8 +372,9 @@ protected static void setupPercolateQueryDeserializer(DelegatingDeserializer ids; - @Nullable private final QueryContainer organic; // --------------------------------------------------------------------------------------------- protected PinnedQuery(Builder builder) { super(builder); - this.ids = builder.ids; - this.organic = builder.organic; + this.ids = Objects.requireNonNull(builder.ids, "ids"); + this.organic = Objects.requireNonNull(builder.organic, "organic"); } /** * API name: {@code ids} */ - @Nullable - public JsonValue ids() { + public List ids() { return this.ids; } /** * API name: {@code organic} */ - @Nullable public QueryContainer organic() { return this.organic; } protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.ids != null) { - generator.writeKey("ids"); - generator.write(this.ids); + generator.writeKey("ids"); + generator.writeStartArray(); + for (String item0 : this.ids) { + generator.write(item0); } - if (this.organic != null) { + generator.writeEnd(); - generator.writeKey("organic"); - this.organic.toJsonp(generator, mapper); - - } + generator.writeKey("organic"); + this.organic.toJsonp(generator, mapper); } @@ -90,24 +89,41 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link PinnedQuery}. */ public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable - private JsonValue ids; + private List ids; - @Nullable private QueryContainer organic; /** * API name: {@code ids} */ - public Builder ids(@Nullable JsonValue value) { + public Builder ids(List value) { this.ids = value; return this; } + /** + * API name: {@code ids} + */ + public Builder ids(String... value) { + this.ids = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #ids(List)}, creating the list if needed. + */ + public Builder addIds(String value) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + this.ids.add(value); + return this; + } + /** * API name: {@code organic} */ - public Builder organic(@Nullable QueryContainer value) { + public Builder organic(QueryContainer value) { this.organic = value; return this; } @@ -146,7 +162,7 @@ public PinnedQuery build() { protected static void setupPinnedQueryDeserializer(DelegatingDeserializer op) { QueryBase.setupQueryBaseDeserializer(op); - op.add(Builder::ids, JsonpDeserializer.jsonValueDeserializer(), "ids"); + op.add(Builder::ids, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "ids"); op.add(Builder::organic, QueryContainer.DESERIALIZER, "organic"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java new file mode 100644 index 000000000..4c0f82c96 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/PrefixQuery.java @@ -0,0 +1,173 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.PrefixQuery +public final class PrefixQuery extends QueryBase { + @Nullable + private final String rewrite; + + private final String value; + + @Nullable + private final Boolean caseInsensitive; + + // --------------------------------------------------------------------------------------------- + + protected PrefixQuery(Builder builder) { + super(builder); + this.rewrite = builder.rewrite; + this.value = Objects.requireNonNull(builder.value, "value"); + this.caseInsensitive = builder.caseInsensitive; + + } + + /** + * API name: {@code rewrite} + */ + @Nullable + public String rewrite() { + return this.rewrite; + } + + /** + * API name: {@code value} + */ + public String value() { + return this.value; + } + + /** + * API name: {@code case_insensitive} + */ + @Nullable + public Boolean caseInsensitive() { + return this.caseInsensitive; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + if (this.rewrite != null) { + + generator.writeKey("rewrite"); + generator.write(this.rewrite); + + } + + generator.writeKey("value"); + generator.write(this.value); + + if (this.caseInsensitive != null) { + + generator.writeKey("case_insensitive"); + generator.write(this.caseInsensitive); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PrefixQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private String rewrite; + + private String value; + + @Nullable + private Boolean caseInsensitive; + + /** + * API name: {@code rewrite} + */ + public Builder rewrite(@Nullable String value) { + this.rewrite = value; + return this; + } + + /** + * API name: {@code value} + */ + public Builder value(String value) { + this.value = value; + return this; + } + + /** + * API name: {@code case_insensitive} + */ + public Builder caseInsensitive(@Nullable Boolean value) { + this.caseInsensitive = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PrefixQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PrefixQuery build() { + + return new PrefixQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for PrefixQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, PrefixQuery::setupPrefixQueryDeserializer); + + protected static void setupPrefixQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::rewrite, JsonpDeserializer.stringDeserializer(), "rewrite"); + op.add(Builder::value, JsonpDeserializer.stringDeserializer(), "value"); + op.add(Builder::caseInsensitive, JsonpDeserializer.booleanDeserializer(), "case_insensitive"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBase.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBase.java index 87f763687..f80109241 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBase.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryBase.java @@ -41,14 +41,14 @@ public abstract class QueryBase implements ToJsonp { private final Number boost; @Nullable - private final String name; + private final String queryName; // --------------------------------------------------------------------------------------------- protected QueryBase(AbstractBuilder builder) { this.boost = builder.boost; - this.name = builder.name; + this.queryName = builder.queryName; } @@ -64,8 +64,8 @@ public Number boost() { * API name: {@code _name} */ @Nullable - public String name() { - return this.name; + public String queryName() { + return this.queryName; } /** @@ -85,10 +85,10 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.boost.doubleValue()); } - if (this.name != null) { + if (this.queryName != null) { generator.writeKey("_name"); - generator.write(this.name); + generator.write(this.queryName); } @@ -99,7 +99,7 @@ protected abstract static class AbstractBuilder> void setupQueryBas DelegatingDeserializer op) { op.add(AbstractBuilder::boost, JsonpDeserializer.numberDeserializer(), "boost"); - op.add(AbstractBuilder::name, JsonpDeserializer.stringDeserializer(), "_name"); + op.add(AbstractBuilder::queryName, JsonpDeserializer.stringDeserializer(), "_name"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryContainer.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryContainer.java index 4ec33ac96..27977a8cd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryContainer.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryContainer.java @@ -138,8 +138,6 @@ public enum Tag implements StringEnum { spanWithin("span_within"), - template("template"), - term("term"), terms("terms"), @@ -217,7 +215,7 @@ public boolean isCommon() { * @throws IllegalStateException * if the current variant is not of the {@code common} kind. */ - public NamedValue common() { + public NamedValue common() { return get(Tag.common); } @@ -338,7 +336,7 @@ public boolean isFuzzy() { * @throws IllegalStateException * if the current variant is not of the {@code fuzzy} kind. */ - public NamedValue fuzzy() { + public NamedValue fuzzy() { return get(Tag.fuzzy); } @@ -356,7 +354,7 @@ public boolean isGeoBoundingBox() { * if the current variant is not of the {@code geo_bounding_box} * kind. */ - public NamedQuery geoBoundingBox() { + public GeoBoundingBoxQuery geoBoundingBox() { return get(Tag.geoBoundingBox); } @@ -390,7 +388,7 @@ public boolean isGeoPolygon() { * @throws IllegalStateException * if the current variant is not of the {@code geo_polygon} kind. */ - public NamedQuery geoPolygon() { + public GeoPolygonQuery geoPolygon() { return get(Tag.geoPolygon); } @@ -407,7 +405,7 @@ public boolean isGeoShape() { * @throws IllegalStateException * if the current variant is not of the {@code geo_shape} kind. */ - public NamedQuery geoShape() { + public GeoShapeQuery geoShape() { return get(Tag.geoShape); } @@ -475,7 +473,7 @@ public boolean isIntervals() { * @throws IllegalStateException * if the current variant is not of the {@code intervals} kind. */ - public NamedQuery intervals() { + public NamedValue intervals() { return get(Tag.intervals); } @@ -492,7 +490,7 @@ public boolean isMatch() { * @throws IllegalStateException * if the current variant is not of the {@code match} kind. */ - public NamedQuery match() { + public NamedValue match() { return get(Tag.match); } @@ -509,7 +507,7 @@ public boolean isMatchAll() { * @throws IllegalStateException * if the current variant is not of the {@code match_all} kind. */ - public MatchAllQuery matchAll() { + public JsonValue matchAll() { return get(Tag.matchAll); } @@ -527,7 +525,7 @@ public boolean isMatchBoolPrefix() { * if the current variant is not of the {@code match_bool_prefix} * kind. */ - public NamedQuery matchBoolPrefix() { + public NamedValue matchBoolPrefix() { return get(Tag.matchBoolPrefix); } @@ -561,7 +559,7 @@ public boolean isMatchPhrase() { * @throws IllegalStateException * if the current variant is not of the {@code match_phrase} kind. */ - public NamedQuery matchPhrase() { + public NamedValue matchPhrase() { return get(Tag.matchPhrase); } @@ -579,7 +577,7 @@ public boolean isMatchPhrasePrefix() { * if the current variant is not of the {@code match_phrase_prefix} * kind. */ - public NamedQuery matchPhrasePrefix() { + public NamedValue matchPhrasePrefix() { return get(Tag.matchPhrasePrefix); } @@ -698,7 +696,7 @@ public boolean isPrefix() { * @throws IllegalStateException * if the current variant is not of the {@code prefix} kind. */ - public NamedQuery prefix() { + public NamedValue prefix() { return get(Tag.prefix); } @@ -732,7 +730,7 @@ public boolean isRange() { * @throws IllegalStateException * if the current variant is not of the {@code range} kind. */ - public NamedQuery range() { + public NamedValue range() { return get(Tag.range); } @@ -749,7 +747,7 @@ public boolean isRankFeature() { * @throws IllegalStateException * if the current variant is not of the {@code rank_feature} kind. */ - public NamedQuery rankFeature() { + public RankFeatureQuery rankFeature() { return get(Tag.rankFeature); } @@ -766,7 +764,7 @@ public boolean isRegexp() { * @throws IllegalStateException * if the current variant is not of the {@code regexp} kind. */ - public NamedQuery regexp() { + public NamedValue regexp() { return get(Tag.regexp); } @@ -817,7 +815,7 @@ public boolean isShape() { * @throws IllegalStateException * if the current variant is not of the {@code shape} kind. */ - public NamedQuery shape() { + public JsonValue shape() { return get(Tag.shape); } @@ -973,7 +971,7 @@ public boolean isSpanTerm() { * @throws IllegalStateException * if the current variant is not of the {@code span_term} kind. */ - public NamedQuery spanTerm() { + public NamedValue spanTerm() { return get(Tag.spanTerm); } @@ -994,23 +992,6 @@ public SpanWithinQuery spanWithin() { return get(Tag.spanWithin); } - /** - * Is this {@link QueryContainer} of a {@code template} kind? - */ - public boolean isTemplate() { - return is(Tag.template); - } - - /** - * Get the {@code template} variant value. - * - * @throws IllegalStateException - * if the current variant is not of the {@code template} kind. - */ - public QueryTemplate template() { - return get(Tag.template); - } - /** * Is this {@link QueryContainer} of a {@code term} kind? */ @@ -1024,7 +1005,7 @@ public boolean isTerm() { * @throws IllegalStateException * if the current variant is not of the {@code term} kind. */ - public NamedQuery term() { + public NamedValue term() { return get(Tag.term); } @@ -1041,7 +1022,7 @@ public boolean isTerms() { * @throws IllegalStateException * if the current variant is not of the {@code terms} kind. */ - public NamedQuery terms() { + public JsonValue terms() { return get(Tag.terms); } @@ -1058,7 +1039,7 @@ public boolean isTermsSet() { * @throws IllegalStateException * if the current variant is not of the {@code terms_set} kind. */ - public NamedQuery termsSet() { + public NamedValue termsSet() { return get(Tag.termsSet); } @@ -1075,7 +1056,7 @@ public boolean isWildcard() { * @throws IllegalStateException * if the current variant is not of the {@code wildcard} kind. */ - public NamedQuery wildcard() { + public NamedValue wildcard() { return get(Tag.wildcard); } @@ -1106,8 +1087,8 @@ public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { switch (this.tag) { case common : generator.writeStartObject(); - generator.writeKey(this.>get(Tag.common).name()); - generator.write(this.>get(Tag.common).value()); + generator.writeKey(this.>get(Tag.common).name()); + this.>get(Tag.common).value().toJsonp(generator, mapper); generator.writeEnd(); @@ -1118,8 +1099,36 @@ public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { break; case fuzzy : generator.writeStartObject(); - generator.writeKey(this.>get(Tag.fuzzy).name()); - generator.write(this.>get(Tag.fuzzy).value()); + generator.writeKey(this.>get(Tag.fuzzy).name()); + this.>get(Tag.fuzzy).value().toJsonp(generator, mapper); + + generator.writeEnd(); + + break; + case intervals : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.intervals).name()); + this.>get(Tag.intervals).value().toJsonp(generator, mapper); + + generator.writeEnd(); + + break; + case match : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.match).name()); + this.>get(Tag.match).value().toJsonp(generator, mapper); + + generator.writeEnd(); + + break; + case matchAll : + generator.write(this.get(Tag.matchAll)); + + break; + case matchBoolPrefix : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.matchBoolPrefix).name()); + this.>get(Tag.matchBoolPrefix).value().toJsonp(generator, mapper); generator.writeEnd(); @@ -1127,6 +1136,87 @@ public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { case matchNone : generator.write(this.get(Tag.matchNone)); + break; + case matchPhrase : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.matchPhrase).name()); + this.>get(Tag.matchPhrase).value().toJsonp(generator, mapper); + + generator.writeEnd(); + + break; + case matchPhrasePrefix : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.matchPhrasePrefix).name()); + this.>get(Tag.matchPhrasePrefix).value().toJsonp(generator, + mapper); + + generator.writeEnd(); + + break; + case prefix : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.prefix).name()); + this.>get(Tag.prefix).value().toJsonp(generator, mapper); + + generator.writeEnd(); + + break; + case range : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.range).name()); + generator.write(this.>get(Tag.range).value()); + + generator.writeEnd(); + + break; + case regexp : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.regexp).name()); + this.>get(Tag.regexp).value().toJsonp(generator, mapper); + + generator.writeEnd(); + + break; + case shape : + generator.write(this.get(Tag.shape)); + + break; + case spanTerm : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.spanTerm).name()); + this.>get(Tag.spanTerm).value().toJsonp(generator, mapper); + + generator.writeEnd(); + + break; + case term : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.term).name()); + this.>get(Tag.term).value().toJsonp(generator, mapper); + + generator.writeEnd(); + + break; + case terms : + generator.write(this.get(Tag.terms)); + + break; + case termsSet : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.termsSet).name()); + generator.write(this.>get(Tag.termsSet).value()); + + generator.writeEnd(); + + break; + case wildcard : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.wildcard).name()); + this.>get(Tag.wildcard).value().toJsonp(generator, mapper); + + generator.writeEnd(); + break; } } @@ -1157,7 +1247,7 @@ public ObjectBuilder boosting(Function common(NamedValue v) { + public ObjectBuilder common(NamedValue v) { this.$variant = v; this.$tag = Tag.common; return new ObjectBuilder.Constant<>(this.build()); @@ -1222,21 +1312,21 @@ public ObjectBuilder functionScore( return this.functionScore(f.apply(new FunctionScoreQuery.Builder()).build()); } - public ObjectBuilder fuzzy(NamedValue v) { + public ObjectBuilder fuzzy(NamedValue v) { this.$variant = v; this.$tag = Tag.fuzzy; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder geoBoundingBox(NamedQuery v) { + public ObjectBuilder geoBoundingBox(GeoBoundingBoxQuery v) { this.$variant = v; this.$tag = Tag.geoBoundingBox; return new ObjectBuilder.Constant<>(this.build()); } public ObjectBuilder geoBoundingBox( - Function, ObjectBuilder>> f) { - return this.geoBoundingBox(f.apply(new NamedQuery.Builder()).build()); + Function> f) { + return this.geoBoundingBox(f.apply(new GeoBoundingBoxQuery.Builder()).build()); } public ObjectBuilder geoDistance(GeoDistanceQuery v) { @@ -1250,26 +1340,25 @@ public ObjectBuilder geoDistance( return this.geoDistance(f.apply(new GeoDistanceQuery.Builder()).build()); } - public ObjectBuilder geoPolygon(NamedQuery v) { + public ObjectBuilder geoPolygon(GeoPolygonQuery v) { this.$variant = v; this.$tag = Tag.geoPolygon; return new ObjectBuilder.Constant<>(this.build()); } public ObjectBuilder geoPolygon( - Function, ObjectBuilder>> f) { - return this.geoPolygon(f.apply(new NamedQuery.Builder()).build()); + Function> f) { + return this.geoPolygon(f.apply(new GeoPolygonQuery.Builder()).build()); } - public ObjectBuilder geoShape(NamedQuery v) { + public ObjectBuilder geoShape(GeoShapeQuery v) { this.$variant = v; this.$tag = Tag.geoShape; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder geoShape( - Function, ObjectBuilder>> f) { - return this.geoShape(f.apply(new NamedQuery.Builder()).build()); + public ObjectBuilder geoShape(Function> f) { + return this.geoShape(f.apply(new GeoShapeQuery.Builder()).build()); } public ObjectBuilder hasChild(HasChildQuery v) { @@ -1303,77 +1392,48 @@ public ObjectBuilder ids(Function intervals(NamedQuery v) { + public ObjectBuilder intervals(NamedValue v) { this.$variant = v; this.$tag = Tag.intervals; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder intervals( - Function, ObjectBuilder>> f) { - return this.intervals(f.apply(new NamedQuery.Builder()).build()); - } - - public ObjectBuilder match(NamedQuery v) { + public ObjectBuilder match(NamedValue v) { this.$variant = v; this.$tag = Tag.match; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder match( - Function, ObjectBuilder>> f) { - return this.match(f.apply(new NamedQuery.Builder()).build()); - } - - public ObjectBuilder matchAll(MatchAllQuery v) { + public ObjectBuilder matchAll(JsonValue v) { this.$variant = v; this.$tag = Tag.matchAll; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder matchAll(Function> f) { - return this.matchAll(f.apply(new MatchAllQuery.Builder()).build()); - } - - public ObjectBuilder matchBoolPrefix(NamedQuery v) { + public ObjectBuilder matchBoolPrefix(NamedValue v) { this.$variant = v; this.$tag = Tag.matchBoolPrefix; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder matchBoolPrefix( - Function, ObjectBuilder>> f) { - return this.matchBoolPrefix(f.apply(new NamedQuery.Builder()).build()); - } - public ObjectBuilder matchNone(JsonValue v) { this.$variant = v; this.$tag = Tag.matchNone; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder matchPhrase(NamedQuery v) { + public ObjectBuilder matchPhrase(NamedValue v) { this.$variant = v; this.$tag = Tag.matchPhrase; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder matchPhrase( - Function, ObjectBuilder>> f) { - return this.matchPhrase(f.apply(new NamedQuery.Builder()).build()); - } - - public ObjectBuilder matchPhrasePrefix(NamedQuery v) { + public ObjectBuilder matchPhrasePrefix(NamedValue v) { this.$variant = v; this.$tag = Tag.matchPhrasePrefix; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder matchPhrasePrefix( - Function, ObjectBuilder>> f) { - return this.matchPhrasePrefix(f.apply(new NamedQuery.Builder()).build()); - } - public ObjectBuilder moreLikeThis(MoreLikeThisQuery v) { this.$variant = v; this.$tag = Tag.moreLikeThis; @@ -1437,17 +1497,12 @@ public ObjectBuilder pinned(Function prefix(NamedQuery v) { + public ObjectBuilder prefix(NamedValue v) { this.$variant = v; this.$tag = Tag.prefix; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder prefix( - Function, ObjectBuilder>> f) { - return this.prefix(f.apply(new NamedQuery.Builder()).build()); - } - public ObjectBuilder queryString(QueryStringQuery v) { this.$variant = v; this.$tag = Tag.queryString; @@ -1459,39 +1514,29 @@ public ObjectBuilder queryString( return this.queryString(f.apply(new QueryStringQuery.Builder()).build()); } - public ObjectBuilder range(NamedQuery v) { + public ObjectBuilder range(NamedValue v) { this.$variant = v; this.$tag = Tag.range; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder range( - Function, ObjectBuilder>> f) { - return this.range(f.apply(new NamedQuery.Builder()).build()); - } - - public ObjectBuilder rankFeature(NamedQuery v) { + public ObjectBuilder rankFeature(RankFeatureQuery v) { this.$variant = v; this.$tag = Tag.rankFeature; return new ObjectBuilder.Constant<>(this.build()); } public ObjectBuilder rankFeature( - Function, ObjectBuilder>> f) { - return this.rankFeature(f.apply(new NamedQuery.Builder()).build()); + Function> f) { + return this.rankFeature(f.apply(new RankFeatureQuery.Builder()).build()); } - public ObjectBuilder regexp(NamedQuery v) { + public ObjectBuilder regexp(NamedValue v) { this.$variant = v; this.$tag = Tag.regexp; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder regexp( - Function, ObjectBuilder>> f) { - return this.regexp(f.apply(new NamedQuery.Builder()).build()); - } - public ObjectBuilder script(ScriptQuery v) { this.$variant = v; this.$tag = Tag.script; @@ -1513,17 +1558,12 @@ public ObjectBuilder scriptScore( return this.scriptScore(f.apply(new ScriptScoreQuery.Builder()).build()); } - public ObjectBuilder shape(NamedQuery v) { + public ObjectBuilder shape(JsonValue v) { this.$variant = v; this.$tag = Tag.shape; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder shape( - Function, ObjectBuilder>> f) { - return this.shape(f.apply(new NamedQuery.Builder()).build()); - } - public ObjectBuilder simpleQueryString(SimpleQueryStringQuery v) { this.$variant = v; this.$tag = Tag.simpleQueryString; @@ -1609,17 +1649,12 @@ public ObjectBuilder spanOr(Function spanTerm(NamedQuery v) { + public ObjectBuilder spanTerm(NamedValue v) { this.$variant = v; this.$tag = Tag.spanTerm; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder spanTerm( - Function, ObjectBuilder>> f) { - return this.spanTerm(f.apply(new NamedQuery.Builder()).build()); - } - public ObjectBuilder spanWithin(SpanWithinQuery v) { this.$variant = v; this.$tag = Tag.spanWithin; @@ -1631,60 +1666,30 @@ public ObjectBuilder spanWithin( return this.spanWithin(f.apply(new SpanWithinQuery.Builder()).build()); } - public ObjectBuilder template(QueryTemplate v) { - this.$variant = v; - this.$tag = Tag.template; - return new ObjectBuilder.Constant<>(this.build()); - } - - public ObjectBuilder template(Function> f) { - return this.template(f.apply(new QueryTemplate.Builder()).build()); - } - - public ObjectBuilder term(NamedQuery v) { + public ObjectBuilder term(NamedValue v) { this.$variant = v; this.$tag = Tag.term; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder term( - Function, ObjectBuilder>> f) { - return this.term(f.apply(new NamedQuery.Builder()).build()); - } - - public ObjectBuilder terms(NamedQuery v) { + public ObjectBuilder terms(JsonValue v) { this.$variant = v; this.$tag = Tag.terms; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder terms( - Function, ObjectBuilder>> f) { - return this.terms(f.apply(new NamedQuery.Builder()).build()); - } - - public ObjectBuilder termsSet(NamedQuery v) { + public ObjectBuilder termsSet(NamedValue v) { this.$variant = v; this.$tag = Tag.termsSet; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder termsSet( - Function, ObjectBuilder>> f) { - return this.termsSet(f.apply(new NamedQuery.Builder()).build()); - } - - public ObjectBuilder wildcard(NamedQuery v) { + public ObjectBuilder wildcard(NamedValue v) { this.$variant = v; this.$tag = Tag.wildcard; return new ObjectBuilder.Constant<>(this.build()); } - public ObjectBuilder wildcard( - Function, ObjectBuilder>> f) { - return this.wildcard(f.apply(new NamedQuery.Builder()).build()); - } - public ObjectBuilder type(TypeQuery v) { this.$variant = v; this.$tag = Tag.type; @@ -1714,37 +1719,29 @@ private static JsonpDeserializer buildDeserializer() { op.add(Builder::bool, BoolQuery.DESERIALIZER, "bool"); op.add(Builder::boosting, BoostingQuery.DESERIALIZER, "boosting"); - op.add(Builder::common, NamedValue.deserializer(() -> JsonpDeserializer.jsonValueDeserializer()), "common"); + op.add(Builder::common, NamedValue.deserializer(() -> CommonTermsQuery.DESERIALIZER), "common"); op.add(Builder::combinedFields, CombinedFieldsQuery.DESERIALIZER, "combined_fields"); op.add(Builder::constantScore, ConstantScoreQuery.DESERIALIZER, "constant_score"); op.add(Builder::disMax, DisMaxQuery.DESERIALIZER, "dis_max"); op.add(Builder::distanceFeature, JsonpDeserializer.jsonValueDeserializer(), "distance_feature"); op.add(Builder::exists, ExistsQuery.DESERIALIZER, "exists"); op.add(Builder::functionScore, FunctionScoreQuery.DESERIALIZER, "function_score"); - op.add(Builder::fuzzy, NamedValue.deserializer(() -> JsonpDeserializer.jsonValueDeserializer()), "fuzzy"); - op.add(Builder::geoBoundingBox, - NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), "geo_bounding_box"); + op.add(Builder::fuzzy, NamedValue.deserializer(() -> FuzzyQuery.DESERIALIZER), "fuzzy"); + op.add(Builder::geoBoundingBox, GeoBoundingBoxQuery.DESERIALIZER, "geo_bounding_box"); op.add(Builder::geoDistance, GeoDistanceQuery.DESERIALIZER, "geo_distance"); - op.add(Builder::geoPolygon, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "geo_polygon"); - op.add(Builder::geoShape, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "geo_shape"); + op.add(Builder::geoPolygon, GeoPolygonQuery.DESERIALIZER, "geo_polygon"); + op.add(Builder::geoShape, GeoShapeQuery.DESERIALIZER, "geo_shape"); op.add(Builder::hasChild, HasChildQuery.DESERIALIZER, "has_child"); op.add(Builder::hasParent, HasParentQuery.DESERIALIZER, "has_parent"); op.add(Builder::ids, IdsQuery.DESERIALIZER, "ids"); - op.add(Builder::intervals, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "intervals"); - op.add(Builder::match, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "match"); - op.add(Builder::matchAll, MatchAllQuery.DESERIALIZER, "match_all"); - op.add(Builder::matchBoolPrefix, - NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), + op.add(Builder::intervals, NamedValue.deserializer(() -> IntervalsQuery.DESERIALIZER), "intervals"); + op.add(Builder::match, NamedValue.deserializer(() -> MatchQuery.DESERIALIZER), "match"); + op.add(Builder::matchAll, JsonpDeserializer.jsonValueDeserializer(), "match_all"); + op.add(Builder::matchBoolPrefix, NamedValue.deserializer(() -> MatchBoolPrefixQuery.DESERIALIZER), "match_bool_prefix"); op.add(Builder::matchNone, JsonpDeserializer.jsonValueDeserializer(), "match_none"); - op.add(Builder::matchPhrase, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "match_phrase"); - op.add(Builder::matchPhrasePrefix, - NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), + op.add(Builder::matchPhrase, NamedValue.deserializer(() -> MatchPhraseQuery.DESERIALIZER), "match_phrase"); + op.add(Builder::matchPhrasePrefix, NamedValue.deserializer(() -> MatchPhrasePrefixQuery.DESERIALIZER), "match_phrase_prefix"); op.add(Builder::moreLikeThis, MoreLikeThisQuery.DESERIALIZER, "more_like_this"); op.add(Builder::multiMatch, MultiMatchQuery.DESERIALIZER, "multi_match"); @@ -1752,18 +1749,14 @@ private static JsonpDeserializer buildDeserializer() { op.add(Builder::parentId, ParentIdQuery.DESERIALIZER, "parent_id"); op.add(Builder::percolate, PercolateQuery.DESERIALIZER, "percolate"); op.add(Builder::pinned, PinnedQuery.DESERIALIZER, "pinned"); - op.add(Builder::prefix, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "prefix"); + op.add(Builder::prefix, NamedValue.deserializer(() -> PrefixQuery.DESERIALIZER), "prefix"); op.add(Builder::queryString, QueryStringQuery.DESERIALIZER, "query_string"); - op.add(Builder::range, NamedQuery.createNamedQueryDeserializer(RangeQuery.DESERIALIZER), "range"); - op.add(Builder::rankFeature, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "rank_feature"); - op.add(Builder::regexp, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "regexp"); + op.add(Builder::range, NamedValue.deserializer(() -> JsonpDeserializer.jsonValueDeserializer()), "range"); + op.add(Builder::rankFeature, RankFeatureQuery.DESERIALIZER, "rank_feature"); + op.add(Builder::regexp, NamedValue.deserializer(() -> RegexpQuery.DESERIALIZER), "regexp"); op.add(Builder::script, ScriptQuery.DESERIALIZER, "script"); op.add(Builder::scriptScore, ScriptScoreQuery.DESERIALIZER, "script_score"); - op.add(Builder::shape, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "shape"); + op.add(Builder::shape, JsonpDeserializer.jsonValueDeserializer(), "shape"); op.add(Builder::simpleQueryString, SimpleQueryStringQuery.DESERIALIZER, "simple_query_string"); op.add(Builder::spanContaining, SpanContainingQuery.DESERIALIZER, "span_containing"); op.add(Builder::fieldMaskingSpan, SpanFieldMaskingQuery.DESERIALIZER, "field_masking_span"); @@ -1772,18 +1765,13 @@ private static JsonpDeserializer buildDeserializer() { op.add(Builder::spanNear, SpanNearQuery.DESERIALIZER, "span_near"); op.add(Builder::spanNot, SpanNotQuery.DESERIALIZER, "span_not"); op.add(Builder::spanOr, SpanOrQuery.DESERIALIZER, "span_or"); - op.add(Builder::spanTerm, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "span_term"); + op.add(Builder::spanTerm, NamedValue.deserializer(() -> SpanTermQuery.DESERIALIZER), "span_term"); op.add(Builder::spanWithin, SpanWithinQuery.DESERIALIZER, "span_within"); - op.add(Builder::template, QueryTemplate.DESERIALIZER, "template"); - op.add(Builder::term, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "term"); - op.add(Builder::terms, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "terms"); - op.add(Builder::termsSet, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), + op.add(Builder::term, NamedValue.deserializer(() -> TermQuery.DESERIALIZER), "term"); + op.add(Builder::terms, JsonpDeserializer.jsonValueDeserializer(), "terms"); + op.add(Builder::termsSet, NamedValue.deserializer(() -> JsonpDeserializer.jsonValueDeserializer()), "terms_set"); - op.add(Builder::wildcard, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "wildcard"); + op.add(Builder::wildcard, NamedValue.deserializer(() -> WildcardQuery.DESERIALIZER), "wildcard"); op.add(Builder::type, TypeQuery.DESERIALIZER, "type"); return new BuildFunctionDeserializer<>(op, Builder::build); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java index a43ae7de0..49acc703d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/QueryStringQuery.java @@ -37,6 +37,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.Objects; import javax.annotation.Nullable; // typedef: _types.query_dsl.QueryStringQuery @@ -95,7 +96,6 @@ public final class QueryStringQuery extends QueryBase { @Nullable private final Number phraseSlop; - @Nullable private final String query; @Nullable @@ -138,7 +138,7 @@ protected QueryStringQuery(Builder builder) { this.maxDeterminizedStates = builder.maxDeterminizedStates; this.minimumShouldMatch = builder.minimumShouldMatch; this.phraseSlop = builder.phraseSlop; - this.query = builder.query; + this.query = Objects.requireNonNull(builder.query, "query"); this.quoteAnalyzer = builder.quoteAnalyzer; this.quoteFieldSuffix = builder.quoteFieldSuffix; this.rewrite = builder.rewrite; @@ -295,7 +295,6 @@ public Number phraseSlop() { /** * API name: {@code query} */ - @Nullable public String query() { return this.query; } @@ -463,12 +462,10 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.phraseSlop.doubleValue()); } - if (this.query != null) { - generator.writeKey("query"); - generator.write(this.query); + generator.writeKey("query"); + generator.write(this.query); - } if (this.quoteAnalyzer != null) { generator.writeKey("quote_analyzer"); @@ -568,7 +565,6 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private Number phraseSlop; - @Nullable private String query; @Nullable @@ -755,7 +751,7 @@ public Builder phraseSlop(@Nullable Number value) { /** * API name: {@code query} */ - public Builder query(@Nullable String value) { + public Builder query(String value) { this.query = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunction.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunction.java new file mode 100644 index 000000000..e23c27866 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunction.java @@ -0,0 +1,37 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; + +// typedef: _types.query_dsl.RankFeatureFunction +public abstract class RankFeatureFunction { + protected RankFeatureFunction() { + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionLogarithm.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionLogarithm.java new file mode 100644 index 000000000..cfeb0b82f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionLogarithm.java @@ -0,0 +1,116 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Number; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.RankFeatureFunctionLogarithm +public final class RankFeatureFunctionLogarithm extends RankFeatureFunction implements ToJsonp { + private final Number scalingFactor; + + // --------------------------------------------------------------------------------------------- + + protected RankFeatureFunctionLogarithm(Builder builder) { + + this.scalingFactor = Objects.requireNonNull(builder.scalingFactor, "scaling_factor"); + + } + + /** + * API name: {@code scaling_factor} + */ + public Number scalingFactor() { + return this.scalingFactor; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("scaling_factor"); + generator.write(this.scalingFactor.doubleValue()); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RankFeatureFunctionLogarithm}. + */ + public static class Builder implements ObjectBuilder { + private Number scalingFactor; + + /** + * API name: {@code scaling_factor} + */ + public Builder scalingFactor(Number value) { + this.scalingFactor = value; + return this; + } + + /** + * Builds a {@link RankFeatureFunctionLogarithm}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RankFeatureFunctionLogarithm build() { + + return new RankFeatureFunctionLogarithm(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for RankFeatureFunctionLogarithm + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, RankFeatureFunctionLogarithm::setupRankFeatureFunctionLogarithmDeserializer); + + protected static void setupRankFeatureFunctionLogarithmDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::scalingFactor, JsonpDeserializer.numberDeserializer(), "scaling_factor"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSaturation.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSaturation.java new file mode 100644 index 000000000..0fa928e5f --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSaturation.java @@ -0,0 +1,123 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Number; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.RankFeatureFunctionSaturation +public final class RankFeatureFunctionSaturation extends RankFeatureFunction implements ToJsonp { + @Nullable + private final Number pivot; + + // --------------------------------------------------------------------------------------------- + + protected RankFeatureFunctionSaturation(Builder builder) { + + this.pivot = builder.pivot; + + } + + /** + * API name: {@code pivot} + */ + @Nullable + public Number pivot() { + return this.pivot; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.pivot != null) { + + generator.writeKey("pivot"); + generator.write(this.pivot.doubleValue()); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RankFeatureFunctionSaturation}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private Number pivot; + + /** + * API name: {@code pivot} + */ + public Builder pivot(@Nullable Number value) { + this.pivot = value; + return this; + } + + /** + * Builds a {@link RankFeatureFunctionSaturation}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RankFeatureFunctionSaturation build() { + + return new RankFeatureFunctionSaturation(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for RankFeatureFunctionSaturation + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, + RankFeatureFunctionSaturation::setupRankFeatureFunctionSaturationDeserializer); + + protected static void setupRankFeatureFunctionSaturationDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::pivot, JsonpDeserializer.numberDeserializer(), "pivot"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSigmoid.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSigmoid.java new file mode 100644 index 000000000..6f0b1f592 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureFunctionSigmoid.java @@ -0,0 +1,140 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Number; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.RankFeatureFunctionSigmoid +public final class RankFeatureFunctionSigmoid extends RankFeatureFunction implements ToJsonp { + private final Number pivot; + + private final Number exponent; + + // --------------------------------------------------------------------------------------------- + + protected RankFeatureFunctionSigmoid(Builder builder) { + + this.pivot = Objects.requireNonNull(builder.pivot, "pivot"); + this.exponent = Objects.requireNonNull(builder.exponent, "exponent"); + + } + + /** + * API name: {@code pivot} + */ + public Number pivot() { + return this.pivot; + } + + /** + * API name: {@code exponent} + */ + public Number exponent() { + return this.exponent; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("pivot"); + generator.write(this.pivot.doubleValue()); + + generator.writeKey("exponent"); + generator.write(this.exponent.doubleValue()); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RankFeatureFunctionSigmoid}. + */ + public static class Builder implements ObjectBuilder { + private Number pivot; + + private Number exponent; + + /** + * API name: {@code pivot} + */ + public Builder pivot(Number value) { + this.pivot = value; + return this; + } + + /** + * API name: {@code exponent} + */ + public Builder exponent(Number value) { + this.exponent = value; + return this; + } + + /** + * Builds a {@link RankFeatureFunctionSigmoid}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RankFeatureFunctionSigmoid build() { + + return new RankFeatureFunctionSigmoid(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for RankFeatureFunctionSigmoid + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, RankFeatureFunctionSigmoid::setupRankFeatureFunctionSigmoidDeserializer); + + protected static void setupRankFeatureFunctionSigmoidDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::pivot, JsonpDeserializer.numberDeserializer(), "pivot"); + op.add(Builder::exponent, JsonpDeserializer.numberDeserializer(), "exponent"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureQuery.java new file mode 100644 index 000000000..c8e858f23 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RankFeatureQuery.java @@ -0,0 +1,258 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.RankFeatureQuery +public final class RankFeatureQuery extends QueryBase { + private final String field; + + @Nullable + private final RankFeatureFunctionSaturation saturation; + + @Nullable + private final RankFeatureFunctionLogarithm log; + + @Nullable + private final JsonValue linear; + + @Nullable + private final RankFeatureFunctionSigmoid sigmoid; + + // --------------------------------------------------------------------------------------------- + + protected RankFeatureQuery(Builder builder) { + super(builder); + this.field = Objects.requireNonNull(builder.field, "field"); + this.saturation = builder.saturation; + this.log = builder.log; + this.linear = builder.linear; + this.sigmoid = builder.sigmoid; + + } + + /** + * API name: {@code field} + */ + public String field() { + return this.field; + } + + /** + * API name: {@code saturation} + */ + @Nullable + public RankFeatureFunctionSaturation saturation() { + return this.saturation; + } + + /** + * API name: {@code log} + */ + @Nullable + public RankFeatureFunctionLogarithm log() { + return this.log; + } + + /** + * API name: {@code linear} + */ + @Nullable + public JsonValue linear() { + return this.linear; + } + + /** + * API name: {@code sigmoid} + */ + @Nullable + public RankFeatureFunctionSigmoid sigmoid() { + return this.sigmoid; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + + generator.writeKey("field"); + generator.write(this.field); + + if (this.saturation != null) { + + generator.writeKey("saturation"); + this.saturation.toJsonp(generator, mapper); + + } + if (this.log != null) { + + generator.writeKey("log"); + this.log.toJsonp(generator, mapper); + + } + if (this.linear != null) { + + generator.writeKey("linear"); + generator.write(this.linear); + + } + if (this.sigmoid != null) { + + generator.writeKey("sigmoid"); + this.sigmoid.toJsonp(generator, mapper); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RankFeatureQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + private String field; + + @Nullable + private RankFeatureFunctionSaturation saturation; + + @Nullable + private RankFeatureFunctionLogarithm log; + + @Nullable + private JsonValue linear; + + @Nullable + private RankFeatureFunctionSigmoid sigmoid; + + /** + * API name: {@code field} + */ + public Builder field(String value) { + this.field = value; + return this; + } + + /** + * API name: {@code saturation} + */ + public Builder saturation(@Nullable RankFeatureFunctionSaturation value) { + this.saturation = value; + return this; + } + + /** + * API name: {@code saturation} + */ + public Builder saturation( + Function> fn) { + return this.saturation(fn.apply(new RankFeatureFunctionSaturation.Builder()).build()); + } + + /** + * API name: {@code log} + */ + public Builder log(@Nullable RankFeatureFunctionLogarithm value) { + this.log = value; + return this; + } + + /** + * API name: {@code log} + */ + public Builder log( + Function> fn) { + return this.log(fn.apply(new RankFeatureFunctionLogarithm.Builder()).build()); + } + + /** + * API name: {@code linear} + */ + public Builder linear(@Nullable JsonValue value) { + this.linear = value; + return this; + } + + /** + * API name: {@code sigmoid} + */ + public Builder sigmoid(@Nullable RankFeatureFunctionSigmoid value) { + this.sigmoid = value; + return this; + } + + /** + * API name: {@code sigmoid} + */ + public Builder sigmoid( + Function> fn) { + return this.sigmoid(fn.apply(new RankFeatureFunctionSigmoid.Builder()).build()); + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link RankFeatureQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RankFeatureQuery build() { + + return new RankFeatureQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for RankFeatureQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, RankFeatureQuery::setupRankFeatureQueryDeserializer); + + protected static void setupRankFeatureQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); + op.add(Builder::saturation, RankFeatureFunctionSaturation.DESERIALIZER, "saturation"); + op.add(Builder::log, RankFeatureFunctionLogarithm.DESERIALIZER, "log"); + op.add(Builder::linear, JsonpDeserializer.jsonValueDeserializer(), "linear"); + op.add(Builder::sigmoid, RankFeatureFunctionSigmoid.DESERIALIZER, "sigmoid"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RegexpQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RegexpQuery.java new file mode 100644 index 000000000..568009d56 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/RegexpQuery.java @@ -0,0 +1,233 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Number; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.RegexpQuery +public final class RegexpQuery extends QueryBase { + @Nullable + private final Boolean caseInsensitive; + + @Nullable + private final String flags; + + @Nullable + private final Number maxDeterminizedStates; + + @Nullable + private final String rewrite; + + private final String value; + + // --------------------------------------------------------------------------------------------- + + protected RegexpQuery(Builder builder) { + super(builder); + this.caseInsensitive = builder.caseInsensitive; + this.flags = builder.flags; + this.maxDeterminizedStates = builder.maxDeterminizedStates; + this.rewrite = builder.rewrite; + this.value = Objects.requireNonNull(builder.value, "value"); + + } + + /** + * API name: {@code case_insensitive} + */ + @Nullable + public Boolean caseInsensitive() { + return this.caseInsensitive; + } + + /** + * API name: {@code flags} + */ + @Nullable + public String flags() { + return this.flags; + } + + /** + * API name: {@code max_determinized_states} + */ + @Nullable + public Number maxDeterminizedStates() { + return this.maxDeterminizedStates; + } + + /** + * API name: {@code rewrite} + */ + @Nullable + public String rewrite() { + return this.rewrite; + } + + /** + * API name: {@code value} + */ + public String value() { + return this.value; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + if (this.caseInsensitive != null) { + + generator.writeKey("case_insensitive"); + generator.write(this.caseInsensitive); + + } + if (this.flags != null) { + + generator.writeKey("flags"); + generator.write(this.flags); + + } + if (this.maxDeterminizedStates != null) { + + generator.writeKey("max_determinized_states"); + generator.write(this.maxDeterminizedStates.doubleValue()); + + } + if (this.rewrite != null) { + + generator.writeKey("rewrite"); + generator.write(this.rewrite); + + } + + generator.writeKey("value"); + generator.write(this.value); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link RegexpQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean caseInsensitive; + + @Nullable + private String flags; + + @Nullable + private Number maxDeterminizedStates; + + @Nullable + private String rewrite; + + private String value; + + /** + * API name: {@code case_insensitive} + */ + public Builder caseInsensitive(@Nullable Boolean value) { + this.caseInsensitive = value; + return this; + } + + /** + * API name: {@code flags} + */ + public Builder flags(@Nullable String value) { + this.flags = value; + return this; + } + + /** + * API name: {@code max_determinized_states} + */ + public Builder maxDeterminizedStates(@Nullable Number value) { + this.maxDeterminizedStates = value; + return this; + } + + /** + * API name: {@code rewrite} + */ + public Builder rewrite(@Nullable String value) { + this.rewrite = value; + return this; + } + + /** + * API name: {@code value} + */ + public Builder value(String value) { + this.value = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link RegexpQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public RegexpQuery build() { + + return new RegexpQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for RegexpQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, RegexpQuery::setupRegexpQueryDeserializer); + + protected static void setupRegexpQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::caseInsensitive, JsonpDeserializer.booleanDeserializer(), "case_insensitive"); + op.add(Builder::flags, JsonpDeserializer.stringDeserializer(), "flags"); + op.add(Builder::maxDeterminizedStates, JsonpDeserializer.numberDeserializer(), "max_determinized_states"); + op.add(Builder::rewrite, JsonpDeserializer.stringDeserializer(), "rewrite"); + op.add(Builder::value, JsonpDeserializer.stringDeserializer(), "value"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptQuery.java index cd4b70cb2..b5198769c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptQuery.java @@ -31,37 +31,33 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.JsonValue; import jakarta.json.stream.JsonGenerator; +import java.util.Objects; import javax.annotation.Nullable; // typedef: _types.query_dsl.ScriptQuery public final class ScriptQuery extends QueryBase { - @Nullable private final JsonValue script; // --------------------------------------------------------------------------------------------- protected ScriptQuery(Builder builder) { super(builder); - this.script = builder.script; + this.script = Objects.requireNonNull(builder.script, "script"); } /** * API name: {@code script} */ - @Nullable public JsonValue script() { return this.script; } protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.script != null) { - generator.writeKey("script"); - generator.write(this.script); - - } + generator.writeKey("script"); + generator.write(this.script); } @@ -71,13 +67,12 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link ScriptQuery}. */ public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable private JsonValue script; /** * API name: {@code script} */ - public Builder script(@Nullable JsonValue value) { + public Builder script(JsonValue value) { this.script = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreQuery.java index 11781c628..5ab15c471 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/ScriptScoreQuery.java @@ -31,30 +31,41 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.JsonValue; import jakarta.json.stream.JsonGenerator; +import java.lang.Number; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; // typedef: _types.query_dsl.ScriptScoreQuery public final class ScriptScoreQuery extends QueryBase { @Nullable + private final Number minScore; + private final QueryContainer query; - @Nullable private final JsonValue script; // --------------------------------------------------------------------------------------------- protected ScriptScoreQuery(Builder builder) { super(builder); - this.query = builder.query; - this.script = builder.script; + this.minScore = builder.minScore; + this.query = Objects.requireNonNull(builder.query, "query"); + this.script = Objects.requireNonNull(builder.script, "script"); } /** - * API name: {@code query} + * API name: {@code min_score} */ @Nullable + public Number minScore() { + return this.minScore; + } + + /** + * API name: {@code query} + */ public QueryContainer query() { return this.query; } @@ -62,25 +73,24 @@ public QueryContainer query() { /** * API name: {@code script} */ - @Nullable public JsonValue script() { return this.script; } protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.query != null) { + if (this.minScore != null) { - generator.writeKey("query"); - this.query.toJsonp(generator, mapper); + generator.writeKey("min_score"); + generator.write(this.minScore.doubleValue()); } - if (this.script != null) { - generator.writeKey("script"); - generator.write(this.script); + generator.writeKey("query"); + this.query.toJsonp(generator, mapper); - } + generator.writeKey("script"); + generator.write(this.script); } @@ -91,15 +101,24 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { */ public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { @Nullable + private Number minScore; + private QueryContainer query; - @Nullable private JsonValue script; + /** + * API name: {@code min_score} + */ + public Builder minScore(@Nullable Number value) { + this.minScore = value; + return this; + } + /** * API name: {@code query} */ - public Builder query(@Nullable QueryContainer value) { + public Builder query(QueryContainer value) { this.query = value; return this; } @@ -114,7 +133,7 @@ public Builder query(Function op) { QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::minScore, JsonpDeserializer.numberDeserializer(), "min_score"); op.add(Builder::query, QueryContainer.DESERIALIZER, "query"); op.add(Builder::script, JsonpDeserializer.jsonValueDeserializer(), "script"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringQuery.java index 84d279d0f..a99617378 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SimpleQueryStringQuery.java @@ -37,6 +37,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.Objects; import javax.annotation.Nullable; // typedef: _types.query_dsl.SimpleQueryStringQuery @@ -74,7 +75,6 @@ public final class SimpleQueryStringQuery extends QueryBase { @Nullable private final JsonValue minimumShouldMatch; - @Nullable private final String query; @Nullable @@ -95,7 +95,7 @@ protected SimpleQueryStringQuery(Builder builder) { this.fuzzyTranspositions = builder.fuzzyTranspositions; this.lenient = builder.lenient; this.minimumShouldMatch = builder.minimumShouldMatch; - this.query = builder.query; + this.query = Objects.requireNonNull(builder.query, "query"); this.quoteFieldSuffix = builder.quoteFieldSuffix; } @@ -191,7 +191,6 @@ public JsonValue minimumShouldMatch() { /** * API name: {@code query} */ - @Nullable public String query() { return this.query; } @@ -277,12 +276,10 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.minimumShouldMatch); } - if (this.query != null) { - generator.writeKey("query"); - generator.write(this.query); + generator.writeKey("query"); + generator.write(this.query); - } if (this.quoteFieldSuffix != null) { generator.writeKey("quote_field_suffix"); @@ -333,7 +330,6 @@ public static class Builder extends QueryBase.AbstractBuilder @Nullable private JsonValue minimumShouldMatch; - @Nullable private String query; @Nullable @@ -449,7 +445,7 @@ public Builder minimumShouldMatch(@Nullable JsonValue value) { /** * API name: {@code query} */ - public Builder query(@Nullable String value) { + public Builder query(String value) { this.query = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanContainingQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanContainingQuery.java index 5db502feb..136297101 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanContainingQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanContainingQuery.java @@ -30,30 +30,28 @@ import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; // typedef: _types.query_dsl.SpanContainingQuery public final class SpanContainingQuery extends QueryBase { - @Nullable private final SpanQuery big; - @Nullable private final SpanQuery little; // --------------------------------------------------------------------------------------------- protected SpanContainingQuery(Builder builder) { super(builder); - this.big = builder.big; - this.little = builder.little; + this.big = Objects.requireNonNull(builder.big, "big"); + this.little = Objects.requireNonNull(builder.little, "little"); } /** * API name: {@code big} */ - @Nullable public SpanQuery big() { return this.big; } @@ -61,25 +59,18 @@ public SpanQuery big() { /** * API name: {@code little} */ - @Nullable public SpanQuery little() { return this.little; } protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.big != null) { - generator.writeKey("big"); - this.big.toJsonp(generator, mapper); + generator.writeKey("big"); + this.big.toJsonp(generator, mapper); - } - if (this.little != null) { - - generator.writeKey("little"); - this.little.toJsonp(generator, mapper); - - } + generator.writeKey("little"); + this.little.toJsonp(generator, mapper); } @@ -91,16 +82,14 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable private SpanQuery big; - @Nullable private SpanQuery little; /** * API name: {@code big} */ - public Builder big(@Nullable SpanQuery value) { + public Builder big(SpanQuery value) { this.big = value; return this; } @@ -115,7 +104,7 @@ public Builder big(Function> fn) { /** * API name: {@code little} */ - public Builder little(@Nullable SpanQuery value) { + public Builder little(SpanQuery value) { this.little = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFieldMaskingQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFieldMaskingQuery.java index ded479d6c..f9e1a8fa7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFieldMaskingQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFieldMaskingQuery.java @@ -31,30 +31,28 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; // typedef: _types.query_dsl.SpanFieldMaskingQuery public final class SpanFieldMaskingQuery extends QueryBase { - @Nullable private final String field; - @Nullable private final SpanQuery query; // --------------------------------------------------------------------------------------------- protected SpanFieldMaskingQuery(Builder builder) { super(builder); - this.field = builder.field; - this.query = builder.query; + this.field = Objects.requireNonNull(builder.field, "field"); + this.query = Objects.requireNonNull(builder.query, "query"); } /** * API name: {@code field} */ - @Nullable public String field() { return this.field; } @@ -62,25 +60,18 @@ public String field() { /** * API name: {@code query} */ - @Nullable public SpanQuery query() { return this.query; } protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.field != null) { - generator.writeKey("field"); - generator.write(this.field); + generator.writeKey("field"); + generator.write(this.field); - } - if (this.query != null) { - - generator.writeKey("query"); - this.query.toJsonp(generator, mapper); - - } + generator.writeKey("query"); + this.query.toJsonp(generator, mapper); } @@ -92,16 +83,14 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable private String field; - @Nullable private SpanQuery query; /** * API name: {@code field} */ - public Builder field(@Nullable String value) { + public Builder field(String value) { this.field = value; return this; } @@ -109,7 +98,7 @@ public Builder field(@Nullable String value) { /** * API name: {@code query} */ - public Builder query(@Nullable SpanQuery value) { + public Builder query(SpanQuery value) { this.query = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFirstQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFirstQuery.java index bd7bc55cb..9101cf117 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFirstQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanFirstQuery.java @@ -31,30 +31,28 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Number; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; // typedef: _types.query_dsl.SpanFirstQuery public final class SpanFirstQuery extends QueryBase { - @Nullable private final Number end; - @Nullable private final SpanQuery match; // --------------------------------------------------------------------------------------------- protected SpanFirstQuery(Builder builder) { super(builder); - this.end = builder.end; - this.match = builder.match; + this.end = Objects.requireNonNull(builder.end, "end"); + this.match = Objects.requireNonNull(builder.match, "match"); } /** * API name: {@code end} */ - @Nullable public Number end() { return this.end; } @@ -62,25 +60,18 @@ public Number end() { /** * API name: {@code match} */ - @Nullable public SpanQuery match() { return this.match; } protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.end != null) { - generator.writeKey("end"); - generator.write(this.end.doubleValue()); + generator.writeKey("end"); + generator.write(this.end.doubleValue()); - } - if (this.match != null) { - - generator.writeKey("match"); - this.match.toJsonp(generator, mapper); - - } + generator.writeKey("match"); + this.match.toJsonp(generator, mapper); } @@ -90,16 +81,14 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link SpanFirstQuery}. */ public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable private Number end; - @Nullable private SpanQuery match; /** * API name: {@code end} */ - public Builder end(@Nullable Number value) { + public Builder end(Number value) { this.end = value; return this; } @@ -107,7 +96,7 @@ public Builder end(@Nullable Number value) { /** * API name: {@code match} */ - public Builder match(@Nullable SpanQuery value) { + public Builder match(SpanQuery value) { this.match = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanMultiTermQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanMultiTermQuery.java index 808104c75..91865f520 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanMultiTermQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanMultiTermQuery.java @@ -30,38 +30,37 @@ import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; // typedef: _types.query_dsl.SpanMultiTermQuery public final class SpanMultiTermQuery extends QueryBase { - @Nullable private final QueryContainer match; // --------------------------------------------------------------------------------------------- protected SpanMultiTermQuery(Builder builder) { super(builder); - this.match = builder.match; + this.match = Objects.requireNonNull(builder.match, "match"); } /** + * Should be a multi term query (one of wildcard, fuzzy, prefix, range or regexp + * query) + *

* API name: {@code match} */ - @Nullable public QueryContainer match() { return this.match; } protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.match != null) { - generator.writeKey("match"); - this.match.toJsonp(generator, mapper); - - } + generator.writeKey("match"); + this.match.toJsonp(generator, mapper); } @@ -73,18 +72,23 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable private QueryContainer match; /** + * Should be a multi term query (one of wildcard, fuzzy, prefix, range or regexp + * query) + *

* API name: {@code match} */ - public Builder match(@Nullable QueryContainer value) { + public Builder match(QueryContainer value) { this.match = value; return this; } /** + * Should be a multi term query (one of wildcard, fuzzy, prefix, range or regexp + * query) + *

* API name: {@code match} */ public Builder match(Function> fn) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNearQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNearQuery.java index 5919e5953..43b394150 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNearQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNearQuery.java @@ -35,12 +35,12 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; // typedef: _types.query_dsl.SpanNearQuery public final class SpanNearQuery extends QueryBase { - @Nullable private final List clauses; @Nullable @@ -53,7 +53,7 @@ public final class SpanNearQuery extends QueryBase { protected SpanNearQuery(Builder builder) { super(builder); - this.clauses = builder.clauses; + this.clauses = Objects.requireNonNull(builder.clauses, "clauses"); this.inOrder = builder.inOrder; this.slop = builder.slop; @@ -62,7 +62,6 @@ protected SpanNearQuery(Builder builder) { /** * API name: {@code clauses} */ - @Nullable public List clauses() { return this.clauses; } @@ -85,17 +84,15 @@ public Number slop() { protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.clauses != null) { - - generator.writeKey("clauses"); - generator.writeStartArray(); - for (SpanQuery item0 : this.clauses) { - item0.toJsonp(generator, mapper); - } - generator.writeEnd(); + generator.writeKey("clauses"); + generator.writeStartArray(); + for (SpanQuery item0 : this.clauses) { + item0.toJsonp(generator, mapper); } + generator.writeEnd(); + if (this.inOrder != null) { generator.writeKey("in_order"); @@ -117,7 +114,6 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link SpanNearQuery}. */ public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable private List clauses; @Nullable @@ -129,7 +125,7 @@ public static class Builder extends QueryBase.AbstractBuilder implement /** * API name: {@code clauses} */ - public Builder clauses(@Nullable List value) { + public Builder clauses(List value) { this.clauses = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNotQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNotQuery.java index eed6637ef..5a87e520d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNotQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanNotQuery.java @@ -31,6 +31,7 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; import java.lang.Number; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; @@ -39,10 +40,8 @@ public final class SpanNotQuery extends QueryBase { @Nullable private final Number dist; - @Nullable private final SpanQuery exclude; - @Nullable private final SpanQuery include; @Nullable @@ -56,8 +55,8 @@ public final class SpanNotQuery extends QueryBase { protected SpanNotQuery(Builder builder) { super(builder); this.dist = builder.dist; - this.exclude = builder.exclude; - this.include = builder.include; + this.exclude = Objects.requireNonNull(builder.exclude, "exclude"); + this.include = Objects.requireNonNull(builder.include, "include"); this.post = builder.post; this.pre = builder.pre; @@ -74,7 +73,6 @@ public Number dist() { /** * API name: {@code exclude} */ - @Nullable public SpanQuery exclude() { return this.exclude; } @@ -82,7 +80,6 @@ public SpanQuery exclude() { /** * API name: {@code include} */ - @Nullable public SpanQuery include() { return this.include; } @@ -111,18 +108,13 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.write(this.dist.doubleValue()); } - if (this.exclude != null) { - generator.writeKey("exclude"); - this.exclude.toJsonp(generator, mapper); + generator.writeKey("exclude"); + this.exclude.toJsonp(generator, mapper); - } - if (this.include != null) { + generator.writeKey("include"); + this.include.toJsonp(generator, mapper); - generator.writeKey("include"); - this.include.toJsonp(generator, mapper); - - } if (this.post != null) { generator.writeKey("post"); @@ -147,10 +139,8 @@ public static class Builder extends QueryBase.AbstractBuilder implement @Nullable private Number dist; - @Nullable private SpanQuery exclude; - @Nullable private SpanQuery include; @Nullable @@ -170,7 +160,7 @@ public Builder dist(@Nullable Number value) { /** * API name: {@code exclude} */ - public Builder exclude(@Nullable SpanQuery value) { + public Builder exclude(SpanQuery value) { this.exclude = value; return this; } @@ -185,7 +175,7 @@ public Builder exclude(Function> fn) /** * API name: {@code include} */ - public Builder include(@Nullable SpanQuery value) { + public Builder include(SpanQuery value) { this.include = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanOrQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanOrQuery.java index 82a40c07c..fbb2adeee 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanOrQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanOrQuery.java @@ -33,43 +33,39 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; // typedef: _types.query_dsl.SpanOrQuery public final class SpanOrQuery extends QueryBase { - @Nullable private final List clauses; // --------------------------------------------------------------------------------------------- protected SpanOrQuery(Builder builder) { super(builder); - this.clauses = builder.clauses; + this.clauses = Objects.requireNonNull(builder.clauses, "clauses"); } /** * API name: {@code clauses} */ - @Nullable public List clauses() { return this.clauses; } protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.clauses != null) { - generator.writeKey("clauses"); - generator.writeStartArray(); - for (SpanQuery item0 : this.clauses) { - item0.toJsonp(generator, mapper); - - } - generator.writeEnd(); + generator.writeKey("clauses"); + generator.writeStartArray(); + for (SpanQuery item0 : this.clauses) { + item0.toJsonp(generator, mapper); } + generator.writeEnd(); } @@ -79,13 +75,12 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link SpanOrQuery}. */ public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable private List clauses; /** * API name: {@code clauses} */ - public Builder clauses(@Nullable List value) { + public Builder clauses(List value) { this.clauses = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanQuery.java index 827f1d365..405af5cd9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanQuery.java @@ -23,447 +23,395 @@ package co.elastic.clients.elasticsearch._types.query_dsl; -import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.BuildFunctionDeserializer; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; -import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.NamedValue; import co.elastic.clients.util.ObjectBuilder; -import jakarta.json.JsonValue; +import co.elastic.clients.util.StringEnum; +import co.elastic.clients.util.TaggedUnion; import jakarta.json.stream.JsonGenerator; +import java.lang.Number; +import java.lang.Object; import java.util.function.Function; import javax.annotation.Nullable; -// typedef: _types.query_dsl.SpanQuery -public final class SpanQuery extends QueryBase { - @Nullable - private final NamedQuery spanContaining; +public class SpanQuery extends TaggedUnion implements ToJsonp { - @Nullable - private final NamedQuery fieldMaskingSpan; + public enum Tag implements StringEnum { - @Nullable - private final NamedQuery spanFirst; + spanContaining("span_containing"), - @Nullable - private final NamedQuery spanGap; + fieldMaskingSpan("field_masking_span"), - @Nullable - private final SpanMultiTermQuery spanMulti; + spanFirst("span_first"), - @Nullable - private final NamedQuery spanNear; + spanGap("span_gap"), - @Nullable - private final NamedQuery spanNot; + spanMulti("span_multi"), - @Nullable - private final NamedQuery spanOr; + spanNear("span_near"), - @Nullable - private final NamedQuery spanTerm; + spanNot("span_not"), - @Nullable - private final NamedQuery spanWithin; + spanOr("span_or"), - // --------------------------------------------------------------------------------------------- + spanTerm("span_term"), - protected SpanQuery(Builder builder) { - super(builder); - this.spanContaining = builder.spanContaining; - this.fieldMaskingSpan = builder.fieldMaskingSpan; - this.spanFirst = builder.spanFirst; - this.spanGap = builder.spanGap; - this.spanMulti = builder.spanMulti; - this.spanNear = builder.spanNear; - this.spanNot = builder.spanNot; - this.spanOr = builder.spanOr; - this.spanTerm = builder.spanTerm; - this.spanWithin = builder.spanWithin; + spanWithin("span_within"), + + ; + + private final String jsonValue; + + Tag(String jsonValue) { + this.jsonValue = jsonValue; + } + + public String jsonValue() { + return this.jsonValue; + } + + public static StringEnum.Deserializer DESERIALIZER = new StringEnum.Deserializer<>(Tag.values()); + } + + private SpanQuery(Builder builder) { + super(builder.$tag, builder.$variant); } /** - * API name: {@code span_containing} + * Is this {@link SpanQuery} of a {@code span_containing} kind? */ - @Nullable - public NamedQuery spanContaining() { - return this.spanContaining; + public boolean isSpanContaining() { + return is(Tag.spanContaining); } /** - * API name: {@code field_masking_span} + * Get the {@code span_containing} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code span_containing} + * kind. */ - @Nullable - public NamedQuery fieldMaskingSpan() { - return this.fieldMaskingSpan; + public SpanContainingQuery spanContaining() { + return get(Tag.spanContaining); } /** - * API name: {@code span_first} + * Is this {@link SpanQuery} of a {@code field_masking_span} kind? */ - @Nullable - public NamedQuery spanFirst() { - return this.spanFirst; + public boolean isFieldMaskingSpan() { + return is(Tag.fieldMaskingSpan); } /** - * API name: {@code span_gap} + * Get the {@code field_masking_span} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code field_masking_span} + * kind. */ - @Nullable - public NamedQuery spanGap() { - return this.spanGap; + public SpanFieldMaskingQuery fieldMaskingSpan() { + return get(Tag.fieldMaskingSpan); } /** - * API name: {@code span_multi} + * Is this {@link SpanQuery} of a {@code span_first} kind? */ - @Nullable - public SpanMultiTermQuery spanMulti() { - return this.spanMulti; + public boolean isSpanFirst() { + return is(Tag.spanFirst); } /** - * API name: {@code span_near} + * Get the {@code span_first} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code span_first} kind. */ - @Nullable - public NamedQuery spanNear() { - return this.spanNear; + public SpanFirstQuery spanFirst() { + return get(Tag.spanFirst); } /** - * API name: {@code span_not} + * Is this {@link SpanQuery} of a {@code span_gap} kind? */ - @Nullable - public NamedQuery spanNot() { - return this.spanNot; + public boolean isSpanGap() { + return is(Tag.spanGap); } /** - * API name: {@code span_or} + * Get the {@code span_gap} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code span_gap} kind. */ - @Nullable - public NamedQuery spanOr() { - return this.spanOr; + public NamedValue spanGap() { + return get(Tag.spanGap); } /** - * API name: {@code span_term} + * Is this {@link SpanQuery} of a {@code span_multi} kind? */ - @Nullable - public NamedQuery spanTerm() { - return this.spanTerm; + public boolean isSpanMulti() { + return is(Tag.spanMulti); } /** - * API name: {@code span_within} + * Get the {@code span_multi} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code span_multi} kind. */ - @Nullable - public NamedQuery spanWithin() { - return this.spanWithin; + public SpanMultiTermQuery spanMulti() { + return get(Tag.spanMulti); } - protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - super.toJsonpInternal(generator, mapper); - if (this.spanContaining != null) { - - generator.writeKey("span_containing"); - this.spanContaining.toJsonp(generator, mapper); - - } - if (this.fieldMaskingSpan != null) { - - generator.writeKey("field_masking_span"); - this.fieldMaskingSpan.toJsonp(generator, mapper); - - } - if (this.spanFirst != null) { - - generator.writeKey("span_first"); - this.spanFirst.toJsonp(generator, mapper); - - } - if (this.spanGap != null) { - - generator.writeKey("span_gap"); - this.spanGap.toJsonp(generator, mapper); - - } - if (this.spanMulti != null) { - - generator.writeKey("span_multi"); - this.spanMulti.toJsonp(generator, mapper); - - } - if (this.spanNear != null) { - - generator.writeKey("span_near"); - this.spanNear.toJsonp(generator, mapper); - - } - if (this.spanNot != null) { - - generator.writeKey("span_not"); - this.spanNot.toJsonp(generator, mapper); - - } - if (this.spanOr != null) { - - generator.writeKey("span_or"); - this.spanOr.toJsonp(generator, mapper); - - } - if (this.spanTerm != null) { - - generator.writeKey("span_term"); - this.spanTerm.toJsonp(generator, mapper); - - } - if (this.spanWithin != null) { - - generator.writeKey("span_within"); - this.spanWithin.toJsonp(generator, mapper); - - } + /** + * Is this {@link SpanQuery} of a {@code span_near} kind? + */ + public boolean isSpanNear() { + return is(Tag.spanNear); + } + /** + * Get the {@code span_near} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code span_near} kind. + */ + public SpanNearQuery spanNear() { + return get(Tag.spanNear); } - // --------------------------------------------------------------------------------------------- + /** + * Is this {@link SpanQuery} of a {@code span_not} kind? + */ + public boolean isSpanNot() { + return is(Tag.spanNot); + } /** - * Builder for {@link SpanQuery}. + * Get the {@code span_not} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code span_not} kind. */ - public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable - private NamedQuery spanContaining; + public SpanNotQuery spanNot() { + return get(Tag.spanNot); + } - @Nullable - private NamedQuery fieldMaskingSpan; + /** + * Is this {@link SpanQuery} of a {@code span_or} kind? + */ + public boolean isSpanOr() { + return is(Tag.spanOr); + } - @Nullable - private NamedQuery spanFirst; + /** + * Get the {@code span_or} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code span_or} kind. + */ + public SpanOrQuery spanOr() { + return get(Tag.spanOr); + } - @Nullable - private NamedQuery spanGap; + /** + * Is this {@link SpanQuery} of a {@code span_term} kind? + */ + public boolean isSpanTerm() { + return is(Tag.spanTerm); + } - @Nullable - private SpanMultiTermQuery spanMulti; + /** + * Get the {@code span_term} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code span_term} kind. + */ + public NamedValue spanTerm() { + return get(Tag.spanTerm); + } - @Nullable - private NamedQuery spanNear; + /** + * Is this {@link SpanQuery} of a {@code span_within} kind? + */ + public boolean isSpanWithin() { + return is(Tag.spanWithin); + } - @Nullable - private NamedQuery spanNot; + /** + * Get the {@code span_within} variant value. + * + * @throws IllegalStateException + * if the current variant is not of the {@code span_within} kind. + */ + public SpanWithinQuery spanWithin() { + return get(Tag.spanWithin); + } - @Nullable - private NamedQuery spanOr; + @Override + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + generator.writeKey(tag.jsonValue); + if (value instanceof ToJsonp) { + ((ToJsonp) value).toJsonp(generator, mapper); + } else { + switch (this.tag) { + case spanGap : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.spanGap).name()); + generator.write(this.>get(Tag.spanGap).value().doubleValue()); - @Nullable - private NamedQuery spanTerm; + generator.writeEnd(); - @Nullable - private NamedQuery spanWithin; + break; + case spanTerm : + generator.writeStartObject(); + generator.writeKey(this.>get(Tag.spanTerm).name()); + this.>get(Tag.spanTerm).value().toJsonp(generator, mapper); - /** - * API name: {@code span_containing} - */ - public Builder spanContaining(@Nullable NamedQuery value) { - this.spanContaining = value; - return this; - } + generator.writeEnd(); - /** - * API name: {@code span_containing} - */ - public Builder spanContaining( - Function, ObjectBuilder>> fn) { - return this.spanContaining(fn.apply(new NamedQuery.Builder()).build()); + break; + } } - /** - * API name: {@code field_masking_span} - */ - public Builder fieldMaskingSpan(@Nullable NamedQuery value) { - this.fieldMaskingSpan = value; - return this; - } + generator.writeEnd(); + } + public static class Builder { + private Tag $tag; + private Object $variant; - /** - * API name: {@code field_masking_span} - */ - public Builder fieldMaskingSpan( - Function, ObjectBuilder>> fn) { - return this.fieldMaskingSpan(fn.apply(new NamedQuery.Builder()).build()); + public ObjectBuilder spanContaining(SpanContainingQuery v) { + this.$variant = v; + this.$tag = Tag.spanContaining; + return new ObjectBuilder.Constant<>(this.build()); } - /** - * API name: {@code span_first} - */ - public Builder spanFirst(@Nullable NamedQuery value) { - this.spanFirst = value; - return this; + public ObjectBuilder spanContaining( + Function> f) { + return this.spanContaining(f.apply(new SpanContainingQuery.Builder()).build()); } - /** - * API name: {@code span_first} - */ - public Builder spanFirst(Function, ObjectBuilder>> fn) { - return this.spanFirst(fn.apply(new NamedQuery.Builder()).build()); + public ObjectBuilder fieldMaskingSpan(SpanFieldMaskingQuery v) { + this.$variant = v; + this.$tag = Tag.fieldMaskingSpan; + return new ObjectBuilder.Constant<>(this.build()); } - /** - * API name: {@code span_gap} - */ - public Builder spanGap(@Nullable NamedQuery value) { - this.spanGap = value; - return this; + public ObjectBuilder fieldMaskingSpan( + Function> f) { + return this.fieldMaskingSpan(f.apply(new SpanFieldMaskingQuery.Builder()).build()); } - /** - * API name: {@code span_gap} - */ - public Builder spanGap(Function, ObjectBuilder>> fn) { - return this.spanGap(fn.apply(new NamedQuery.Builder()).build()); + public ObjectBuilder spanFirst(SpanFirstQuery v) { + this.$variant = v; + this.$tag = Tag.spanFirst; + return new ObjectBuilder.Constant<>(this.build()); } - /** - * API name: {@code span_multi} - */ - public Builder spanMulti(@Nullable SpanMultiTermQuery value) { - this.spanMulti = value; - return this; + public ObjectBuilder spanFirst(Function> f) { + return this.spanFirst(f.apply(new SpanFirstQuery.Builder()).build()); } - /** - * API name: {@code span_multi} - */ - public Builder spanMulti(Function> fn) { - return this.spanMulti(fn.apply(new SpanMultiTermQuery.Builder()).build()); + public ObjectBuilder spanGap(NamedValue v) { + this.$variant = v; + this.$tag = Tag.spanGap; + return new ObjectBuilder.Constant<>(this.build()); } - /** - * API name: {@code span_near} - */ - public Builder spanNear(@Nullable NamedQuery value) { - this.spanNear = value; - return this; + public ObjectBuilder spanMulti(SpanMultiTermQuery v) { + this.$variant = v; + this.$tag = Tag.spanMulti; + return new ObjectBuilder.Constant<>(this.build()); } - /** - * API name: {@code span_near} - */ - public Builder spanNear(Function, ObjectBuilder>> fn) { - return this.spanNear(fn.apply(new NamedQuery.Builder()).build()); + public ObjectBuilder spanMulti( + Function> f) { + return this.spanMulti(f.apply(new SpanMultiTermQuery.Builder()).build()); } - /** - * API name: {@code span_not} - */ - public Builder spanNot(@Nullable NamedQuery value) { - this.spanNot = value; - return this; + public ObjectBuilder spanNear(SpanNearQuery v) { + this.$variant = v; + this.$tag = Tag.spanNear; + return new ObjectBuilder.Constant<>(this.build()); } - /** - * API name: {@code span_not} - */ - public Builder spanNot(Function, ObjectBuilder>> fn) { - return this.spanNot(fn.apply(new NamedQuery.Builder()).build()); + public ObjectBuilder spanNear(Function> f) { + return this.spanNear(f.apply(new SpanNearQuery.Builder()).build()); } - /** - * API name: {@code span_or} - */ - public Builder spanOr(@Nullable NamedQuery value) { - this.spanOr = value; - return this; + public ObjectBuilder spanNot(SpanNotQuery v) { + this.$variant = v; + this.$tag = Tag.spanNot; + return new ObjectBuilder.Constant<>(this.build()); } - /** - * API name: {@code span_or} - */ - public Builder spanOr(Function, ObjectBuilder>> fn) { - return this.spanOr(fn.apply(new NamedQuery.Builder()).build()); + public ObjectBuilder spanNot(Function> f) { + return this.spanNot(f.apply(new SpanNotQuery.Builder()).build()); } - /** - * API name: {@code span_term} - */ - public Builder spanTerm(@Nullable NamedQuery value) { - this.spanTerm = value; - return this; + public ObjectBuilder spanOr(SpanOrQuery v) { + this.$variant = v; + this.$tag = Tag.spanOr; + return new ObjectBuilder.Constant<>(this.build()); } - /** - * API name: {@code span_term} - */ - public Builder spanTerm(Function, ObjectBuilder>> fn) { - return this.spanTerm(fn.apply(new NamedQuery.Builder()).build()); + public ObjectBuilder spanOr(Function> f) { + return this.spanOr(f.apply(new SpanOrQuery.Builder()).build()); } - /** - * API name: {@code span_within} - */ - public Builder spanWithin(@Nullable NamedQuery value) { - this.spanWithin = value; - return this; + public ObjectBuilder spanTerm(NamedValue v) { + this.$variant = v; + this.$tag = Tag.spanTerm; + return new ObjectBuilder.Constant<>(this.build()); } - /** - * API name: {@code span_within} - */ - public Builder spanWithin(Function, ObjectBuilder>> fn) { - return this.spanWithin(fn.apply(new NamedQuery.Builder()).build()); + public ObjectBuilder spanWithin(SpanWithinQuery v) { + this.$variant = v; + this.$tag = Tag.spanWithin; + return new ObjectBuilder.Constant<>(this.build()); } - @Override - protected Builder self() { - return this; + public ObjectBuilder spanWithin( + Function> f) { + return this.spanWithin(f.apply(new SpanWithinQuery.Builder()).build()); } - /** - * Builds a {@link SpanQuery}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public SpanQuery build() { - + protected SpanQuery build() { return new SpanQuery(this); } + } - // --------------------------------------------------------------------------------------------- + // Variants can be recursive data structures. Building the union's deserializer + // lazily + // avoids cyclic dependencies between static class initialization code, which + // can lead to unwanted things like NPEs or stack overflows - /** - * Json deserializer for SpanQuery - */ - public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer - .createForObject(Builder::new, SpanQuery::setupSpanQueryDeserializer); - - protected static void setupSpanQueryDeserializer(DelegatingDeserializer op) { - QueryBase.setupQueryBaseDeserializer(op); - op.add(Builder::spanContaining, - NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), "span_containing"); - op.add(Builder::fieldMaskingSpan, - NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "field_masking_span"); - op.add(Builder::spanFirst, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "span_first"); - op.add(Builder::spanGap, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "span_gap"); + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .lazy(SpanQuery::buildDeserializer); + + private static JsonpDeserializer buildDeserializer() { + ObjectDeserializer op = new ObjectDeserializer<>(Builder::new); + + op.add(Builder::spanContaining, SpanContainingQuery.DESERIALIZER, "span_containing"); + op.add(Builder::fieldMaskingSpan, SpanFieldMaskingQuery.DESERIALIZER, "field_masking_span"); + op.add(Builder::spanFirst, SpanFirstQuery.DESERIALIZER, "span_first"); + op.add(Builder::spanGap, NamedValue.deserializer(() -> JsonpDeserializer.numberDeserializer()), "span_gap"); op.add(Builder::spanMulti, SpanMultiTermQuery.DESERIALIZER, "span_multi"); - op.add(Builder::spanNear, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "span_near"); - op.add(Builder::spanNot, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "span_not"); - op.add(Builder::spanOr, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "span_or"); - op.add(Builder::spanTerm, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "span_term"); - op.add(Builder::spanWithin, NamedQuery.createNamedQueryDeserializer(JsonpDeserializer.jsonValueDeserializer()), - "span_within"); + op.add(Builder::spanNear, SpanNearQuery.DESERIALIZER, "span_near"); + op.add(Builder::spanNot, SpanNotQuery.DESERIALIZER, "span_not"); + op.add(Builder::spanOr, SpanOrQuery.DESERIALIZER, "span_or"); + op.add(Builder::spanTerm, NamedValue.deserializer(() -> SpanTermQuery.DESERIALIZER), "span_term"); + op.add(Builder::spanWithin, SpanWithinQuery.DESERIALIZER, "span_within"); + return new BuildFunctionDeserializer<>(op, Builder::build); } } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanTermQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanTermQuery.java new file mode 100644 index 000000000..dfef69786 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanTermQuery.java @@ -0,0 +1,111 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.SpanTermQuery +public final class SpanTermQuery extends QueryBase { + private final String value; + + // --------------------------------------------------------------------------------------------- + + protected SpanTermQuery(Builder builder) { + super(builder); + this.value = Objects.requireNonNull(builder.value, "value"); + + } + + /** + * API name: {@code value} + */ + public String value() { + return this.value; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + + generator.writeKey("value"); + generator.write(this.value); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link SpanTermQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + private String value; + + /** + * API name: {@code value} + */ + public Builder value(String value) { + this.value = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link SpanTermQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public SpanTermQuery build() { + + return new SpanTermQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for SpanTermQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, SpanTermQuery::setupSpanTermQueryDeserializer); + + protected static void setupSpanTermQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::value, JsonpDeserializer.stringDeserializer(), "value"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanWithinQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanWithinQuery.java index 2485d29bb..913214c61 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanWithinQuery.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/SpanWithinQuery.java @@ -30,30 +30,28 @@ import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; // typedef: _types.query_dsl.SpanWithinQuery public final class SpanWithinQuery extends QueryBase { - @Nullable private final SpanQuery big; - @Nullable private final SpanQuery little; // --------------------------------------------------------------------------------------------- protected SpanWithinQuery(Builder builder) { super(builder); - this.big = builder.big; - this.little = builder.little; + this.big = Objects.requireNonNull(builder.big, "big"); + this.little = Objects.requireNonNull(builder.little, "little"); } /** * API name: {@code big} */ - @Nullable public SpanQuery big() { return this.big; } @@ -61,25 +59,18 @@ public SpanQuery big() { /** * API name: {@code little} */ - @Nullable public SpanQuery little() { return this.little; } protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { super.toJsonpInternal(generator, mapper); - if (this.big != null) { - generator.writeKey("big"); - this.big.toJsonp(generator, mapper); + generator.writeKey("big"); + this.big.toJsonp(generator, mapper); - } - if (this.little != null) { - - generator.writeKey("little"); - this.little.toJsonp(generator, mapper); - - } + generator.writeKey("little"); + this.little.toJsonp(generator, mapper); } @@ -89,16 +80,14 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link SpanWithinQuery}. */ public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { - @Nullable private SpanQuery big; - @Nullable private SpanQuery little; /** * API name: {@code big} */ - public Builder big(@Nullable SpanQuery value) { + public Builder big(SpanQuery value) { this.big = value; return this; } @@ -113,7 +102,7 @@ public Builder big(Function> fn) { /** * API name: {@code little} */ - public Builder little(@Nullable SpanQuery value) { + public Builder little(SpanQuery value) { this.little = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermQuery.java new file mode 100644 index 000000000..e0ee01f6d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermQuery.java @@ -0,0 +1,143 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.TermQuery +public final class TermQuery extends QueryBase { + private final JsonValue value; + + @Nullable + private final Boolean caseInsensitive; + + // --------------------------------------------------------------------------------------------- + + protected TermQuery(Builder builder) { + super(builder); + this.value = Objects.requireNonNull(builder.value, "value"); + this.caseInsensitive = builder.caseInsensitive; + + } + + /** + * API name: {@code value} + */ + public JsonValue value() { + return this.value; + } + + /** + * API name: {@code case_insensitive} + */ + @Nullable + public Boolean caseInsensitive() { + return this.caseInsensitive; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + + generator.writeKey("value"); + generator.write(this.value); + + if (this.caseInsensitive != null) { + + generator.writeKey("case_insensitive"); + generator.write(this.caseInsensitive); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TermQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + private JsonValue value; + + @Nullable + private Boolean caseInsensitive; + + /** + * API name: {@code value} + */ + public Builder value(JsonValue value) { + this.value = value; + return this; + } + + /** + * API name: {@code case_insensitive} + */ + public Builder caseInsensitive(@Nullable Boolean value) { + this.caseInsensitive = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TermQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TermQuery build() { + + return new TermQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for TermQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, TermQuery::setupTermQueryDeserializer); + + protected static void setupTermQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::value, JsonpDeserializer.jsonValueDeserializer(), "value"); + op.add(Builder::caseInsensitive, JsonpDeserializer.booleanDeserializer(), "case_insensitive"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsSetQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsSetQuery.java new file mode 100644 index 000000000..043d6fe6c --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/TermsSetQuery.java @@ -0,0 +1,120 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.TermsSetQuery +public final class TermsSetQuery extends QueryBase { + @Nullable + private final String field; + + // --------------------------------------------------------------------------------------------- + + protected TermsSetQuery(Builder builder) { + super(builder); + this.field = builder.field; + + } + + /** + * Named of the field to query. + *

+ * API name: {@code field} + */ + @Nullable + public String field() { + return this.field; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + if (this.field != null) { + + generator.writeKey("field"); + generator.write(this.field); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TermsSetQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private String field; + + /** + * Named of the field to query. + *

+ * API name: {@code field} + */ + public Builder field(@Nullable String value) { + this.field = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link TermsSetQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TermsSetQuery build() { + + return new TermsSetQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for TermsSetQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, TermsSetQuery::setupTermsSetQueryDeserializer); + + protected static void setupTermsSetQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::field, JsonpDeserializer.stringDeserializer(), "field"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java new file mode 100644 index 000000000..3d67621da --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/_types/query_dsl/WildcardQuery.java @@ -0,0 +1,172 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch._types.query_dsl; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: _types.query_dsl.WildcardQuery +public final class WildcardQuery extends QueryBase { + @Nullable + private final Boolean caseInsensitive; + + @Nullable + private final String rewrite; + + private final String value; + + // --------------------------------------------------------------------------------------------- + + protected WildcardQuery(Builder builder) { + super(builder); + this.caseInsensitive = builder.caseInsensitive; + this.rewrite = builder.rewrite; + this.value = Objects.requireNonNull(builder.value, "value"); + + } + + /** + * API name: {@code case_insensitive} + */ + @Nullable + public Boolean caseInsensitive() { + return this.caseInsensitive; + } + + /** + * API name: {@code rewrite} + */ + @Nullable + public String rewrite() { + return this.rewrite; + } + + /** + * API name: {@code value} + */ + public String value() { + return this.value; + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + super.toJsonpInternal(generator, mapper); + if (this.caseInsensitive != null) { + + generator.writeKey("case_insensitive"); + generator.write(this.caseInsensitive); + + } + if (this.rewrite != null) { + + generator.writeKey("rewrite"); + generator.write(this.rewrite); + + } + + generator.writeKey("value"); + generator.write(this.value); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link WildcardQuery}. + */ + public static class Builder extends QueryBase.AbstractBuilder implements ObjectBuilder { + @Nullable + private Boolean caseInsensitive; + + @Nullable + private String rewrite; + + private String value; + + /** + * API name: {@code case_insensitive} + */ + public Builder caseInsensitive(@Nullable Boolean value) { + this.caseInsensitive = value; + return this; + } + + /** + * API name: {@code rewrite} + */ + public Builder rewrite(@Nullable String value) { + this.rewrite = value; + return this; + } + + /** + * API name: {@code value} + */ + public Builder value(String value) { + this.value = value; + return this; + } + + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link WildcardQuery}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public WildcardQuery build() { + + return new WildcardQuery(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for WildcardQuery + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, WildcardQuery::setupWildcardQueryDeserializer); + + protected static void setupWildcardQueryDeserializer(DelegatingDeserializer op) { + QueryBase.setupQueryBaseDeserializer(op); + op.add(Builder::caseInsensitive, JsonpDeserializer.booleanDeserializer(), "case_insensitive"); + op.add(Builder::rewrite, JsonpDeserializer.stringDeserializer(), "rewrite"); + op.add(Builder::value, JsonpDeserializer.stringDeserializer(), "value"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingAsyncClient.java index c4b2c60ef..454877794 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingAsyncClient.java @@ -25,14 +25,14 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.autoscaling.CapacityGetRequest; -import co.elastic.clients.elasticsearch.autoscaling.CapacityGetResponse; -import co.elastic.clients.elasticsearch.autoscaling.PolicyDeleteRequest; -import co.elastic.clients.elasticsearch.autoscaling.PolicyDeleteResponse; -import co.elastic.clients.elasticsearch.autoscaling.PolicyGetRequest; -import co.elastic.clients.elasticsearch.autoscaling.PolicyGetResponse; -import co.elastic.clients.elasticsearch.autoscaling.PolicyPutRequest; -import co.elastic.clients.elasticsearch.autoscaling.PolicyPutResponse; +import co.elastic.clients.elasticsearch.autoscaling.DeleteAutoscalingPolicyRequest; +import co.elastic.clients.elasticsearch.autoscaling.DeleteAutoscalingPolicyResponse; +import co.elastic.clients.elasticsearch.autoscaling.GetAutoscalingCapacityRequest; +import co.elastic.clients.elasticsearch.autoscaling.GetAutoscalingCapacityResponse; +import co.elastic.clients.elasticsearch.autoscaling.GetAutoscalingPolicyRequest; +import co.elastic.clients.elasticsearch.autoscaling.GetAutoscalingPolicyResponse; +import co.elastic.clients.elasticsearch.autoscaling.PutAutoscalingPolicyRequest; +import co.elastic.clients.elasticsearch.autoscaling.PutAutoscalingPolicyResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.concurrent.CompletableFuture; @@ -64,9 +64,10 @@ public AutoscalingAsyncClient(Transport transport, RequestOptions options) { * on elastic.co */ - public CompletableFuture deleteAutoscalingPolicy(PolicyDeleteRequest request) - throws IOException { - return this.transport.performRequestAsync(request, PolicyDeleteRequest.ENDPOINT, this.requestOptions); + public CompletableFuture deleteAutoscalingPolicy( + DeleteAutoscalingPolicyRequest request) throws IOException { + return this.transport.performRequestAsync(request, DeleteAutoscalingPolicyRequest.ENDPOINT, + this.requestOptions); } /** @@ -82,9 +83,10 @@ public CompletableFuture deleteAutoscalingPolicy(PolicyDel * on elastic.co */ - public final CompletableFuture deleteAutoscalingPolicy( - Function> fn) throws IOException { - return deleteAutoscalingPolicy(fn.apply(new PolicyDeleteRequest.Builder()).build()); + public final CompletableFuture deleteAutoscalingPolicy( + Function> fn) + throws IOException { + return deleteAutoscalingPolicy(fn.apply(new DeleteAutoscalingPolicyRequest.Builder()).build()); } // ----- Endpoint: autoscaling.get_autoscaling_capacity @@ -98,29 +100,9 @@ public final CompletableFuture deleteAutoscalingPolicy( * "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ - - public CompletableFuture getAutoscalingCapacity(CapacityGetRequest request) - throws IOException { - return this.transport.performRequestAsync(request, CapacityGetRequest.ENDPOINT, this.requestOptions); - } - - /** - * Gets the current autoscaling capacity based on the configured autoscaling - * policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not - * supported. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture getAutoscalingCapacity( - Function> fn) throws IOException { - return getAutoscalingCapacity(fn.apply(new CapacityGetRequest.Builder()).build()); + public CompletableFuture getAutoscalingCapacity() throws IOException { + return this.transport.performRequestAsync(GetAutoscalingCapacityRequest.INSTANCE, + GetAutoscalingCapacityRequest.ENDPOINT, this.requestOptions); } // ----- Endpoint: autoscaling.get_autoscaling_policy @@ -134,8 +116,9 @@ public final CompletableFuture getAutoscalingCapacity( * on elastic.co */ - public CompletableFuture getAutoscalingPolicy(PolicyGetRequest request) throws IOException { - return this.transport.performRequestAsync(request, PolicyGetRequest.ENDPOINT, this.requestOptions); + public CompletableFuture getAutoscalingPolicy(GetAutoscalingPolicyRequest request) + throws IOException { + return this.transport.performRequestAsync(request, GetAutoscalingPolicyRequest.ENDPOINT, this.requestOptions); } /** @@ -151,9 +134,10 @@ public CompletableFuture getAutoscalingPolicy(PolicyGetReques * on elastic.co */ - public final CompletableFuture getAutoscalingPolicy( - Function> fn) throws IOException { - return getAutoscalingPolicy(fn.apply(new PolicyGetRequest.Builder()).build()); + public final CompletableFuture getAutoscalingPolicy( + Function> fn) + throws IOException { + return getAutoscalingPolicy(fn.apply(new GetAutoscalingPolicyRequest.Builder()).build()); } // ----- Endpoint: autoscaling.put_autoscaling_policy @@ -167,8 +151,9 @@ public final CompletableFuture getAutoscalingPolicy( * on elastic.co */ - public CompletableFuture putAutoscalingPolicy(PolicyPutRequest request) throws IOException { - return this.transport.performRequestAsync(request, PolicyPutRequest.ENDPOINT, this.requestOptions); + public CompletableFuture putAutoscalingPolicy(PutAutoscalingPolicyRequest request) + throws IOException { + return this.transport.performRequestAsync(request, PutAutoscalingPolicyRequest.ENDPOINT, this.requestOptions); } /** @@ -184,9 +169,10 @@ public CompletableFuture putAutoscalingPolicy(PolicyPutReques * on elastic.co */ - public final CompletableFuture putAutoscalingPolicy( - Function> fn) throws IOException { - return putAutoscalingPolicy(fn.apply(new PolicyPutRequest.Builder()).build()); + public final CompletableFuture putAutoscalingPolicy( + Function> fn) + throws IOException { + return putAutoscalingPolicy(fn.apply(new PutAutoscalingPolicyRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingClient.java index bf45facc1..67ca71ad8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/autoscaling/AutoscalingClient.java @@ -25,14 +25,14 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.autoscaling.CapacityGetRequest; -import co.elastic.clients.elasticsearch.autoscaling.CapacityGetResponse; -import co.elastic.clients.elasticsearch.autoscaling.PolicyDeleteRequest; -import co.elastic.clients.elasticsearch.autoscaling.PolicyDeleteResponse; -import co.elastic.clients.elasticsearch.autoscaling.PolicyGetRequest; -import co.elastic.clients.elasticsearch.autoscaling.PolicyGetResponse; -import co.elastic.clients.elasticsearch.autoscaling.PolicyPutRequest; -import co.elastic.clients.elasticsearch.autoscaling.PolicyPutResponse; +import co.elastic.clients.elasticsearch.autoscaling.DeleteAutoscalingPolicyRequest; +import co.elastic.clients.elasticsearch.autoscaling.DeleteAutoscalingPolicyResponse; +import co.elastic.clients.elasticsearch.autoscaling.GetAutoscalingCapacityRequest; +import co.elastic.clients.elasticsearch.autoscaling.GetAutoscalingCapacityResponse; +import co.elastic.clients.elasticsearch.autoscaling.GetAutoscalingPolicyRequest; +import co.elastic.clients.elasticsearch.autoscaling.GetAutoscalingPolicyResponse; +import co.elastic.clients.elasticsearch.autoscaling.PutAutoscalingPolicyRequest; +import co.elastic.clients.elasticsearch.autoscaling.PutAutoscalingPolicyResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.function.Function; @@ -63,8 +63,9 @@ public AutoscalingClient(Transport transport, RequestOptions options) { * on elastic.co */ - public PolicyDeleteResponse deleteAutoscalingPolicy(PolicyDeleteRequest request) throws IOException { - return this.transport.performRequest(request, PolicyDeleteRequest.ENDPOINT, this.requestOptions); + public DeleteAutoscalingPolicyResponse deleteAutoscalingPolicy(DeleteAutoscalingPolicyRequest request) + throws IOException { + return this.transport.performRequest(request, DeleteAutoscalingPolicyRequest.ENDPOINT, this.requestOptions); } /** @@ -80,9 +81,10 @@ public PolicyDeleteResponse deleteAutoscalingPolicy(PolicyDeleteRequest request) * on elastic.co */ - public final PolicyDeleteResponse deleteAutoscalingPolicy( - Function> fn) throws IOException { - return deleteAutoscalingPolicy(fn.apply(new PolicyDeleteRequest.Builder()).build()); + public final DeleteAutoscalingPolicyResponse deleteAutoscalingPolicy( + Function> fn) + throws IOException { + return deleteAutoscalingPolicy(fn.apply(new DeleteAutoscalingPolicyRequest.Builder()).build()); } // ----- Endpoint: autoscaling.get_autoscaling_capacity @@ -96,28 +98,9 @@ public final PolicyDeleteResponse deleteAutoscalingPolicy( * "https://www.elastic.co/guide/en/elasticsearch/reference/current/autoscaling-get-autoscaling-capacity.html">Documentation * on elastic.co */ - - public CapacityGetResponse getAutoscalingCapacity(CapacityGetRequest request) throws IOException { - return this.transport.performRequest(request, CapacityGetRequest.ENDPOINT, this.requestOptions); - } - - /** - * Gets the current autoscaling capacity based on the configured autoscaling - * policy. Designed for indirect use by ECE/ESS and ECK. Direct use is not - * supported. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final CapacityGetResponse getAutoscalingCapacity( - Function> fn) throws IOException { - return getAutoscalingCapacity(fn.apply(new CapacityGetRequest.Builder()).build()); + public GetAutoscalingCapacityResponse getAutoscalingCapacity() throws IOException { + return this.transport.performRequest(GetAutoscalingCapacityRequest.INSTANCE, + GetAutoscalingCapacityRequest.ENDPOINT, this.requestOptions); } // ----- Endpoint: autoscaling.get_autoscaling_policy @@ -131,8 +114,8 @@ public final CapacityGetResponse getAutoscalingCapacity( * on elastic.co */ - public PolicyGetResponse getAutoscalingPolicy(PolicyGetRequest request) throws IOException { - return this.transport.performRequest(request, PolicyGetRequest.ENDPOINT, this.requestOptions); + public GetAutoscalingPolicyResponse getAutoscalingPolicy(GetAutoscalingPolicyRequest request) throws IOException { + return this.transport.performRequest(request, GetAutoscalingPolicyRequest.ENDPOINT, this.requestOptions); } /** @@ -148,9 +131,10 @@ public PolicyGetResponse getAutoscalingPolicy(PolicyGetRequest request) throws I * on elastic.co */ - public final PolicyGetResponse getAutoscalingPolicy( - Function> fn) throws IOException { - return getAutoscalingPolicy(fn.apply(new PolicyGetRequest.Builder()).build()); + public final GetAutoscalingPolicyResponse getAutoscalingPolicy( + Function> fn) + throws IOException { + return getAutoscalingPolicy(fn.apply(new GetAutoscalingPolicyRequest.Builder()).build()); } // ----- Endpoint: autoscaling.put_autoscaling_policy @@ -164,8 +148,8 @@ public final PolicyGetResponse getAutoscalingPolicy( * on elastic.co */ - public PolicyPutResponse putAutoscalingPolicy(PolicyPutRequest request) throws IOException { - return this.transport.performRequest(request, PolicyPutRequest.ENDPOINT, this.requestOptions); + public PutAutoscalingPolicyResponse putAutoscalingPolicy(PutAutoscalingPolicyRequest request) throws IOException { + return this.transport.performRequest(request, PutAutoscalingPolicyRequest.ENDPOINT, this.requestOptions); } /** @@ -181,9 +165,10 @@ public PolicyPutResponse putAutoscalingPolicy(PolicyPutRequest request) throws I * on elastic.co */ - public final PolicyPutResponse putAutoscalingPolicy( - Function> fn) throws IOException { - return putAutoscalingPolicy(fn.apply(new PolicyPutRequest.Builder()).build()); + public final PutAutoscalingPolicyResponse putAutoscalingPolicy( + Function> fn) + throws IOException { + return putAutoscalingPolicy(fn.apply(new PutAutoscalingPolicyRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatAsyncClient.java index 683b5499d..766fda2f9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatAsyncClient.java @@ -31,10 +31,6 @@ import co.elastic.clients.elasticsearch.cat.AllocationResponse; import co.elastic.clients.elasticsearch.cat.CountRequest; import co.elastic.clients.elasticsearch.cat.CountResponse; -import co.elastic.clients.elasticsearch.cat.DataFrameAnalyticsRequest; -import co.elastic.clients.elasticsearch.cat.DataFrameAnalyticsResponse; -import co.elastic.clients.elasticsearch.cat.DatafeedsRequest; -import co.elastic.clients.elasticsearch.cat.DatafeedsResponse; import co.elastic.clients.elasticsearch.cat.FielddataRequest; import co.elastic.clients.elasticsearch.cat.FielddataResponse; import co.elastic.clients.elasticsearch.cat.HealthRequest; @@ -43,12 +39,18 @@ import co.elastic.clients.elasticsearch.cat.HelpResponse; import co.elastic.clients.elasticsearch.cat.IndicesRequest; import co.elastic.clients.elasticsearch.cat.IndicesResponse; -import co.elastic.clients.elasticsearch.cat.JobsRequest; -import co.elastic.clients.elasticsearch.cat.JobsResponse; import co.elastic.clients.elasticsearch.cat.MasterRequest; import co.elastic.clients.elasticsearch.cat.MasterResponse; -import co.elastic.clients.elasticsearch.cat.NodeAttributesRequest; -import co.elastic.clients.elasticsearch.cat.NodeAttributesResponse; +import co.elastic.clients.elasticsearch.cat.MlDataFrameAnalyticsRequest; +import co.elastic.clients.elasticsearch.cat.MlDataFrameAnalyticsResponse; +import co.elastic.clients.elasticsearch.cat.MlDatafeedsRequest; +import co.elastic.clients.elasticsearch.cat.MlDatafeedsResponse; +import co.elastic.clients.elasticsearch.cat.MlJobsRequest; +import co.elastic.clients.elasticsearch.cat.MlJobsResponse; +import co.elastic.clients.elasticsearch.cat.MlTrainedModelsRequest; +import co.elastic.clients.elasticsearch.cat.MlTrainedModelsResponse; +import co.elastic.clients.elasticsearch.cat.NodeattrsRequest; +import co.elastic.clients.elasticsearch.cat.NodeattrsResponse; import co.elastic.clients.elasticsearch.cat.NodesRequest; import co.elastic.clients.elasticsearch.cat.NodesResponse; import co.elastic.clients.elasticsearch.cat.PendingTasksRequest; @@ -71,8 +73,6 @@ import co.elastic.clients.elasticsearch.cat.TemplatesResponse; import co.elastic.clients.elasticsearch.cat.ThreadPoolRequest; import co.elastic.clients.elasticsearch.cat.ThreadPoolResponse; -import co.elastic.clients.elasticsearch.cat.TrainedModelsRequest; -import co.elastic.clients.elasticsearch.cat.TrainedModelsResponse; import co.elastic.clients.elasticsearch.cat.TransformsRequest; import co.elastic.clients.elasticsearch.cat.TransformsResponse; import co.elastic.clients.util.ObjectBuilder; @@ -327,9 +327,9 @@ public CompletableFuture master() throws IOException { * on elastic.co */ - public CompletableFuture mlDataFrameAnalytics(DataFrameAnalyticsRequest request) + public CompletableFuture mlDataFrameAnalytics(MlDataFrameAnalyticsRequest request) throws IOException { - return this.transport.performRequestAsync(request, DataFrameAnalyticsRequest.ENDPOINT, this.requestOptions); + return this.transport.performRequestAsync(request, MlDataFrameAnalyticsRequest.ENDPOINT, this.requestOptions); } /** @@ -344,10 +344,10 @@ public CompletableFuture mlDataFrameAnalytics(DataFr * on elastic.co */ - public final CompletableFuture mlDataFrameAnalytics( - Function> fn) + public final CompletableFuture mlDataFrameAnalytics( + Function> fn) throws IOException { - return mlDataFrameAnalytics(fn.apply(new DataFrameAnalyticsRequest.Builder()).build()); + return mlDataFrameAnalytics(fn.apply(new MlDataFrameAnalyticsRequest.Builder()).build()); } // ----- Endpoint: cat.ml_datafeeds @@ -360,8 +360,8 @@ public final CompletableFuture mlDataFrameAnalytics( * on elastic.co */ - public CompletableFuture mlDatafeeds(DatafeedsRequest request) throws IOException { - return this.transport.performRequestAsync(request, DatafeedsRequest.ENDPOINT, this.requestOptions); + public CompletableFuture mlDatafeeds(MlDatafeedsRequest request) throws IOException { + return this.transport.performRequestAsync(request, MlDatafeedsRequest.ENDPOINT, this.requestOptions); } /** @@ -376,9 +376,9 @@ public CompletableFuture mlDatafeeds(DatafeedsRequest request * on elastic.co */ - public final CompletableFuture mlDatafeeds( - Function> fn) throws IOException { - return mlDatafeeds(fn.apply(new DatafeedsRequest.Builder()).build()); + public final CompletableFuture mlDatafeeds( + Function> fn) throws IOException { + return mlDatafeeds(fn.apply(new MlDatafeedsRequest.Builder()).build()); } // ----- Endpoint: cat.ml_jobs @@ -391,8 +391,8 @@ public final CompletableFuture mlDatafeeds( * on elastic.co */ - public CompletableFuture mlJobs(JobsRequest request) throws IOException { - return this.transport.performRequestAsync(request, JobsRequest.ENDPOINT, this.requestOptions); + public CompletableFuture mlJobs(MlJobsRequest request) throws IOException { + return this.transport.performRequestAsync(request, MlJobsRequest.ENDPOINT, this.requestOptions); } /** @@ -407,9 +407,9 @@ public CompletableFuture mlJobs(JobsRequest request) throws IOExce * on elastic.co */ - public final CompletableFuture mlJobs(Function> fn) - throws IOException { - return mlJobs(fn.apply(new JobsRequest.Builder()).build()); + public final CompletableFuture mlJobs( + Function> fn) throws IOException { + return mlJobs(fn.apply(new MlJobsRequest.Builder()).build()); } // ----- Endpoint: cat.ml_trained_models @@ -422,8 +422,9 @@ public final CompletableFuture mlJobs(Function */ - public CompletableFuture mlTrainedModels(TrainedModelsRequest request) throws IOException { - return this.transport.performRequestAsync(request, TrainedModelsRequest.ENDPOINT, this.requestOptions); + public CompletableFuture mlTrainedModels(MlTrainedModelsRequest request) + throws IOException { + return this.transport.performRequestAsync(request, MlTrainedModelsRequest.ENDPOINT, this.requestOptions); } /** @@ -438,9 +439,9 @@ public CompletableFuture mlTrainedModels(TrainedModelsReq * on elastic.co */ - public final CompletableFuture mlTrainedModels( - Function> fn) throws IOException { - return mlTrainedModels(fn.apply(new TrainedModelsRequest.Builder()).build()); + public final CompletableFuture mlTrainedModels( + Function> fn) throws IOException { + return mlTrainedModels(fn.apply(new MlTrainedModelsRequest.Builder()).build()); } // ----- Endpoint: cat.nodeattrs @@ -452,8 +453,8 @@ public final CompletableFuture mlTrainedModels( * "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html">Documentation * on elastic.co */ - public CompletableFuture nodeattrs() throws IOException { - return this.transport.performRequestAsync(NodeAttributesRequest.INSTANCE, NodeAttributesRequest.ENDPOINT, + public CompletableFuture nodeattrs() throws IOException { + return this.transport.performRequestAsync(NodeattrsRequest.INSTANCE, NodeattrsRequest.ENDPOINT, this.requestOptions); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatClient.java index 8a89bfe85..0b03f6d6e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cat/CatClient.java @@ -31,10 +31,6 @@ import co.elastic.clients.elasticsearch.cat.AllocationResponse; import co.elastic.clients.elasticsearch.cat.CountRequest; import co.elastic.clients.elasticsearch.cat.CountResponse; -import co.elastic.clients.elasticsearch.cat.DataFrameAnalyticsRequest; -import co.elastic.clients.elasticsearch.cat.DataFrameAnalyticsResponse; -import co.elastic.clients.elasticsearch.cat.DatafeedsRequest; -import co.elastic.clients.elasticsearch.cat.DatafeedsResponse; import co.elastic.clients.elasticsearch.cat.FielddataRequest; import co.elastic.clients.elasticsearch.cat.FielddataResponse; import co.elastic.clients.elasticsearch.cat.HealthRequest; @@ -43,12 +39,18 @@ import co.elastic.clients.elasticsearch.cat.HelpResponse; import co.elastic.clients.elasticsearch.cat.IndicesRequest; import co.elastic.clients.elasticsearch.cat.IndicesResponse; -import co.elastic.clients.elasticsearch.cat.JobsRequest; -import co.elastic.clients.elasticsearch.cat.JobsResponse; import co.elastic.clients.elasticsearch.cat.MasterRequest; import co.elastic.clients.elasticsearch.cat.MasterResponse; -import co.elastic.clients.elasticsearch.cat.NodeAttributesRequest; -import co.elastic.clients.elasticsearch.cat.NodeAttributesResponse; +import co.elastic.clients.elasticsearch.cat.MlDataFrameAnalyticsRequest; +import co.elastic.clients.elasticsearch.cat.MlDataFrameAnalyticsResponse; +import co.elastic.clients.elasticsearch.cat.MlDatafeedsRequest; +import co.elastic.clients.elasticsearch.cat.MlDatafeedsResponse; +import co.elastic.clients.elasticsearch.cat.MlJobsRequest; +import co.elastic.clients.elasticsearch.cat.MlJobsResponse; +import co.elastic.clients.elasticsearch.cat.MlTrainedModelsRequest; +import co.elastic.clients.elasticsearch.cat.MlTrainedModelsResponse; +import co.elastic.clients.elasticsearch.cat.NodeattrsRequest; +import co.elastic.clients.elasticsearch.cat.NodeattrsResponse; import co.elastic.clients.elasticsearch.cat.NodesRequest; import co.elastic.clients.elasticsearch.cat.NodesResponse; import co.elastic.clients.elasticsearch.cat.PendingTasksRequest; @@ -71,8 +73,6 @@ import co.elastic.clients.elasticsearch.cat.TemplatesResponse; import co.elastic.clients.elasticsearch.cat.ThreadPoolRequest; import co.elastic.clients.elasticsearch.cat.ThreadPoolResponse; -import co.elastic.clients.elasticsearch.cat.TrainedModelsRequest; -import co.elastic.clients.elasticsearch.cat.TrainedModelsResponse; import co.elastic.clients.elasticsearch.cat.TransformsRequest; import co.elastic.clients.elasticsearch.cat.TransformsResponse; import co.elastic.clients.util.ObjectBuilder; @@ -326,8 +326,8 @@ public MasterResponse master() throws IOException { * on elastic.co */ - public DataFrameAnalyticsResponse mlDataFrameAnalytics(DataFrameAnalyticsRequest request) throws IOException { - return this.transport.performRequest(request, DataFrameAnalyticsRequest.ENDPOINT, this.requestOptions); + public MlDataFrameAnalyticsResponse mlDataFrameAnalytics(MlDataFrameAnalyticsRequest request) throws IOException { + return this.transport.performRequest(request, MlDataFrameAnalyticsRequest.ENDPOINT, this.requestOptions); } /** @@ -342,10 +342,10 @@ public DataFrameAnalyticsResponse mlDataFrameAnalytics(DataFrameAnalyticsRequest * on elastic.co */ - public final DataFrameAnalyticsResponse mlDataFrameAnalytics( - Function> fn) + public final MlDataFrameAnalyticsResponse mlDataFrameAnalytics( + Function> fn) throws IOException { - return mlDataFrameAnalytics(fn.apply(new DataFrameAnalyticsRequest.Builder()).build()); + return mlDataFrameAnalytics(fn.apply(new MlDataFrameAnalyticsRequest.Builder()).build()); } // ----- Endpoint: cat.ml_datafeeds @@ -358,8 +358,8 @@ public final DataFrameAnalyticsResponse mlDataFrameAnalytics( * on elastic.co */ - public DatafeedsResponse mlDatafeeds(DatafeedsRequest request) throws IOException { - return this.transport.performRequest(request, DatafeedsRequest.ENDPOINT, this.requestOptions); + public MlDatafeedsResponse mlDatafeeds(MlDatafeedsRequest request) throws IOException { + return this.transport.performRequest(request, MlDatafeedsRequest.ENDPOINT, this.requestOptions); } /** @@ -374,9 +374,9 @@ public DatafeedsResponse mlDatafeeds(DatafeedsRequest request) throws IOExceptio * on elastic.co */ - public final DatafeedsResponse mlDatafeeds(Function> fn) - throws IOException { - return mlDatafeeds(fn.apply(new DatafeedsRequest.Builder()).build()); + public final MlDatafeedsResponse mlDatafeeds( + Function> fn) throws IOException { + return mlDatafeeds(fn.apply(new MlDatafeedsRequest.Builder()).build()); } // ----- Endpoint: cat.ml_jobs @@ -389,8 +389,8 @@ public final DatafeedsResponse mlDatafeeds(Function */ - public JobsResponse mlJobs(JobsRequest request) throws IOException { - return this.transport.performRequest(request, JobsRequest.ENDPOINT, this.requestOptions); + public MlJobsResponse mlJobs(MlJobsRequest request) throws IOException { + return this.transport.performRequest(request, MlJobsRequest.ENDPOINT, this.requestOptions); } /** @@ -405,8 +405,9 @@ public JobsResponse mlJobs(JobsRequest request) throws IOException { * on elastic.co */ - public final JobsResponse mlJobs(Function> fn) throws IOException { - return mlJobs(fn.apply(new JobsRequest.Builder()).build()); + public final MlJobsResponse mlJobs(Function> fn) + throws IOException { + return mlJobs(fn.apply(new MlJobsRequest.Builder()).build()); } // ----- Endpoint: cat.ml_trained_models @@ -419,8 +420,8 @@ public final JobsResponse mlJobs(Function */ - public TrainedModelsResponse mlTrainedModels(TrainedModelsRequest request) throws IOException { - return this.transport.performRequest(request, TrainedModelsRequest.ENDPOINT, this.requestOptions); + public MlTrainedModelsResponse mlTrainedModels(MlTrainedModelsRequest request) throws IOException { + return this.transport.performRequest(request, MlTrainedModelsRequest.ENDPOINT, this.requestOptions); } /** @@ -435,9 +436,9 @@ public TrainedModelsResponse mlTrainedModels(TrainedModelsRequest request) throw * on elastic.co */ - public final TrainedModelsResponse mlTrainedModels( - Function> fn) throws IOException { - return mlTrainedModels(fn.apply(new TrainedModelsRequest.Builder()).build()); + public final MlTrainedModelsResponse mlTrainedModels( + Function> fn) throws IOException { + return mlTrainedModels(fn.apply(new MlTrainedModelsRequest.Builder()).build()); } // ----- Endpoint: cat.nodeattrs @@ -449,9 +450,8 @@ public final TrainedModelsResponse mlTrainedModels( * "https://www.elastic.co/guide/en/elasticsearch/reference/master/cat-nodeattrs.html">Documentation * on elastic.co */ - public NodeAttributesResponse nodeattrs() throws IOException { - return this.transport.performRequest(NodeAttributesRequest.INSTANCE, NodeAttributesRequest.ENDPOINT, - this.requestOptions); + public NodeattrsResponse nodeattrs() throws IOException { + return this.transport.performRequest(NodeattrsRequest.INSTANCE, NodeattrsRequest.ENDPOINT, this.requestOptions); } // ----- Endpoint: cat.nodes diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrAsyncClient.java index 8d983d374..057ae2a60 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrAsyncClient.java @@ -25,32 +25,32 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.ccr.CreateFollowIndexRequest; -import co.elastic.clients.elasticsearch.ccr.CreateFollowIndexResponse; import co.elastic.clients.elasticsearch.ccr.DeleteAutoFollowPatternRequest; import co.elastic.clients.elasticsearch.ccr.DeleteAutoFollowPatternResponse; -import co.elastic.clients.elasticsearch.ccr.FollowIndexStatsRequest; -import co.elastic.clients.elasticsearch.ccr.FollowIndexStatsResponse; import co.elastic.clients.elasticsearch.ccr.FollowInfoRequest; import co.elastic.clients.elasticsearch.ccr.FollowInfoResponse; -import co.elastic.clients.elasticsearch.ccr.ForgetFollowerIndexRequest; -import co.elastic.clients.elasticsearch.ccr.ForgetFollowerIndexResponse; +import co.elastic.clients.elasticsearch.ccr.FollowRequest; +import co.elastic.clients.elasticsearch.ccr.FollowResponse; +import co.elastic.clients.elasticsearch.ccr.FollowStatsRequest; +import co.elastic.clients.elasticsearch.ccr.FollowStatsResponse; +import co.elastic.clients.elasticsearch.ccr.ForgetFollowerRequest; +import co.elastic.clients.elasticsearch.ccr.ForgetFollowerResponse; import co.elastic.clients.elasticsearch.ccr.GetAutoFollowPatternRequest; import co.elastic.clients.elasticsearch.ccr.GetAutoFollowPatternResponse; import co.elastic.clients.elasticsearch.ccr.PauseAutoFollowPatternRequest; import co.elastic.clients.elasticsearch.ccr.PauseAutoFollowPatternResponse; -import co.elastic.clients.elasticsearch.ccr.PauseFollowIndexRequest; -import co.elastic.clients.elasticsearch.ccr.PauseFollowIndexResponse; +import co.elastic.clients.elasticsearch.ccr.PauseFollowRequest; +import co.elastic.clients.elasticsearch.ccr.PauseFollowResponse; import co.elastic.clients.elasticsearch.ccr.PutAutoFollowPatternRequest; import co.elastic.clients.elasticsearch.ccr.PutAutoFollowPatternResponse; import co.elastic.clients.elasticsearch.ccr.ResumeAutoFollowPatternRequest; import co.elastic.clients.elasticsearch.ccr.ResumeAutoFollowPatternResponse; -import co.elastic.clients.elasticsearch.ccr.ResumeFollowIndexRequest; -import co.elastic.clients.elasticsearch.ccr.ResumeFollowIndexResponse; +import co.elastic.clients.elasticsearch.ccr.ResumeFollowRequest; +import co.elastic.clients.elasticsearch.ccr.ResumeFollowResponse; import co.elastic.clients.elasticsearch.ccr.StatsRequest; import co.elastic.clients.elasticsearch.ccr.StatsResponse; -import co.elastic.clients.elasticsearch.ccr.UnfollowIndexRequest; -import co.elastic.clients.elasticsearch.ccr.UnfollowIndexResponse; +import co.elastic.clients.elasticsearch.ccr.UnfollowRequest; +import co.elastic.clients.elasticsearch.ccr.UnfollowResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.concurrent.CompletableFuture; @@ -116,8 +116,8 @@ public final CompletableFuture deleteAutoFollow * on elastic.co */ - public CompletableFuture follow(CreateFollowIndexRequest request) throws IOException { - return this.transport.performRequestAsync(request, CreateFollowIndexRequest.ENDPOINT, this.requestOptions); + public CompletableFuture follow(FollowRequest request) throws IOException { + return this.transport.performRequestAsync(request, FollowRequest.ENDPOINT, this.requestOptions); } /** @@ -133,9 +133,9 @@ public CompletableFuture follow(CreateFollowIndexRequ * on elastic.co */ - public final CompletableFuture follow( - Function> fn) throws IOException { - return follow(fn.apply(new CreateFollowIndexRequest.Builder()).build()); + public final CompletableFuture follow( + Function> fn) throws IOException { + return follow(fn.apply(new FollowRequest.Builder()).build()); } // ----- Endpoint: ccr.follow_info @@ -182,8 +182,8 @@ public final CompletableFuture followInfo( * on elastic.co */ - public CompletableFuture followStats(FollowIndexStatsRequest request) throws IOException { - return this.transport.performRequestAsync(request, FollowIndexStatsRequest.ENDPOINT, this.requestOptions); + public CompletableFuture followStats(FollowStatsRequest request) throws IOException { + return this.transport.performRequestAsync(request, FollowStatsRequest.ENDPOINT, this.requestOptions); } /** @@ -199,9 +199,9 @@ public CompletableFuture followStats(FollowIndexStatsR * on elastic.co */ - public final CompletableFuture followStats( - Function> fn) throws IOException { - return followStats(fn.apply(new FollowIndexStatsRequest.Builder()).build()); + public final CompletableFuture followStats( + Function> fn) throws IOException { + return followStats(fn.apply(new FollowStatsRequest.Builder()).build()); } // ----- Endpoint: ccr.forget_follower @@ -214,9 +214,8 @@ public final CompletableFuture followStats( * on elastic.co */ - public CompletableFuture forgetFollower(ForgetFollowerIndexRequest request) - throws IOException { - return this.transport.performRequestAsync(request, ForgetFollowerIndexRequest.ENDPOINT, this.requestOptions); + public CompletableFuture forgetFollower(ForgetFollowerRequest request) throws IOException { + return this.transport.performRequestAsync(request, ForgetFollowerRequest.ENDPOINT, this.requestOptions); } /** @@ -231,10 +230,9 @@ public CompletableFuture forgetFollower(ForgetFollo * on elastic.co */ - public final CompletableFuture forgetFollower( - Function> fn) - throws IOException { - return forgetFollower(fn.apply(new ForgetFollowerIndexRequest.Builder()).build()); + public final CompletableFuture forgetFollower( + Function> fn) throws IOException { + return forgetFollower(fn.apply(new ForgetFollowerRequest.Builder()).build()); } // ----- Endpoint: ccr.get_auto_follow_pattern @@ -316,8 +314,8 @@ public final CompletableFuture pauseAutoFollowPa * on elastic.co */ - public CompletableFuture pauseFollow(PauseFollowIndexRequest request) throws IOException { - return this.transport.performRequestAsync(request, PauseFollowIndexRequest.ENDPOINT, this.requestOptions); + public CompletableFuture pauseFollow(PauseFollowRequest request) throws IOException { + return this.transport.performRequestAsync(request, PauseFollowRequest.ENDPOINT, this.requestOptions); } /** @@ -333,9 +331,9 @@ public CompletableFuture pauseFollow(PauseFollowIndexR * on elastic.co */ - public final CompletableFuture pauseFollow( - Function> fn) throws IOException { - return pauseFollow(fn.apply(new PauseFollowIndexRequest.Builder()).build()); + public final CompletableFuture pauseFollow( + Function> fn) throws IOException { + return pauseFollow(fn.apply(new PauseFollowRequest.Builder()).build()); } // ----- Endpoint: ccr.put_auto_follow_pattern @@ -419,9 +417,8 @@ public final CompletableFuture resumeAutoFollow * on elastic.co */ - public CompletableFuture resumeFollow(ResumeFollowIndexRequest request) - throws IOException { - return this.transport.performRequestAsync(request, ResumeFollowIndexRequest.ENDPOINT, this.requestOptions); + public CompletableFuture resumeFollow(ResumeFollowRequest request) throws IOException { + return this.transport.performRequestAsync(request, ResumeFollowRequest.ENDPOINT, this.requestOptions); } /** @@ -436,9 +433,9 @@ public CompletableFuture resumeFollow(ResumeFollowInd * on elastic.co */ - public final CompletableFuture resumeFollow( - Function> fn) throws IOException { - return resumeFollow(fn.apply(new ResumeFollowIndexRequest.Builder()).build()); + public final CompletableFuture resumeFollow( + Function> fn) throws IOException { + return resumeFollow(fn.apply(new ResumeFollowRequest.Builder()).build()); } // ----- Endpoint: ccr.stats @@ -465,8 +462,8 @@ public CompletableFuture stats() throws IOException { * on elastic.co */ - public CompletableFuture unfollow(UnfollowIndexRequest request) throws IOException { - return this.transport.performRequestAsync(request, UnfollowIndexRequest.ENDPOINT, this.requestOptions); + public CompletableFuture unfollow(UnfollowRequest request) throws IOException { + return this.transport.performRequestAsync(request, UnfollowRequest.ENDPOINT, this.requestOptions); } /** @@ -482,9 +479,9 @@ public CompletableFuture unfollow(UnfollowIndexRequest re * on elastic.co */ - public final CompletableFuture unfollow( - Function> fn) throws IOException { - return unfollow(fn.apply(new UnfollowIndexRequest.Builder()).build()); + public final CompletableFuture unfollow( + Function> fn) throws IOException { + return unfollow(fn.apply(new UnfollowRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrClient.java index b48018bd5..921d28951 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ccr/CcrClient.java @@ -25,32 +25,32 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.ccr.CreateFollowIndexRequest; -import co.elastic.clients.elasticsearch.ccr.CreateFollowIndexResponse; import co.elastic.clients.elasticsearch.ccr.DeleteAutoFollowPatternRequest; import co.elastic.clients.elasticsearch.ccr.DeleteAutoFollowPatternResponse; -import co.elastic.clients.elasticsearch.ccr.FollowIndexStatsRequest; -import co.elastic.clients.elasticsearch.ccr.FollowIndexStatsResponse; import co.elastic.clients.elasticsearch.ccr.FollowInfoRequest; import co.elastic.clients.elasticsearch.ccr.FollowInfoResponse; -import co.elastic.clients.elasticsearch.ccr.ForgetFollowerIndexRequest; -import co.elastic.clients.elasticsearch.ccr.ForgetFollowerIndexResponse; +import co.elastic.clients.elasticsearch.ccr.FollowRequest; +import co.elastic.clients.elasticsearch.ccr.FollowResponse; +import co.elastic.clients.elasticsearch.ccr.FollowStatsRequest; +import co.elastic.clients.elasticsearch.ccr.FollowStatsResponse; +import co.elastic.clients.elasticsearch.ccr.ForgetFollowerRequest; +import co.elastic.clients.elasticsearch.ccr.ForgetFollowerResponse; import co.elastic.clients.elasticsearch.ccr.GetAutoFollowPatternRequest; import co.elastic.clients.elasticsearch.ccr.GetAutoFollowPatternResponse; import co.elastic.clients.elasticsearch.ccr.PauseAutoFollowPatternRequest; import co.elastic.clients.elasticsearch.ccr.PauseAutoFollowPatternResponse; -import co.elastic.clients.elasticsearch.ccr.PauseFollowIndexRequest; -import co.elastic.clients.elasticsearch.ccr.PauseFollowIndexResponse; +import co.elastic.clients.elasticsearch.ccr.PauseFollowRequest; +import co.elastic.clients.elasticsearch.ccr.PauseFollowResponse; import co.elastic.clients.elasticsearch.ccr.PutAutoFollowPatternRequest; import co.elastic.clients.elasticsearch.ccr.PutAutoFollowPatternResponse; import co.elastic.clients.elasticsearch.ccr.ResumeAutoFollowPatternRequest; import co.elastic.clients.elasticsearch.ccr.ResumeAutoFollowPatternResponse; -import co.elastic.clients.elasticsearch.ccr.ResumeFollowIndexRequest; -import co.elastic.clients.elasticsearch.ccr.ResumeFollowIndexResponse; +import co.elastic.clients.elasticsearch.ccr.ResumeFollowRequest; +import co.elastic.clients.elasticsearch.ccr.ResumeFollowResponse; import co.elastic.clients.elasticsearch.ccr.StatsRequest; import co.elastic.clients.elasticsearch.ccr.StatsResponse; -import co.elastic.clients.elasticsearch.ccr.UnfollowIndexRequest; -import co.elastic.clients.elasticsearch.ccr.UnfollowIndexResponse; +import co.elastic.clients.elasticsearch.ccr.UnfollowRequest; +import co.elastic.clients.elasticsearch.ccr.UnfollowResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.function.Function; @@ -114,8 +114,8 @@ public final DeleteAutoFollowPatternResponse deleteAutoFollowPattern( * on elastic.co */ - public CreateFollowIndexResponse follow(CreateFollowIndexRequest request) throws IOException { - return this.transport.performRequest(request, CreateFollowIndexRequest.ENDPOINT, this.requestOptions); + public FollowResponse follow(FollowRequest request) throws IOException { + return this.transport.performRequest(request, FollowRequest.ENDPOINT, this.requestOptions); } /** @@ -131,9 +131,9 @@ public CreateFollowIndexResponse follow(CreateFollowIndexRequest request) throws * on elastic.co */ - public final CreateFollowIndexResponse follow( - Function> fn) throws IOException { - return follow(fn.apply(new CreateFollowIndexRequest.Builder()).build()); + public final FollowResponse follow(Function> fn) + throws IOException { + return follow(fn.apply(new FollowRequest.Builder()).build()); } // ----- Endpoint: ccr.follow_info @@ -180,8 +180,8 @@ public final FollowInfoResponse followInfo(Function */ - public FollowIndexStatsResponse followStats(FollowIndexStatsRequest request) throws IOException { - return this.transport.performRequest(request, FollowIndexStatsRequest.ENDPOINT, this.requestOptions); + public FollowStatsResponse followStats(FollowStatsRequest request) throws IOException { + return this.transport.performRequest(request, FollowStatsRequest.ENDPOINT, this.requestOptions); } /** @@ -197,9 +197,9 @@ public FollowIndexStatsResponse followStats(FollowIndexStatsRequest request) thr * on elastic.co */ - public final FollowIndexStatsResponse followStats( - Function> fn) throws IOException { - return followStats(fn.apply(new FollowIndexStatsRequest.Builder()).build()); + public final FollowStatsResponse followStats( + Function> fn) throws IOException { + return followStats(fn.apply(new FollowStatsRequest.Builder()).build()); } // ----- Endpoint: ccr.forget_follower @@ -212,8 +212,8 @@ public final FollowIndexStatsResponse followStats( * on elastic.co */ - public ForgetFollowerIndexResponse forgetFollower(ForgetFollowerIndexRequest request) throws IOException { - return this.transport.performRequest(request, ForgetFollowerIndexRequest.ENDPOINT, this.requestOptions); + public ForgetFollowerResponse forgetFollower(ForgetFollowerRequest request) throws IOException { + return this.transport.performRequest(request, ForgetFollowerRequest.ENDPOINT, this.requestOptions); } /** @@ -228,10 +228,9 @@ public ForgetFollowerIndexResponse forgetFollower(ForgetFollowerIndexRequest req * on elastic.co */ - public final ForgetFollowerIndexResponse forgetFollower( - Function> fn) - throws IOException { - return forgetFollower(fn.apply(new ForgetFollowerIndexRequest.Builder()).build()); + public final ForgetFollowerResponse forgetFollower( + Function> fn) throws IOException { + return forgetFollower(fn.apply(new ForgetFollowerRequest.Builder()).build()); } // ----- Endpoint: ccr.get_auto_follow_pattern @@ -312,8 +311,8 @@ public final PauseAutoFollowPatternResponse pauseAutoFollowPattern( * on elastic.co */ - public PauseFollowIndexResponse pauseFollow(PauseFollowIndexRequest request) throws IOException { - return this.transport.performRequest(request, PauseFollowIndexRequest.ENDPOINT, this.requestOptions); + public PauseFollowResponse pauseFollow(PauseFollowRequest request) throws IOException { + return this.transport.performRequest(request, PauseFollowRequest.ENDPOINT, this.requestOptions); } /** @@ -329,9 +328,9 @@ public PauseFollowIndexResponse pauseFollow(PauseFollowIndexRequest request) thr * on elastic.co */ - public final PauseFollowIndexResponse pauseFollow( - Function> fn) throws IOException { - return pauseFollow(fn.apply(new PauseFollowIndexRequest.Builder()).build()); + public final PauseFollowResponse pauseFollow( + Function> fn) throws IOException { + return pauseFollow(fn.apply(new PauseFollowRequest.Builder()).build()); } // ----- Endpoint: ccr.put_auto_follow_pattern @@ -413,8 +412,8 @@ public final ResumeAutoFollowPatternResponse resumeAutoFollowPattern( * on elastic.co */ - public ResumeFollowIndexResponse resumeFollow(ResumeFollowIndexRequest request) throws IOException { - return this.transport.performRequest(request, ResumeFollowIndexRequest.ENDPOINT, this.requestOptions); + public ResumeFollowResponse resumeFollow(ResumeFollowRequest request) throws IOException { + return this.transport.performRequest(request, ResumeFollowRequest.ENDPOINT, this.requestOptions); } /** @@ -429,9 +428,9 @@ public ResumeFollowIndexResponse resumeFollow(ResumeFollowIndexRequest request) * on elastic.co */ - public final ResumeFollowIndexResponse resumeFollow( - Function> fn) throws IOException { - return resumeFollow(fn.apply(new ResumeFollowIndexRequest.Builder()).build()); + public final ResumeFollowResponse resumeFollow( + Function> fn) throws IOException { + return resumeFollow(fn.apply(new ResumeFollowRequest.Builder()).build()); } // ----- Endpoint: ccr.stats @@ -458,8 +457,8 @@ public StatsResponse stats() throws IOException { * on elastic.co */ - public UnfollowIndexResponse unfollow(UnfollowIndexRequest request) throws IOException { - return this.transport.performRequest(request, UnfollowIndexRequest.ENDPOINT, this.requestOptions); + public UnfollowResponse unfollow(UnfollowRequest request) throws IOException { + return this.transport.performRequest(request, UnfollowRequest.ENDPOINT, this.requestOptions); } /** @@ -475,9 +474,9 @@ public UnfollowIndexResponse unfollow(UnfollowIndexRequest request) throws IOExc * on elastic.co */ - public final UnfollowIndexResponse unfollow( - Function> fn) throws IOException { - return unfollow(fn.apply(new UnfollowIndexRequest.Builder()).build()); + public final UnfollowResponse unfollow(Function> fn) + throws IOException { + return unfollow(fn.apply(new UnfollowRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterAsyncClient.java index b9f9dfea9..35697a914 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterAsyncClient.java @@ -24,15 +24,14 @@ package co.elastic.clients.elasticsearch.api.cluster; import co.elastic.clients.base.ApiClient; +import co.elastic.clients.base.BooleanResponse; import co.elastic.clients.base.Transport; import co.elastic.clients.elasticsearch.cluster.AllocationExplainRequest; import co.elastic.clients.elasticsearch.cluster.AllocationExplainResponse; import co.elastic.clients.elasticsearch.cluster.DeleteComponentTemplateRequest; import co.elastic.clients.elasticsearch.cluster.DeleteComponentTemplateResponse; import co.elastic.clients.elasticsearch.cluster.DeleteVotingConfigExclusionsRequest; -import co.elastic.clients.elasticsearch.cluster.DeleteVotingConfigExclusionsResponse; import co.elastic.clients.elasticsearch.cluster.ExistsComponentTemplateRequest; -import co.elastic.clients.elasticsearch.cluster.ExistsComponentTemplateResponse; import co.elastic.clients.elasticsearch.cluster.GetComponentTemplateRequest; import co.elastic.clients.elasticsearch.cluster.GetComponentTemplateResponse; import co.elastic.clients.elasticsearch.cluster.GetSettingsRequest; @@ -41,12 +40,11 @@ import co.elastic.clients.elasticsearch.cluster.HealthResponse; import co.elastic.clients.elasticsearch.cluster.PendingTasksRequest; import co.elastic.clients.elasticsearch.cluster.PendingTasksResponse; +import co.elastic.clients.elasticsearch.cluster.PostVotingConfigExclusionsRequest; import co.elastic.clients.elasticsearch.cluster.PutComponentTemplateRequest; import co.elastic.clients.elasticsearch.cluster.PutComponentTemplateResponse; import co.elastic.clients.elasticsearch.cluster.PutSettingsRequest; import co.elastic.clients.elasticsearch.cluster.PutSettingsResponse; -import co.elastic.clients.elasticsearch.cluster.PutVotingConfigExclusionsRequest; -import co.elastic.clients.elasticsearch.cluster.PutVotingConfigExclusionsResponse; import co.elastic.clients.elasticsearch.cluster.RemoteInfoRequest; import co.elastic.clients.elasticsearch.cluster.RemoteInfoResponse; import co.elastic.clients.elasticsearch.cluster.RerouteRequest; @@ -151,8 +149,8 @@ public final CompletableFuture deleteComponentT * on elastic.co */ - public CompletableFuture deleteVotingConfigExclusions( - DeleteVotingConfigExclusionsRequest request) throws IOException { + public CompletableFuture deleteVotingConfigExclusions(DeleteVotingConfigExclusionsRequest request) + throws IOException { return this.transport.performRequestAsync(request, DeleteVotingConfigExclusionsRequest.ENDPOINT, this.requestOptions); } @@ -169,7 +167,7 @@ public CompletableFuture deleteVotingConfi * on elastic.co */ - public final CompletableFuture deleteVotingConfigExclusions( + public final CompletableFuture deleteVotingConfigExclusions( Function> fn) throws IOException { return deleteVotingConfigExclusions(fn.apply(new DeleteVotingConfigExclusionsRequest.Builder()).build()); @@ -185,8 +183,8 @@ public final CompletableFuture deleteVotin * on elastic.co */ - public CompletableFuture existsComponentTemplate( - ExistsComponentTemplateRequest request) throws IOException { + public CompletableFuture existsComponentTemplate(ExistsComponentTemplateRequest request) + throws IOException { return this.transport.performRequestAsync(request, ExistsComponentTemplateRequest.ENDPOINT, this.requestOptions); } @@ -203,7 +201,7 @@ public CompletableFuture existsComponentTemplat * on elastic.co */ - public final CompletableFuture existsComponentTemplate( + public final CompletableFuture existsComponentTemplate( Function> fn) throws IOException { return existsComponentTemplate(fn.apply(new ExistsComponentTemplateRequest.Builder()).build()); @@ -347,9 +345,9 @@ public final CompletableFuture pendingTasks( * on elastic.co */ - public CompletableFuture postVotingConfigExclusions( - PutVotingConfigExclusionsRequest request) throws IOException { - return this.transport.performRequestAsync(request, PutVotingConfigExclusionsRequest.ENDPOINT, + public CompletableFuture postVotingConfigExclusions(PostVotingConfigExclusionsRequest request) + throws IOException { + return this.transport.performRequestAsync(request, PostVotingConfigExclusionsRequest.ENDPOINT, this.requestOptions); } @@ -365,10 +363,10 @@ public CompletableFuture postVotingConfigExcl * on elastic.co */ - public final CompletableFuture postVotingConfigExclusions( - Function> fn) + public final CompletableFuture postVotingConfigExclusions( + Function> fn) throws IOException { - return postVotingConfigExclusions(fn.apply(new PutVotingConfigExclusionsRequest.Builder()).build()); + return postVotingConfigExclusions(fn.apply(new PostVotingConfigExclusionsRequest.Builder()).build()); } // ----- Endpoint: cluster.put_component_template @@ -444,26 +442,9 @@ public final CompletableFuture putSettings( * "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html">Documentation * on elastic.co */ - - public CompletableFuture remoteInfo(RemoteInfoRequest request) throws IOException { - return this.transport.performRequestAsync(request, RemoteInfoRequest.ENDPOINT, this.requestOptions); - } - - /** - * Returns the information about configured remote clusters. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture remoteInfo( - Function> fn) throws IOException { - return remoteInfo(fn.apply(new RemoteInfoRequest.Builder()).build()); + public CompletableFuture remoteInfo() throws IOException { + return this.transport.performRequestAsync(RemoteInfoRequest.INSTANCE, RemoteInfoRequest.ENDPOINT, + this.requestOptions); } // ----- Endpoint: cluster.reroute diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterClient.java index 53bce2110..951c071d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/cluster/ClusterClient.java @@ -24,15 +24,14 @@ package co.elastic.clients.elasticsearch.api.cluster; import co.elastic.clients.base.ApiClient; +import co.elastic.clients.base.BooleanResponse; import co.elastic.clients.base.Transport; import co.elastic.clients.elasticsearch.cluster.AllocationExplainRequest; import co.elastic.clients.elasticsearch.cluster.AllocationExplainResponse; import co.elastic.clients.elasticsearch.cluster.DeleteComponentTemplateRequest; import co.elastic.clients.elasticsearch.cluster.DeleteComponentTemplateResponse; import co.elastic.clients.elasticsearch.cluster.DeleteVotingConfigExclusionsRequest; -import co.elastic.clients.elasticsearch.cluster.DeleteVotingConfigExclusionsResponse; import co.elastic.clients.elasticsearch.cluster.ExistsComponentTemplateRequest; -import co.elastic.clients.elasticsearch.cluster.ExistsComponentTemplateResponse; import co.elastic.clients.elasticsearch.cluster.GetComponentTemplateRequest; import co.elastic.clients.elasticsearch.cluster.GetComponentTemplateResponse; import co.elastic.clients.elasticsearch.cluster.GetSettingsRequest; @@ -41,12 +40,11 @@ import co.elastic.clients.elasticsearch.cluster.HealthResponse; import co.elastic.clients.elasticsearch.cluster.PendingTasksRequest; import co.elastic.clients.elasticsearch.cluster.PendingTasksResponse; +import co.elastic.clients.elasticsearch.cluster.PostVotingConfigExclusionsRequest; import co.elastic.clients.elasticsearch.cluster.PutComponentTemplateRequest; import co.elastic.clients.elasticsearch.cluster.PutComponentTemplateResponse; import co.elastic.clients.elasticsearch.cluster.PutSettingsRequest; import co.elastic.clients.elasticsearch.cluster.PutSettingsResponse; -import co.elastic.clients.elasticsearch.cluster.PutVotingConfigExclusionsRequest; -import co.elastic.clients.elasticsearch.cluster.PutVotingConfigExclusionsResponse; import co.elastic.clients.elasticsearch.cluster.RemoteInfoRequest; import co.elastic.clients.elasticsearch.cluster.RemoteInfoResponse; import co.elastic.clients.elasticsearch.cluster.RerouteRequest; @@ -148,8 +146,8 @@ public final DeleteComponentTemplateResponse deleteComponentTemplate( * on elastic.co */ - public DeleteVotingConfigExclusionsResponse deleteVotingConfigExclusions( - DeleteVotingConfigExclusionsRequest request) throws IOException { + public BooleanResponse deleteVotingConfigExclusions(DeleteVotingConfigExclusionsRequest request) + throws IOException { return this.transport.performRequest(request, DeleteVotingConfigExclusionsRequest.ENDPOINT, this.requestOptions); } @@ -166,7 +164,7 @@ public DeleteVotingConfigExclusionsResponse deleteVotingConfigExclusions( * on elastic.co */ - public final DeleteVotingConfigExclusionsResponse deleteVotingConfigExclusions( + public final BooleanResponse deleteVotingConfigExclusions( Function> fn) throws IOException { return deleteVotingConfigExclusions(fn.apply(new DeleteVotingConfigExclusionsRequest.Builder()).build()); @@ -182,8 +180,7 @@ public final DeleteVotingConfigExclusionsResponse deleteVotingConfigExclusions( * on elastic.co */ - public ExistsComponentTemplateResponse existsComponentTemplate(ExistsComponentTemplateRequest request) - throws IOException { + public BooleanResponse existsComponentTemplate(ExistsComponentTemplateRequest request) throws IOException { return this.transport.performRequest(request, ExistsComponentTemplateRequest.ENDPOINT, this.requestOptions); } @@ -199,7 +196,7 @@ public ExistsComponentTemplateResponse existsComponentTemplate(ExistsComponentTe * on elastic.co */ - public final ExistsComponentTemplateResponse existsComponentTemplate( + public final BooleanResponse existsComponentTemplate( Function> fn) throws IOException { return existsComponentTemplate(fn.apply(new ExistsComponentTemplateRequest.Builder()).build()); @@ -342,9 +339,8 @@ public final PendingTasksResponse pendingTasks( * on elastic.co */ - public PutVotingConfigExclusionsResponse postVotingConfigExclusions(PutVotingConfigExclusionsRequest request) - throws IOException { - return this.transport.performRequest(request, PutVotingConfigExclusionsRequest.ENDPOINT, this.requestOptions); + public BooleanResponse postVotingConfigExclusions(PostVotingConfigExclusionsRequest request) throws IOException { + return this.transport.performRequest(request, PostVotingConfigExclusionsRequest.ENDPOINT, this.requestOptions); } /** @@ -359,10 +355,10 @@ public PutVotingConfigExclusionsResponse postVotingConfigExclusions(PutVotingCon * on elastic.co */ - public final PutVotingConfigExclusionsResponse postVotingConfigExclusions( - Function> fn) + public final BooleanResponse postVotingConfigExclusions( + Function> fn) throws IOException { - return postVotingConfigExclusions(fn.apply(new PutVotingConfigExclusionsRequest.Builder()).build()); + return postVotingConfigExclusions(fn.apply(new PostVotingConfigExclusionsRequest.Builder()).build()); } // ----- Endpoint: cluster.put_component_template @@ -437,26 +433,9 @@ public final PutSettingsResponse putSettings( * "https://www.elastic.co/guide/en/elasticsearch/reference/master/cluster-remote-info.html">Documentation * on elastic.co */ - - public RemoteInfoResponse remoteInfo(RemoteInfoRequest request) throws IOException { - return this.transport.performRequest(request, RemoteInfoRequest.ENDPOINT, this.requestOptions); - } - - /** - * Returns the information about configured remote clusters. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final RemoteInfoResponse remoteInfo(Function> fn) - throws IOException { - return remoteInfo(fn.apply(new RemoteInfoRequest.Builder()).build()); + public RemoteInfoResponse remoteInfo() throws IOException { + return this.transport.performRequest(RemoteInfoRequest.INSTANCE, RemoteInfoRequest.ENDPOINT, + this.requestOptions); } // ----- Endpoint: cluster.reroute diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesAsyncClient.java index 257b4ea88..0644cdedb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesAsyncClient.java @@ -25,12 +25,12 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.dangling_indices.IndexDeleteRequest; -import co.elastic.clients.elasticsearch.dangling_indices.IndexDeleteResponse; -import co.elastic.clients.elasticsearch.dangling_indices.IndexImportRequest; -import co.elastic.clients.elasticsearch.dangling_indices.IndexImportResponse; -import co.elastic.clients.elasticsearch.dangling_indices.IndicesListRequest; -import co.elastic.clients.elasticsearch.dangling_indices.IndicesListResponse; +import co.elastic.clients.elasticsearch.dangling_indices.DeleteDanglingIndexRequest; +import co.elastic.clients.elasticsearch.dangling_indices.DeleteDanglingIndexResponse; +import co.elastic.clients.elasticsearch.dangling_indices.ImportDanglingIndexRequest; +import co.elastic.clients.elasticsearch.dangling_indices.ImportDanglingIndexResponse; +import co.elastic.clients.elasticsearch.dangling_indices.ListDanglingIndicesRequest; +import co.elastic.clients.elasticsearch.dangling_indices.ListDanglingIndicesResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.concurrent.CompletableFuture; @@ -61,8 +61,9 @@ public DanglingIndicesAsyncClient(Transport transport, RequestOptions options) { * on elastic.co */ - public CompletableFuture deleteDanglingIndex(IndexDeleteRequest request) throws IOException { - return this.transport.performRequestAsync(request, IndexDeleteRequest.ENDPOINT, this.requestOptions); + public CompletableFuture deleteDanglingIndex(DeleteDanglingIndexRequest request) + throws IOException { + return this.transport.performRequestAsync(request, DeleteDanglingIndexRequest.ENDPOINT, this.requestOptions); } /** @@ -77,9 +78,10 @@ public CompletableFuture deleteDanglingIndex(IndexDeleteReq * on elastic.co */ - public final CompletableFuture deleteDanglingIndex( - Function> fn) throws IOException { - return deleteDanglingIndex(fn.apply(new IndexDeleteRequest.Builder()).build()); + public final CompletableFuture deleteDanglingIndex( + Function> fn) + throws IOException { + return deleteDanglingIndex(fn.apply(new DeleteDanglingIndexRequest.Builder()).build()); } // ----- Endpoint: dangling_indices.import_dangling_index @@ -92,8 +94,9 @@ public final CompletableFuture deleteDanglingIndex( * on elastic.co */ - public CompletableFuture importDanglingIndex(IndexImportRequest request) throws IOException { - return this.transport.performRequestAsync(request, IndexImportRequest.ENDPOINT, this.requestOptions); + public CompletableFuture importDanglingIndex(ImportDanglingIndexRequest request) + throws IOException { + return this.transport.performRequestAsync(request, ImportDanglingIndexRequest.ENDPOINT, this.requestOptions); } /** @@ -108,9 +111,10 @@ public CompletableFuture importDanglingIndex(IndexImportReq * on elastic.co */ - public final CompletableFuture importDanglingIndex( - Function> fn) throws IOException { - return importDanglingIndex(fn.apply(new IndexImportRequest.Builder()).build()); + public final CompletableFuture importDanglingIndex( + Function> fn) + throws IOException { + return importDanglingIndex(fn.apply(new ImportDanglingIndexRequest.Builder()).build()); } // ----- Endpoint: dangling_indices.list_dangling_indices @@ -122,26 +126,9 @@ public final CompletableFuture importDanglingIndex( * "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html">Documentation * on elastic.co */ - - public CompletableFuture listDanglingIndices(IndicesListRequest request) throws IOException { - return this.transport.performRequestAsync(request, IndicesListRequest.ENDPOINT, this.requestOptions); - } - - /** - * Returns all dangling indices. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture listDanglingIndices( - Function> fn) throws IOException { - return listDanglingIndices(fn.apply(new IndicesListRequest.Builder()).build()); + public CompletableFuture listDanglingIndices() throws IOException { + return this.transport.performRequestAsync(ListDanglingIndicesRequest.INSTANCE, + ListDanglingIndicesRequest.ENDPOINT, this.requestOptions); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesClient.java index 112035d61..44d51432b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/dangling_indices/DanglingIndicesClient.java @@ -25,12 +25,12 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.dangling_indices.IndexDeleteRequest; -import co.elastic.clients.elasticsearch.dangling_indices.IndexDeleteResponse; -import co.elastic.clients.elasticsearch.dangling_indices.IndexImportRequest; -import co.elastic.clients.elasticsearch.dangling_indices.IndexImportResponse; -import co.elastic.clients.elasticsearch.dangling_indices.IndicesListRequest; -import co.elastic.clients.elasticsearch.dangling_indices.IndicesListResponse; +import co.elastic.clients.elasticsearch.dangling_indices.DeleteDanglingIndexRequest; +import co.elastic.clients.elasticsearch.dangling_indices.DeleteDanglingIndexResponse; +import co.elastic.clients.elasticsearch.dangling_indices.ImportDanglingIndexRequest; +import co.elastic.clients.elasticsearch.dangling_indices.ImportDanglingIndexResponse; +import co.elastic.clients.elasticsearch.dangling_indices.ListDanglingIndicesRequest; +import co.elastic.clients.elasticsearch.dangling_indices.ListDanglingIndicesResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.function.Function; @@ -60,8 +60,8 @@ public DanglingIndicesClient(Transport transport, RequestOptions options) { * on elastic.co */ - public IndexDeleteResponse deleteDanglingIndex(IndexDeleteRequest request) throws IOException { - return this.transport.performRequest(request, IndexDeleteRequest.ENDPOINT, this.requestOptions); + public DeleteDanglingIndexResponse deleteDanglingIndex(DeleteDanglingIndexRequest request) throws IOException { + return this.transport.performRequest(request, DeleteDanglingIndexRequest.ENDPOINT, this.requestOptions); } /** @@ -76,9 +76,10 @@ public IndexDeleteResponse deleteDanglingIndex(IndexDeleteRequest request) throw * on elastic.co */ - public final IndexDeleteResponse deleteDanglingIndex( - Function> fn) throws IOException { - return deleteDanglingIndex(fn.apply(new IndexDeleteRequest.Builder()).build()); + public final DeleteDanglingIndexResponse deleteDanglingIndex( + Function> fn) + throws IOException { + return deleteDanglingIndex(fn.apply(new DeleteDanglingIndexRequest.Builder()).build()); } // ----- Endpoint: dangling_indices.import_dangling_index @@ -91,8 +92,8 @@ public final IndexDeleteResponse deleteDanglingIndex( * on elastic.co */ - public IndexImportResponse importDanglingIndex(IndexImportRequest request) throws IOException { - return this.transport.performRequest(request, IndexImportRequest.ENDPOINT, this.requestOptions); + public ImportDanglingIndexResponse importDanglingIndex(ImportDanglingIndexRequest request) throws IOException { + return this.transport.performRequest(request, ImportDanglingIndexRequest.ENDPOINT, this.requestOptions); } /** @@ -107,9 +108,10 @@ public IndexImportResponse importDanglingIndex(IndexImportRequest request) throw * on elastic.co */ - public final IndexImportResponse importDanglingIndex( - Function> fn) throws IOException { - return importDanglingIndex(fn.apply(new IndexImportRequest.Builder()).build()); + public final ImportDanglingIndexResponse importDanglingIndex( + Function> fn) + throws IOException { + return importDanglingIndex(fn.apply(new ImportDanglingIndexRequest.Builder()).build()); } // ----- Endpoint: dangling_indices.list_dangling_indices @@ -121,26 +123,9 @@ public final IndexImportResponse importDanglingIndex( * "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-gateway-dangling-indices.html">Documentation * on elastic.co */ - - public IndicesListResponse listDanglingIndices(IndicesListRequest request) throws IOException { - return this.transport.performRequest(request, IndicesListRequest.ENDPOINT, this.requestOptions); - } - - /** - * Returns all dangling indices. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final IndicesListResponse listDanglingIndices( - Function> fn) throws IOException { - return listDanglingIndices(fn.apply(new IndicesListRequest.Builder()).build()); + public ListDanglingIndicesResponse listDanglingIndices() throws IOException { + return this.transport.performRequest(ListDanglingIndicesRequest.INSTANCE, ListDanglingIndicesRequest.ENDPOINT, + this.requestOptions); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesAsyncClient.java index a4d67fe07..32cffbe7b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesAsyncClient.java @@ -59,27 +59,9 @@ public FeaturesAsyncClient(Transport transport, RequestOptions options) { * "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-features-api.html">Documentation * on elastic.co */ - - public CompletableFuture getFeatures(GetFeaturesRequest request) throws IOException { - return this.transport.performRequestAsync(request, GetFeaturesRequest.ENDPOINT, this.requestOptions); - } - - /** - * Gets a list of features which can be included in snapshots using the - * feature_states field when creating a snapshot - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture getFeatures( - Function> fn) throws IOException { - return getFeatures(fn.apply(new GetFeaturesRequest.Builder()).build()); + public CompletableFuture getFeatures() throws IOException { + return this.transport.performRequestAsync(GetFeaturesRequest.INSTANCE, GetFeaturesRequest.ENDPOINT, + this.requestOptions); } // ----- Endpoint: features.reset_features @@ -91,26 +73,9 @@ public final CompletableFuture getFeatures( * "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html">Documentation * on elastic.co */ - - public CompletableFuture resetFeatures(ResetFeaturesRequest request) throws IOException { - return this.transport.performRequestAsync(request, ResetFeaturesRequest.ENDPOINT, this.requestOptions); - } - - /** - * Resets the internal state of features, usually by deleting system indices - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture resetFeatures( - Function> fn) throws IOException { - return resetFeatures(fn.apply(new ResetFeaturesRequest.Builder()).build()); + public CompletableFuture resetFeatures() throws IOException { + return this.transport.performRequestAsync(ResetFeaturesRequest.INSTANCE, ResetFeaturesRequest.ENDPOINT, + this.requestOptions); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesClient.java index 6087a3a41..4a7533bf9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/features/FeaturesClient.java @@ -58,27 +58,9 @@ public FeaturesClient(Transport transport, RequestOptions options) { * "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-features-api.html">Documentation * on elastic.co */ - - public GetFeaturesResponse getFeatures(GetFeaturesRequest request) throws IOException { - return this.transport.performRequest(request, GetFeaturesRequest.ENDPOINT, this.requestOptions); - } - - /** - * Gets a list of features which can be included in snapshots using the - * feature_states field when creating a snapshot - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final GetFeaturesResponse getFeatures( - Function> fn) throws IOException { - return getFeatures(fn.apply(new GetFeaturesRequest.Builder()).build()); + public GetFeaturesResponse getFeatures() throws IOException { + return this.transport.performRequest(GetFeaturesRequest.INSTANCE, GetFeaturesRequest.ENDPOINT, + this.requestOptions); } // ----- Endpoint: features.reset_features @@ -90,26 +72,9 @@ public final GetFeaturesResponse getFeatures( * "https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-snapshots.html">Documentation * on elastic.co */ - - public ResetFeaturesResponse resetFeatures(ResetFeaturesRequest request) throws IOException { - return this.transport.performRequest(request, ResetFeaturesRequest.ENDPOINT, this.requestOptions); - } - - /** - * Resets the internal state of features, usually by deleting system indices - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final ResetFeaturesResponse resetFeatures( - Function> fn) throws IOException { - return resetFeatures(fn.apply(new ResetFeaturesRequest.Builder()).build()); + public ResetFeaturesResponse resetFeatures() throws IOException { + return this.transport.performRequest(ResetFeaturesRequest.INSTANCE, ResetFeaturesRequest.ENDPOINT, + this.requestOptions); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesAsyncClient.java index 0fbe4d83e..e5a3bb122 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesAsyncClient.java @@ -59,8 +59,6 @@ import co.elastic.clients.elasticsearch.indices.ExistsTypeRequest; import co.elastic.clients.elasticsearch.indices.FlushRequest; import co.elastic.clients.elasticsearch.indices.FlushResponse; -import co.elastic.clients.elasticsearch.indices.FlushSyncedRequest; -import co.elastic.clients.elasticsearch.indices.FlushSyncedResponse; import co.elastic.clients.elasticsearch.indices.ForcemergeRequest; import co.elastic.clients.elasticsearch.indices.ForcemergeResponse; import co.elastic.clients.elasticsearch.indices.FreezeRequest; @@ -81,8 +79,6 @@ import co.elastic.clients.elasticsearch.indices.GetSettingsResponse; import co.elastic.clients.elasticsearch.indices.GetTemplateRequest; import co.elastic.clients.elasticsearch.indices.GetTemplateResponse; -import co.elastic.clients.elasticsearch.indices.GetUpgradeRequest; -import co.elastic.clients.elasticsearch.indices.GetUpgradeResponse; import co.elastic.clients.elasticsearch.indices.MigrateToDataStreamRequest; import co.elastic.clients.elasticsearch.indices.MigrateToDataStreamResponse; import co.elastic.clients.elasticsearch.indices.OpenRequest; @@ -127,8 +123,6 @@ import co.elastic.clients.elasticsearch.indices.UnfreezeResponse; import co.elastic.clients.elasticsearch.indices.UpdateAliasesRequest; import co.elastic.clients.elasticsearch.indices.UpdateAliasesResponse; -import co.elastic.clients.elasticsearch.indices.UpgradeRequest; -import co.elastic.clients.elasticsearch.indices.UpgradeResponse; import co.elastic.clients.elasticsearch.indices.ValidateQueryRequest; import co.elastic.clients.elasticsearch.indices.ValidateQueryResponse; import co.elastic.clients.util.ObjectBuilder; @@ -751,39 +745,6 @@ public final CompletableFuture flush(FunctionDocumentation - * on elastic.co - */ - - public CompletableFuture flushSynced(FlushSyncedRequest request) throws IOException { - return this.transport.performRequestAsync(request, FlushSyncedRequest.ENDPOINT, this.requestOptions); - } - - /** - * Performs a synced flush operation on one or more indices. Synced flush is - * deprecated and will be removed in 8.0. Use flush instead - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture flushSynced( - Function> fn) throws IOException { - return flushSynced(fn.apply(new FlushSyncedRequest.Builder()).build()); - } - // ----- Endpoint: indices.forcemerge /** @@ -1098,37 +1059,6 @@ public final CompletableFuture getTemplate( return getTemplate(fn.apply(new GetTemplateRequest.Builder()).build()); } - // ----- Endpoint: indices.get_upgrade - - /** - * DEPRECATED Returns a progress status of current upgrade. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture getUpgrade(GetUpgradeRequest request) throws IOException { - return this.transport.performRequestAsync(request, GetUpgradeRequest.ENDPOINT, this.requestOptions); - } - - /** - * DEPRECATED Returns a progress status of current upgrade. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture getUpgrade( - Function> fn) throws IOException { - return getUpgrade(fn.apply(new GetUpgradeRequest.Builder()).build()); - } - // ----- Endpoint: indices.migrate_to_data_stream /** @@ -1830,37 +1760,6 @@ public final CompletableFuture updateAliases( return updateAliases(fn.apply(new UpdateAliasesRequest.Builder()).build()); } - // ----- Endpoint: indices.upgrade - - /** - * DEPRECATED Upgrades to the current version of Lucene. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture upgrade(UpgradeRequest request) throws IOException { - return this.transport.performRequestAsync(request, UpgradeRequest.ENDPOINT, this.requestOptions); - } - - /** - * DEPRECATED Upgrades to the current version of Lucene. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture upgrade( - Function> fn) throws IOException { - return upgrade(fn.apply(new UpgradeRequest.Builder()).build()); - } - // ----- Endpoint: indices.validate_query /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesClient.java index 50bf73d42..b152a898c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/indices/IndicesClient.java @@ -59,8 +59,6 @@ import co.elastic.clients.elasticsearch.indices.ExistsTypeRequest; import co.elastic.clients.elasticsearch.indices.FlushRequest; import co.elastic.clients.elasticsearch.indices.FlushResponse; -import co.elastic.clients.elasticsearch.indices.FlushSyncedRequest; -import co.elastic.clients.elasticsearch.indices.FlushSyncedResponse; import co.elastic.clients.elasticsearch.indices.ForcemergeRequest; import co.elastic.clients.elasticsearch.indices.ForcemergeResponse; import co.elastic.clients.elasticsearch.indices.FreezeRequest; @@ -81,8 +79,6 @@ import co.elastic.clients.elasticsearch.indices.GetSettingsResponse; import co.elastic.clients.elasticsearch.indices.GetTemplateRequest; import co.elastic.clients.elasticsearch.indices.GetTemplateResponse; -import co.elastic.clients.elasticsearch.indices.GetUpgradeRequest; -import co.elastic.clients.elasticsearch.indices.GetUpgradeResponse; import co.elastic.clients.elasticsearch.indices.MigrateToDataStreamRequest; import co.elastic.clients.elasticsearch.indices.MigrateToDataStreamResponse; import co.elastic.clients.elasticsearch.indices.OpenRequest; @@ -127,8 +123,6 @@ import co.elastic.clients.elasticsearch.indices.UnfreezeResponse; import co.elastic.clients.elasticsearch.indices.UpdateAliasesRequest; import co.elastic.clients.elasticsearch.indices.UpdateAliasesResponse; -import co.elastic.clients.elasticsearch.indices.UpgradeRequest; -import co.elastic.clients.elasticsearch.indices.UpgradeResponse; import co.elastic.clients.elasticsearch.indices.ValidateQueryRequest; import co.elastic.clients.elasticsearch.indices.ValidateQueryResponse; import co.elastic.clients.util.ObjectBuilder; @@ -745,39 +739,6 @@ public final FlushResponse flush(FunctionDocumentation - * on elastic.co - */ - - public FlushSyncedResponse flushSynced(FlushSyncedRequest request) throws IOException { - return this.transport.performRequest(request, FlushSyncedRequest.ENDPOINT, this.requestOptions); - } - - /** - * Performs a synced flush operation on one or more indices. Synced flush is - * deprecated and will be removed in 8.0. Use flush instead - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final FlushSyncedResponse flushSynced( - Function> fn) throws IOException { - return flushSynced(fn.apply(new FlushSyncedRequest.Builder()).build()); - } - // ----- Endpoint: indices.forcemerge /** @@ -1089,37 +1050,6 @@ public final GetTemplateResponse getTemplate( return getTemplate(fn.apply(new GetTemplateRequest.Builder()).build()); } - // ----- Endpoint: indices.get_upgrade - - /** - * DEPRECATED Returns a progress status of current upgrade. - * - * @see Documentation - * on elastic.co - */ - - public GetUpgradeResponse getUpgrade(GetUpgradeRequest request) throws IOException { - return this.transport.performRequest(request, GetUpgradeRequest.ENDPOINT, this.requestOptions); - } - - /** - * DEPRECATED Returns a progress status of current upgrade. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final GetUpgradeResponse getUpgrade(Function> fn) - throws IOException { - return getUpgrade(fn.apply(new GetUpgradeRequest.Builder()).build()); - } - // ----- Endpoint: indices.migrate_to_data_stream /** @@ -1816,37 +1746,6 @@ public final UpdateAliasesResponse updateAliases( return updateAliases(fn.apply(new UpdateAliasesRequest.Builder()).build()); } - // ----- Endpoint: indices.upgrade - - /** - * DEPRECATED Upgrades to the current version of Lucene. - * - * @see Documentation - * on elastic.co - */ - - public UpgradeResponse upgrade(UpgradeRequest request) throws IOException { - return this.transport.performRequest(request, UpgradeRequest.ENDPOINT, this.requestOptions); - } - - /** - * DEPRECATED Upgrades to the current version of Lucene. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final UpgradeResponse upgrade(Function> fn) - throws IOException { - return upgrade(fn.apply(new UpgradeRequest.Builder()).build()); - } - // ----- Endpoint: indices.validate_query /** diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestAsyncClient.java index 8aaff9b0a..3aef8ae23 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestAsyncClient.java @@ -35,8 +35,8 @@ import co.elastic.clients.elasticsearch.ingest.ProcessorGrokResponse; import co.elastic.clients.elasticsearch.ingest.PutPipelineRequest; import co.elastic.clients.elasticsearch.ingest.PutPipelineResponse; -import co.elastic.clients.elasticsearch.ingest.SimulatePipelineRequest; -import co.elastic.clients.elasticsearch.ingest.SimulatePipelineResponse; +import co.elastic.clients.elasticsearch.ingest.SimulateRequest; +import co.elastic.clients.elasticsearch.ingest.SimulateResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.concurrent.CompletableFuture; @@ -188,8 +188,8 @@ public final CompletableFuture putPipeline( * on elastic.co */ - public CompletableFuture simulate(SimulatePipelineRequest request) throws IOException { - return this.transport.performRequestAsync(request, SimulatePipelineRequest.ENDPOINT, this.requestOptions); + public CompletableFuture simulate(SimulateRequest request) throws IOException { + return this.transport.performRequestAsync(request, SimulateRequest.ENDPOINT, this.requestOptions); } /** @@ -204,9 +204,9 @@ public CompletableFuture simulate(SimulatePipelineRequ * on elastic.co */ - public final CompletableFuture simulate( - Function> fn) throws IOException { - return simulate(fn.apply(new SimulatePipelineRequest.Builder()).build()); + public final CompletableFuture simulate( + Function> fn) throws IOException { + return simulate(fn.apply(new SimulateRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestClient.java index e7435ae64..d773413df 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ingest/IngestClient.java @@ -35,8 +35,8 @@ import co.elastic.clients.elasticsearch.ingest.ProcessorGrokResponse; import co.elastic.clients.elasticsearch.ingest.PutPipelineRequest; import co.elastic.clients.elasticsearch.ingest.PutPipelineResponse; -import co.elastic.clients.elasticsearch.ingest.SimulatePipelineRequest; -import co.elastic.clients.elasticsearch.ingest.SimulatePipelineResponse; +import co.elastic.clients.elasticsearch.ingest.SimulateRequest; +import co.elastic.clients.elasticsearch.ingest.SimulateResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.function.Function; @@ -187,8 +187,8 @@ public final PutPipelineResponse putPipeline( * on elastic.co */ - public SimulatePipelineResponse simulate(SimulatePipelineRequest request) throws IOException { - return this.transport.performRequest(request, SimulatePipelineRequest.ENDPOINT, this.requestOptions); + public SimulateResponse simulate(SimulateRequest request) throws IOException { + return this.transport.performRequest(request, SimulateRequest.ENDPOINT, this.requestOptions); } /** @@ -203,9 +203,9 @@ public SimulatePipelineResponse simulate(SimulatePipelineRequest request) throws * on elastic.co */ - public final SimulatePipelineResponse simulate( - Function> fn) throws IOException { - return simulate(fn.apply(new SimulatePipelineRequest.Builder()).build()); + public final SimulateResponse simulate(Function> fn) + throws IOException { + return simulate(fn.apply(new SimulateRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashAsyncClient.java index 2e92f7338..7a0cbd67d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashAsyncClient.java @@ -24,13 +24,12 @@ package co.elastic.clients.elasticsearch.api.logstash; import co.elastic.clients.base.ApiClient; +import co.elastic.clients.base.BooleanResponse; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.logstash.PipelineDeleteRequest; -import co.elastic.clients.elasticsearch.logstash.PipelineDeleteResponse; -import co.elastic.clients.elasticsearch.logstash.PipelineGetRequest; -import co.elastic.clients.elasticsearch.logstash.PipelineGetResponse; -import co.elastic.clients.elasticsearch.logstash.PipelinePutRequest; -import co.elastic.clients.elasticsearch.logstash.PipelinePutResponse; +import co.elastic.clients.elasticsearch.logstash.DeletePipelineRequest; +import co.elastic.clients.elasticsearch.logstash.GetPipelineRequest; +import co.elastic.clients.elasticsearch.logstash.GetPipelineResponse; +import co.elastic.clients.elasticsearch.logstash.PutPipelineRequest; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.concurrent.CompletableFuture; @@ -61,8 +60,8 @@ public LogstashAsyncClient(Transport transport, RequestOptions options) { * on elastic.co */ - public CompletableFuture deletePipeline(PipelineDeleteRequest request) throws IOException { - return this.transport.performRequestAsync(request, PipelineDeleteRequest.ENDPOINT, this.requestOptions); + public CompletableFuture deletePipeline(DeletePipelineRequest request) throws IOException { + return this.transport.performRequestAsync(request, DeletePipelineRequest.ENDPOINT, this.requestOptions); } /** @@ -77,9 +76,9 @@ public CompletableFuture deletePipeline(PipelineDeleteRe * on elastic.co */ - public final CompletableFuture deletePipeline( - Function> fn) throws IOException { - return deletePipeline(fn.apply(new PipelineDeleteRequest.Builder()).build()); + public final CompletableFuture deletePipeline( + Function> fn) throws IOException { + return deletePipeline(fn.apply(new DeletePipelineRequest.Builder()).build()); } // ----- Endpoint: logstash.get_pipeline @@ -92,8 +91,8 @@ public final CompletableFuture deletePipeline( * on elastic.co */ - public CompletableFuture getPipeline(PipelineGetRequest request) throws IOException { - return this.transport.performRequestAsync(request, PipelineGetRequest.ENDPOINT, this.requestOptions); + public CompletableFuture getPipeline(GetPipelineRequest request) throws IOException { + return this.transport.performRequestAsync(request, GetPipelineRequest.ENDPOINT, this.requestOptions); } /** @@ -108,9 +107,9 @@ public CompletableFuture getPipeline(PipelineGetRequest req * on elastic.co */ - public final CompletableFuture getPipeline( - Function> fn) throws IOException { - return getPipeline(fn.apply(new PipelineGetRequest.Builder()).build()); + public final CompletableFuture getPipeline( + Function> fn) throws IOException { + return getPipeline(fn.apply(new GetPipelineRequest.Builder()).build()); } // ----- Endpoint: logstash.put_pipeline @@ -123,8 +122,8 @@ public final CompletableFuture getPipeline( * on elastic.co */ - public CompletableFuture putPipeline(PipelinePutRequest request) throws IOException { - return this.transport.performRequestAsync(request, PipelinePutRequest.ENDPOINT, this.requestOptions); + public CompletableFuture putPipeline(PutPipelineRequest request) throws IOException { + return this.transport.performRequestAsync(request, PutPipelineRequest.ENDPOINT, this.requestOptions); } /** @@ -139,9 +138,9 @@ public CompletableFuture putPipeline(PipelinePutRequest req * on elastic.co */ - public final CompletableFuture putPipeline( - Function> fn) throws IOException { - return putPipeline(fn.apply(new PipelinePutRequest.Builder()).build()); + public final CompletableFuture putPipeline( + Function> fn) throws IOException { + return putPipeline(fn.apply(new PutPipelineRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashClient.java index 6133cca84..d0cfa1b33 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/logstash/LogstashClient.java @@ -24,13 +24,12 @@ package co.elastic.clients.elasticsearch.api.logstash; import co.elastic.clients.base.ApiClient; +import co.elastic.clients.base.BooleanResponse; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.logstash.PipelineDeleteRequest; -import co.elastic.clients.elasticsearch.logstash.PipelineDeleteResponse; -import co.elastic.clients.elasticsearch.logstash.PipelineGetRequest; -import co.elastic.clients.elasticsearch.logstash.PipelineGetResponse; -import co.elastic.clients.elasticsearch.logstash.PipelinePutRequest; -import co.elastic.clients.elasticsearch.logstash.PipelinePutResponse; +import co.elastic.clients.elasticsearch.logstash.DeletePipelineRequest; +import co.elastic.clients.elasticsearch.logstash.GetPipelineRequest; +import co.elastic.clients.elasticsearch.logstash.GetPipelineResponse; +import co.elastic.clients.elasticsearch.logstash.PutPipelineRequest; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.function.Function; @@ -60,8 +59,8 @@ public LogstashClient(Transport transport, RequestOptions options) { * on elastic.co */ - public PipelineDeleteResponse deletePipeline(PipelineDeleteRequest request) throws IOException { - return this.transport.performRequest(request, PipelineDeleteRequest.ENDPOINT, this.requestOptions); + public BooleanResponse deletePipeline(DeletePipelineRequest request) throws IOException { + return this.transport.performRequest(request, DeletePipelineRequest.ENDPOINT, this.requestOptions); } /** @@ -76,9 +75,9 @@ public PipelineDeleteResponse deletePipeline(PipelineDeleteRequest request) thro * on elastic.co */ - public final PipelineDeleteResponse deletePipeline( - Function> fn) throws IOException { - return deletePipeline(fn.apply(new PipelineDeleteRequest.Builder()).build()); + public final BooleanResponse deletePipeline( + Function> fn) throws IOException { + return deletePipeline(fn.apply(new DeletePipelineRequest.Builder()).build()); } // ----- Endpoint: logstash.get_pipeline @@ -91,8 +90,8 @@ public final PipelineDeleteResponse deletePipeline( * on elastic.co */ - public PipelineGetResponse getPipeline(PipelineGetRequest request) throws IOException { - return this.transport.performRequest(request, PipelineGetRequest.ENDPOINT, this.requestOptions); + public GetPipelineResponse getPipeline(GetPipelineRequest request) throws IOException { + return this.transport.performRequest(request, GetPipelineRequest.ENDPOINT, this.requestOptions); } /** @@ -107,9 +106,9 @@ public PipelineGetResponse getPipeline(PipelineGetRequest request) throws IOExce * on elastic.co */ - public final PipelineGetResponse getPipeline( - Function> fn) throws IOException { - return getPipeline(fn.apply(new PipelineGetRequest.Builder()).build()); + public final GetPipelineResponse getPipeline( + Function> fn) throws IOException { + return getPipeline(fn.apply(new GetPipelineRequest.Builder()).build()); } // ----- Endpoint: logstash.put_pipeline @@ -122,8 +121,8 @@ public final PipelineGetResponse getPipeline( * on elastic.co */ - public PipelinePutResponse putPipeline(PipelinePutRequest request) throws IOException { - return this.transport.performRequest(request, PipelinePutRequest.ENDPOINT, this.requestOptions); + public BooleanResponse putPipeline(PutPipelineRequest request) throws IOException { + return this.transport.performRequest(request, PutPipelineRequest.ENDPOINT, this.requestOptions); } /** @@ -138,9 +137,9 @@ public PipelinePutResponse putPipeline(PipelinePutRequest request) throws IOExce * on elastic.co */ - public final PipelinePutResponse putPipeline( - Function> fn) throws IOException { - return putPipeline(fn.apply(new PipelinePutRequest.Builder()).build()); + public final BooleanResponse putPipeline(Function> fn) + throws IOException { + return putPipeline(fn.apply(new PutPipelineRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationAsyncClient.java index 316f029ac..648cc13d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationAsyncClient.java @@ -25,8 +25,8 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.migration.DeprecationInfoRequest; -import co.elastic.clients.elasticsearch.migration.DeprecationInfoResponse; +import co.elastic.clients.elasticsearch.migration.DeprecationsRequest; +import co.elastic.clients.elasticsearch.migration.DeprecationsResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.concurrent.CompletableFuture; @@ -59,8 +59,8 @@ public MigrationAsyncClient(Transport transport, RequestOptions options) { * on elastic.co */ - public CompletableFuture deprecations(DeprecationInfoRequest request) throws IOException { - return this.transport.performRequestAsync(request, DeprecationInfoRequest.ENDPOINT, this.requestOptions); + public CompletableFuture deprecations(DeprecationsRequest request) throws IOException { + return this.transport.performRequestAsync(request, DeprecationsRequest.ENDPOINT, this.requestOptions); } /** @@ -77,9 +77,9 @@ public CompletableFuture deprecations(DeprecationInfoRe * on elastic.co */ - public final CompletableFuture deprecations( - Function> fn) throws IOException { - return deprecations(fn.apply(new DeprecationInfoRequest.Builder()).build()); + public final CompletableFuture deprecations( + Function> fn) throws IOException { + return deprecations(fn.apply(new DeprecationsRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationClient.java index 1d9c3b4c6..3afe3d0bb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/migration/MigrationClient.java @@ -25,8 +25,8 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.migration.DeprecationInfoRequest; -import co.elastic.clients.elasticsearch.migration.DeprecationInfoResponse; +import co.elastic.clients.elasticsearch.migration.DeprecationsRequest; +import co.elastic.clients.elasticsearch.migration.DeprecationsResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.function.Function; @@ -58,8 +58,8 @@ public MigrationClient(Transport transport, RequestOptions options) { * on elastic.co */ - public DeprecationInfoResponse deprecations(DeprecationInfoRequest request) throws IOException { - return this.transport.performRequest(request, DeprecationInfoRequest.ENDPOINT, this.requestOptions); + public DeprecationsResponse deprecations(DeprecationsRequest request) throws IOException { + return this.transport.performRequest(request, DeprecationsRequest.ENDPOINT, this.requestOptions); } /** @@ -76,9 +76,9 @@ public DeprecationInfoResponse deprecations(DeprecationInfoRequest request) thro * on elastic.co */ - public final DeprecationInfoResponse deprecations( - Function> fn) throws IOException { - return deprecations(fn.apply(new DeprecationInfoRequest.Builder()).build()); + public final DeprecationsResponse deprecations( + Function> fn) throws IOException { + return deprecations(fn.apply(new DeprecationsRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlAsyncClient.java index 8d1d2407f..e8bc9704a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlAsyncClient.java @@ -55,14 +55,10 @@ import co.elastic.clients.elasticsearch.ml.EvaluateDataFrameResponse; import co.elastic.clients.elasticsearch.ml.ExplainDataFrameAnalyticsRequest; import co.elastic.clients.elasticsearch.ml.ExplainDataFrameAnalyticsResponse; -import co.elastic.clients.elasticsearch.ml.FindFileStructureRequest; -import co.elastic.clients.elasticsearch.ml.FindFileStructureResponse; import co.elastic.clients.elasticsearch.ml.FlushJobRequest; import co.elastic.clients.elasticsearch.ml.FlushJobResponse; -import co.elastic.clients.elasticsearch.ml.ForecastJobRequest; -import co.elastic.clients.elasticsearch.ml.ForecastJobResponse; -import co.elastic.clients.elasticsearch.ml.GetAnomalyRecordsRequest; -import co.elastic.clients.elasticsearch.ml.GetAnomalyRecordsResponse; +import co.elastic.clients.elasticsearch.ml.ForecastRequest; +import co.elastic.clients.elasticsearch.ml.ForecastResponse; import co.elastic.clients.elasticsearch.ml.GetBucketsRequest; import co.elastic.clients.elasticsearch.ml.GetBucketsResponse; import co.elastic.clients.elasticsearch.ml.GetCalendarEventsRequest; @@ -91,6 +87,8 @@ import co.elastic.clients.elasticsearch.ml.GetModelSnapshotsResponse; import co.elastic.clients.elasticsearch.ml.GetOverallBucketsRequest; import co.elastic.clients.elasticsearch.ml.GetOverallBucketsResponse; +import co.elastic.clients.elasticsearch.ml.GetRecordsRequest; +import co.elastic.clients.elasticsearch.ml.GetRecordsResponse; import co.elastic.clients.elasticsearch.ml.GetTrainedModelsRequest; import co.elastic.clients.elasticsearch.ml.GetTrainedModelsResponse; import co.elastic.clients.elasticsearch.ml.GetTrainedModelsStatsRequest; @@ -101,8 +99,8 @@ import co.elastic.clients.elasticsearch.ml.OpenJobResponse; import co.elastic.clients.elasticsearch.ml.PostCalendarEventsRequest; import co.elastic.clients.elasticsearch.ml.PostCalendarEventsResponse; -import co.elastic.clients.elasticsearch.ml.PostJobDataRequest; -import co.elastic.clients.elasticsearch.ml.PostJobDataResponse; +import co.elastic.clients.elasticsearch.ml.PostDataRequest; +import co.elastic.clients.elasticsearch.ml.PostDataResponse; import co.elastic.clients.elasticsearch.ml.PreviewDataFrameAnalyticsRequest; import co.elastic.clients.elasticsearch.ml.PreviewDataFrameAnalyticsResponse; import co.elastic.clients.elasticsearch.ml.PreviewDatafeedRequest; @@ -123,6 +121,8 @@ import co.elastic.clients.elasticsearch.ml.PutTrainedModelAliasResponse; import co.elastic.clients.elasticsearch.ml.PutTrainedModelRequest; import co.elastic.clients.elasticsearch.ml.PutTrainedModelResponse; +import co.elastic.clients.elasticsearch.ml.ResetJobRequest; +import co.elastic.clients.elasticsearch.ml.ResetJobResponse; import co.elastic.clients.elasticsearch.ml.RevertModelSnapshotRequest; import co.elastic.clients.elasticsearch.ml.RevertModelSnapshotResponse; import co.elastic.clients.elasticsearch.ml.SetUpgradeModeRequest; @@ -147,8 +147,8 @@ import co.elastic.clients.elasticsearch.ml.UpgradeJobSnapshotResponse; import co.elastic.clients.elasticsearch.ml.ValidateDetectorRequest; import co.elastic.clients.elasticsearch.ml.ValidateDetectorResponse; -import co.elastic.clients.elasticsearch.ml.ValidateJobRequest; -import co.elastic.clients.elasticsearch.ml.ValidateJobResponse; +import co.elastic.clients.elasticsearch.ml.ValidateRequest; +import co.elastic.clients.elasticsearch.ml.ValidateResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.concurrent.CompletableFuture; @@ -657,40 +657,6 @@ public final CompletableFuture explainDataFra return explainDataFrameAnalytics(fn.apply(new ExplainDataFrameAnalyticsRequest.Builder()).build()); } - // ----- Endpoint: ml.find_file_structure - - /** - * Finds the structure of a text file. The text file must contain data that is - * suitable to be ingested into Elasticsearch. - * - * @see Documentation - * on elastic.co - */ - - public CompletableFuture findFileStructure(FindFileStructureRequest request) - throws IOException { - return this.transport.performRequestAsync(request, FindFileStructureRequest.ENDPOINT, this.requestOptions); - } - - /** - * Finds the structure of a text file. The text file must contain data that is - * suitable to be ingested into Elasticsearch. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture findFileStructure( - Function> fn) throws IOException { - return findFileStructure(fn.apply(new FindFileStructureRequest.Builder()).build()); - } - // ----- Endpoint: ml.flush_job /** @@ -733,8 +699,8 @@ public final CompletableFuture flushJob( * on elastic.co */ - public CompletableFuture forecast(ForecastJobRequest request) throws IOException { - return this.transport.performRequestAsync(request, ForecastJobRequest.ENDPOINT, this.requestOptions); + public CompletableFuture forecast(ForecastRequest request) throws IOException { + return this.transport.performRequestAsync(request, ForecastRequest.ENDPOINT, this.requestOptions); } /** @@ -750,9 +716,9 @@ public CompletableFuture forecast(ForecastJobRequest reques * on elastic.co */ - public final CompletableFuture forecast( - Function> fn) throws IOException { - return forecast(fn.apply(new ForecastJobRequest.Builder()).build()); + public final CompletableFuture forecast( + Function> fn) throws IOException { + return forecast(fn.apply(new ForecastRequest.Builder()).build()); } // ----- Endpoint: ml.get_buckets @@ -1210,9 +1176,8 @@ public final CompletableFuture getOverallBuckets( * on elastic.co */ - public CompletableFuture getRecords(GetAnomalyRecordsRequest request) - throws IOException { - return this.transport.performRequestAsync(request, GetAnomalyRecordsRequest.ENDPOINT, this.requestOptions); + public CompletableFuture getRecords(GetRecordsRequest request) throws IOException { + return this.transport.performRequestAsync(request, GetRecordsRequest.ENDPOINT, this.requestOptions); } /** @@ -1227,9 +1192,9 @@ public CompletableFuture getRecords(GetAnomalyRecords * on elastic.co */ - public final CompletableFuture getRecords( - Function> fn) throws IOException { - return getRecords(fn.apply(new GetAnomalyRecordsRequest.Builder()).build()); + public final CompletableFuture getRecords( + Function> fn) throws IOException { + return getRecords(fn.apply(new GetRecordsRequest.Builder()).build()); } // ----- Endpoint: ml.get_trained_models @@ -1384,8 +1349,8 @@ public final CompletableFuture postCalendarEvents( * on elastic.co */ - public CompletableFuture postData(PostJobDataRequest request) throws IOException { - return this.transport.performRequestAsync(request, PostJobDataRequest.ENDPOINT, this.requestOptions); + public CompletableFuture postData(PostDataRequest request) throws IOException { + return this.transport.performRequestAsync(request, PostDataRequest.ENDPOINT, this.requestOptions); } /** @@ -1400,9 +1365,9 @@ public CompletableFuture postData(PostJobDataRequest reques * on elastic.co */ - public final CompletableFuture postData( - Function> fn) throws IOException { - return postData(fn.apply(new PostJobDataRequest.Builder()).build()); + public final CompletableFuture postData( + Function> fn) throws IOException { + return postData(fn.apply(new PostDataRequest.Builder()).build()); } // ----- Endpoint: ml.preview_data_frame_analytics @@ -1729,6 +1694,37 @@ public final CompletableFuture putTrainedModelAlia return putTrainedModelAlias(fn.apply(new PutTrainedModelAliasRequest.Builder()).build()); } + // ----- Endpoint: ml.reset_job + + /** + * Resets an existing anomaly detection job. + * + * @see Documentation + * on elastic.co + */ + + public CompletableFuture resetJob(ResetJobRequest request) throws IOException { + return this.transport.performRequestAsync(request, ResetJobRequest.ENDPOINT, this.requestOptions); + } + + /** + * Resets an existing anomaly detection job. + * + * @param fn + * a function that initializes a freshly created builder. This + * function can either return its builder argument after having set + * its properties or return another builder. + * @see Documentation + * on elastic.co + */ + + public final CompletableFuture resetJob( + Function> fn) throws IOException { + return resetJob(fn.apply(new ResetJobRequest.Builder()).build()); + } + // ----- Endpoint: ml.revert_model_snapshot /** @@ -2096,8 +2092,8 @@ public final CompletableFuture upgradeJobSnapshot( * on elastic.co */ - public CompletableFuture validate(ValidateJobRequest request) throws IOException { - return this.transport.performRequestAsync(request, ValidateJobRequest.ENDPOINT, this.requestOptions); + public CompletableFuture validate(ValidateRequest request) throws IOException { + return this.transport.performRequestAsync(request, ValidateRequest.ENDPOINT, this.requestOptions); } /** @@ -2112,9 +2108,9 @@ public CompletableFuture validate(ValidateJobRequest reques * on elastic.co */ - public final CompletableFuture validate( - Function> fn) throws IOException { - return validate(fn.apply(new ValidateJobRequest.Builder()).build()); + public final CompletableFuture validate( + Function> fn) throws IOException { + return validate(fn.apply(new ValidateRequest.Builder()).build()); } // ----- Endpoint: ml.validate_detector diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlClient.java index ff64422f7..ca57fff16 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ml/MlClient.java @@ -55,14 +55,10 @@ import co.elastic.clients.elasticsearch.ml.EvaluateDataFrameResponse; import co.elastic.clients.elasticsearch.ml.ExplainDataFrameAnalyticsRequest; import co.elastic.clients.elasticsearch.ml.ExplainDataFrameAnalyticsResponse; -import co.elastic.clients.elasticsearch.ml.FindFileStructureRequest; -import co.elastic.clients.elasticsearch.ml.FindFileStructureResponse; import co.elastic.clients.elasticsearch.ml.FlushJobRequest; import co.elastic.clients.elasticsearch.ml.FlushJobResponse; -import co.elastic.clients.elasticsearch.ml.ForecastJobRequest; -import co.elastic.clients.elasticsearch.ml.ForecastJobResponse; -import co.elastic.clients.elasticsearch.ml.GetAnomalyRecordsRequest; -import co.elastic.clients.elasticsearch.ml.GetAnomalyRecordsResponse; +import co.elastic.clients.elasticsearch.ml.ForecastRequest; +import co.elastic.clients.elasticsearch.ml.ForecastResponse; import co.elastic.clients.elasticsearch.ml.GetBucketsRequest; import co.elastic.clients.elasticsearch.ml.GetBucketsResponse; import co.elastic.clients.elasticsearch.ml.GetCalendarEventsRequest; @@ -91,6 +87,8 @@ import co.elastic.clients.elasticsearch.ml.GetModelSnapshotsResponse; import co.elastic.clients.elasticsearch.ml.GetOverallBucketsRequest; import co.elastic.clients.elasticsearch.ml.GetOverallBucketsResponse; +import co.elastic.clients.elasticsearch.ml.GetRecordsRequest; +import co.elastic.clients.elasticsearch.ml.GetRecordsResponse; import co.elastic.clients.elasticsearch.ml.GetTrainedModelsRequest; import co.elastic.clients.elasticsearch.ml.GetTrainedModelsResponse; import co.elastic.clients.elasticsearch.ml.GetTrainedModelsStatsRequest; @@ -101,8 +99,8 @@ import co.elastic.clients.elasticsearch.ml.OpenJobResponse; import co.elastic.clients.elasticsearch.ml.PostCalendarEventsRequest; import co.elastic.clients.elasticsearch.ml.PostCalendarEventsResponse; -import co.elastic.clients.elasticsearch.ml.PostJobDataRequest; -import co.elastic.clients.elasticsearch.ml.PostJobDataResponse; +import co.elastic.clients.elasticsearch.ml.PostDataRequest; +import co.elastic.clients.elasticsearch.ml.PostDataResponse; import co.elastic.clients.elasticsearch.ml.PreviewDataFrameAnalyticsRequest; import co.elastic.clients.elasticsearch.ml.PreviewDataFrameAnalyticsResponse; import co.elastic.clients.elasticsearch.ml.PreviewDatafeedRequest; @@ -123,6 +121,8 @@ import co.elastic.clients.elasticsearch.ml.PutTrainedModelAliasResponse; import co.elastic.clients.elasticsearch.ml.PutTrainedModelRequest; import co.elastic.clients.elasticsearch.ml.PutTrainedModelResponse; +import co.elastic.clients.elasticsearch.ml.ResetJobRequest; +import co.elastic.clients.elasticsearch.ml.ResetJobResponse; import co.elastic.clients.elasticsearch.ml.RevertModelSnapshotRequest; import co.elastic.clients.elasticsearch.ml.RevertModelSnapshotResponse; import co.elastic.clients.elasticsearch.ml.SetUpgradeModeRequest; @@ -147,8 +147,8 @@ import co.elastic.clients.elasticsearch.ml.UpgradeJobSnapshotResponse; import co.elastic.clients.elasticsearch.ml.ValidateDetectorRequest; import co.elastic.clients.elasticsearch.ml.ValidateDetectorResponse; -import co.elastic.clients.elasticsearch.ml.ValidateJobRequest; -import co.elastic.clients.elasticsearch.ml.ValidateJobResponse; +import co.elastic.clients.elasticsearch.ml.ValidateRequest; +import co.elastic.clients.elasticsearch.ml.ValidateResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.function.Function; @@ -647,39 +647,6 @@ public final ExplainDataFrameAnalyticsResponse explainDataFrameAnalytics( return explainDataFrameAnalytics(fn.apply(new ExplainDataFrameAnalyticsRequest.Builder()).build()); } - // ----- Endpoint: ml.find_file_structure - - /** - * Finds the structure of a text file. The text file must contain data that is - * suitable to be ingested into Elasticsearch. - * - * @see Documentation - * on elastic.co - */ - - public FindFileStructureResponse findFileStructure(FindFileStructureRequest request) throws IOException { - return this.transport.performRequest(request, FindFileStructureRequest.ENDPOINT, this.requestOptions); - } - - /** - * Finds the structure of a text file. The text file must contain data that is - * suitable to be ingested into Elasticsearch. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final FindFileStructureResponse findFileStructure( - Function> fn) throws IOException { - return findFileStructure(fn.apply(new FindFileStructureRequest.Builder()).build()); - } - // ----- Endpoint: ml.flush_job /** @@ -722,8 +689,8 @@ public final FlushJobResponse flushJob(Function */ - public ForecastJobResponse forecast(ForecastJobRequest request) throws IOException { - return this.transport.performRequest(request, ForecastJobRequest.ENDPOINT, this.requestOptions); + public ForecastResponse forecast(ForecastRequest request) throws IOException { + return this.transport.performRequest(request, ForecastRequest.ENDPOINT, this.requestOptions); } /** @@ -739,9 +706,9 @@ public ForecastJobResponse forecast(ForecastJobRequest request) throws IOExcepti * on elastic.co */ - public final ForecastJobResponse forecast( - Function> fn) throws IOException { - return forecast(fn.apply(new ForecastJobRequest.Builder()).build()); + public final ForecastResponse forecast(Function> fn) + throws IOException { + return forecast(fn.apply(new ForecastRequest.Builder()).build()); } // ----- Endpoint: ml.get_buckets @@ -1194,8 +1161,8 @@ public final GetOverallBucketsResponse getOverallBuckets( * on elastic.co */ - public GetAnomalyRecordsResponse getRecords(GetAnomalyRecordsRequest request) throws IOException { - return this.transport.performRequest(request, GetAnomalyRecordsRequest.ENDPOINT, this.requestOptions); + public GetRecordsResponse getRecords(GetRecordsRequest request) throws IOException { + return this.transport.performRequest(request, GetRecordsRequest.ENDPOINT, this.requestOptions); } /** @@ -1210,9 +1177,9 @@ public GetAnomalyRecordsResponse getRecords(GetAnomalyRecordsRequest request) th * on elastic.co */ - public final GetAnomalyRecordsResponse getRecords( - Function> fn) throws IOException { - return getRecords(fn.apply(new GetAnomalyRecordsRequest.Builder()).build()); + public final GetRecordsResponse getRecords(Function> fn) + throws IOException { + return getRecords(fn.apply(new GetRecordsRequest.Builder()).build()); } // ----- Endpoint: ml.get_trained_models @@ -1365,8 +1332,8 @@ public final PostCalendarEventsResponse postCalendarEvents( * on elastic.co */ - public PostJobDataResponse postData(PostJobDataRequest request) throws IOException { - return this.transport.performRequest(request, PostJobDataRequest.ENDPOINT, this.requestOptions); + public PostDataResponse postData(PostDataRequest request) throws IOException { + return this.transport.performRequest(request, PostDataRequest.ENDPOINT, this.requestOptions); } /** @@ -1381,9 +1348,9 @@ public PostJobDataResponse postData(PostJobDataRequest request) throws IOExcepti * on elastic.co */ - public final PostJobDataResponse postData( - Function> fn) throws IOException { - return postData(fn.apply(new PostJobDataRequest.Builder()).build()); + public final PostDataResponse postData(Function> fn) + throws IOException { + return postData(fn.apply(new PostDataRequest.Builder()).build()); } // ----- Endpoint: ml.preview_data_frame_analytics @@ -1707,6 +1674,37 @@ public final PutTrainedModelAliasResponse putTrainedModelAlias( return putTrainedModelAlias(fn.apply(new PutTrainedModelAliasRequest.Builder()).build()); } + // ----- Endpoint: ml.reset_job + + /** + * Resets an existing anomaly detection job. + * + * @see Documentation + * on elastic.co + */ + + public ResetJobResponse resetJob(ResetJobRequest request) throws IOException { + return this.transport.performRequest(request, ResetJobRequest.ENDPOINT, this.requestOptions); + } + + /** + * Resets an existing anomaly detection job. + * + * @param fn + * a function that initializes a freshly created builder. This + * function can either return its builder argument after having set + * its properties or return another builder. + * @see Documentation + * on elastic.co + */ + + public final ResetJobResponse resetJob(Function> fn) + throws IOException { + return resetJob(fn.apply(new ResetJobRequest.Builder()).build()); + } + // ----- Endpoint: ml.revert_model_snapshot /** @@ -2069,8 +2067,8 @@ public final UpgradeJobSnapshotResponse upgradeJobSnapshot( * on elastic.co */ - public ValidateJobResponse validate(ValidateJobRequest request) throws IOException { - return this.transport.performRequest(request, ValidateJobRequest.ENDPOINT, this.requestOptions); + public ValidateResponse validate(ValidateRequest request) throws IOException { + return this.transport.performRequest(request, ValidateRequest.ENDPOINT, this.requestOptions); } /** @@ -2085,9 +2083,9 @@ public ValidateJobResponse validate(ValidateJobRequest request) throws IOExcepti * on elastic.co */ - public final ValidateJobResponse validate( - Function> fn) throws IOException { - return validate(fn.apply(new ValidateJobRequest.Builder()).build()); + public final ValidateResponse validate(Function> fn) + throws IOException { + return validate(fn.apply(new ValidateRequest.Builder()).build()); } // ----- Endpoint: ml.validate_detector diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringAsyncClient.java index 26e076c1e..bfcbbf0eb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringAsyncClient.java @@ -57,7 +57,7 @@ public MonitoringAsyncClient(Transport transport, RequestOptions options) { * on elastic.co */ - public CompletableFuture bulk(BulkRequest request) throws IOException { + public CompletableFuture bulk(BulkRequest request) throws IOException { return this.transport.performRequestAsync(request, BulkRequest.ENDPOINT, this.requestOptions); } @@ -73,9 +73,9 @@ public CompletableFuture bulk(BulkRequest request) throws IOExcept * on elastic.co */ - public final CompletableFuture bulk(Function> fn) - throws IOException { - return bulk(fn.apply(new BulkRequest.Builder()).build()); + public final CompletableFuture bulk( + Function, ObjectBuilder>> fn) throws IOException { + return bulk(fn.apply(new BulkRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringClient.java index a695e4595..f3d673436 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/monitoring/MonitoringClient.java @@ -56,7 +56,7 @@ public MonitoringClient(Transport transport, RequestOptions options) { * on elastic.co */ - public BulkResponse bulk(BulkRequest request) throws IOException { + public BulkResponse bulk(BulkRequest request) throws IOException { return this.transport.performRequest(request, BulkRequest.ENDPOINT, this.requestOptions); } @@ -72,8 +72,9 @@ public BulkResponse bulk(BulkRequest request) throws IOException { * on elastic.co */ - public final BulkResponse bulk(Function> fn) throws IOException { - return bulk(fn.apply(new BulkRequest.Builder()).build()); + public final BulkResponse bulk( + Function, ObjectBuilder>> fn) throws IOException { + return bulk(fn.apply(new BulkRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupAsyncClient.java index 62cc283e2..4358e046f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupAsyncClient.java @@ -25,24 +25,24 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.rollup.CreateRollupJobRequest; -import co.elastic.clients.elasticsearch.rollup.CreateRollupJobResponse; -import co.elastic.clients.elasticsearch.rollup.DeleteRollupJobRequest; -import co.elastic.clients.elasticsearch.rollup.DeleteRollupJobResponse; -import co.elastic.clients.elasticsearch.rollup.GetRollupCapabilitiesRequest; -import co.elastic.clients.elasticsearch.rollup.GetRollupCapabilitiesResponse; -import co.elastic.clients.elasticsearch.rollup.GetRollupIndexCapabilitiesRequest; -import co.elastic.clients.elasticsearch.rollup.GetRollupIndexCapabilitiesResponse; -import co.elastic.clients.elasticsearch.rollup.GetRollupJobRequest; -import co.elastic.clients.elasticsearch.rollup.GetRollupJobResponse; +import co.elastic.clients.elasticsearch.rollup.DeleteJobRequest; +import co.elastic.clients.elasticsearch.rollup.DeleteJobResponse; +import co.elastic.clients.elasticsearch.rollup.GetJobsRequest; +import co.elastic.clients.elasticsearch.rollup.GetJobsResponse; +import co.elastic.clients.elasticsearch.rollup.GetRollupCapsRequest; +import co.elastic.clients.elasticsearch.rollup.GetRollupCapsResponse; +import co.elastic.clients.elasticsearch.rollup.GetRollupIndexCapsRequest; +import co.elastic.clients.elasticsearch.rollup.GetRollupIndexCapsResponse; +import co.elastic.clients.elasticsearch.rollup.PutJobRequest; +import co.elastic.clients.elasticsearch.rollup.PutJobResponse; import co.elastic.clients.elasticsearch.rollup.RollupRequest; import co.elastic.clients.elasticsearch.rollup.RollupResponse; import co.elastic.clients.elasticsearch.rollup.RollupSearchRequest; import co.elastic.clients.elasticsearch.rollup.RollupSearchResponse; -import co.elastic.clients.elasticsearch.rollup.StartRollupJobRequest; -import co.elastic.clients.elasticsearch.rollup.StartRollupJobResponse; -import co.elastic.clients.elasticsearch.rollup.StopRollupJobRequest; -import co.elastic.clients.elasticsearch.rollup.StopRollupJobResponse; +import co.elastic.clients.elasticsearch.rollup.StartJobRequest; +import co.elastic.clients.elasticsearch.rollup.StartJobResponse; +import co.elastic.clients.elasticsearch.rollup.StopJobRequest; +import co.elastic.clients.elasticsearch.rollup.StopJobResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.concurrent.CompletableFuture; @@ -73,8 +73,8 @@ public RollupAsyncClient(Transport transport, RequestOptions options) { * on elastic.co */ - public CompletableFuture deleteJob(DeleteRollupJobRequest request) throws IOException { - return this.transport.performRequestAsync(request, DeleteRollupJobRequest.ENDPOINT, this.requestOptions); + public CompletableFuture deleteJob(DeleteJobRequest request) throws IOException { + return this.transport.performRequestAsync(request, DeleteJobRequest.ENDPOINT, this.requestOptions); } /** @@ -89,9 +89,9 @@ public CompletableFuture deleteJob(DeleteRollupJobReque * on elastic.co */ - public final CompletableFuture deleteJob( - Function> fn) throws IOException { - return deleteJob(fn.apply(new DeleteRollupJobRequest.Builder()).build()); + public final CompletableFuture deleteJob( + Function> fn) throws IOException { + return deleteJob(fn.apply(new DeleteJobRequest.Builder()).build()); } // ----- Endpoint: rollup.get_jobs @@ -104,8 +104,8 @@ public final CompletableFuture deleteJob( * on elastic.co */ - public CompletableFuture getJobs(GetRollupJobRequest request) throws IOException { - return this.transport.performRequestAsync(request, GetRollupJobRequest.ENDPOINT, this.requestOptions); + public CompletableFuture getJobs(GetJobsRequest request) throws IOException { + return this.transport.performRequestAsync(request, GetJobsRequest.ENDPOINT, this.requestOptions); } /** @@ -120,9 +120,9 @@ public CompletableFuture getJobs(GetRollupJobRequest reque * on elastic.co */ - public final CompletableFuture getJobs( - Function> fn) throws IOException { - return getJobs(fn.apply(new GetRollupJobRequest.Builder()).build()); + public final CompletableFuture getJobs( + Function> fn) throws IOException { + return getJobs(fn.apply(new GetJobsRequest.Builder()).build()); } // ----- Endpoint: rollup.get_rollup_caps @@ -136,9 +136,8 @@ public final CompletableFuture getJobs( * on elastic.co */ - public CompletableFuture getRollupCaps(GetRollupCapabilitiesRequest request) - throws IOException { - return this.transport.performRequestAsync(request, GetRollupCapabilitiesRequest.ENDPOINT, this.requestOptions); + public CompletableFuture getRollupCaps(GetRollupCapsRequest request) throws IOException { + return this.transport.performRequestAsync(request, GetRollupCapsRequest.ENDPOINT, this.requestOptions); } /** @@ -154,10 +153,9 @@ public CompletableFuture getRollupCaps(GetRollupC * on elastic.co */ - public final CompletableFuture getRollupCaps( - Function> fn) - throws IOException { - return getRollupCaps(fn.apply(new GetRollupCapabilitiesRequest.Builder()).build()); + public final CompletableFuture getRollupCaps( + Function> fn) throws IOException { + return getRollupCaps(fn.apply(new GetRollupCapsRequest.Builder()).build()); } // ----- Endpoint: rollup.get_rollup_index_caps @@ -171,10 +169,9 @@ public final CompletableFuture getRollupCaps( * on elastic.co */ - public CompletableFuture getRollupIndexCaps( - GetRollupIndexCapabilitiesRequest request) throws IOException { - return this.transport.performRequestAsync(request, GetRollupIndexCapabilitiesRequest.ENDPOINT, - this.requestOptions); + public CompletableFuture getRollupIndexCaps(GetRollupIndexCapsRequest request) + throws IOException { + return this.transport.performRequestAsync(request, GetRollupIndexCapsRequest.ENDPOINT, this.requestOptions); } /** @@ -190,10 +187,10 @@ public CompletableFuture getRollupIndexCaps( * on elastic.co */ - public final CompletableFuture getRollupIndexCaps( - Function> fn) + public final CompletableFuture getRollupIndexCaps( + Function> fn) throws IOException { - return getRollupIndexCaps(fn.apply(new GetRollupIndexCapabilitiesRequest.Builder()).build()); + return getRollupIndexCaps(fn.apply(new GetRollupIndexCapsRequest.Builder()).build()); } // ----- Endpoint: rollup.put_job @@ -206,8 +203,8 @@ public final CompletableFuture getRollupInde * on elastic.co */ - public CompletableFuture putJob(CreateRollupJobRequest request) throws IOException { - return this.transport.performRequestAsync(request, CreateRollupJobRequest.ENDPOINT, this.requestOptions); + public CompletableFuture putJob(PutJobRequest request) throws IOException { + return this.transport.performRequestAsync(request, PutJobRequest.ENDPOINT, this.requestOptions); } /** @@ -222,9 +219,9 @@ public CompletableFuture putJob(CreateRollupJobRequest * on elastic.co */ - public final CompletableFuture putJob( - Function> fn) throws IOException { - return putJob(fn.apply(new CreateRollupJobRequest.Builder()).build()); + public final CompletableFuture putJob( + Function> fn) throws IOException { + return putJob(fn.apply(new PutJobRequest.Builder()).build()); } // ----- Endpoint: rollup.rollup @@ -302,8 +299,8 @@ public final CompletableFuture> roll * on elastic.co */ - public CompletableFuture startJob(StartRollupJobRequest request) throws IOException { - return this.transport.performRequestAsync(request, StartRollupJobRequest.ENDPOINT, this.requestOptions); + public CompletableFuture startJob(StartJobRequest request) throws IOException { + return this.transport.performRequestAsync(request, StartJobRequest.ENDPOINT, this.requestOptions); } /** @@ -318,9 +315,9 @@ public CompletableFuture startJob(StartRollupJobRequest * on elastic.co */ - public final CompletableFuture startJob( - Function> fn) throws IOException { - return startJob(fn.apply(new StartRollupJobRequest.Builder()).build()); + public final CompletableFuture startJob( + Function> fn) throws IOException { + return startJob(fn.apply(new StartJobRequest.Builder()).build()); } // ----- Endpoint: rollup.stop_job @@ -333,8 +330,8 @@ public final CompletableFuture startJob( * on elastic.co */ - public CompletableFuture stopJob(StopRollupJobRequest request) throws IOException { - return this.transport.performRequestAsync(request, StopRollupJobRequest.ENDPOINT, this.requestOptions); + public CompletableFuture stopJob(StopJobRequest request) throws IOException { + return this.transport.performRequestAsync(request, StopJobRequest.ENDPOINT, this.requestOptions); } /** @@ -349,9 +346,9 @@ public CompletableFuture stopJob(StopRollupJobRequest req * on elastic.co */ - public final CompletableFuture stopJob( - Function> fn) throws IOException { - return stopJob(fn.apply(new StopRollupJobRequest.Builder()).build()); + public final CompletableFuture stopJob( + Function> fn) throws IOException { + return stopJob(fn.apply(new StopJobRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupClient.java index 6531ff393..5a5e26ac0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/rollup/RollupClient.java @@ -25,24 +25,24 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.rollup.CreateRollupJobRequest; -import co.elastic.clients.elasticsearch.rollup.CreateRollupJobResponse; -import co.elastic.clients.elasticsearch.rollup.DeleteRollupJobRequest; -import co.elastic.clients.elasticsearch.rollup.DeleteRollupJobResponse; -import co.elastic.clients.elasticsearch.rollup.GetRollupCapabilitiesRequest; -import co.elastic.clients.elasticsearch.rollup.GetRollupCapabilitiesResponse; -import co.elastic.clients.elasticsearch.rollup.GetRollupIndexCapabilitiesRequest; -import co.elastic.clients.elasticsearch.rollup.GetRollupIndexCapabilitiesResponse; -import co.elastic.clients.elasticsearch.rollup.GetRollupJobRequest; -import co.elastic.clients.elasticsearch.rollup.GetRollupJobResponse; +import co.elastic.clients.elasticsearch.rollup.DeleteJobRequest; +import co.elastic.clients.elasticsearch.rollup.DeleteJobResponse; +import co.elastic.clients.elasticsearch.rollup.GetJobsRequest; +import co.elastic.clients.elasticsearch.rollup.GetJobsResponse; +import co.elastic.clients.elasticsearch.rollup.GetRollupCapsRequest; +import co.elastic.clients.elasticsearch.rollup.GetRollupCapsResponse; +import co.elastic.clients.elasticsearch.rollup.GetRollupIndexCapsRequest; +import co.elastic.clients.elasticsearch.rollup.GetRollupIndexCapsResponse; +import co.elastic.clients.elasticsearch.rollup.PutJobRequest; +import co.elastic.clients.elasticsearch.rollup.PutJobResponse; import co.elastic.clients.elasticsearch.rollup.RollupRequest; import co.elastic.clients.elasticsearch.rollup.RollupResponse; import co.elastic.clients.elasticsearch.rollup.RollupSearchRequest; import co.elastic.clients.elasticsearch.rollup.RollupSearchResponse; -import co.elastic.clients.elasticsearch.rollup.StartRollupJobRequest; -import co.elastic.clients.elasticsearch.rollup.StartRollupJobResponse; -import co.elastic.clients.elasticsearch.rollup.StopRollupJobRequest; -import co.elastic.clients.elasticsearch.rollup.StopRollupJobResponse; +import co.elastic.clients.elasticsearch.rollup.StartJobRequest; +import co.elastic.clients.elasticsearch.rollup.StartJobResponse; +import co.elastic.clients.elasticsearch.rollup.StopJobRequest; +import co.elastic.clients.elasticsearch.rollup.StopJobResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.function.Function; @@ -72,8 +72,8 @@ public RollupClient(Transport transport, RequestOptions options) { * on elastic.co */ - public DeleteRollupJobResponse deleteJob(DeleteRollupJobRequest request) throws IOException { - return this.transport.performRequest(request, DeleteRollupJobRequest.ENDPOINT, this.requestOptions); + public DeleteJobResponse deleteJob(DeleteJobRequest request) throws IOException { + return this.transport.performRequest(request, DeleteJobRequest.ENDPOINT, this.requestOptions); } /** @@ -88,9 +88,9 @@ public DeleteRollupJobResponse deleteJob(DeleteRollupJobRequest request) throws * on elastic.co */ - public final DeleteRollupJobResponse deleteJob( - Function> fn) throws IOException { - return deleteJob(fn.apply(new DeleteRollupJobRequest.Builder()).build()); + public final DeleteJobResponse deleteJob(Function> fn) + throws IOException { + return deleteJob(fn.apply(new DeleteJobRequest.Builder()).build()); } // ----- Endpoint: rollup.get_jobs @@ -103,8 +103,8 @@ public final DeleteRollupJobResponse deleteJob( * on elastic.co */ - public GetRollupJobResponse getJobs(GetRollupJobRequest request) throws IOException { - return this.transport.performRequest(request, GetRollupJobRequest.ENDPOINT, this.requestOptions); + public GetJobsResponse getJobs(GetJobsRequest request) throws IOException { + return this.transport.performRequest(request, GetJobsRequest.ENDPOINT, this.requestOptions); } /** @@ -119,9 +119,9 @@ public GetRollupJobResponse getJobs(GetRollupJobRequest request) throws IOExcept * on elastic.co */ - public final GetRollupJobResponse getJobs( - Function> fn) throws IOException { - return getJobs(fn.apply(new GetRollupJobRequest.Builder()).build()); + public final GetJobsResponse getJobs(Function> fn) + throws IOException { + return getJobs(fn.apply(new GetJobsRequest.Builder()).build()); } // ----- Endpoint: rollup.get_rollup_caps @@ -135,8 +135,8 @@ public final GetRollupJobResponse getJobs( * on elastic.co */ - public GetRollupCapabilitiesResponse getRollupCaps(GetRollupCapabilitiesRequest request) throws IOException { - return this.transport.performRequest(request, GetRollupCapabilitiesRequest.ENDPOINT, this.requestOptions); + public GetRollupCapsResponse getRollupCaps(GetRollupCapsRequest request) throws IOException { + return this.transport.performRequest(request, GetRollupCapsRequest.ENDPOINT, this.requestOptions); } /** @@ -152,10 +152,9 @@ public GetRollupCapabilitiesResponse getRollupCaps(GetRollupCapabilitiesRequest * on elastic.co */ - public final GetRollupCapabilitiesResponse getRollupCaps( - Function> fn) - throws IOException { - return getRollupCaps(fn.apply(new GetRollupCapabilitiesRequest.Builder()).build()); + public final GetRollupCapsResponse getRollupCaps( + Function> fn) throws IOException { + return getRollupCaps(fn.apply(new GetRollupCapsRequest.Builder()).build()); } // ----- Endpoint: rollup.get_rollup_index_caps @@ -169,9 +168,8 @@ public final GetRollupCapabilitiesResponse getRollupCaps( * on elastic.co */ - public GetRollupIndexCapabilitiesResponse getRollupIndexCaps(GetRollupIndexCapabilitiesRequest request) - throws IOException { - return this.transport.performRequest(request, GetRollupIndexCapabilitiesRequest.ENDPOINT, this.requestOptions); + public GetRollupIndexCapsResponse getRollupIndexCaps(GetRollupIndexCapsRequest request) throws IOException { + return this.transport.performRequest(request, GetRollupIndexCapsRequest.ENDPOINT, this.requestOptions); } /** @@ -187,10 +185,10 @@ public GetRollupIndexCapabilitiesResponse getRollupIndexCaps(GetRollupIndexCapab * on elastic.co */ - public final GetRollupIndexCapabilitiesResponse getRollupIndexCaps( - Function> fn) + public final GetRollupIndexCapsResponse getRollupIndexCaps( + Function> fn) throws IOException { - return getRollupIndexCaps(fn.apply(new GetRollupIndexCapabilitiesRequest.Builder()).build()); + return getRollupIndexCaps(fn.apply(new GetRollupIndexCapsRequest.Builder()).build()); } // ----- Endpoint: rollup.put_job @@ -203,8 +201,8 @@ public final GetRollupIndexCapabilitiesResponse getRollupIndexCaps( * on elastic.co */ - public CreateRollupJobResponse putJob(CreateRollupJobRequest request) throws IOException { - return this.transport.performRequest(request, CreateRollupJobRequest.ENDPOINT, this.requestOptions); + public PutJobResponse putJob(PutJobRequest request) throws IOException { + return this.transport.performRequest(request, PutJobRequest.ENDPOINT, this.requestOptions); } /** @@ -219,9 +217,9 @@ public CreateRollupJobResponse putJob(CreateRollupJobRequest request) throws IOE * on elastic.co */ - public final CreateRollupJobResponse putJob( - Function> fn) throws IOException { - return putJob(fn.apply(new CreateRollupJobRequest.Builder()).build()); + public final PutJobResponse putJob(Function> fn) + throws IOException { + return putJob(fn.apply(new PutJobRequest.Builder()).build()); } // ----- Endpoint: rollup.rollup @@ -299,8 +297,8 @@ public final RollupSearchResponse rollupSearch( * on elastic.co */ - public StartRollupJobResponse startJob(StartRollupJobRequest request) throws IOException { - return this.transport.performRequest(request, StartRollupJobRequest.ENDPOINT, this.requestOptions); + public StartJobResponse startJob(StartJobRequest request) throws IOException { + return this.transport.performRequest(request, StartJobRequest.ENDPOINT, this.requestOptions); } /** @@ -315,9 +313,9 @@ public StartRollupJobResponse startJob(StartRollupJobRequest request) throws IOE * on elastic.co */ - public final StartRollupJobResponse startJob( - Function> fn) throws IOException { - return startJob(fn.apply(new StartRollupJobRequest.Builder()).build()); + public final StartJobResponse startJob(Function> fn) + throws IOException { + return startJob(fn.apply(new StartJobRequest.Builder()).build()); } // ----- Endpoint: rollup.stop_job @@ -330,8 +328,8 @@ public final StartRollupJobResponse startJob( * on elastic.co */ - public StopRollupJobResponse stopJob(StopRollupJobRequest request) throws IOException { - return this.transport.performRequest(request, StopRollupJobRequest.ENDPOINT, this.requestOptions); + public StopJobResponse stopJob(StopJobRequest request) throws IOException { + return this.transport.performRequest(request, StopJobRequest.ENDPOINT, this.requestOptions); } /** @@ -346,9 +344,9 @@ public StopRollupJobResponse stopJob(StopRollupJobRequest request) throws IOExce * on elastic.co */ - public final StopRollupJobResponse stopJob( - Function> fn) throws IOException { - return stopJob(fn.apply(new StopRollupJobRequest.Builder()).build()); + public final StopJobResponse stopJob(Function> fn) + throws IOException { + return stopJob(fn.apply(new StopJobRequest.Builder()).build()); } // ----- Misc diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsAsyncClient.java index d65d0ed4e..3188180a7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsAsyncClient.java @@ -29,8 +29,6 @@ import co.elastic.clients.elasticsearch.searchable_snapshots.ClearCacheResponse; import co.elastic.clients.elasticsearch.searchable_snapshots.MountRequest; import co.elastic.clients.elasticsearch.searchable_snapshots.MountResponse; -import co.elastic.clients.elasticsearch.searchable_snapshots.RepositoryStatsRequest; -import co.elastic.clients.elasticsearch.searchable_snapshots.RepositoryStatsResponse; import co.elastic.clients.elasticsearch.searchable_snapshots.StatsRequest; import co.elastic.clients.elasticsearch.searchable_snapshots.StatsResponse; import co.elastic.clients.util.ObjectBuilder; @@ -59,7 +57,7 @@ public SearchableSnapshotsAsyncClient(Transport transport, RequestOptions option * Clear the cache of searchable snapshots. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html">Documentation * on elastic.co */ @@ -75,7 +73,7 @@ public CompletableFuture clearCache(ClearCacheRequest reques * function can either return its builder argument after having set * its properties or return another builder. * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html">Documentation * on elastic.co */ @@ -90,7 +88,7 @@ public final CompletableFuture clearCache( * Mount a snapshot as a searchable index. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-api-mount-snapshot.html">Documentation * on elastic.co */ @@ -106,7 +104,7 @@ public CompletableFuture mount(MountRequest request) throws IOExc * function can either return its builder argument after having set * its properties or return another builder. * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-api-mount-snapshot.html">Documentation * on elastic.co */ @@ -115,45 +113,13 @@ public final CompletableFuture mount(FunctionDocumentation - * on elastic.co - */ - - public CompletableFuture repositoryStats(RepositoryStatsRequest request) - throws IOException { - return this.transport.performRequestAsync(request, RepositoryStatsRequest.ENDPOINT, this.requestOptions); - } - - /** - * DEPRECATED: This API is replaced by the Repositories Metering API. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final CompletableFuture repositoryStats( - Function> fn) throws IOException { - return repositoryStats(fn.apply(new RepositoryStatsRequest.Builder()).build()); - } - // ----- Endpoint: searchable_snapshots.stats /** * Retrieve shard-level statistics about searchable snapshots. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html">Documentation * on elastic.co */ @@ -169,7 +135,7 @@ public CompletableFuture stats(StatsRequest request) throws IOExc * function can either return its builder argument after having set * its properties or return another builder. * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsClient.java index 3defa0fb1..47969d43f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/searchable_snapshots/SearchableSnapshotsClient.java @@ -29,8 +29,6 @@ import co.elastic.clients.elasticsearch.searchable_snapshots.ClearCacheResponse; import co.elastic.clients.elasticsearch.searchable_snapshots.MountRequest; import co.elastic.clients.elasticsearch.searchable_snapshots.MountResponse; -import co.elastic.clients.elasticsearch.searchable_snapshots.RepositoryStatsRequest; -import co.elastic.clients.elasticsearch.searchable_snapshots.RepositoryStatsResponse; import co.elastic.clients.elasticsearch.searchable_snapshots.StatsRequest; import co.elastic.clients.elasticsearch.searchable_snapshots.StatsResponse; import co.elastic.clients.util.ObjectBuilder; @@ -58,7 +56,7 @@ public SearchableSnapshotsClient(Transport transport, RequestOptions options) { * Clear the cache of searchable snapshots. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html">Documentation * on elastic.co */ @@ -74,7 +72,7 @@ public ClearCacheResponse clearCache(ClearCacheRequest request) throws IOExcepti * function can either return its builder argument after having set * its properties or return another builder. * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html">Documentation * on elastic.co */ @@ -89,7 +87,7 @@ public final ClearCacheResponse clearCache(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-api-mount-snapshot.html">Documentation * on elastic.co */ @@ -105,7 +103,7 @@ public MountResponse mount(MountRequest request) throws IOException { * function can either return its builder argument after having set * its properties or return another builder. * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-api-mount-snapshot.html">Documentation * on elastic.co */ @@ -114,44 +112,13 @@ public final MountResponse mount(FunctionDocumentation - * on elastic.co - */ - - public RepositoryStatsResponse repositoryStats(RepositoryStatsRequest request) throws IOException { - return this.transport.performRequest(request, RepositoryStatsRequest.ENDPOINT, this.requestOptions); - } - - /** - * DEPRECATED: This API is replaced by the Repositories Metering API. - * - * @param fn - * a function that initializes a freshly created builder. This - * function can either return its builder argument after having set - * its properties or return another builder. - * @see Documentation - * on elastic.co - */ - - public final RepositoryStatsResponse repositoryStats( - Function> fn) throws IOException { - return repositoryStats(fn.apply(new RepositoryStatsRequest.Builder()).build()); - } - // ----- Endpoint: searchable_snapshots.stats /** * Retrieve shard-level statistics about searchable snapshots. * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html">Documentation * on elastic.co */ @@ -167,7 +134,7 @@ public StatsResponse stats(StatsRequest request) throws IOException { * function can either return its builder argument after having set * its properties or return another builder. * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/master/searchable-snapshots-apis.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotAsyncClient.java index d9be57fb6..0cc8362ea 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotAsyncClient.java @@ -198,7 +198,7 @@ public final CompletableFuture createRepository( // ----- Endpoint: snapshot.delete /** - * Deletes a snapshot. + * Deletes one or more snapshots. * * @see Documentation @@ -210,7 +210,7 @@ public CompletableFuture delete(DeleteRequest request) throws IO } /** - * Deletes a snapshot. + * Deletes one or more snapshots. * * @param fn * a function that initializes a freshly created builder. This diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotClient.java index 3aec6736f..7879c256d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/snapshot/SnapshotClient.java @@ -195,7 +195,7 @@ public final CreateRepositoryResponse createRepository( // ----- Endpoint: snapshot.delete /** - * Deletes a snapshot. + * Deletes one or more snapshots. * * @see Documentation @@ -207,7 +207,7 @@ public DeleteResponse delete(DeleteRequest request) throws IOException { } /** - * Deletes a snapshot. + * Deletes one or more snapshots. * * @param fn * a function that initializes a freshly created builder. This diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlAsyncClient.java index 976898982..54a589ba5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlAsyncClient.java @@ -57,7 +57,7 @@ public SqlAsyncClient(Transport transport, RequestOptions options) { * Clears the SQL cursor * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-sql-cursor-api.html">Documentation * on elastic.co */ @@ -73,7 +73,7 @@ public CompletableFuture clearCursor(ClearCursorRequest req * function can either return its builder argument after having set * its properties or return another builder. * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-sql-cursor-api.html">Documentation * on elastic.co */ @@ -88,7 +88,7 @@ public final CompletableFuture clearCursor( * Executes a SQL request * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-search-api.html">Documentation * on elastic.co */ @@ -104,7 +104,7 @@ public CompletableFuture query(QueryRequest request) throws IOExc * function can either return its builder argument after having set * its properties or return another builder. * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-search-api.html">Documentation * on elastic.co */ @@ -119,7 +119,7 @@ public final CompletableFuture query(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-translate-api.html">Documentation * on elastic.co */ @@ -135,7 +135,7 @@ public CompletableFuture translate(TranslateRequest request) * function can either return its builder argument after having set * its properties or return another builder. * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-translate-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlClient.java index 421cc6aad..3eeba6808 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/sql/SqlClient.java @@ -56,7 +56,7 @@ public SqlClient(Transport transport, RequestOptions options) { * Clears the SQL cursor * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-sql-cursor-api.html">Documentation * on elastic.co */ @@ -72,7 +72,7 @@ public ClearCursorResponse clearCursor(ClearCursorRequest request) throws IOExce * function can either return its builder argument after having set * its properties or return another builder. * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/current/clear-sql-cursor-api.html">Documentation * on elastic.co */ @@ -87,7 +87,7 @@ public final ClearCursorResponse clearCursor( * Executes a SQL request * * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-search-api.html">Documentation * on elastic.co */ @@ -103,7 +103,7 @@ public QueryResponse query(QueryRequest request) throws IOException { * function can either return its builder argument after having set * its properties or return another builder. * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-search-api.html">Documentation * on elastic.co */ @@ -118,7 +118,7 @@ public final QueryResponse query(FunctionDocumentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-translate-api.html">Documentation * on elastic.co */ @@ -134,7 +134,7 @@ public TranslateResponse translate(TranslateRequest request) throws IOException * function can either return its builder argument after having set * its properties or return another builder. * @see Documentation + * "https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-translate-api.html">Documentation * on elastic.co */ diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslAsyncClient.java index b1bafc8d4..08aef9d9d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslAsyncClient.java @@ -25,8 +25,8 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.ssl.GetCertificatesRequest; -import co.elastic.clients.elasticsearch.ssl.GetCertificatesResponse; +import co.elastic.clients.elasticsearch.ssl.CertificatesRequest; +import co.elastic.clients.elasticsearch.ssl.CertificatesResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.concurrent.CompletableFuture; @@ -57,8 +57,8 @@ public SslAsyncClient(Transport transport, RequestOptions options) { * "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html">Documentation * on elastic.co */ - public CompletableFuture certificates() throws IOException { - return this.transport.performRequestAsync(GetCertificatesRequest.INSTANCE, GetCertificatesRequest.ENDPOINT, + public CompletableFuture certificates() throws IOException { + return this.transport.performRequestAsync(CertificatesRequest.INSTANCE, CertificatesRequest.ENDPOINT, this.requestOptions); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslClient.java index fa3e06e33..93ae3a826 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/ssl/SslClient.java @@ -25,8 +25,8 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.ssl.GetCertificatesRequest; -import co.elastic.clients.elasticsearch.ssl.GetCertificatesResponse; +import co.elastic.clients.elasticsearch.ssl.CertificatesRequest; +import co.elastic.clients.elasticsearch.ssl.CertificatesResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.function.Function; @@ -56,8 +56,8 @@ public SslClient(Transport transport, RequestOptions options) { * "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-ssl.html">Documentation * on elastic.co */ - public GetCertificatesResponse certificates() throws IOException { - return this.transport.performRequest(GetCertificatesRequest.INSTANCE, GetCertificatesRequest.ENDPOINT, + public CertificatesResponse certificates() throws IOException { + return this.transport.performRequest(CertificatesRequest.INSTANCE, CertificatesRequest.ENDPOINT, this.requestOptions); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksAsyncClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksAsyncClient.java index 2f71a490d..f79b79ca5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksAsyncClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksAsyncClient.java @@ -25,12 +25,12 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.task.CancelRequest; -import co.elastic.clients.elasticsearch.task.CancelResponse; -import co.elastic.clients.elasticsearch.task.GetRequest; -import co.elastic.clients.elasticsearch.task.GetResponse; -import co.elastic.clients.elasticsearch.task.ListRequest; -import co.elastic.clients.elasticsearch.task.ListResponse; +import co.elastic.clients.elasticsearch.tasks.CancelRequest; +import co.elastic.clients.elasticsearch.tasks.CancelResponse; +import co.elastic.clients.elasticsearch.tasks.GetRequest; +import co.elastic.clients.elasticsearch.tasks.GetResponse; +import co.elastic.clients.elasticsearch.tasks.ListRequest; +import co.elastic.clients.elasticsearch.tasks.ListResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.concurrent.CompletableFuture; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksClient.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksClient.java index b1ffbc6c0..377941007 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksClient.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/api/tasks/TasksClient.java @@ -25,12 +25,12 @@ import co.elastic.clients.base.ApiClient; import co.elastic.clients.base.Transport; -import co.elastic.clients.elasticsearch.task.CancelRequest; -import co.elastic.clients.elasticsearch.task.CancelResponse; -import co.elastic.clients.elasticsearch.task.GetRequest; -import co.elastic.clients.elasticsearch.task.GetResponse; -import co.elastic.clients.elasticsearch.task.ListRequest; -import co.elastic.clients.elasticsearch.task.ListResponse; +import co.elastic.clients.elasticsearch.tasks.CancelRequest; +import co.elastic.clients.elasticsearch.tasks.CancelResponse; +import co.elastic.clients.elasticsearch.tasks.GetRequest; +import co.elastic.clients.elasticsearch.tasks.GetResponse; +import co.elastic.clients.elasticsearch.tasks.ListRequest; +import co.elastic.clients.elasticsearch.tasks.ListResponse; import co.elastic.clients.util.ObjectBuilder; import java.io.IOException; import java.util.function.Function; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteRequest.java index 159a3028d..120ec6c4a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/DeleteRequest.java @@ -49,6 +49,8 @@ protected DeleteRequest(Builder builder) { } /** + * The async search ID + *

* API name: {@code id} */ public String id() { @@ -64,6 +66,8 @@ public static class Builder implements ObjectBuilder { private String id; /** + * The async search ID + *

* API name: {@code id} */ public Builder id(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetRequest.java index 589da5915..ccf65a6e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/GetRequest.java @@ -64,6 +64,8 @@ protected GetRequest(Builder builder) { } /** + * The async search ID + *

* API name: {@code id} */ public String id() { @@ -71,6 +73,9 @@ public String id() { } /** + * Specify the time interval in which the results (partial or final) for this + * search will be available + *

* API name: {@code keep_alive} */ @Nullable @@ -79,6 +84,9 @@ public JsonValue keepAlive() { } /** + * Specify whether aggregation and suggester names should be prefixed by their + * respective types in the response + *

* API name: {@code typed_keys} */ @Nullable @@ -87,6 +95,8 @@ public Boolean typedKeys() { } /** + * Specify the time that the request should block waiting for the final response + *

* API name: {@code wait_for_completion_timeout} */ @Nullable @@ -112,6 +122,8 @@ public static class Builder implements ObjectBuilder { private JsonValue waitForCompletionTimeout; /** + * The async search ID + *

* API name: {@code id} */ public Builder id(String value) { @@ -120,6 +132,9 @@ public Builder id(String value) { } /** + * Specify the time interval in which the results (partial or final) for this + * search will be available + *

* API name: {@code keep_alive} */ public Builder keepAlive(@Nullable JsonValue value) { @@ -128,6 +143,9 @@ public Builder keepAlive(@Nullable JsonValue value) { } /** + * Specify whether aggregation and suggester names should be prefixed by their + * respective types in the response + *

* API name: {@code typed_keys} */ public Builder typedKeys(@Nullable Boolean value) { @@ -136,6 +154,8 @@ public Builder typedKeys(@Nullable Boolean value) { } /** + * Specify the time that the request should block waiting for the final response + *

* API name: {@code wait_for_completion_timeout} */ public Builder waitForCompletionTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/StatusRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/StatusRequest.java index 1c2939bf1..87dc069b3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/StatusRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/StatusRequest.java @@ -49,6 +49,8 @@ protected StatusRequest(Builder builder) { } /** + * The async search ID + *

* API name: {@code id} */ public String id() { @@ -64,6 +66,8 @@ public static class Builder implements ObjectBuilder { private String id; /** + * The async search ID + *

* API name: {@code id} */ public Builder id(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java index 406dbbd14..170ba9d28 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/async_search/SubmitRequest.java @@ -152,7 +152,7 @@ public final class SubmitRequest extends RequestBase implements ToJsonp { private final List rescore; @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final Map scriptFields; @@ -282,6 +282,9 @@ protected SubmitRequest(Builder builder) { } /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -533,7 +536,7 @@ public List rescore() { * API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } @@ -1209,7 +1212,7 @@ public static class Builder implements ObjectBuilder { private List rescore; @Nullable - private JsonValue routing; + private String routing; @Nullable private Map scriptFields; @@ -1278,6 +1281,9 @@ public static class Builder implements ObjectBuilder { private List fields; /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -1286,6 +1292,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -1680,7 +1689,7 @@ public Builder addRescore(Function> fn) /** * API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } @@ -2064,7 +2073,7 @@ protected static void setupSubmitRequestDeserializer(DelegatingDeserializer roles; + + private final Map deciders; + + // --------------------------------------------------------------------------------------------- + + protected AutoscalingPolicy(Builder builder) { + + this.roles = Objects.requireNonNull(builder.roles, "roles"); + this.deciders = Objects.requireNonNull(builder.deciders, "deciders"); + + } + + /** + * API name: {@code roles} + */ + public List roles() { + return this.roles; + } + + /** + * Decider settings + *

+ * API name: {@code deciders} + */ + public Map deciders() { + return this.deciders; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("roles"); + generator.writeStartArray(); + for (String item0 : this.roles) { + generator.write(item0); + + } + generator.writeEnd(); + + generator.writeKey("deciders"); + generator.writeStartObject(); + for (Map.Entry item0 : this.deciders.entrySet()) { + generator.writeKey(item0.getKey()); + generator.write(item0.getValue()); + + } + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link AutoscalingPolicy}. + */ + public static class Builder implements ObjectBuilder { + private List roles; + + private Map deciders; + + /** + * API name: {@code roles} + */ + public Builder roles(List value) { + this.roles = value; + return this; + } + + /** + * API name: {@code roles} + */ + public Builder roles(String... value) { + this.roles = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #roles(List)}, creating the list if needed. + */ + public Builder addRoles(String value) { + if (this.roles == null) { + this.roles = new ArrayList<>(); + } + this.roles.add(value); + return this; + } + + /** + * Decider settings + *

+ * API name: {@code deciders} + */ + public Builder deciders(Map value) { + this.deciders = value; + return this; + } + + /** + * Add a key/value to {@link #deciders(Map)}, creating the map if needed. + */ + public Builder putDeciders(String key, JsonValue value) { + if (this.deciders == null) { + this.deciders = new HashMap<>(); + } + this.deciders.put(key, value); + return this; + } + + /** + * Builds a {@link AutoscalingPolicy}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public AutoscalingPolicy build() { + + return new AutoscalingPolicy(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for AutoscalingPolicy + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, AutoscalingPolicy::setupAutoscalingPolicyDeserializer); + + protected static void setupAutoscalingPolicyDeserializer(DelegatingDeserializer op) { + + op.add(Builder::roles, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), "roles"); + op.add(Builder::deciders, JsonpDeserializer.stringMapDeserializer(JsonpDeserializer.jsonValueDeserializer()), + "deciders"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java new file mode 100644 index 000000000..1a52962f9 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyRequest.java @@ -0,0 +1,128 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.autoscaling; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: autoscaling.delete_autoscaling_policy.Request +public final class DeleteAutoscalingPolicyRequest extends RequestBase { + private final String name; + + // --------------------------------------------------------------------------------------------- + + protected DeleteAutoscalingPolicyRequest(Builder builder) { + + this.name = Objects.requireNonNull(builder.name, "name"); + + } + + /** + * the name of the autoscaling policy + *

+ * API name: {@code name} + */ + public String name() { + return this.name; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteAutoscalingPolicyRequest}. + */ + public static class Builder implements ObjectBuilder { + private String name; + + /** + * the name of the autoscaling policy + *

+ * API name: {@code name} + */ + public Builder name(String value) { + this.name = value; + return this; + } + + /** + * Builds a {@link DeleteAutoscalingPolicyRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteAutoscalingPolicyRequest build() { + + return new DeleteAutoscalingPolicyRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code autoscaling.delete_autoscaling_policy}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + if (request.name() != null) + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_autoscaling"); + buf.append("/policy"); + buf.append("/"); + buf.append(request.name); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, Endpoint.Simple.emptyMap(), false, DeleteAutoscalingPolicyResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyResponse.java new file mode 100644 index 000000000..8453d80d5 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/DeleteAutoscalingPolicyResponse.java @@ -0,0 +1,83 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.autoscaling; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; + +// typedef: autoscaling.delete_autoscaling_policy.Response +public final class DeleteAutoscalingPolicyResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + protected DeleteAutoscalingPolicyResponse(Builder builder) { + super(builder); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteAutoscalingPolicyResponse}. + */ + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteAutoscalingPolicyResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteAutoscalingPolicyResponse build() { + + return new DeleteAutoscalingPolicyResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for DeleteAutoscalingPolicyResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, + DeleteAutoscalingPolicyResponse::setupDeleteAutoscalingPolicyResponseDeserializer); + + protected static void setupDeleteAutoscalingPolicyResponseDeserializer( + DelegatingDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java new file mode 100644 index 000000000..46dba6a3a --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityRequest.java @@ -0,0 +1,72 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.autoscaling; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Collections; + +// typedef: autoscaling.get_autoscaling_capacity.Request +public final class GetAutoscalingCapacityRequest extends RequestBase { + protected GetAutoscalingCapacityRequest() { + } + + /** + * Singleton instance for {@link GetAutoscalingCapacityRequest}. + */ + public static final GetAutoscalingCapacityRequest INSTANCE = new GetAutoscalingCapacityRequest(); + + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .fixedValue(GetAutoscalingCapacityRequest.INSTANCE); + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code autoscaling.get_autoscaling_capacity}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + return "/_autoscaling/capacity"; + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, Endpoint.Simple.emptyMap(), false, GetAutoscalingCapacityResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityResponse.java new file mode 100644 index 000000000..f0a04b95e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingCapacityResponse.java @@ -0,0 +1,155 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.autoscaling; + +import co.elastic.clients.elasticsearch.autoscaling.get_autoscaling_capacity.AutoscalingDeciders; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: autoscaling.get_autoscaling_capacity.Response +public final class GetAutoscalingCapacityResponse implements ToJsonp { + private final Map policies; + + // --------------------------------------------------------------------------------------------- + + protected GetAutoscalingCapacityResponse(Builder builder) { + + this.policies = Objects.requireNonNull(builder.policies, "policies"); + + } + + /** + * API name: {@code policies} + */ + public Map policies() { + return this.policies; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("policies"); + generator.writeStartObject(); + for (Map.Entry item0 : this.policies.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().toJsonp(generator, mapper); + + } + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetAutoscalingCapacityResponse}. + */ + public static class Builder implements ObjectBuilder { + private Map policies; + + /** + * API name: {@code policies} + */ + public Builder policies(Map value) { + this.policies = value; + return this; + } + + /** + * Add a key/value to {@link #policies(Map)}, creating the map if needed. + */ + public Builder putPolicies(String key, AutoscalingDeciders value) { + if (this.policies == null) { + this.policies = new HashMap<>(); + } + this.policies.put(key, value); + return this; + } + + /** + * Set {@link #policies(Map)} to a singleton map. + */ + public Builder policies(String key, + Function> fn) { + return this.policies(Collections.singletonMap(key, fn.apply(new AutoscalingDeciders.Builder()).build())); + } + + /** + * Add a key/value to {@link #policies(Map)}, creating the map if needed. + */ + public Builder putPolicies(String key, + Function> fn) { + return this.putPolicies(key, fn.apply(new AutoscalingDeciders.Builder()).build()); + } + + /** + * Builds a {@link GetAutoscalingCapacityResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetAutoscalingCapacityResponse build() { + + return new GetAutoscalingCapacityResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for GetAutoscalingCapacityResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, + GetAutoscalingCapacityResponse::setupGetAutoscalingCapacityResponseDeserializer); + + protected static void setupGetAutoscalingCapacityResponseDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::policies, JsonpDeserializer.stringMapDeserializer(AutoscalingDeciders.DESERIALIZER), + "policies"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java new file mode 100644 index 000000000..61f418be8 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyRequest.java @@ -0,0 +1,128 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.autoscaling; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: autoscaling.get_autoscaling_policy.Request +public final class GetAutoscalingPolicyRequest extends RequestBase { + private final String name; + + // --------------------------------------------------------------------------------------------- + + protected GetAutoscalingPolicyRequest(Builder builder) { + + this.name = Objects.requireNonNull(builder.name, "name"); + + } + + /** + * the name of the autoscaling policy + *

+ * API name: {@code name} + */ + public String name() { + return this.name; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetAutoscalingPolicyRequest}. + */ + public static class Builder implements ObjectBuilder { + private String name; + + /** + * the name of the autoscaling policy + *

+ * API name: {@code name} + */ + public Builder name(String value) { + this.name = value; + return this; + } + + /** + * Builds a {@link GetAutoscalingPolicyRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetAutoscalingPolicyRequest build() { + + return new GetAutoscalingPolicyRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code autoscaling.get_autoscaling_policy}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + if (request.name() != null) + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_autoscaling"); + buf.append("/policy"); + buf.append("/"); + buf.append(request.name); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, Endpoint.Simple.emptyMap(), false, GetAutoscalingPolicyResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyResponse.java new file mode 100644 index 000000000..e5c1c5be4 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/GetAutoscalingPolicyResponse.java @@ -0,0 +1,121 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.autoscaling; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: autoscaling.get_autoscaling_policy.Response +public final class GetAutoscalingPolicyResponse implements ToJsonp { + private final AutoscalingPolicy value; + + // --------------------------------------------------------------------------------------------- + + protected GetAutoscalingPolicyResponse(Builder builder) { + + this.value = Objects.requireNonNull(builder.value, "value"); + + } + + /** + * Response value. + *

+ * API name: {@code value} + */ + public AutoscalingPolicy value() { + return this.value; + } + + /** + * Serialize this value to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + this.value.toJsonp(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link GetAutoscalingPolicyResponse}. + */ + public static class Builder implements ObjectBuilder { + private AutoscalingPolicy value; + + /** + * Response value. + *

+ * API name: {@code value} + */ + public Builder value(AutoscalingPolicy value) { + this.value = value; + return this; + } + + /** + * Response value. + *

+ * API name: {@code value} + */ + public Builder value(Function> fn) { + return this.value(fn.apply(new AutoscalingPolicy.Builder()).build()); + } + + /** + * Builds a {@link GetAutoscalingPolicyResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public GetAutoscalingPolicyResponse build() { + + return new GetAutoscalingPolicyResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for GetAutoscalingPolicyResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, GetAutoscalingPolicyResponse::setupGetAutoscalingPolicyResponseDeserializer); + + protected static void setupGetAutoscalingPolicyResponseDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::value, AutoscalingPolicy.DESERIALIZER, "value"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java new file mode 100644 index 000000000..296f765d6 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyRequest.java @@ -0,0 +1,188 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.autoscaling; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: autoscaling.put_autoscaling_policy.Request +public final class PutAutoscalingPolicyRequest extends RequestBase implements ToJsonp { + private final String name; + + private final AutoscalingPolicy value; + + // --------------------------------------------------------------------------------------------- + + protected PutAutoscalingPolicyRequest(Builder builder) { + + this.name = Objects.requireNonNull(builder.name, "name"); + this.value = Objects.requireNonNull(builder.value, "value"); + + } + + /** + * the name of the autoscaling policy + *

+ * API name: {@code name} + */ + public String name() { + return this.name; + } + + /** + * Request body. + *

+ * API name: {@code value} + */ + public AutoscalingPolicy value() { + return this.value; + } + + /** + * Serialize this value to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + this.value.toJsonp(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutAutoscalingPolicyRequest}. + */ + public static class Builder implements ObjectBuilder { + private String name; + + private AutoscalingPolicy value; + + /** + * the name of the autoscaling policy + *

+ * API name: {@code name} + */ + public Builder name(String value) { + this.name = value; + return this; + } + + /** + * Request body. + *

+ * API name: {@code value} + */ + public Builder value(AutoscalingPolicy value) { + this.value = value; + return this; + } + + /** + * Request body. + *

+ * API name: {@code value} + */ + public Builder value(Function> fn) { + return this.value(fn.apply(new AutoscalingPolicy.Builder()).build()); + } + + /** + * Builds a {@link PutAutoscalingPolicyRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutAutoscalingPolicyRequest build() { + + return new PutAutoscalingPolicyRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for PutAutoscalingPolicyRequest + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, PutAutoscalingPolicyRequest::setupPutAutoscalingPolicyRequestDeserializer); + + protected static void setupPutAutoscalingPolicyRequestDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::value, AutoscalingPolicy.DESERIALIZER, "value"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code autoscaling.put_autoscaling_policy}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _name = 1 << 0; + + int propsSet = 0; + + if (request.name() != null) + propsSet |= _name; + + if (propsSet == (_name)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_autoscaling"); + buf.append("/policy"); + buf.append("/"); + buf.append(request.name); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, Endpoint.Simple.emptyMap(), true, PutAutoscalingPolicyResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyResponse.java new file mode 100644 index 000000000..8ff6c7122 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/PutAutoscalingPolicyResponse.java @@ -0,0 +1,82 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.autoscaling; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; + +// typedef: autoscaling.put_autoscaling_policy.Response +public final class PutAutoscalingPolicyResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + protected PutAutoscalingPolicyResponse(Builder builder) { + super(builder); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PutAutoscalingPolicyResponse}. + */ + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PutAutoscalingPolicyResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PutAutoscalingPolicyResponse build() { + + return new PutAutoscalingPolicyResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for PutAutoscalingPolicyResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, PutAutoscalingPolicyResponse::setupPutAutoscalingPolicyResponseDeserializer); + + protected static void setupPutAutoscalingPolicyResponseDeserializer( + DelegatingDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingCapacity.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingCapacity.java new file mode 100644 index 000000000..a26ea5f9d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingCapacity.java @@ -0,0 +1,153 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.autoscaling.get_autoscaling_capacity; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: autoscaling.get_autoscaling_capacity.AutoscalingCapacity +public final class AutoscalingCapacity implements ToJsonp { + private final AutoscalingResources node; + + private final AutoscalingResources total; + + // --------------------------------------------------------------------------------------------- + + protected AutoscalingCapacity(Builder builder) { + + this.node = Objects.requireNonNull(builder.node, "node"); + this.total = Objects.requireNonNull(builder.total, "total"); + + } + + /** + * API name: {@code node} + */ + public AutoscalingResources node() { + return this.node; + } + + /** + * API name: {@code total} + */ + public AutoscalingResources total() { + return this.total; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("node"); + this.node.toJsonp(generator, mapper); + + generator.writeKey("total"); + this.total.toJsonp(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link AutoscalingCapacity}. + */ + public static class Builder implements ObjectBuilder { + private AutoscalingResources node; + + private AutoscalingResources total; + + /** + * API name: {@code node} + */ + public Builder node(AutoscalingResources value) { + this.node = value; + return this; + } + + /** + * API name: {@code node} + */ + public Builder node(Function> fn) { + return this.node(fn.apply(new AutoscalingResources.Builder()).build()); + } + + /** + * API name: {@code total} + */ + public Builder total(AutoscalingResources value) { + this.total = value; + return this; + } + + /** + * API name: {@code total} + */ + public Builder total(Function> fn) { + return this.total(fn.apply(new AutoscalingResources.Builder()).build()); + } + + /** + * Builds a {@link AutoscalingCapacity}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public AutoscalingCapacity build() { + + return new AutoscalingCapacity(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for AutoscalingCapacity + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, AutoscalingCapacity::setupAutoscalingCapacityDeserializer); + + protected static void setupAutoscalingCapacityDeserializer(DelegatingDeserializer op) { + + op.add(Builder::node, AutoscalingResources.DESERIALIZER, "node"); + op.add(Builder::total, AutoscalingResources.DESERIALIZER, "total"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDecider.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDecider.java new file mode 100644 index 000000000..220eac792 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDecider.java @@ -0,0 +1,185 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.autoscaling.get_autoscaling_capacity; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: autoscaling.get_autoscaling_capacity.AutoscalingDecider +public final class AutoscalingDecider implements ToJsonp { + private final AutoscalingCapacity requiredCapacity; + + @Nullable + private final String reasonSummary; + + @Nullable + private final JsonValue reasonDetails; + + // --------------------------------------------------------------------------------------------- + + protected AutoscalingDecider(Builder builder) { + + this.requiredCapacity = Objects.requireNonNull(builder.requiredCapacity, "required_capacity"); + this.reasonSummary = builder.reasonSummary; + this.reasonDetails = builder.reasonDetails; + + } + + /** + * API name: {@code required_capacity} + */ + public AutoscalingCapacity requiredCapacity() { + return this.requiredCapacity; + } + + /** + * API name: {@code reason_summary} + */ + @Nullable + public String reasonSummary() { + return this.reasonSummary; + } + + /** + * API name: {@code reason_details} + */ + @Nullable + public JsonValue reasonDetails() { + return this.reasonDetails; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("required_capacity"); + this.requiredCapacity.toJsonp(generator, mapper); + + if (this.reasonSummary != null) { + + generator.writeKey("reason_summary"); + generator.write(this.reasonSummary); + + } + if (this.reasonDetails != null) { + + generator.writeKey("reason_details"); + generator.write(this.reasonDetails); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link AutoscalingDecider}. + */ + public static class Builder implements ObjectBuilder { + private AutoscalingCapacity requiredCapacity; + + @Nullable + private String reasonSummary; + + @Nullable + private JsonValue reasonDetails; + + /** + * API name: {@code required_capacity} + */ + public Builder requiredCapacity(AutoscalingCapacity value) { + this.requiredCapacity = value; + return this; + } + + /** + * API name: {@code required_capacity} + */ + public Builder requiredCapacity(Function> fn) { + return this.requiredCapacity(fn.apply(new AutoscalingCapacity.Builder()).build()); + } + + /** + * API name: {@code reason_summary} + */ + public Builder reasonSummary(@Nullable String value) { + this.reasonSummary = value; + return this; + } + + /** + * API name: {@code reason_details} + */ + public Builder reasonDetails(@Nullable JsonValue value) { + this.reasonDetails = value; + return this; + } + + /** + * Builds a {@link AutoscalingDecider}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public AutoscalingDecider build() { + + return new AutoscalingDecider(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for AutoscalingDecider + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, AutoscalingDecider::setupAutoscalingDeciderDeserializer); + + protected static void setupAutoscalingDeciderDeserializer(DelegatingDeserializer op) { + + op.add(Builder::requiredCapacity, AutoscalingCapacity.DESERIALIZER, "required_capacity"); + op.add(Builder::reasonSummary, JsonpDeserializer.stringDeserializer(), "reason_summary"); + op.add(Builder::reasonDetails, JsonpDeserializer.jsonValueDeserializer(), "reason_details"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDeciders.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDeciders.java new file mode 100644 index 000000000..0eee669d5 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingDeciders.java @@ -0,0 +1,279 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.autoscaling.get_autoscaling_capacity; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: autoscaling.get_autoscaling_capacity.AutoscalingDeciders +public final class AutoscalingDeciders implements ToJsonp { + private final AutoscalingCapacity requiredCapacity; + + private final AutoscalingCapacity currentCapacity; + + private final List currentNodes; + + private final Map deciders; + + // --------------------------------------------------------------------------------------------- + + protected AutoscalingDeciders(Builder builder) { + + this.requiredCapacity = Objects.requireNonNull(builder.requiredCapacity, "required_capacity"); + this.currentCapacity = Objects.requireNonNull(builder.currentCapacity, "current_capacity"); + this.currentNodes = Objects.requireNonNull(builder.currentNodes, "current_nodes"); + this.deciders = Objects.requireNonNull(builder.deciders, "deciders"); + + } + + /** + * API name: {@code required_capacity} + */ + public AutoscalingCapacity requiredCapacity() { + return this.requiredCapacity; + } + + /** + * API name: {@code current_capacity} + */ + public AutoscalingCapacity currentCapacity() { + return this.currentCapacity; + } + + /** + * API name: {@code current_nodes} + */ + public List currentNodes() { + return this.currentNodes; + } + + /** + * API name: {@code deciders} + */ + public Map deciders() { + return this.deciders; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("required_capacity"); + this.requiredCapacity.toJsonp(generator, mapper); + + generator.writeKey("current_capacity"); + this.currentCapacity.toJsonp(generator, mapper); + + generator.writeKey("current_nodes"); + generator.writeStartArray(); + for (AutoscalingNode item0 : this.currentNodes) { + item0.toJsonp(generator, mapper); + + } + generator.writeEnd(); + + generator.writeKey("deciders"); + generator.writeStartObject(); + for (Map.Entry item0 : this.deciders.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().toJsonp(generator, mapper); + + } + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link AutoscalingDeciders}. + */ + public static class Builder implements ObjectBuilder { + private AutoscalingCapacity requiredCapacity; + + private AutoscalingCapacity currentCapacity; + + private List currentNodes; + + private Map deciders; + + /** + * API name: {@code required_capacity} + */ + public Builder requiredCapacity(AutoscalingCapacity value) { + this.requiredCapacity = value; + return this; + } + + /** + * API name: {@code required_capacity} + */ + public Builder requiredCapacity(Function> fn) { + return this.requiredCapacity(fn.apply(new AutoscalingCapacity.Builder()).build()); + } + + /** + * API name: {@code current_capacity} + */ + public Builder currentCapacity(AutoscalingCapacity value) { + this.currentCapacity = value; + return this; + } + + /** + * API name: {@code current_capacity} + */ + public Builder currentCapacity(Function> fn) { + return this.currentCapacity(fn.apply(new AutoscalingCapacity.Builder()).build()); + } + + /** + * API name: {@code current_nodes} + */ + public Builder currentNodes(List value) { + this.currentNodes = value; + return this; + } + + /** + * API name: {@code current_nodes} + */ + public Builder currentNodes(AutoscalingNode... value) { + this.currentNodes = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #currentNodes(List)}, creating the list if needed. + */ + public Builder addCurrentNodes(AutoscalingNode value) { + if (this.currentNodes == null) { + this.currentNodes = new ArrayList<>(); + } + this.currentNodes.add(value); + return this; + } + + /** + * Set {@link #currentNodes(List)} to a singleton list. + */ + public Builder currentNodes(Function> fn) { + return this.currentNodes(fn.apply(new AutoscalingNode.Builder()).build()); + } + + /** + * Add a value to {@link #currentNodes(List)}, creating the list if needed. + */ + public Builder addCurrentNodes(Function> fn) { + return this.addCurrentNodes(fn.apply(new AutoscalingNode.Builder()).build()); + } + + /** + * API name: {@code deciders} + */ + public Builder deciders(Map value) { + this.deciders = value; + return this; + } + + /** + * Add a key/value to {@link #deciders(Map)}, creating the map if needed. + */ + public Builder putDeciders(String key, AutoscalingDecider value) { + if (this.deciders == null) { + this.deciders = new HashMap<>(); + } + this.deciders.put(key, value); + return this; + } + + /** + * Set {@link #deciders(Map)} to a singleton map. + */ + public Builder deciders(String key, + Function> fn) { + return this.deciders(Collections.singletonMap(key, fn.apply(new AutoscalingDecider.Builder()).build())); + } + + /** + * Add a key/value to {@link #deciders(Map)}, creating the map if needed. + */ + public Builder putDeciders(String key, + Function> fn) { + return this.putDeciders(key, fn.apply(new AutoscalingDecider.Builder()).build()); + } + + /** + * Builds a {@link AutoscalingDeciders}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public AutoscalingDeciders build() { + + return new AutoscalingDeciders(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for AutoscalingDeciders + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, AutoscalingDeciders::setupAutoscalingDecidersDeserializer); + + protected static void setupAutoscalingDecidersDeserializer(DelegatingDeserializer op) { + + op.add(Builder::requiredCapacity, AutoscalingCapacity.DESERIALIZER, "required_capacity"); + op.add(Builder::currentCapacity, AutoscalingCapacity.DESERIALIZER, "current_capacity"); + op.add(Builder::currentNodes, JsonpDeserializer.arrayDeserializer(AutoscalingNode.DESERIALIZER), + "current_nodes"); + op.add(Builder::deciders, JsonpDeserializer.stringMapDeserializer(AutoscalingDecider.DESERIALIZER), "deciders"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingNode.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingNode.java new file mode 100644 index 000000000..3ed2bbdbd --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingNode.java @@ -0,0 +1,115 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.autoscaling.get_autoscaling_capacity; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: autoscaling.get_autoscaling_capacity.AutoscalingNode +public final class AutoscalingNode implements ToJsonp { + private final String name; + + // --------------------------------------------------------------------------------------------- + + protected AutoscalingNode(Builder builder) { + + this.name = Objects.requireNonNull(builder.name, "name"); + + } + + /** + * API name: {@code name} + */ + public String name() { + return this.name; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("name"); + generator.write(this.name); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link AutoscalingNode}. + */ + public static class Builder implements ObjectBuilder { + private String name; + + /** + * API name: {@code name} + */ + public Builder name(String value) { + this.name = value; + return this; + } + + /** + * Builds a {@link AutoscalingNode}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public AutoscalingNode build() { + + return new AutoscalingNode(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for AutoscalingNode + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, AutoscalingNode::setupAutoscalingNodeDeserializer); + + protected static void setupAutoscalingNodeDeserializer(DelegatingDeserializer op) { + + op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingResources.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingResources.java new file mode 100644 index 000000000..29657f257 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/autoscaling/get_autoscaling_capacity/AutoscalingResources.java @@ -0,0 +1,140 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.autoscaling.get_autoscaling_capacity; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Number; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: autoscaling.get_autoscaling_capacity.AutoscalingResources +public final class AutoscalingResources implements ToJsonp { + private final Number storage; + + private final Number memory; + + // --------------------------------------------------------------------------------------------- + + protected AutoscalingResources(Builder builder) { + + this.storage = Objects.requireNonNull(builder.storage, "storage"); + this.memory = Objects.requireNonNull(builder.memory, "memory"); + + } + + /** + * API name: {@code storage} + */ + public Number storage() { + return this.storage; + } + + /** + * API name: {@code memory} + */ + public Number memory() { + return this.memory; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("storage"); + generator.write(this.storage.doubleValue()); + + generator.writeKey("memory"); + generator.write(this.memory.doubleValue()); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link AutoscalingResources}. + */ + public static class Builder implements ObjectBuilder { + private Number storage; + + private Number memory; + + /** + * API name: {@code storage} + */ + public Builder storage(Number value) { + this.storage = value; + return this; + } + + /** + * API name: {@code memory} + */ + public Builder memory(Number value) { + this.memory = value; + return this; + } + + /** + * Builds a {@link AutoscalingResources}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public AutoscalingResources build() { + + return new AutoscalingResources(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for AutoscalingResources + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, AutoscalingResources::setupAutoscalingResourcesDeserializer); + + protected static void setupAutoscalingResourcesDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::storage, JsonpDeserializer.numberDeserializer(), "storage"); + op.add(Builder::memory, JsonpDeserializer.numberDeserializer(), "memory"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java index 8c5f355af..29af54800 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AliasesRequest.java @@ -58,6 +58,8 @@ protected AliasesRequest(Builder builder) { } /** + * A comma-separated list of alias names to return + *

* API name: {@code name} */ @Nullable @@ -66,6 +68,9 @@ public List name() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -86,6 +91,8 @@ public static class Builder implements ObjectBuilder { private JsonValue expandWildcards; /** + * A comma-separated list of alias names to return + *

* API name: {@code name} */ public Builder name(@Nullable List value) { @@ -94,6 +101,8 @@ public Builder name(@Nullable List value) { } /** + * A comma-separated list of alias names to return + *

* API name: {@code name} */ public Builder name(String... value) { @@ -113,6 +122,9 @@ public Builder addName(String value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java index e242ad5f3..1796c55c4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/AllocationRequest.java @@ -32,14 +32,18 @@ import jakarta.json.JsonValue; import jakarta.json.stream.JsonGenerator; import java.lang.String; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; +import java.util.stream.Collectors; import javax.annotation.Nullable; // typedef: cat.allocation.Request public final class AllocationRequest extends CatRequestBase { @Nullable - private final String nodeId; + private final List nodeId; @Nullable private final JsonValue bytes; @@ -54,14 +58,18 @@ protected AllocationRequest(Builder builder) { } /** + * A comma-separated list of node IDs or names to limit the returned information + *

* API name: {@code node_id} */ @Nullable - public String nodeId() { + public List nodeId() { return this.nodeId; } /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ @Nullable @@ -76,20 +84,45 @@ public JsonValue bytes() { */ public static class Builder implements ObjectBuilder { @Nullable - private String nodeId; + private List nodeId; @Nullable private JsonValue bytes; /** + * A comma-separated list of node IDs or names to limit the returned information + *

* API name: {@code node_id} */ - public Builder nodeId(@Nullable String value) { + public Builder nodeId(@Nullable List value) { this.nodeId = value; return this; } /** + * A comma-separated list of node IDs or names to limit the returned information + *

+ * API name: {@code node_id} + */ + public Builder nodeId(String... value) { + this.nodeId = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #nodeId(List)}, creating the list if needed. + */ + public Builder addNodeId(String value) { + if (this.nodeId == null) { + this.nodeId = new ArrayList<>(); + } + this.nodeId.add(value); + return this; + } + + /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ public Builder bytes(@Nullable JsonValue value) { @@ -141,7 +174,7 @@ public AllocationRequest build() { buf.append("/_cat"); buf.append("/allocation"); buf.append("/"); - buf.append(request.nodeId); + buf.append(request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); return buf.toString(); } throw Endpoint.Simple.noPathTemplateFound("path"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java index 8c5861eb1..bae617894 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/CountRequest.java @@ -52,6 +52,8 @@ protected CountRequest(Builder builder) { } /** + * A comma-separated list of index names to limit the returned information + *

* API name: {@code index} */ @Nullable @@ -69,6 +71,8 @@ public static class Builder implements ObjectBuilder { private List index; /** + * A comma-separated list of index names to limit the returned information + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -77,6 +81,8 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names to limit the returned information + *

* API name: {@code index} */ public Builder index(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java index 267bf958e..4217b9587 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/FielddataRequest.java @@ -58,6 +58,8 @@ protected FielddataRequest(Builder builder) { } /** + * A comma-separated list of fields to return the fielddata size + *

* API name: {@code fields} */ @Nullable @@ -66,6 +68,8 @@ public List fields() { } /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ @Nullable @@ -86,6 +90,8 @@ public static class Builder implements ObjectBuilder { private JsonValue bytes; /** + * A comma-separated list of fields to return the fielddata size + *

* API name: {@code fields} */ public Builder fields(@Nullable List value) { @@ -94,6 +100,8 @@ public Builder fields(@Nullable List value) { } /** + * A comma-separated list of fields to return the fielddata size + *

* API name: {@code fields} */ public Builder fields(String... value) { @@ -113,6 +121,8 @@ public Builder addFields(String value) { } /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ public Builder bytes(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java index 1d1413622..56aa8c7b0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/HealthRequest.java @@ -61,6 +61,8 @@ public Boolean includeTimestamp() { } /** + * Set to false to disable timestamping + *

* API name: {@code ts} */ @Nullable @@ -89,6 +91,8 @@ public Builder includeTimestamp(@Nullable Boolean value) { } /** + * Set to false to disable timestamping + *

* API name: {@code ts} */ public Builder ts(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java index d99ce4d87..bd7daa767 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/IndicesRequest.java @@ -75,6 +75,8 @@ protected IndicesRequest(Builder builder) { } /** + * A comma-separated list of index names to limit the returned information + *

* API name: {@code index} */ @Nullable @@ -83,6 +85,8 @@ public List index() { } /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ @Nullable @@ -91,6 +95,9 @@ public JsonValue bytes() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -99,6 +106,9 @@ public JsonValue expandWildcards() { } /** + * A health status ("green", "yellow", or "red" to + * filter only indices matching the specified health status + *

* API name: {@code health} */ @Nullable @@ -107,6 +117,9 @@ public JsonValue health() { } /** + * If set to true segment stats will include stats for segments that are not + * currently loaded into memory + *

* API name: {@code include_unloaded_segments} */ @Nullable @@ -115,6 +128,8 @@ public Boolean includeUnloadedSegments() { } /** + * Set to true to return stats only for primary shards + *

* API name: {@code pri} */ @Nullable @@ -147,6 +162,8 @@ public static class Builder implements ObjectBuilder { private Boolean pri; /** + * A comma-separated list of index names to limit the returned information + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -155,6 +172,8 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names to limit the returned information + *

* API name: {@code index} */ public Builder index(String... value) { @@ -174,6 +193,8 @@ public Builder addIndex(String value) { } /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ public Builder bytes(@Nullable JsonValue value) { @@ -182,6 +203,9 @@ public Builder bytes(@Nullable JsonValue value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -190,6 +214,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * A health status ("green", "yellow", or "red" to + * filter only indices matching the specified health status + *

* API name: {@code health} */ public Builder health(@Nullable JsonValue value) { @@ -198,6 +225,9 @@ public Builder health(@Nullable JsonValue value) { } /** + * If set to true segment stats will include stats for segments that are not + * currently loaded into memory + *

* API name: {@code include_unloaded_segments} */ public Builder includeUnloadedSegments(@Nullable Boolean value) { @@ -206,6 +236,8 @@ public Builder includeUnloadedSegments(@Nullable Boolean value) { } /** + * Set to true to return stats only for primary shards + *

* API name: {@code pri} */ public Builder pri(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java new file mode 100644 index 000000000..e238f25f9 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsRequest.java @@ -0,0 +1,205 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import javax.annotation.Nullable; + +// typedef: cat.ml_data_frame_analytics.Request +public final class MlDataFrameAnalyticsRequest extends CatRequestBase { + @Nullable + private final String id; + + @Nullable + private final Boolean allowNoMatch; + + @Nullable + private final JsonValue bytes; + + // --------------------------------------------------------------------------------------------- + + protected MlDataFrameAnalyticsRequest(Builder builder) { + + this.id = builder.id; + this.allowNoMatch = builder.allowNoMatch; + this.bytes = builder.bytes; + + } + + /** + * The ID of the data frame analytics to fetch + *

+ * API name: {@code id} + */ + @Nullable + public String id() { + return this.id; + } + + /** + * Whether to ignore if a wildcard expression matches no configs. (This includes + * _all string or when no configs have been specified) + *

+ * API name: {@code allow_no_match} + */ + @Nullable + public Boolean allowNoMatch() { + return this.allowNoMatch; + } + + /** + * The unit in which to display byte values + *

+ * API name: {@code bytes} + */ + @Nullable + public JsonValue bytes() { + return this.bytes; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MlDataFrameAnalyticsRequest}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private String id; + + @Nullable + private Boolean allowNoMatch; + + @Nullable + private JsonValue bytes; + + /** + * The ID of the data frame analytics to fetch + *

+ * API name: {@code id} + */ + public Builder id(@Nullable String value) { + this.id = value; + return this; + } + + /** + * Whether to ignore if a wildcard expression matches no configs. (This includes + * _all string or when no configs have been specified) + *

+ * API name: {@code allow_no_match} + */ + public Builder allowNoMatch(@Nullable Boolean value) { + this.allowNoMatch = value; + return this; + } + + /** + * The unit in which to display byte values + *

+ * API name: {@code bytes} + */ + public Builder bytes(@Nullable JsonValue value) { + this.bytes = value; + return this; + } + + /** + * Builds a {@link MlDataFrameAnalyticsRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MlDataFrameAnalyticsRequest build() { + + return new MlDataFrameAnalyticsRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code cat.ml_data_frame_analytics}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _id = 1 << 0; + + int propsSet = 0; + + if (request.id() != null) + propsSet |= _id; + + if (propsSet == 0) { + StringBuilder buf = new StringBuilder(); + buf.append("/_cat"); + buf.append("/ml"); + buf.append("/data_frame"); + buf.append("/analytics"); + return buf.toString(); + } + if (propsSet == (_id)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_cat"); + buf.append("/ml"); + buf.append("/data_frame"); + buf.append("/analytics"); + buf.append("/"); + buf.append(request.id); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.allowNoMatch != null) { + params.put("allow_no_match", String.valueOf(request.allowNoMatch)); + } + if (request.bytes != null) { + params.put("bytes", request.bytes.toString()); + } + return params; + + }, Endpoint.Simple.emptyMap(), false, MlDataFrameAnalyticsResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsResponse.java new file mode 100644 index 000000000..e027d30a7 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDataFrameAnalyticsResponse.java @@ -0,0 +1,157 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat; + +import co.elastic.clients.elasticsearch.cat.ml_data_frame_analytics.DataFrameAnalyticsRecord; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: cat.ml_data_frame_analytics.Response +public final class MlDataFrameAnalyticsResponse implements ToJsonp { + private final List value; + + // --------------------------------------------------------------------------------------------- + + protected MlDataFrameAnalyticsResponse(Builder builder) { + + this.value = Objects.requireNonNull(builder.value, "value"); + + } + + /** + * Response value. + *

+ * API name: {@code value} + */ + public List value() { + return this.value; + } + + /** + * Serialize this value to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartArray(); + for (DataFrameAnalyticsRecord item0 : this.value) { + item0.toJsonp(generator, mapper); + + } + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MlDataFrameAnalyticsResponse}. + */ + public static class Builder implements ObjectBuilder { + private List value; + + /** + * Response value. + *

+ * API name: {@code value} + */ + public Builder value(List value) { + this.value = value; + return this; + } + + /** + * Response value. + *

+ * API name: {@code value} + */ + public Builder value(DataFrameAnalyticsRecord... value) { + this.value = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #value(List)}, creating the list if needed. + */ + public Builder addValue(DataFrameAnalyticsRecord value) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(value); + return this; + } + + /** + * Set {@link #value(List)} to a singleton list. + */ + public Builder value(Function> fn) { + return this.value(fn.apply(new DataFrameAnalyticsRecord.Builder()).build()); + } + + /** + * Add a value to {@link #value(List)}, creating the list if needed. + */ + public Builder addValue( + Function> fn) { + return this.addValue(fn.apply(new DataFrameAnalyticsRecord.Builder()).build()); + } + + /** + * Builds a {@link MlDataFrameAnalyticsResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MlDataFrameAnalyticsResponse build() { + + return new MlDataFrameAnalyticsResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for MlDataFrameAnalyticsResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, MlDataFrameAnalyticsResponse::setupMlDataFrameAnalyticsResponseDeserializer); + + protected static void setupMlDataFrameAnalyticsResponseDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::value, JsonpDeserializer.arrayDeserializer(DataFrameAnalyticsRecord.DESERIALIZER), "value"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java new file mode 100644 index 000000000..21a031bec --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsRequest.java @@ -0,0 +1,172 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import javax.annotation.Nullable; + +// typedef: cat.ml_datafeeds.Request +public final class MlDatafeedsRequest extends CatRequestBase { + @Nullable + private final String datafeedId; + + @Nullable + private final Boolean allowNoDatafeeds; + + // --------------------------------------------------------------------------------------------- + + protected MlDatafeedsRequest(Builder builder) { + + this.datafeedId = builder.datafeedId; + this.allowNoDatafeeds = builder.allowNoDatafeeds; + + } + + /** + * The ID of the datafeeds stats to fetch + *

+ * API name: {@code datafeed_id} + */ + @Nullable + public String datafeedId() { + return this.datafeedId; + } + + /** + * Whether to ignore if a wildcard expression matches no datafeeds. (This + * includes _all string or when no datafeeds have been specified) + *

+ * API name: {@code allow_no_datafeeds} + */ + @Nullable + public Boolean allowNoDatafeeds() { + return this.allowNoDatafeeds; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MlDatafeedsRequest}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private String datafeedId; + + @Nullable + private Boolean allowNoDatafeeds; + + /** + * The ID of the datafeeds stats to fetch + *

+ * API name: {@code datafeed_id} + */ + public Builder datafeedId(@Nullable String value) { + this.datafeedId = value; + return this; + } + + /** + * Whether to ignore if a wildcard expression matches no datafeeds. (This + * includes _all string or when no datafeeds have been specified) + *

+ * API name: {@code allow_no_datafeeds} + */ + public Builder allowNoDatafeeds(@Nullable Boolean value) { + this.allowNoDatafeeds = value; + return this; + } + + /** + * Builds a {@link MlDatafeedsRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MlDatafeedsRequest build() { + + return new MlDatafeedsRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code cat.ml_datafeeds}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _datafeedId = 1 << 0; + + int propsSet = 0; + + if (request.datafeedId() != null) + propsSet |= _datafeedId; + + if (propsSet == 0) { + StringBuilder buf = new StringBuilder(); + buf.append("/_cat"); + buf.append("/ml"); + buf.append("/datafeeds"); + return buf.toString(); + } + if (propsSet == (_datafeedId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_cat"); + buf.append("/ml"); + buf.append("/datafeeds"); + buf.append("/"); + buf.append(request.datafeedId); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.allowNoDatafeeds != null) { + params.put("allow_no_datafeeds", String.valueOf(request.allowNoDatafeeds)); + } + return params; + + }, Endpoint.Simple.emptyMap(), false, MlDatafeedsResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsResponse.java new file mode 100644 index 000000000..22d6e9b0a --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlDatafeedsResponse.java @@ -0,0 +1,155 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat; + +import co.elastic.clients.elasticsearch.cat.ml_datafeeds.DatafeedsRecord; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: cat.ml_datafeeds.Response +public final class MlDatafeedsResponse implements ToJsonp { + private final List value; + + // --------------------------------------------------------------------------------------------- + + protected MlDatafeedsResponse(Builder builder) { + + this.value = Objects.requireNonNull(builder.value, "value"); + + } + + /** + * Response value. + *

+ * API name: {@code value} + */ + public List value() { + return this.value; + } + + /** + * Serialize this value to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartArray(); + for (DatafeedsRecord item0 : this.value) { + item0.toJsonp(generator, mapper); + + } + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MlDatafeedsResponse}. + */ + public static class Builder implements ObjectBuilder { + private List value; + + /** + * Response value. + *

+ * API name: {@code value} + */ + public Builder value(List value) { + this.value = value; + return this; + } + + /** + * Response value. + *

+ * API name: {@code value} + */ + public Builder value(DatafeedsRecord... value) { + this.value = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #value(List)}, creating the list if needed. + */ + public Builder addValue(DatafeedsRecord value) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(value); + return this; + } + + /** + * Set {@link #value(List)} to a singleton list. + */ + public Builder value(Function> fn) { + return this.value(fn.apply(new DatafeedsRecord.Builder()).build()); + } + + /** + * Add a value to {@link #value(List)}, creating the list if needed. + */ + public Builder addValue(Function> fn) { + return this.addValue(fn.apply(new DatafeedsRecord.Builder()).build()); + } + + /** + * Builds a {@link MlDatafeedsResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MlDatafeedsResponse build() { + + return new MlDatafeedsResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for MlDatafeedsResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, MlDatafeedsResponse::setupMlDatafeedsResponseDeserializer); + + protected static void setupMlDatafeedsResponseDeserializer(DelegatingDeserializer op) { + + op.add(Builder::value, JsonpDeserializer.arrayDeserializer(DatafeedsRecord.DESERIALIZER), "value"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java new file mode 100644 index 000000000..3c9054827 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsRequest.java @@ -0,0 +1,203 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import javax.annotation.Nullable; + +// typedef: cat.ml_jobs.Request +public final class MlJobsRequest extends CatRequestBase { + @Nullable + private final String jobId; + + @Nullable + private final Boolean allowNoJobs; + + @Nullable + private final JsonValue bytes; + + // --------------------------------------------------------------------------------------------- + + protected MlJobsRequest(Builder builder) { + + this.jobId = builder.jobId; + this.allowNoJobs = builder.allowNoJobs; + this.bytes = builder.bytes; + + } + + /** + * The ID of the jobs stats to fetch + *

+ * API name: {@code job_id} + */ + @Nullable + public String jobId() { + return this.jobId; + } + + /** + * Whether to ignore if a wildcard expression matches no jobs. (This includes + * _all string or when no jobs have been specified) + *

+ * API name: {@code allow_no_jobs} + */ + @Nullable + public Boolean allowNoJobs() { + return this.allowNoJobs; + } + + /** + * The unit in which to display byte values + *

+ * API name: {@code bytes} + */ + @Nullable + public JsonValue bytes() { + return this.bytes; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MlJobsRequest}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private String jobId; + + @Nullable + private Boolean allowNoJobs; + + @Nullable + private JsonValue bytes; + + /** + * The ID of the jobs stats to fetch + *

+ * API name: {@code job_id} + */ + public Builder jobId(@Nullable String value) { + this.jobId = value; + return this; + } + + /** + * Whether to ignore if a wildcard expression matches no jobs. (This includes + * _all string or when no jobs have been specified) + *

+ * API name: {@code allow_no_jobs} + */ + public Builder allowNoJobs(@Nullable Boolean value) { + this.allowNoJobs = value; + return this; + } + + /** + * The unit in which to display byte values + *

+ * API name: {@code bytes} + */ + public Builder bytes(@Nullable JsonValue value) { + this.bytes = value; + return this; + } + + /** + * Builds a {@link MlJobsRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MlJobsRequest build() { + + return new MlJobsRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code cat.ml_jobs}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _jobId = 1 << 0; + + int propsSet = 0; + + if (request.jobId() != null) + propsSet |= _jobId; + + if (propsSet == 0) { + StringBuilder buf = new StringBuilder(); + buf.append("/_cat"); + buf.append("/ml"); + buf.append("/anomaly_detectors"); + return buf.toString(); + } + if (propsSet == (_jobId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_cat"); + buf.append("/ml"); + buf.append("/anomaly_detectors"); + buf.append("/"); + buf.append(request.jobId); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.allowNoJobs != null) { + params.put("allow_no_jobs", String.valueOf(request.allowNoJobs)); + } + if (request.bytes != null) { + params.put("bytes", request.bytes.toString()); + } + return params; + + }, Endpoint.Simple.emptyMap(), false, MlJobsResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsResponse.java new file mode 100644 index 000000000..cd5c20032 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlJobsResponse.java @@ -0,0 +1,155 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat; + +import co.elastic.clients.elasticsearch.cat.ml_jobs.JobsRecord; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: cat.ml_jobs.Response +public final class MlJobsResponse implements ToJsonp { + private final List value; + + // --------------------------------------------------------------------------------------------- + + protected MlJobsResponse(Builder builder) { + + this.value = Objects.requireNonNull(builder.value, "value"); + + } + + /** + * Response value. + *

+ * API name: {@code value} + */ + public List value() { + return this.value; + } + + /** + * Serialize this value to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartArray(); + for (JobsRecord item0 : this.value) { + item0.toJsonp(generator, mapper); + + } + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MlJobsResponse}. + */ + public static class Builder implements ObjectBuilder { + private List value; + + /** + * Response value. + *

+ * API name: {@code value} + */ + public Builder value(List value) { + this.value = value; + return this; + } + + /** + * Response value. + *

+ * API name: {@code value} + */ + public Builder value(JobsRecord... value) { + this.value = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #value(List)}, creating the list if needed. + */ + public Builder addValue(JobsRecord value) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(value); + return this; + } + + /** + * Set {@link #value(List)} to a singleton list. + */ + public Builder value(Function> fn) { + return this.value(fn.apply(new JobsRecord.Builder()).build()); + } + + /** + * Add a value to {@link #value(List)}, creating the list if needed. + */ + public Builder addValue(Function> fn) { + return this.addValue(fn.apply(new JobsRecord.Builder()).build()); + } + + /** + * Builds a {@link MlJobsResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MlJobsResponse build() { + + return new MlJobsResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for MlJobsResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, MlJobsResponse::setupMlJobsResponseDeserializer); + + protected static void setupMlJobsResponseDeserializer(DelegatingDeserializer op) { + + op.add(Builder::value, JsonpDeserializer.arrayDeserializer(JobsRecord.DESERIALIZER), "value"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java new file mode 100644 index 000000000..e52a91f14 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsRequest.java @@ -0,0 +1,266 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.Number; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import javax.annotation.Nullable; + +// typedef: cat.ml_trained_models.Request +public final class MlTrainedModelsRequest extends CatRequestBase { + @Nullable + private final String modelId; + + @Nullable + private final Boolean allowNoMatch; + + @Nullable + private final JsonValue bytes; + + @Nullable + private final Number from; + + @Nullable + private final Number size; + + // --------------------------------------------------------------------------------------------- + + protected MlTrainedModelsRequest(Builder builder) { + + this.modelId = builder.modelId; + this.allowNoMatch = builder.allowNoMatch; + this.bytes = builder.bytes; + this.from = builder.from; + this.size = builder.size; + + } + + /** + * The ID of the trained models stats to fetch + *

+ * API name: {@code model_id} + */ + @Nullable + public String modelId() { + return this.modelId; + } + + /** + * Whether to ignore if a wildcard expression matches no trained models. (This + * includes _all string or when no trained models have been + * specified) + *

+ * API name: {@code allow_no_match} + */ + @Nullable + public Boolean allowNoMatch() { + return this.allowNoMatch; + } + + /** + * The unit in which to display byte values + *

+ * API name: {@code bytes} + */ + @Nullable + public JsonValue bytes() { + return this.bytes; + } + + /** + * skips a number of trained models + *

+ * API name: {@code from} + */ + @Nullable + public Number from() { + return this.from; + } + + /** + * specifies a max number of trained models to get + *

+ * API name: {@code size} + */ + @Nullable + public Number size() { + return this.size; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MlTrainedModelsRequest}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private String modelId; + + @Nullable + private Boolean allowNoMatch; + + @Nullable + private JsonValue bytes; + + @Nullable + private Number from; + + @Nullable + private Number size; + + /** + * The ID of the trained models stats to fetch + *

+ * API name: {@code model_id} + */ + public Builder modelId(@Nullable String value) { + this.modelId = value; + return this; + } + + /** + * Whether to ignore if a wildcard expression matches no trained models. (This + * includes _all string or when no trained models have been + * specified) + *

+ * API name: {@code allow_no_match} + */ + public Builder allowNoMatch(@Nullable Boolean value) { + this.allowNoMatch = value; + return this; + } + + /** + * The unit in which to display byte values + *

+ * API name: {@code bytes} + */ + public Builder bytes(@Nullable JsonValue value) { + this.bytes = value; + return this; + } + + /** + * skips a number of trained models + *

+ * API name: {@code from} + */ + public Builder from(@Nullable Number value) { + this.from = value; + return this; + } + + /** + * specifies a max number of trained models to get + *

+ * API name: {@code size} + */ + public Builder size(@Nullable Number value) { + this.size = value; + return this; + } + + /** + * Builds a {@link MlTrainedModelsRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MlTrainedModelsRequest build() { + + return new MlTrainedModelsRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code cat.ml_trained_models}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _modelId = 1 << 0; + + int propsSet = 0; + + if (request.modelId() != null) + propsSet |= _modelId; + + if (propsSet == 0) { + StringBuilder buf = new StringBuilder(); + buf.append("/_cat"); + buf.append("/ml"); + buf.append("/trained_models"); + return buf.toString(); + } + if (propsSet == (_modelId)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_cat"); + buf.append("/ml"); + buf.append("/trained_models"); + buf.append("/"); + buf.append(request.modelId); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.allowNoMatch != null) { + params.put("allow_no_match", String.valueOf(request.allowNoMatch)); + } + if (request.bytes != null) { + params.put("bytes", request.bytes.toString()); + } + if (request.from != null) { + params.put("from", request.from.toString()); + } + if (request.size != null) { + params.put("size", request.size.toString()); + } + return params; + + }, Endpoint.Simple.emptyMap(), false, MlTrainedModelsResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsResponse.java new file mode 100644 index 000000000..4d4eadeb1 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/MlTrainedModelsResponse.java @@ -0,0 +1,156 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat; + +import co.elastic.clients.elasticsearch.cat.ml_trained_models.TrainedModelsRecord; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: cat.ml_trained_models.Response +public final class MlTrainedModelsResponse implements ToJsonp { + private final List value; + + // --------------------------------------------------------------------------------------------- + + protected MlTrainedModelsResponse(Builder builder) { + + this.value = Objects.requireNonNull(builder.value, "value"); + + } + + /** + * Response value. + *

+ * API name: {@code value} + */ + public List value() { + return this.value; + } + + /** + * Serialize this value to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartArray(); + for (TrainedModelsRecord item0 : this.value) { + item0.toJsonp(generator, mapper); + + } + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link MlTrainedModelsResponse}. + */ + public static class Builder implements ObjectBuilder { + private List value; + + /** + * Response value. + *

+ * API name: {@code value} + */ + public Builder value(List value) { + this.value = value; + return this; + } + + /** + * Response value. + *

+ * API name: {@code value} + */ + public Builder value(TrainedModelsRecord... value) { + this.value = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #value(List)}, creating the list if needed. + */ + public Builder addValue(TrainedModelsRecord value) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(value); + return this; + } + + /** + * Set {@link #value(List)} to a singleton list. + */ + public Builder value(Function> fn) { + return this.value(fn.apply(new TrainedModelsRecord.Builder()).build()); + } + + /** + * Add a value to {@link #value(List)}, creating the list if needed. + */ + public Builder addValue(Function> fn) { + return this.addValue(fn.apply(new TrainedModelsRecord.Builder()).build()); + } + + /** + * Builds a {@link MlTrainedModelsResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public MlTrainedModelsResponse build() { + + return new MlTrainedModelsResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for MlTrainedModelsResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, MlTrainedModelsResponse::setupMlTrainedModelsResponseDeserializer); + + protected static void setupMlTrainedModelsResponseDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::value, JsonpDeserializer.arrayDeserializer(TrainedModelsRecord.DESERIALIZER), "value"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java new file mode 100644 index 000000000..1fa80dd35 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsRequest.java @@ -0,0 +1,71 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Collections; + +// typedef: cat.nodeattrs.Request +public final class NodeattrsRequest extends CatRequestBase { + protected NodeattrsRequest() { + } + + /** + * Singleton instance for {@link NodeattrsRequest}. + */ + public static final NodeattrsRequest INSTANCE = new NodeattrsRequest(); + + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .fixedValue(NodeattrsRequest.INSTANCE); + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code cat.nodeattrs}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + return "/_cat/nodeattrs"; + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, Endpoint.Simple.emptyMap(), false, NodeattrsResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsResponse.java new file mode 100644 index 000000000..b63575b03 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodeattrsResponse.java @@ -0,0 +1,155 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat; + +import co.elastic.clients.elasticsearch.cat.nodeattrs.NodeAttributesRecord; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: cat.nodeattrs.Response +public final class NodeattrsResponse implements ToJsonp { + private final List value; + + // --------------------------------------------------------------------------------------------- + + protected NodeattrsResponse(Builder builder) { + + this.value = Objects.requireNonNull(builder.value, "value"); + + } + + /** + * Response value. + *

+ * API name: {@code value} + */ + public List value() { + return this.value; + } + + /** + * Serialize this value to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartArray(); + for (NodeAttributesRecord item0 : this.value) { + item0.toJsonp(generator, mapper); + + } + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link NodeattrsResponse}. + */ + public static class Builder implements ObjectBuilder { + private List value; + + /** + * Response value. + *

+ * API name: {@code value} + */ + public Builder value(List value) { + this.value = value; + return this; + } + + /** + * Response value. + *

+ * API name: {@code value} + */ + public Builder value(NodeAttributesRecord... value) { + this.value = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #value(List)}, creating the list if needed. + */ + public Builder addValue(NodeAttributesRecord value) { + if (this.value == null) { + this.value = new ArrayList<>(); + } + this.value.add(value); + return this; + } + + /** + * Set {@link #value(List)} to a singleton list. + */ + public Builder value(Function> fn) { + return this.value(fn.apply(new NodeAttributesRecord.Builder()).build()); + } + + /** + * Add a value to {@link #value(List)}, creating the list if needed. + */ + public Builder addValue(Function> fn) { + return this.addValue(fn.apply(new NodeAttributesRecord.Builder()).build()); + } + + /** + * Builds a {@link NodeattrsResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public NodeattrsResponse build() { + + return new NodeattrsResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for NodeattrsResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, NodeattrsResponse::setupNodeattrsResponseDeserializer); + + protected static void setupNodeattrsResponseDeserializer(DelegatingDeserializer op) { + + op.add(Builder::value, JsonpDeserializer.arrayDeserializer(NodeAttributesRecord.DESERIALIZER), "value"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java index 798f98a76..aa2efbd66 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/NodesRequest.java @@ -53,6 +53,8 @@ protected NodesRequest(Builder builder) { } /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ @Nullable @@ -61,6 +63,8 @@ public JsonValue bytes() { } /** + * Return the full node ID instead of the shortened version (default: false) + *

* API name: {@code full_id} */ @Nullable @@ -81,6 +85,8 @@ public static class Builder implements ObjectBuilder { private JsonValue fullId; /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ public Builder bytes(@Nullable JsonValue value) { @@ -89,6 +95,8 @@ public Builder bytes(@Nullable JsonValue value) { } /** + * Return the full node ID instead of the shortened version (default: false) + *

* API name: {@code full_id} */ public Builder fullId(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java index ccf0f3701..c00badd69 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/RecoveryRequest.java @@ -67,6 +67,9 @@ protected RecoveryRequest(Builder builder) { } /** + * Comma-separated list or wildcard expression of index names to limit the + * returned information + *

* API name: {@code index} */ @Nullable @@ -75,6 +78,8 @@ public List index() { } /** + * If true, the response only includes ongoing shard recoveries + *

* API name: {@code active_only} */ @Nullable @@ -83,6 +88,8 @@ public Boolean activeOnly() { } /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ @Nullable @@ -91,6 +98,9 @@ public JsonValue bytes() { } /** + * If true, the response includes detailed information about shard + * recoveries + *

* API name: {@code detailed} */ @Nullable @@ -117,6 +127,9 @@ public static class Builder implements ObjectBuilder { private Boolean detailed; /** + * Comma-separated list or wildcard expression of index names to limit the + * returned information + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -125,6 +138,9 @@ public Builder index(@Nullable List value) { } /** + * Comma-separated list or wildcard expression of index names to limit the + * returned information + *

* API name: {@code index} */ public Builder index(String... value) { @@ -144,6 +160,8 @@ public Builder addIndex(String value) { } /** + * If true, the response only includes ongoing shard recoveries + *

* API name: {@code active_only} */ public Builder activeOnly(@Nullable Boolean value) { @@ -152,6 +170,8 @@ public Builder activeOnly(@Nullable Boolean value) { } /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ public Builder bytes(@Nullable JsonValue value) { @@ -160,6 +180,9 @@ public Builder bytes(@Nullable JsonValue value) { } /** + * If true, the response includes detailed information about shard + * recoveries + *

* API name: {@code detailed} */ public Builder detailed(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java index 92b96568b..f970e1b40 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SegmentsRequest.java @@ -58,6 +58,8 @@ protected SegmentsRequest(Builder builder) { } /** + * A comma-separated list of index names to limit the returned information + *

* API name: {@code index} */ @Nullable @@ -66,6 +68,8 @@ public List index() { } /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ @Nullable @@ -86,6 +90,8 @@ public static class Builder implements ObjectBuilder { private JsonValue bytes; /** + * A comma-separated list of index names to limit the returned information + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -94,6 +100,8 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names to limit the returned information + *

* API name: {@code index} */ public Builder index(String... value) { @@ -113,6 +121,8 @@ public Builder addIndex(String value) { } /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ public Builder bytes(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java index 0e7ec410d..3b398edf6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ShardsRequest.java @@ -58,6 +58,8 @@ protected ShardsRequest(Builder builder) { } /** + * A comma-separated list of index names to limit the returned information + *

* API name: {@code index} */ @Nullable @@ -66,6 +68,8 @@ public List index() { } /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ @Nullable @@ -86,6 +90,8 @@ public static class Builder implements ObjectBuilder { private JsonValue bytes; /** + * A comma-separated list of index names to limit the returned information + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -94,6 +100,8 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names to limit the returned information + *

* API name: {@code index} */ public Builder index(String... value) { @@ -113,6 +121,8 @@ public Builder addIndex(String value) { } /** + * The unit in which to display byte values + *

* API name: {@code bytes} */ public Builder bytes(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java index 80e144f44..792250572 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/SnapshotsRequest.java @@ -58,6 +58,8 @@ protected SnapshotsRequest(Builder builder) { } /** + * Name of repository from which to fetch the snapshot information + *

* API name: {@code repository} */ @Nullable @@ -66,6 +68,8 @@ public List repository() { } /** + * Set to true to ignore unavailable snapshots + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -86,6 +90,8 @@ public static class Builder implements ObjectBuilder { private Boolean ignoreUnavailable; /** + * Name of repository from which to fetch the snapshot information + *

* API name: {@code repository} */ public Builder repository(@Nullable List value) { @@ -94,6 +100,8 @@ public Builder repository(@Nullable List value) { } /** + * Name of repository from which to fetch the snapshot information + *

* API name: {@code repository} */ public Builder repository(String... value) { @@ -113,6 +121,8 @@ public Builder addRepository(String value) { } /** + * Set to true to ignore unavailable snapshots + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java index 515fa7556..c1b5a8d01 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TasksRequest.java @@ -67,6 +67,9 @@ protected TasksRequest(Builder builder) { } /** + * A comma-separated list of actions that should be returned. Leave empty to + * return all. + *

* API name: {@code actions} */ @Nullable @@ -75,6 +78,8 @@ public List actions() { } /** + * Return detailed task information (default: false) + *

* API name: {@code detailed} */ @Nullable @@ -117,6 +122,9 @@ public static class Builder implements ObjectBuilder { private Number parentTask; /** + * A comma-separated list of actions that should be returned. Leave empty to + * return all. + *

* API name: {@code actions} */ public Builder actions(@Nullable List value) { @@ -125,6 +133,9 @@ public Builder actions(@Nullable List value) { } /** + * A comma-separated list of actions that should be returned. Leave empty to + * return all. + *

* API name: {@code actions} */ public Builder actions(String... value) { @@ -144,6 +155,8 @@ public Builder addActions(String value) { } /** + * Return detailed task information (default: false) + *

* API name: {@code detailed} */ public Builder detailed(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java index 7467c55d2..9a1fe9491 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TemplatesRequest.java @@ -48,6 +48,8 @@ protected TemplatesRequest(Builder builder) { } /** + * A pattern that returned template names must match + *

* API name: {@code name} */ @Nullable @@ -65,6 +67,8 @@ public static class Builder implements ObjectBuilder { private String name; /** + * A pattern that returned template names must match + *

* API name: {@code name} */ public Builder name(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java index b18190154..6dd607ff3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ThreadPoolRequest.java @@ -58,6 +58,9 @@ protected ThreadPoolRequest(Builder builder) { } /** + * A comma-separated list of regular-expressions to filter the thread pools in + * the output + *

* API name: {@code thread_pool_patterns} */ @Nullable @@ -86,6 +89,9 @@ public static class Builder implements ObjectBuilder { private JsonValue size; /** + * A comma-separated list of regular-expressions to filter the thread pools in + * the output + *

* API name: {@code thread_pool_patterns} */ public Builder threadPoolPatterns(@Nullable List value) { @@ -94,6 +100,9 @@ public Builder threadPoolPatterns(@Nullable List value) { } /** + * A comma-separated list of regular-expressions to filter the thread pools in + * the output + *

* API name: {@code thread_pool_patterns} */ public Builder threadPoolPatterns(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java index 663718b9d..5a2155e8d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/TransformsRequest.java @@ -63,6 +63,9 @@ protected TransformsRequest(Builder builder) { } /** + * The id of the transform for which to get stats. '_all' or '*' implies all + * transforms + *

* API name: {@code transform_id} */ @Nullable @@ -71,6 +74,9 @@ public String transformId() { } /** + * Whether to ignore if a wildcard expression matches no transforms. (This + * includes _all string or when no transforms have been specified) + *

* API name: {@code allow_no_match} */ @Nullable @@ -79,6 +85,8 @@ public Boolean allowNoMatch() { } /** + * skips a number of transform configs, defaults to 0 + *

* API name: {@code from} */ @Nullable @@ -87,6 +95,8 @@ public Number from() { } /** + * specifies a max number of transforms to get, defaults to 100 + *

* API name: {@code size} */ @Nullable @@ -113,6 +123,9 @@ public static class Builder implements ObjectBuilder { private Number size; /** + * The id of the transform for which to get stats. '_all' or '*' implies all + * transforms + *

* API name: {@code transform_id} */ public Builder transformId(@Nullable String value) { @@ -121,6 +134,9 @@ public Builder transformId(@Nullable String value) { } /** + * Whether to ignore if a wildcard expression matches no transforms. (This + * includes _all string or when no transforms have been specified) + *

* API name: {@code allow_no_match} */ public Builder allowNoMatch(@Nullable Boolean value) { @@ -129,6 +145,8 @@ public Builder allowNoMatch(@Nullable Boolean value) { } /** + * skips a number of transform configs, defaults to 0 + *

* API name: {@code from} */ public Builder from(@Nullable Number value) { @@ -137,6 +155,8 @@ public Builder from(@Nullable Number value) { } /** + * specifies a max number of transforms to get, defaults to 100 + *

* API name: {@code size} */ public Builder size(@Nullable Number value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java new file mode 100644 index 000000000..6c1f8ccb9 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_data_frame_analytics/DataFrameAnalyticsRecord.java @@ -0,0 +1,639 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat.ml_data_frame_analytics; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import javax.annotation.Nullable; + +// typedef: cat.ml_data_frame_analytics.DataFrameAnalyticsRecord +public final class DataFrameAnalyticsRecord implements ToJsonp { + @Nullable + private final String id; + + @Nullable + private final String type; + + @Nullable + private final String createTime; + + @Nullable + private final String version; + + @Nullable + private final String sourceIndex; + + @Nullable + private final String destIndex; + + @Nullable + private final String description; + + @Nullable + private final String modelMemoryLimit; + + @Nullable + private final String state; + + @Nullable + private final String failureReason; + + @Nullable + private final String progress; + + @Nullable + private final String assignmentExplanation; + + @Nullable + private final String node_id; + + @Nullable + private final String node_name; + + @Nullable + private final String node_ephemeralId; + + @Nullable + private final String node_address; + + // --------------------------------------------------------------------------------------------- + + protected DataFrameAnalyticsRecord(Builder builder) { + + this.id = builder.id; + this.type = builder.type; + this.createTime = builder.createTime; + this.version = builder.version; + this.sourceIndex = builder.sourceIndex; + this.destIndex = builder.destIndex; + this.description = builder.description; + this.modelMemoryLimit = builder.modelMemoryLimit; + this.state = builder.state; + this.failureReason = builder.failureReason; + this.progress = builder.progress; + this.assignmentExplanation = builder.assignmentExplanation; + this.node_id = builder.node_id; + this.node_name = builder.node_name; + this.node_ephemeralId = builder.node_ephemeralId; + this.node_address = builder.node_address; + + } + + /** + * the id + *

+ * API name: {@code id} + */ + @Nullable + public String id() { + return this.id; + } + + /** + * analysis type + *

+ * API name: {@code type} + */ + @Nullable + public String type() { + return this.type; + } + + /** + * job creation time + *

+ * API name: {@code create_time} + */ + @Nullable + public String createTime() { + return this.createTime; + } + + /** + * the version of Elasticsearch when the analytics was created + *

+ * API name: {@code version} + */ + @Nullable + public String version() { + return this.version; + } + + /** + * source index + *

+ * API name: {@code source_index} + */ + @Nullable + public String sourceIndex() { + return this.sourceIndex; + } + + /** + * destination index + *

+ * API name: {@code dest_index} + */ + @Nullable + public String destIndex() { + return this.destIndex; + } + + /** + * description + *

+ * API name: {@code description} + */ + @Nullable + public String description() { + return this.description; + } + + /** + * model memory limit + *

+ * API name: {@code model_memory_limit} + */ + @Nullable + public String modelMemoryLimit() { + return this.modelMemoryLimit; + } + + /** + * job state + *

+ * API name: {@code state} + */ + @Nullable + public String state() { + return this.state; + } + + /** + * failure reason + *

+ * API name: {@code failure_reason} + */ + @Nullable + public String failureReason() { + return this.failureReason; + } + + /** + * progress + *

+ * API name: {@code progress} + */ + @Nullable + public String progress() { + return this.progress; + } + + /** + * why the job is or is not assigned to a node + *

+ * API name: {@code assignment_explanation} + */ + @Nullable + public String assignmentExplanation() { + return this.assignmentExplanation; + } + + /** + * id of the assigned node + *

+ * API name: {@code node.id} + */ + @Nullable + public String node_id() { + return this.node_id; + } + + /** + * name of the assigned node + *

+ * API name: {@code node.name} + */ + @Nullable + public String node_name() { + return this.node_name; + } + + /** + * ephemeral id of the assigned node + *

+ * API name: {@code node.ephemeral_id} + */ + @Nullable + public String node_ephemeralId() { + return this.node_ephemeralId; + } + + /** + * network address of the assigned node + *

+ * API name: {@code node.address} + */ + @Nullable + public String node_address() { + return this.node_address; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.id != null) { + + generator.writeKey("id"); + generator.write(this.id); + + } + if (this.type != null) { + + generator.writeKey("type"); + generator.write(this.type); + + } + if (this.createTime != null) { + + generator.writeKey("create_time"); + generator.write(this.createTime); + + } + if (this.version != null) { + + generator.writeKey("version"); + generator.write(this.version); + + } + if (this.sourceIndex != null) { + + generator.writeKey("source_index"); + generator.write(this.sourceIndex); + + } + if (this.destIndex != null) { + + generator.writeKey("dest_index"); + generator.write(this.destIndex); + + } + if (this.description != null) { + + generator.writeKey("description"); + generator.write(this.description); + + } + if (this.modelMemoryLimit != null) { + + generator.writeKey("model_memory_limit"); + generator.write(this.modelMemoryLimit); + + } + if (this.state != null) { + + generator.writeKey("state"); + generator.write(this.state); + + } + if (this.failureReason != null) { + + generator.writeKey("failure_reason"); + generator.write(this.failureReason); + + } + if (this.progress != null) { + + generator.writeKey("progress"); + generator.write(this.progress); + + } + if (this.assignmentExplanation != null) { + + generator.writeKey("assignment_explanation"); + generator.write(this.assignmentExplanation); + + } + if (this.node_id != null) { + + generator.writeKey("node.id"); + generator.write(this.node_id); + + } + if (this.node_name != null) { + + generator.writeKey("node.name"); + generator.write(this.node_name); + + } + if (this.node_ephemeralId != null) { + + generator.writeKey("node.ephemeral_id"); + generator.write(this.node_ephemeralId); + + } + if (this.node_address != null) { + + generator.writeKey("node.address"); + generator.write(this.node_address); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DataFrameAnalyticsRecord}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private String id; + + @Nullable + private String type; + + @Nullable + private String createTime; + + @Nullable + private String version; + + @Nullable + private String sourceIndex; + + @Nullable + private String destIndex; + + @Nullable + private String description; + + @Nullable + private String modelMemoryLimit; + + @Nullable + private String state; + + @Nullable + private String failureReason; + + @Nullable + private String progress; + + @Nullable + private String assignmentExplanation; + + @Nullable + private String node_id; + + @Nullable + private String node_name; + + @Nullable + private String node_ephemeralId; + + @Nullable + private String node_address; + + /** + * the id + *

+ * API name: {@code id} + */ + public Builder id(@Nullable String value) { + this.id = value; + return this; + } + + /** + * analysis type + *

+ * API name: {@code type} + */ + public Builder type(@Nullable String value) { + this.type = value; + return this; + } + + /** + * job creation time + *

+ * API name: {@code create_time} + */ + public Builder createTime(@Nullable String value) { + this.createTime = value; + return this; + } + + /** + * the version of Elasticsearch when the analytics was created + *

+ * API name: {@code version} + */ + public Builder version(@Nullable String value) { + this.version = value; + return this; + } + + /** + * source index + *

+ * API name: {@code source_index} + */ + public Builder sourceIndex(@Nullable String value) { + this.sourceIndex = value; + return this; + } + + /** + * destination index + *

+ * API name: {@code dest_index} + */ + public Builder destIndex(@Nullable String value) { + this.destIndex = value; + return this; + } + + /** + * description + *

+ * API name: {@code description} + */ + public Builder description(@Nullable String value) { + this.description = value; + return this; + } + + /** + * model memory limit + *

+ * API name: {@code model_memory_limit} + */ + public Builder modelMemoryLimit(@Nullable String value) { + this.modelMemoryLimit = value; + return this; + } + + /** + * job state + *

+ * API name: {@code state} + */ + public Builder state(@Nullable String value) { + this.state = value; + return this; + } + + /** + * failure reason + *

+ * API name: {@code failure_reason} + */ + public Builder failureReason(@Nullable String value) { + this.failureReason = value; + return this; + } + + /** + * progress + *

+ * API name: {@code progress} + */ + public Builder progress(@Nullable String value) { + this.progress = value; + return this; + } + + /** + * why the job is or is not assigned to a node + *

+ * API name: {@code assignment_explanation} + */ + public Builder assignmentExplanation(@Nullable String value) { + this.assignmentExplanation = value; + return this; + } + + /** + * id of the assigned node + *

+ * API name: {@code node.id} + */ + public Builder node_id(@Nullable String value) { + this.node_id = value; + return this; + } + + /** + * name of the assigned node + *

+ * API name: {@code node.name} + */ + public Builder node_name(@Nullable String value) { + this.node_name = value; + return this; + } + + /** + * ephemeral id of the assigned node + *

+ * API name: {@code node.ephemeral_id} + */ + public Builder node_ephemeralId(@Nullable String value) { + this.node_ephemeralId = value; + return this; + } + + /** + * network address of the assigned node + *

+ * API name: {@code node.address} + */ + public Builder node_address(@Nullable String value) { + this.node_address = value; + return this; + } + + /** + * Builds a {@link DataFrameAnalyticsRecord}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DataFrameAnalyticsRecord build() { + + return new DataFrameAnalyticsRecord(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for DataFrameAnalyticsRecord + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, DataFrameAnalyticsRecord::setupDataFrameAnalyticsRecordDeserializer); + + protected static void setupDataFrameAnalyticsRecordDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::type, JsonpDeserializer.stringDeserializer(), "type", "t"); + op.add(Builder::createTime, JsonpDeserializer.stringDeserializer(), "create_time", "ct", "createTime"); + op.add(Builder::version, JsonpDeserializer.stringDeserializer(), "version", "v"); + op.add(Builder::sourceIndex, JsonpDeserializer.stringDeserializer(), "source_index", "si", "sourceIndex"); + op.add(Builder::destIndex, JsonpDeserializer.stringDeserializer(), "dest_index", "di", "destIndex"); + op.add(Builder::description, JsonpDeserializer.stringDeserializer(), "description", "d"); + op.add(Builder::modelMemoryLimit, JsonpDeserializer.stringDeserializer(), "model_memory_limit", "mml", + "modelMemoryLimit"); + op.add(Builder::state, JsonpDeserializer.stringDeserializer(), "state", "s"); + op.add(Builder::failureReason, JsonpDeserializer.stringDeserializer(), "failure_reason", "fr", "failureReason"); + op.add(Builder::progress, JsonpDeserializer.stringDeserializer(), "progress", "p"); + op.add(Builder::assignmentExplanation, JsonpDeserializer.stringDeserializer(), "assignment_explanation", "ae", + "assignmentExplanation"); + op.add(Builder::node_id, JsonpDeserializer.stringDeserializer(), "node.id", "ni", "nodeId"); + op.add(Builder::node_name, JsonpDeserializer.stringDeserializer(), "node.name", "nn", "nodeName"); + op.add(Builder::node_ephemeralId, JsonpDeserializer.stringDeserializer(), "node.ephemeral_id", "ne", + "nodeEphemeralId"); + op.add(Builder::node_address, JsonpDeserializer.stringDeserializer(), "node.address", "na", "nodeAddress"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java new file mode 100644 index 000000000..078b72a11 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_datafeeds/DatafeedsRecord.java @@ -0,0 +1,503 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat.ml_datafeeds; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import javax.annotation.Nullable; + +// typedef: cat.ml_datafeeds.DatafeedsRecord +public final class DatafeedsRecord implements ToJsonp { + @Nullable + private final String id; + + @Nullable + private final JsonValue state; + + @Nullable + private final String assignmentExplanation; + + @Nullable + private final String buckets_count; + + @Nullable + private final String search_count; + + @Nullable + private final String search_time; + + @Nullable + private final String search_bucketAvg; + + @Nullable + private final String search_expAvgHour; + + @Nullable + private final String node_id; + + @Nullable + private final String node_name; + + @Nullable + private final String node_ephemeralId; + + @Nullable + private final String node_address; + + // --------------------------------------------------------------------------------------------- + + protected DatafeedsRecord(Builder builder) { + + this.id = builder.id; + this.state = builder.state; + this.assignmentExplanation = builder.assignmentExplanation; + this.buckets_count = builder.buckets_count; + this.search_count = builder.search_count; + this.search_time = builder.search_time; + this.search_bucketAvg = builder.search_bucketAvg; + this.search_expAvgHour = builder.search_expAvgHour; + this.node_id = builder.node_id; + this.node_name = builder.node_name; + this.node_ephemeralId = builder.node_ephemeralId; + this.node_address = builder.node_address; + + } + + /** + * the datafeed_id + *

+ * API name: {@code id} + */ + @Nullable + public String id() { + return this.id; + } + + /** + * the datafeed state + *

+ * API name: {@code state} + */ + @Nullable + public JsonValue state() { + return this.state; + } + + /** + * why the datafeed is or is not assigned to a node + *

+ * API name: {@code assignment_explanation} + */ + @Nullable + public String assignmentExplanation() { + return this.assignmentExplanation; + } + + /** + * bucket count + *

+ * API name: {@code buckets.count} + */ + @Nullable + public String buckets_count() { + return this.buckets_count; + } + + /** + * number of searches ran by the datafeed + *

+ * API name: {@code search.count} + */ + @Nullable + public String search_count() { + return this.search_count; + } + + /** + * the total search time + *

+ * API name: {@code search.time} + */ + @Nullable + public String search_time() { + return this.search_time; + } + + /** + * the average search time per bucket (millisecond) + *

+ * API name: {@code search.bucket_avg} + */ + @Nullable + public String search_bucketAvg() { + return this.search_bucketAvg; + } + + /** + * the exponential average search time per hour (millisecond) + *

+ * API name: {@code search.exp_avg_hour} + */ + @Nullable + public String search_expAvgHour() { + return this.search_expAvgHour; + } + + /** + * id of the assigned node + *

+ * API name: {@code node.id} + */ + @Nullable + public String node_id() { + return this.node_id; + } + + /** + * name of the assigned node + *

+ * API name: {@code node.name} + */ + @Nullable + public String node_name() { + return this.node_name; + } + + /** + * ephemeral id of the assigned node + *

+ * API name: {@code node.ephemeral_id} + */ + @Nullable + public String node_ephemeralId() { + return this.node_ephemeralId; + } + + /** + * network address of the assigned node + *

+ * API name: {@code node.address} + */ + @Nullable + public String node_address() { + return this.node_address; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.id != null) { + + generator.writeKey("id"); + generator.write(this.id); + + } + if (this.state != null) { + + generator.writeKey("state"); + generator.write(this.state); + + } + if (this.assignmentExplanation != null) { + + generator.writeKey("assignment_explanation"); + generator.write(this.assignmentExplanation); + + } + if (this.buckets_count != null) { + + generator.writeKey("buckets.count"); + generator.write(this.buckets_count); + + } + if (this.search_count != null) { + + generator.writeKey("search.count"); + generator.write(this.search_count); + + } + if (this.search_time != null) { + + generator.writeKey("search.time"); + generator.write(this.search_time); + + } + if (this.search_bucketAvg != null) { + + generator.writeKey("search.bucket_avg"); + generator.write(this.search_bucketAvg); + + } + if (this.search_expAvgHour != null) { + + generator.writeKey("search.exp_avg_hour"); + generator.write(this.search_expAvgHour); + + } + if (this.node_id != null) { + + generator.writeKey("node.id"); + generator.write(this.node_id); + + } + if (this.node_name != null) { + + generator.writeKey("node.name"); + generator.write(this.node_name); + + } + if (this.node_ephemeralId != null) { + + generator.writeKey("node.ephemeral_id"); + generator.write(this.node_ephemeralId); + + } + if (this.node_address != null) { + + generator.writeKey("node.address"); + generator.write(this.node_address); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DatafeedsRecord}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private String id; + + @Nullable + private JsonValue state; + + @Nullable + private String assignmentExplanation; + + @Nullable + private String buckets_count; + + @Nullable + private String search_count; + + @Nullable + private String search_time; + + @Nullable + private String search_bucketAvg; + + @Nullable + private String search_expAvgHour; + + @Nullable + private String node_id; + + @Nullable + private String node_name; + + @Nullable + private String node_ephemeralId; + + @Nullable + private String node_address; + + /** + * the datafeed_id + *

+ * API name: {@code id} + */ + public Builder id(@Nullable String value) { + this.id = value; + return this; + } + + /** + * the datafeed state + *

+ * API name: {@code state} + */ + public Builder state(@Nullable JsonValue value) { + this.state = value; + return this; + } + + /** + * why the datafeed is or is not assigned to a node + *

+ * API name: {@code assignment_explanation} + */ + public Builder assignmentExplanation(@Nullable String value) { + this.assignmentExplanation = value; + return this; + } + + /** + * bucket count + *

+ * API name: {@code buckets.count} + */ + public Builder buckets_count(@Nullable String value) { + this.buckets_count = value; + return this; + } + + /** + * number of searches ran by the datafeed + *

+ * API name: {@code search.count} + */ + public Builder search_count(@Nullable String value) { + this.search_count = value; + return this; + } + + /** + * the total search time + *

+ * API name: {@code search.time} + */ + public Builder search_time(@Nullable String value) { + this.search_time = value; + return this; + } + + /** + * the average search time per bucket (millisecond) + *

+ * API name: {@code search.bucket_avg} + */ + public Builder search_bucketAvg(@Nullable String value) { + this.search_bucketAvg = value; + return this; + } + + /** + * the exponential average search time per hour (millisecond) + *

+ * API name: {@code search.exp_avg_hour} + */ + public Builder search_expAvgHour(@Nullable String value) { + this.search_expAvgHour = value; + return this; + } + + /** + * id of the assigned node + *

+ * API name: {@code node.id} + */ + public Builder node_id(@Nullable String value) { + this.node_id = value; + return this; + } + + /** + * name of the assigned node + *

+ * API name: {@code node.name} + */ + public Builder node_name(@Nullable String value) { + this.node_name = value; + return this; + } + + /** + * ephemeral id of the assigned node + *

+ * API name: {@code node.ephemeral_id} + */ + public Builder node_ephemeralId(@Nullable String value) { + this.node_ephemeralId = value; + return this; + } + + /** + * network address of the assigned node + *

+ * API name: {@code node.address} + */ + public Builder node_address(@Nullable String value) { + this.node_address = value; + return this; + } + + /** + * Builds a {@link DatafeedsRecord}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DatafeedsRecord build() { + + return new DatafeedsRecord(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for DatafeedsRecord + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, DatafeedsRecord::setupDatafeedsRecordDeserializer); + + protected static void setupDatafeedsRecordDeserializer(DelegatingDeserializer op) { + + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::state, JsonpDeserializer.jsonValueDeserializer(), "state", "s"); + op.add(Builder::assignmentExplanation, JsonpDeserializer.stringDeserializer(), "assignment_explanation", "ae"); + op.add(Builder::buckets_count, JsonpDeserializer.stringDeserializer(), "buckets.count", "bc", "bucketsCount"); + op.add(Builder::search_count, JsonpDeserializer.stringDeserializer(), "search.count", "sc", "searchCount"); + op.add(Builder::search_time, JsonpDeserializer.stringDeserializer(), "search.time", "st", "searchTime"); + op.add(Builder::search_bucketAvg, JsonpDeserializer.stringDeserializer(), "search.bucket_avg", "sba", + "searchBucketAvg"); + op.add(Builder::search_expAvgHour, JsonpDeserializer.stringDeserializer(), "search.exp_avg_hour", "seah", + "searchExpAvgHour"); + op.add(Builder::node_id, JsonpDeserializer.stringDeserializer(), "node.id", "ni", "nodeId"); + op.add(Builder::node_name, JsonpDeserializer.stringDeserializer(), "node.name", "nn", "nodeName"); + op.add(Builder::node_ephemeralId, JsonpDeserializer.stringDeserializer(), "node.ephemeral_id", "ne", + "nodeEphemeralId"); + op.add(Builder::node_address, JsonpDeserializer.stringDeserializer(), "node.address", "na", "nodeAddress"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java new file mode 100644 index 000000000..f3dc29328 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_jobs/JobsRecord.java @@ -0,0 +1,2180 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat.ml_jobs; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import javax.annotation.Nullable; + +// typedef: cat.ml_jobs.JobsRecord +public final class JobsRecord implements ToJsonp { + @Nullable + private final String id; + + @Nullable + private final JsonValue state; + + @Nullable + private final String openedTime; + + @Nullable + private final String assignmentExplanation; + + @Nullable + private final String data_processedRecords; + + @Nullable + private final String data_processedFields; + + @Nullable + private final JsonValue data_inputBytes; + + @Nullable + private final String data_inputRecords; + + @Nullable + private final String data_inputFields; + + @Nullable + private final String data_invalidDates; + + @Nullable + private final String data_missingFields; + + @Nullable + private final String data_outOfOrderTimestamps; + + @Nullable + private final String data_emptyBuckets; + + @Nullable + private final String data_sparseBuckets; + + @Nullable + private final String data_buckets; + + @Nullable + private final String data_earliestRecord; + + @Nullable + private final String data_latestRecord; + + @Nullable + private final String data_last; + + @Nullable + private final String data_lastEmptyBucket; + + @Nullable + private final String data_lastSparseBucket; + + @Nullable + private final JsonValue model_bytes; + + @Nullable + private final JsonValue model_memoryStatus; + + @Nullable + private final JsonValue model_bytesExceeded; + + @Nullable + private final String model_memoryLimit; + + @Nullable + private final String model_byFields; + + @Nullable + private final String model_overFields; + + @Nullable + private final String model_partitionFields; + + @Nullable + private final String model_bucketAllocationFailures; + + @Nullable + private final JsonValue model_categorizationStatus; + + @Nullable + private final String model_categorizedDocCount; + + @Nullable + private final String model_totalCategoryCount; + + @Nullable + private final String model_frequentCategoryCount; + + @Nullable + private final String model_rareCategoryCount; + + @Nullable + private final String model_deadCategoryCount; + + @Nullable + private final String model_failedCategoryCount; + + @Nullable + private final String model_logTime; + + @Nullable + private final String model_timestamp; + + @Nullable + private final String forecasts_total; + + @Nullable + private final String forecasts_memory_min; + + @Nullable + private final String forecasts_memory_max; + + @Nullable + private final String forecasts_memory_avg; + + @Nullable + private final String forecasts_memory_total; + + @Nullable + private final String forecasts_records_min; + + @Nullable + private final String forecasts_records_max; + + @Nullable + private final String forecasts_records_avg; + + @Nullable + private final String forecasts_records_total; + + @Nullable + private final String forecasts_time_min; + + @Nullable + private final String forecasts_time_max; + + @Nullable + private final String forecasts_time_avg; + + @Nullable + private final String forecasts_time_total; + + @Nullable + private final String node_id; + + @Nullable + private final String node_name; + + @Nullable + private final String node_ephemeralId; + + @Nullable + private final String node_address; + + @Nullable + private final String buckets_count; + + @Nullable + private final String buckets_time_total; + + @Nullable + private final String buckets_time_min; + + @Nullable + private final String buckets_time_max; + + @Nullable + private final String buckets_time_expAvg; + + @Nullable + private final String buckets_time_expAvgHour; + + // --------------------------------------------------------------------------------------------- + + protected JobsRecord(Builder builder) { + + this.id = builder.id; + this.state = builder.state; + this.openedTime = builder.openedTime; + this.assignmentExplanation = builder.assignmentExplanation; + this.data_processedRecords = builder.data_processedRecords; + this.data_processedFields = builder.data_processedFields; + this.data_inputBytes = builder.data_inputBytes; + this.data_inputRecords = builder.data_inputRecords; + this.data_inputFields = builder.data_inputFields; + this.data_invalidDates = builder.data_invalidDates; + this.data_missingFields = builder.data_missingFields; + this.data_outOfOrderTimestamps = builder.data_outOfOrderTimestamps; + this.data_emptyBuckets = builder.data_emptyBuckets; + this.data_sparseBuckets = builder.data_sparseBuckets; + this.data_buckets = builder.data_buckets; + this.data_earliestRecord = builder.data_earliestRecord; + this.data_latestRecord = builder.data_latestRecord; + this.data_last = builder.data_last; + this.data_lastEmptyBucket = builder.data_lastEmptyBucket; + this.data_lastSparseBucket = builder.data_lastSparseBucket; + this.model_bytes = builder.model_bytes; + this.model_memoryStatus = builder.model_memoryStatus; + this.model_bytesExceeded = builder.model_bytesExceeded; + this.model_memoryLimit = builder.model_memoryLimit; + this.model_byFields = builder.model_byFields; + this.model_overFields = builder.model_overFields; + this.model_partitionFields = builder.model_partitionFields; + this.model_bucketAllocationFailures = builder.model_bucketAllocationFailures; + this.model_categorizationStatus = builder.model_categorizationStatus; + this.model_categorizedDocCount = builder.model_categorizedDocCount; + this.model_totalCategoryCount = builder.model_totalCategoryCount; + this.model_frequentCategoryCount = builder.model_frequentCategoryCount; + this.model_rareCategoryCount = builder.model_rareCategoryCount; + this.model_deadCategoryCount = builder.model_deadCategoryCount; + this.model_failedCategoryCount = builder.model_failedCategoryCount; + this.model_logTime = builder.model_logTime; + this.model_timestamp = builder.model_timestamp; + this.forecasts_total = builder.forecasts_total; + this.forecasts_memory_min = builder.forecasts_memory_min; + this.forecasts_memory_max = builder.forecasts_memory_max; + this.forecasts_memory_avg = builder.forecasts_memory_avg; + this.forecasts_memory_total = builder.forecasts_memory_total; + this.forecasts_records_min = builder.forecasts_records_min; + this.forecasts_records_max = builder.forecasts_records_max; + this.forecasts_records_avg = builder.forecasts_records_avg; + this.forecasts_records_total = builder.forecasts_records_total; + this.forecasts_time_min = builder.forecasts_time_min; + this.forecasts_time_max = builder.forecasts_time_max; + this.forecasts_time_avg = builder.forecasts_time_avg; + this.forecasts_time_total = builder.forecasts_time_total; + this.node_id = builder.node_id; + this.node_name = builder.node_name; + this.node_ephemeralId = builder.node_ephemeralId; + this.node_address = builder.node_address; + this.buckets_count = builder.buckets_count; + this.buckets_time_total = builder.buckets_time_total; + this.buckets_time_min = builder.buckets_time_min; + this.buckets_time_max = builder.buckets_time_max; + this.buckets_time_expAvg = builder.buckets_time_expAvg; + this.buckets_time_expAvgHour = builder.buckets_time_expAvgHour; + + } + + /** + * the job_id + *

+ * API name: {@code id} + */ + @Nullable + public String id() { + return this.id; + } + + /** + * the job state + *

+ * API name: {@code state} + */ + @Nullable + public JsonValue state() { + return this.state; + } + + /** + * the amount of time the job has been opened + *

+ * API name: {@code opened_time} + */ + @Nullable + public String openedTime() { + return this.openedTime; + } + + /** + * why the job is or is not assigned to a node + *

+ * API name: {@code assignment_explanation} + */ + @Nullable + public String assignmentExplanation() { + return this.assignmentExplanation; + } + + /** + * number of processed records + *

+ * API name: {@code data.processed_records} + */ + @Nullable + public String data_processedRecords() { + return this.data_processedRecords; + } + + /** + * number of processed fields + *

+ * API name: {@code data.processed_fields} + */ + @Nullable + public String data_processedFields() { + return this.data_processedFields; + } + + /** + * total input bytes + *

+ * API name: {@code data.input_bytes} + */ + @Nullable + public JsonValue data_inputBytes() { + return this.data_inputBytes; + } + + /** + * total record count + *

+ * API name: {@code data.input_records} + */ + @Nullable + public String data_inputRecords() { + return this.data_inputRecords; + } + + /** + * total field count + *

+ * API name: {@code data.input_fields} + */ + @Nullable + public String data_inputFields() { + return this.data_inputFields; + } + + /** + * number of records with invalid dates + *

+ * API name: {@code data.invalid_dates} + */ + @Nullable + public String data_invalidDates() { + return this.data_invalidDates; + } + + /** + * number of records with missing fields + *

+ * API name: {@code data.missing_fields} + */ + @Nullable + public String data_missingFields() { + return this.data_missingFields; + } + + /** + * number of records handled out of order + *

+ * API name: {@code data.out_of_order_timestamps} + */ + @Nullable + public String data_outOfOrderTimestamps() { + return this.data_outOfOrderTimestamps; + } + + /** + * number of empty buckets + *

+ * API name: {@code data.empty_buckets} + */ + @Nullable + public String data_emptyBuckets() { + return this.data_emptyBuckets; + } + + /** + * number of sparse buckets + *

+ * API name: {@code data.sparse_buckets} + */ + @Nullable + public String data_sparseBuckets() { + return this.data_sparseBuckets; + } + + /** + * total bucket count + *

+ * API name: {@code data.buckets} + */ + @Nullable + public String data_buckets() { + return this.data_buckets; + } + + /** + * earliest record time + *

+ * API name: {@code data.earliest_record} + */ + @Nullable + public String data_earliestRecord() { + return this.data_earliestRecord; + } + + /** + * latest record time + *

+ * API name: {@code data.latest_record} + */ + @Nullable + public String data_latestRecord() { + return this.data_latestRecord; + } + + /** + * last time data was seen + *

+ * API name: {@code data.last} + */ + @Nullable + public String data_last() { + return this.data_last; + } + + /** + * last time an empty bucket occurred + *

+ * API name: {@code data.last_empty_bucket} + */ + @Nullable + public String data_lastEmptyBucket() { + return this.data_lastEmptyBucket; + } + + /** + * last time a sparse bucket occurred + *

+ * API name: {@code data.last_sparse_bucket} + */ + @Nullable + public String data_lastSparseBucket() { + return this.data_lastSparseBucket; + } + + /** + * model size + *

+ * API name: {@code model.bytes} + */ + @Nullable + public JsonValue model_bytes() { + return this.model_bytes; + } + + /** + * current memory status + *

+ * API name: {@code model.memory_status} + */ + @Nullable + public JsonValue model_memoryStatus() { + return this.model_memoryStatus; + } + + /** + * how much the model has exceeded the limit + *

+ * API name: {@code model.bytes_exceeded} + */ + @Nullable + public JsonValue model_bytesExceeded() { + return this.model_bytesExceeded; + } + + /** + * model memory limit + *

+ * API name: {@code model.memory_limit} + */ + @Nullable + public String model_memoryLimit() { + return this.model_memoryLimit; + } + + /** + * count of 'by' fields + *

+ * API name: {@code model.by_fields} + */ + @Nullable + public String model_byFields() { + return this.model_byFields; + } + + /** + * count of 'over' fields + *

+ * API name: {@code model.over_fields} + */ + @Nullable + public String model_overFields() { + return this.model_overFields; + } + + /** + * count of 'partition' fields + *

+ * API name: {@code model.partition_fields} + */ + @Nullable + public String model_partitionFields() { + return this.model_partitionFields; + } + + /** + * number of bucket allocation failures + *

+ * API name: {@code model.bucket_allocation_failures} + */ + @Nullable + public String model_bucketAllocationFailures() { + return this.model_bucketAllocationFailures; + } + + /** + * current categorization status + *

+ * API name: {@code model.categorization_status} + */ + @Nullable + public JsonValue model_categorizationStatus() { + return this.model_categorizationStatus; + } + + /** + * count of categorized documents + *

+ * API name: {@code model.categorized_doc_count} + */ + @Nullable + public String model_categorizedDocCount() { + return this.model_categorizedDocCount; + } + + /** + * count of categories + *

+ * API name: {@code model.total_category_count} + */ + @Nullable + public String model_totalCategoryCount() { + return this.model_totalCategoryCount; + } + + /** + * count of frequent categories + *

+ * API name: {@code model.frequent_category_count} + */ + @Nullable + public String model_frequentCategoryCount() { + return this.model_frequentCategoryCount; + } + + /** + * count of rare categories + *

+ * API name: {@code model.rare_category_count} + */ + @Nullable + public String model_rareCategoryCount() { + return this.model_rareCategoryCount; + } + + /** + * count of dead categories + *

+ * API name: {@code model.dead_category_count} + */ + @Nullable + public String model_deadCategoryCount() { + return this.model_deadCategoryCount; + } + + /** + * count of failed categories + *

+ * API name: {@code model.failed_category_count} + */ + @Nullable + public String model_failedCategoryCount() { + return this.model_failedCategoryCount; + } + + /** + * when the model stats were gathered + *

+ * API name: {@code model.log_time} + */ + @Nullable + public String model_logTime() { + return this.model_logTime; + } + + /** + * the time of the last record when the model stats were gathered + *

+ * API name: {@code model.timestamp} + */ + @Nullable + public String model_timestamp() { + return this.model_timestamp; + } + + /** + * total number of forecasts + *

+ * API name: {@code forecasts.total} + */ + @Nullable + public String forecasts_total() { + return this.forecasts_total; + } + + /** + * minimum memory used by forecasts + *

+ * API name: {@code forecasts.memory.min} + */ + @Nullable + public String forecasts_memory_min() { + return this.forecasts_memory_min; + } + + /** + * maximum memory used by forecasts + *

+ * API name: {@code forecasts.memory.max} + */ + @Nullable + public String forecasts_memory_max() { + return this.forecasts_memory_max; + } + + /** + * average memory used by forecasts + *

+ * API name: {@code forecasts.memory.avg} + */ + @Nullable + public String forecasts_memory_avg() { + return this.forecasts_memory_avg; + } + + /** + * total memory used by all forecasts + *

+ * API name: {@code forecasts.memory.total} + */ + @Nullable + public String forecasts_memory_total() { + return this.forecasts_memory_total; + } + + /** + * minimum record count for forecasts + *

+ * API name: {@code forecasts.records.min} + */ + @Nullable + public String forecasts_records_min() { + return this.forecasts_records_min; + } + + /** + * maximum record count for forecasts + *

+ * API name: {@code forecasts.records.max} + */ + @Nullable + public String forecasts_records_max() { + return this.forecasts_records_max; + } + + /** + * average record count for forecasts + *

+ * API name: {@code forecasts.records.avg} + */ + @Nullable + public String forecasts_records_avg() { + return this.forecasts_records_avg; + } + + /** + * total record count for all forecasts + *

+ * API name: {@code forecasts.records.total} + */ + @Nullable + public String forecasts_records_total() { + return this.forecasts_records_total; + } + + /** + * minimum runtime for forecasts + *

+ * API name: {@code forecasts.time.min} + */ + @Nullable + public String forecasts_time_min() { + return this.forecasts_time_min; + } + + /** + * maximum run time for forecasts + *

+ * API name: {@code forecasts.time.max} + */ + @Nullable + public String forecasts_time_max() { + return this.forecasts_time_max; + } + + /** + * average runtime for all forecasts (milliseconds) + *

+ * API name: {@code forecasts.time.avg} + */ + @Nullable + public String forecasts_time_avg() { + return this.forecasts_time_avg; + } + + /** + * total runtime for all forecasts + *

+ * API name: {@code forecasts.time.total} + */ + @Nullable + public String forecasts_time_total() { + return this.forecasts_time_total; + } + + /** + * id of the assigned node + *

+ * API name: {@code node.id} + */ + @Nullable + public String node_id() { + return this.node_id; + } + + /** + * name of the assigned node + *

+ * API name: {@code node.name} + */ + @Nullable + public String node_name() { + return this.node_name; + } + + /** + * ephemeral id of the assigned node + *

+ * API name: {@code node.ephemeral_id} + */ + @Nullable + public String node_ephemeralId() { + return this.node_ephemeralId; + } + + /** + * network address of the assigned node + *

+ * API name: {@code node.address} + */ + @Nullable + public String node_address() { + return this.node_address; + } + + /** + * bucket count + *

+ * API name: {@code buckets.count} + */ + @Nullable + public String buckets_count() { + return this.buckets_count; + } + + /** + * total bucket processing time + *

+ * API name: {@code buckets.time.total} + */ + @Nullable + public String buckets_time_total() { + return this.buckets_time_total; + } + + /** + * minimum bucket processing time + *

+ * API name: {@code buckets.time.min} + */ + @Nullable + public String buckets_time_min() { + return this.buckets_time_min; + } + + /** + * maximum bucket processing time + *

+ * API name: {@code buckets.time.max} + */ + @Nullable + public String buckets_time_max() { + return this.buckets_time_max; + } + + /** + * exponential average bucket processing time (milliseconds) + *

+ * API name: {@code buckets.time.exp_avg} + */ + @Nullable + public String buckets_time_expAvg() { + return this.buckets_time_expAvg; + } + + /** + * exponential average bucket processing time by hour (milliseconds) + *

+ * API name: {@code buckets.time.exp_avg_hour} + */ + @Nullable + public String buckets_time_expAvgHour() { + return this.buckets_time_expAvgHour; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.id != null) { + + generator.writeKey("id"); + generator.write(this.id); + + } + if (this.state != null) { + + generator.writeKey("state"); + generator.write(this.state); + + } + if (this.openedTime != null) { + + generator.writeKey("opened_time"); + generator.write(this.openedTime); + + } + if (this.assignmentExplanation != null) { + + generator.writeKey("assignment_explanation"); + generator.write(this.assignmentExplanation); + + } + if (this.data_processedRecords != null) { + + generator.writeKey("data.processed_records"); + generator.write(this.data_processedRecords); + + } + if (this.data_processedFields != null) { + + generator.writeKey("data.processed_fields"); + generator.write(this.data_processedFields); + + } + if (this.data_inputBytes != null) { + + generator.writeKey("data.input_bytes"); + generator.write(this.data_inputBytes); + + } + if (this.data_inputRecords != null) { + + generator.writeKey("data.input_records"); + generator.write(this.data_inputRecords); + + } + if (this.data_inputFields != null) { + + generator.writeKey("data.input_fields"); + generator.write(this.data_inputFields); + + } + if (this.data_invalidDates != null) { + + generator.writeKey("data.invalid_dates"); + generator.write(this.data_invalidDates); + + } + if (this.data_missingFields != null) { + + generator.writeKey("data.missing_fields"); + generator.write(this.data_missingFields); + + } + if (this.data_outOfOrderTimestamps != null) { + + generator.writeKey("data.out_of_order_timestamps"); + generator.write(this.data_outOfOrderTimestamps); + + } + if (this.data_emptyBuckets != null) { + + generator.writeKey("data.empty_buckets"); + generator.write(this.data_emptyBuckets); + + } + if (this.data_sparseBuckets != null) { + + generator.writeKey("data.sparse_buckets"); + generator.write(this.data_sparseBuckets); + + } + if (this.data_buckets != null) { + + generator.writeKey("data.buckets"); + generator.write(this.data_buckets); + + } + if (this.data_earliestRecord != null) { + + generator.writeKey("data.earliest_record"); + generator.write(this.data_earliestRecord); + + } + if (this.data_latestRecord != null) { + + generator.writeKey("data.latest_record"); + generator.write(this.data_latestRecord); + + } + if (this.data_last != null) { + + generator.writeKey("data.last"); + generator.write(this.data_last); + + } + if (this.data_lastEmptyBucket != null) { + + generator.writeKey("data.last_empty_bucket"); + generator.write(this.data_lastEmptyBucket); + + } + if (this.data_lastSparseBucket != null) { + + generator.writeKey("data.last_sparse_bucket"); + generator.write(this.data_lastSparseBucket); + + } + if (this.model_bytes != null) { + + generator.writeKey("model.bytes"); + generator.write(this.model_bytes); + + } + if (this.model_memoryStatus != null) { + + generator.writeKey("model.memory_status"); + generator.write(this.model_memoryStatus); + + } + if (this.model_bytesExceeded != null) { + + generator.writeKey("model.bytes_exceeded"); + generator.write(this.model_bytesExceeded); + + } + if (this.model_memoryLimit != null) { + + generator.writeKey("model.memory_limit"); + generator.write(this.model_memoryLimit); + + } + if (this.model_byFields != null) { + + generator.writeKey("model.by_fields"); + generator.write(this.model_byFields); + + } + if (this.model_overFields != null) { + + generator.writeKey("model.over_fields"); + generator.write(this.model_overFields); + + } + if (this.model_partitionFields != null) { + + generator.writeKey("model.partition_fields"); + generator.write(this.model_partitionFields); + + } + if (this.model_bucketAllocationFailures != null) { + + generator.writeKey("model.bucket_allocation_failures"); + generator.write(this.model_bucketAllocationFailures); + + } + if (this.model_categorizationStatus != null) { + + generator.writeKey("model.categorization_status"); + generator.write(this.model_categorizationStatus); + + } + if (this.model_categorizedDocCount != null) { + + generator.writeKey("model.categorized_doc_count"); + generator.write(this.model_categorizedDocCount); + + } + if (this.model_totalCategoryCount != null) { + + generator.writeKey("model.total_category_count"); + generator.write(this.model_totalCategoryCount); + + } + if (this.model_frequentCategoryCount != null) { + + generator.writeKey("model.frequent_category_count"); + generator.write(this.model_frequentCategoryCount); + + } + if (this.model_rareCategoryCount != null) { + + generator.writeKey("model.rare_category_count"); + generator.write(this.model_rareCategoryCount); + + } + if (this.model_deadCategoryCount != null) { + + generator.writeKey("model.dead_category_count"); + generator.write(this.model_deadCategoryCount); + + } + if (this.model_failedCategoryCount != null) { + + generator.writeKey("model.failed_category_count"); + generator.write(this.model_failedCategoryCount); + + } + if (this.model_logTime != null) { + + generator.writeKey("model.log_time"); + generator.write(this.model_logTime); + + } + if (this.model_timestamp != null) { + + generator.writeKey("model.timestamp"); + generator.write(this.model_timestamp); + + } + if (this.forecasts_total != null) { + + generator.writeKey("forecasts.total"); + generator.write(this.forecasts_total); + + } + if (this.forecasts_memory_min != null) { + + generator.writeKey("forecasts.memory.min"); + generator.write(this.forecasts_memory_min); + + } + if (this.forecasts_memory_max != null) { + + generator.writeKey("forecasts.memory.max"); + generator.write(this.forecasts_memory_max); + + } + if (this.forecasts_memory_avg != null) { + + generator.writeKey("forecasts.memory.avg"); + generator.write(this.forecasts_memory_avg); + + } + if (this.forecasts_memory_total != null) { + + generator.writeKey("forecasts.memory.total"); + generator.write(this.forecasts_memory_total); + + } + if (this.forecasts_records_min != null) { + + generator.writeKey("forecasts.records.min"); + generator.write(this.forecasts_records_min); + + } + if (this.forecasts_records_max != null) { + + generator.writeKey("forecasts.records.max"); + generator.write(this.forecasts_records_max); + + } + if (this.forecasts_records_avg != null) { + + generator.writeKey("forecasts.records.avg"); + generator.write(this.forecasts_records_avg); + + } + if (this.forecasts_records_total != null) { + + generator.writeKey("forecasts.records.total"); + generator.write(this.forecasts_records_total); + + } + if (this.forecasts_time_min != null) { + + generator.writeKey("forecasts.time.min"); + generator.write(this.forecasts_time_min); + + } + if (this.forecasts_time_max != null) { + + generator.writeKey("forecasts.time.max"); + generator.write(this.forecasts_time_max); + + } + if (this.forecasts_time_avg != null) { + + generator.writeKey("forecasts.time.avg"); + generator.write(this.forecasts_time_avg); + + } + if (this.forecasts_time_total != null) { + + generator.writeKey("forecasts.time.total"); + generator.write(this.forecasts_time_total); + + } + if (this.node_id != null) { + + generator.writeKey("node.id"); + generator.write(this.node_id); + + } + if (this.node_name != null) { + + generator.writeKey("node.name"); + generator.write(this.node_name); + + } + if (this.node_ephemeralId != null) { + + generator.writeKey("node.ephemeral_id"); + generator.write(this.node_ephemeralId); + + } + if (this.node_address != null) { + + generator.writeKey("node.address"); + generator.write(this.node_address); + + } + if (this.buckets_count != null) { + + generator.writeKey("buckets.count"); + generator.write(this.buckets_count); + + } + if (this.buckets_time_total != null) { + + generator.writeKey("buckets.time.total"); + generator.write(this.buckets_time_total); + + } + if (this.buckets_time_min != null) { + + generator.writeKey("buckets.time.min"); + generator.write(this.buckets_time_min); + + } + if (this.buckets_time_max != null) { + + generator.writeKey("buckets.time.max"); + generator.write(this.buckets_time_max); + + } + if (this.buckets_time_expAvg != null) { + + generator.writeKey("buckets.time.exp_avg"); + generator.write(this.buckets_time_expAvg); + + } + if (this.buckets_time_expAvgHour != null) { + + generator.writeKey("buckets.time.exp_avg_hour"); + generator.write(this.buckets_time_expAvgHour); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link JobsRecord}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private String id; + + @Nullable + private JsonValue state; + + @Nullable + private String openedTime; + + @Nullable + private String assignmentExplanation; + + @Nullable + private String data_processedRecords; + + @Nullable + private String data_processedFields; + + @Nullable + private JsonValue data_inputBytes; + + @Nullable + private String data_inputRecords; + + @Nullable + private String data_inputFields; + + @Nullable + private String data_invalidDates; + + @Nullable + private String data_missingFields; + + @Nullable + private String data_outOfOrderTimestamps; + + @Nullable + private String data_emptyBuckets; + + @Nullable + private String data_sparseBuckets; + + @Nullable + private String data_buckets; + + @Nullable + private String data_earliestRecord; + + @Nullable + private String data_latestRecord; + + @Nullable + private String data_last; + + @Nullable + private String data_lastEmptyBucket; + + @Nullable + private String data_lastSparseBucket; + + @Nullable + private JsonValue model_bytes; + + @Nullable + private JsonValue model_memoryStatus; + + @Nullable + private JsonValue model_bytesExceeded; + + @Nullable + private String model_memoryLimit; + + @Nullable + private String model_byFields; + + @Nullable + private String model_overFields; + + @Nullable + private String model_partitionFields; + + @Nullable + private String model_bucketAllocationFailures; + + @Nullable + private JsonValue model_categorizationStatus; + + @Nullable + private String model_categorizedDocCount; + + @Nullable + private String model_totalCategoryCount; + + @Nullable + private String model_frequentCategoryCount; + + @Nullable + private String model_rareCategoryCount; + + @Nullable + private String model_deadCategoryCount; + + @Nullable + private String model_failedCategoryCount; + + @Nullable + private String model_logTime; + + @Nullable + private String model_timestamp; + + @Nullable + private String forecasts_total; + + @Nullable + private String forecasts_memory_min; + + @Nullable + private String forecasts_memory_max; + + @Nullable + private String forecasts_memory_avg; + + @Nullable + private String forecasts_memory_total; + + @Nullable + private String forecasts_records_min; + + @Nullable + private String forecasts_records_max; + + @Nullable + private String forecasts_records_avg; + + @Nullable + private String forecasts_records_total; + + @Nullable + private String forecasts_time_min; + + @Nullable + private String forecasts_time_max; + + @Nullable + private String forecasts_time_avg; + + @Nullable + private String forecasts_time_total; + + @Nullable + private String node_id; + + @Nullable + private String node_name; + + @Nullable + private String node_ephemeralId; + + @Nullable + private String node_address; + + @Nullable + private String buckets_count; + + @Nullable + private String buckets_time_total; + + @Nullable + private String buckets_time_min; + + @Nullable + private String buckets_time_max; + + @Nullable + private String buckets_time_expAvg; + + @Nullable + private String buckets_time_expAvgHour; + + /** + * the job_id + *

+ * API name: {@code id} + */ + public Builder id(@Nullable String value) { + this.id = value; + return this; + } + + /** + * the job state + *

+ * API name: {@code state} + */ + public Builder state(@Nullable JsonValue value) { + this.state = value; + return this; + } + + /** + * the amount of time the job has been opened + *

+ * API name: {@code opened_time} + */ + public Builder openedTime(@Nullable String value) { + this.openedTime = value; + return this; + } + + /** + * why the job is or is not assigned to a node + *

+ * API name: {@code assignment_explanation} + */ + public Builder assignmentExplanation(@Nullable String value) { + this.assignmentExplanation = value; + return this; + } + + /** + * number of processed records + *

+ * API name: {@code data.processed_records} + */ + public Builder data_processedRecords(@Nullable String value) { + this.data_processedRecords = value; + return this; + } + + /** + * number of processed fields + *

+ * API name: {@code data.processed_fields} + */ + public Builder data_processedFields(@Nullable String value) { + this.data_processedFields = value; + return this; + } + + /** + * total input bytes + *

+ * API name: {@code data.input_bytes} + */ + public Builder data_inputBytes(@Nullable JsonValue value) { + this.data_inputBytes = value; + return this; + } + + /** + * total record count + *

+ * API name: {@code data.input_records} + */ + public Builder data_inputRecords(@Nullable String value) { + this.data_inputRecords = value; + return this; + } + + /** + * total field count + *

+ * API name: {@code data.input_fields} + */ + public Builder data_inputFields(@Nullable String value) { + this.data_inputFields = value; + return this; + } + + /** + * number of records with invalid dates + *

+ * API name: {@code data.invalid_dates} + */ + public Builder data_invalidDates(@Nullable String value) { + this.data_invalidDates = value; + return this; + } + + /** + * number of records with missing fields + *

+ * API name: {@code data.missing_fields} + */ + public Builder data_missingFields(@Nullable String value) { + this.data_missingFields = value; + return this; + } + + /** + * number of records handled out of order + *

+ * API name: {@code data.out_of_order_timestamps} + */ + public Builder data_outOfOrderTimestamps(@Nullable String value) { + this.data_outOfOrderTimestamps = value; + return this; + } + + /** + * number of empty buckets + *

+ * API name: {@code data.empty_buckets} + */ + public Builder data_emptyBuckets(@Nullable String value) { + this.data_emptyBuckets = value; + return this; + } + + /** + * number of sparse buckets + *

+ * API name: {@code data.sparse_buckets} + */ + public Builder data_sparseBuckets(@Nullable String value) { + this.data_sparseBuckets = value; + return this; + } + + /** + * total bucket count + *

+ * API name: {@code data.buckets} + */ + public Builder data_buckets(@Nullable String value) { + this.data_buckets = value; + return this; + } + + /** + * earliest record time + *

+ * API name: {@code data.earliest_record} + */ + public Builder data_earliestRecord(@Nullable String value) { + this.data_earliestRecord = value; + return this; + } + + /** + * latest record time + *

+ * API name: {@code data.latest_record} + */ + public Builder data_latestRecord(@Nullable String value) { + this.data_latestRecord = value; + return this; + } + + /** + * last time data was seen + *

+ * API name: {@code data.last} + */ + public Builder data_last(@Nullable String value) { + this.data_last = value; + return this; + } + + /** + * last time an empty bucket occurred + *

+ * API name: {@code data.last_empty_bucket} + */ + public Builder data_lastEmptyBucket(@Nullable String value) { + this.data_lastEmptyBucket = value; + return this; + } + + /** + * last time a sparse bucket occurred + *

+ * API name: {@code data.last_sparse_bucket} + */ + public Builder data_lastSparseBucket(@Nullable String value) { + this.data_lastSparseBucket = value; + return this; + } + + /** + * model size + *

+ * API name: {@code model.bytes} + */ + public Builder model_bytes(@Nullable JsonValue value) { + this.model_bytes = value; + return this; + } + + /** + * current memory status + *

+ * API name: {@code model.memory_status} + */ + public Builder model_memoryStatus(@Nullable JsonValue value) { + this.model_memoryStatus = value; + return this; + } + + /** + * how much the model has exceeded the limit + *

+ * API name: {@code model.bytes_exceeded} + */ + public Builder model_bytesExceeded(@Nullable JsonValue value) { + this.model_bytesExceeded = value; + return this; + } + + /** + * model memory limit + *

+ * API name: {@code model.memory_limit} + */ + public Builder model_memoryLimit(@Nullable String value) { + this.model_memoryLimit = value; + return this; + } + + /** + * count of 'by' fields + *

+ * API name: {@code model.by_fields} + */ + public Builder model_byFields(@Nullable String value) { + this.model_byFields = value; + return this; + } + + /** + * count of 'over' fields + *

+ * API name: {@code model.over_fields} + */ + public Builder model_overFields(@Nullable String value) { + this.model_overFields = value; + return this; + } + + /** + * count of 'partition' fields + *

+ * API name: {@code model.partition_fields} + */ + public Builder model_partitionFields(@Nullable String value) { + this.model_partitionFields = value; + return this; + } + + /** + * number of bucket allocation failures + *

+ * API name: {@code model.bucket_allocation_failures} + */ + public Builder model_bucketAllocationFailures(@Nullable String value) { + this.model_bucketAllocationFailures = value; + return this; + } + + /** + * current categorization status + *

+ * API name: {@code model.categorization_status} + */ + public Builder model_categorizationStatus(@Nullable JsonValue value) { + this.model_categorizationStatus = value; + return this; + } + + /** + * count of categorized documents + *

+ * API name: {@code model.categorized_doc_count} + */ + public Builder model_categorizedDocCount(@Nullable String value) { + this.model_categorizedDocCount = value; + return this; + } + + /** + * count of categories + *

+ * API name: {@code model.total_category_count} + */ + public Builder model_totalCategoryCount(@Nullable String value) { + this.model_totalCategoryCount = value; + return this; + } + + /** + * count of frequent categories + *

+ * API name: {@code model.frequent_category_count} + */ + public Builder model_frequentCategoryCount(@Nullable String value) { + this.model_frequentCategoryCount = value; + return this; + } + + /** + * count of rare categories + *

+ * API name: {@code model.rare_category_count} + */ + public Builder model_rareCategoryCount(@Nullable String value) { + this.model_rareCategoryCount = value; + return this; + } + + /** + * count of dead categories + *

+ * API name: {@code model.dead_category_count} + */ + public Builder model_deadCategoryCount(@Nullable String value) { + this.model_deadCategoryCount = value; + return this; + } + + /** + * count of failed categories + *

+ * API name: {@code model.failed_category_count} + */ + public Builder model_failedCategoryCount(@Nullable String value) { + this.model_failedCategoryCount = value; + return this; + } + + /** + * when the model stats were gathered + *

+ * API name: {@code model.log_time} + */ + public Builder model_logTime(@Nullable String value) { + this.model_logTime = value; + return this; + } + + /** + * the time of the last record when the model stats were gathered + *

+ * API name: {@code model.timestamp} + */ + public Builder model_timestamp(@Nullable String value) { + this.model_timestamp = value; + return this; + } + + /** + * total number of forecasts + *

+ * API name: {@code forecasts.total} + */ + public Builder forecasts_total(@Nullable String value) { + this.forecasts_total = value; + return this; + } + + /** + * minimum memory used by forecasts + *

+ * API name: {@code forecasts.memory.min} + */ + public Builder forecasts_memory_min(@Nullable String value) { + this.forecasts_memory_min = value; + return this; + } + + /** + * maximum memory used by forecasts + *

+ * API name: {@code forecasts.memory.max} + */ + public Builder forecasts_memory_max(@Nullable String value) { + this.forecasts_memory_max = value; + return this; + } + + /** + * average memory used by forecasts + *

+ * API name: {@code forecasts.memory.avg} + */ + public Builder forecasts_memory_avg(@Nullable String value) { + this.forecasts_memory_avg = value; + return this; + } + + /** + * total memory used by all forecasts + *

+ * API name: {@code forecasts.memory.total} + */ + public Builder forecasts_memory_total(@Nullable String value) { + this.forecasts_memory_total = value; + return this; + } + + /** + * minimum record count for forecasts + *

+ * API name: {@code forecasts.records.min} + */ + public Builder forecasts_records_min(@Nullable String value) { + this.forecasts_records_min = value; + return this; + } + + /** + * maximum record count for forecasts + *

+ * API name: {@code forecasts.records.max} + */ + public Builder forecasts_records_max(@Nullable String value) { + this.forecasts_records_max = value; + return this; + } + + /** + * average record count for forecasts + *

+ * API name: {@code forecasts.records.avg} + */ + public Builder forecasts_records_avg(@Nullable String value) { + this.forecasts_records_avg = value; + return this; + } + + /** + * total record count for all forecasts + *

+ * API name: {@code forecasts.records.total} + */ + public Builder forecasts_records_total(@Nullable String value) { + this.forecasts_records_total = value; + return this; + } + + /** + * minimum runtime for forecasts + *

+ * API name: {@code forecasts.time.min} + */ + public Builder forecasts_time_min(@Nullable String value) { + this.forecasts_time_min = value; + return this; + } + + /** + * maximum run time for forecasts + *

+ * API name: {@code forecasts.time.max} + */ + public Builder forecasts_time_max(@Nullable String value) { + this.forecasts_time_max = value; + return this; + } + + /** + * average runtime for all forecasts (milliseconds) + *

+ * API name: {@code forecasts.time.avg} + */ + public Builder forecasts_time_avg(@Nullable String value) { + this.forecasts_time_avg = value; + return this; + } + + /** + * total runtime for all forecasts + *

+ * API name: {@code forecasts.time.total} + */ + public Builder forecasts_time_total(@Nullable String value) { + this.forecasts_time_total = value; + return this; + } + + /** + * id of the assigned node + *

+ * API name: {@code node.id} + */ + public Builder node_id(@Nullable String value) { + this.node_id = value; + return this; + } + + /** + * name of the assigned node + *

+ * API name: {@code node.name} + */ + public Builder node_name(@Nullable String value) { + this.node_name = value; + return this; + } + + /** + * ephemeral id of the assigned node + *

+ * API name: {@code node.ephemeral_id} + */ + public Builder node_ephemeralId(@Nullable String value) { + this.node_ephemeralId = value; + return this; + } + + /** + * network address of the assigned node + *

+ * API name: {@code node.address} + */ + public Builder node_address(@Nullable String value) { + this.node_address = value; + return this; + } + + /** + * bucket count + *

+ * API name: {@code buckets.count} + */ + public Builder buckets_count(@Nullable String value) { + this.buckets_count = value; + return this; + } + + /** + * total bucket processing time + *

+ * API name: {@code buckets.time.total} + */ + public Builder buckets_time_total(@Nullable String value) { + this.buckets_time_total = value; + return this; + } + + /** + * minimum bucket processing time + *

+ * API name: {@code buckets.time.min} + */ + public Builder buckets_time_min(@Nullable String value) { + this.buckets_time_min = value; + return this; + } + + /** + * maximum bucket processing time + *

+ * API name: {@code buckets.time.max} + */ + public Builder buckets_time_max(@Nullable String value) { + this.buckets_time_max = value; + return this; + } + + /** + * exponential average bucket processing time (milliseconds) + *

+ * API name: {@code buckets.time.exp_avg} + */ + public Builder buckets_time_expAvg(@Nullable String value) { + this.buckets_time_expAvg = value; + return this; + } + + /** + * exponential average bucket processing time by hour (milliseconds) + *

+ * API name: {@code buckets.time.exp_avg_hour} + */ + public Builder buckets_time_expAvgHour(@Nullable String value) { + this.buckets_time_expAvgHour = value; + return this; + } + + /** + * Builds a {@link JobsRecord}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public JobsRecord build() { + + return new JobsRecord(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for JobsRecord + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, JobsRecord::setupJobsRecordDeserializer); + + protected static void setupJobsRecordDeserializer(DelegatingDeserializer op) { + + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::state, JsonpDeserializer.jsonValueDeserializer(), "state", "s"); + op.add(Builder::openedTime, JsonpDeserializer.stringDeserializer(), "opened_time", "ot"); + op.add(Builder::assignmentExplanation, JsonpDeserializer.stringDeserializer(), "assignment_explanation", "ae"); + op.add(Builder::data_processedRecords, JsonpDeserializer.stringDeserializer(), "data.processed_records", "dpr", + "dataProcessedRecords"); + op.add(Builder::data_processedFields, JsonpDeserializer.stringDeserializer(), "data.processed_fields", "dpf", + "dataProcessedFields"); + op.add(Builder::data_inputBytes, JsonpDeserializer.jsonValueDeserializer(), "data.input_bytes", "dib", + "dataInputBytes"); + op.add(Builder::data_inputRecords, JsonpDeserializer.stringDeserializer(), "data.input_records", "dir", + "dataInputRecords"); + op.add(Builder::data_inputFields, JsonpDeserializer.stringDeserializer(), "data.input_fields", "dif", + "dataInputFields"); + op.add(Builder::data_invalidDates, JsonpDeserializer.stringDeserializer(), "data.invalid_dates", "did", + "dataInvalidDates"); + op.add(Builder::data_missingFields, JsonpDeserializer.stringDeserializer(), "data.missing_fields", "dmf", + "dataMissingFields"); + op.add(Builder::data_outOfOrderTimestamps, JsonpDeserializer.stringDeserializer(), + "data.out_of_order_timestamps", "doot", "dataOutOfOrderTimestamps"); + op.add(Builder::data_emptyBuckets, JsonpDeserializer.stringDeserializer(), "data.empty_buckets", "deb", + "dataEmptyBuckets"); + op.add(Builder::data_sparseBuckets, JsonpDeserializer.stringDeserializer(), "data.sparse_buckets", "dsb", + "dataSparseBuckets"); + op.add(Builder::data_buckets, JsonpDeserializer.stringDeserializer(), "data.buckets", "db", "dataBuckets"); + op.add(Builder::data_earliestRecord, JsonpDeserializer.stringDeserializer(), "data.earliest_record", "der", + "dataEarliestRecord"); + op.add(Builder::data_latestRecord, JsonpDeserializer.stringDeserializer(), "data.latest_record", "dlr", + "dataLatestRecord"); + op.add(Builder::data_last, JsonpDeserializer.stringDeserializer(), "data.last", "dl", "dataLast"); + op.add(Builder::data_lastEmptyBucket, JsonpDeserializer.stringDeserializer(), "data.last_empty_bucket", "dleb", + "dataLastEmptyBucket"); + op.add(Builder::data_lastSparseBucket, JsonpDeserializer.stringDeserializer(), "data.last_sparse_bucket", + "dlsb", "dataLastSparseBucket"); + op.add(Builder::model_bytes, JsonpDeserializer.jsonValueDeserializer(), "model.bytes", "mb", "modelBytes"); + op.add(Builder::model_memoryStatus, JsonpDeserializer.jsonValueDeserializer(), "model.memory_status", "mms", + "modelMemoryStatus"); + op.add(Builder::model_bytesExceeded, JsonpDeserializer.jsonValueDeserializer(), "model.bytes_exceeded", "mbe", + "modelBytesExceeded"); + op.add(Builder::model_memoryLimit, JsonpDeserializer.stringDeserializer(), "model.memory_limit", "mml", + "modelMemoryLimit"); + op.add(Builder::model_byFields, JsonpDeserializer.stringDeserializer(), "model.by_fields", "mbf", + "modelByFields"); + op.add(Builder::model_overFields, JsonpDeserializer.stringDeserializer(), "model.over_fields", "mof", + "modelOverFields"); + op.add(Builder::model_partitionFields, JsonpDeserializer.stringDeserializer(), "model.partition_fields", "mpf", + "modelPartitionFields"); + op.add(Builder::model_bucketAllocationFailures, JsonpDeserializer.stringDeserializer(), + "model.bucket_allocation_failures", "mbaf", "modelBucketAllocationFailures"); + op.add(Builder::model_categorizationStatus, JsonpDeserializer.jsonValueDeserializer(), + "model.categorization_status", "mcs", "modelCategorizationStatus"); + op.add(Builder::model_categorizedDocCount, JsonpDeserializer.stringDeserializer(), + "model.categorized_doc_count", "mcdc", "modelCategorizedDocCount"); + op.add(Builder::model_totalCategoryCount, JsonpDeserializer.stringDeserializer(), "model.total_category_count", + "mtcc", "modelTotalCategoryCount"); + op.add(Builder::model_frequentCategoryCount, JsonpDeserializer.stringDeserializer(), + "model.frequent_category_count", "modelFrequentCategoryCount"); + op.add(Builder::model_rareCategoryCount, JsonpDeserializer.stringDeserializer(), "model.rare_category_count", + "mrcc", "modelRareCategoryCount"); + op.add(Builder::model_deadCategoryCount, JsonpDeserializer.stringDeserializer(), "model.dead_category_count", + "mdcc", "modelDeadCategoryCount"); + op.add(Builder::model_failedCategoryCount, JsonpDeserializer.stringDeserializer(), + "model.failed_category_count", "mfcc", "modelFailedCategoryCount"); + op.add(Builder::model_logTime, JsonpDeserializer.stringDeserializer(), "model.log_time", "mlt", "modelLogTime"); + op.add(Builder::model_timestamp, JsonpDeserializer.stringDeserializer(), "model.timestamp", "mt", + "modelTimestamp"); + op.add(Builder::forecasts_total, JsonpDeserializer.stringDeserializer(), "forecasts.total", "ft", + "forecastsTotal"); + op.add(Builder::forecasts_memory_min, JsonpDeserializer.stringDeserializer(), "forecasts.memory.min", "fmmin", + "forecastsMemoryMin"); + op.add(Builder::forecasts_memory_max, JsonpDeserializer.stringDeserializer(), "forecasts.memory.max", "fmmax", + "forecastsMemoryMax"); + op.add(Builder::forecasts_memory_avg, JsonpDeserializer.stringDeserializer(), "forecasts.memory.avg", "fmavg", + "forecastsMemoryAvg"); + op.add(Builder::forecasts_memory_total, JsonpDeserializer.stringDeserializer(), "forecasts.memory.total", "fmt", + "forecastsMemoryTotal"); + op.add(Builder::forecasts_records_min, JsonpDeserializer.stringDeserializer(), "forecasts.records.min", "frmin", + "forecastsRecordsMin"); + op.add(Builder::forecasts_records_max, JsonpDeserializer.stringDeserializer(), "forecasts.records.max", "frmax", + "forecastsRecordsMax"); + op.add(Builder::forecasts_records_avg, JsonpDeserializer.stringDeserializer(), "forecasts.records.avg", "fravg", + "forecastsRecordsAvg"); + op.add(Builder::forecasts_records_total, JsonpDeserializer.stringDeserializer(), "forecasts.records.total", + "frt", "forecastsRecordsTotal"); + op.add(Builder::forecasts_time_min, JsonpDeserializer.stringDeserializer(), "forecasts.time.min", "ftmin", + "forecastsTimeMin"); + op.add(Builder::forecasts_time_max, JsonpDeserializer.stringDeserializer(), "forecasts.time.max", "ftmax", + "forecastsTimeMax"); + op.add(Builder::forecasts_time_avg, JsonpDeserializer.stringDeserializer(), "forecasts.time.avg", "ftavg", + "forecastsTimeAvg"); + op.add(Builder::forecasts_time_total, JsonpDeserializer.stringDeserializer(), "forecasts.time.total", "ftt", + "forecastsTimeTotal"); + op.add(Builder::node_id, JsonpDeserializer.stringDeserializer(), "node.id", "ni", "nodeId"); + op.add(Builder::node_name, JsonpDeserializer.stringDeserializer(), "node.name", "nn", "nodeName"); + op.add(Builder::node_ephemeralId, JsonpDeserializer.stringDeserializer(), "node.ephemeral_id", "ne", + "nodeEphemeralId"); + op.add(Builder::node_address, JsonpDeserializer.stringDeserializer(), "node.address", "na", "nodeAddress"); + op.add(Builder::buckets_count, JsonpDeserializer.stringDeserializer(), "buckets.count", "bc", "bucketsCount"); + op.add(Builder::buckets_time_total, JsonpDeserializer.stringDeserializer(), "buckets.time.total", "btt", + "bucketsTimeTotal"); + op.add(Builder::buckets_time_min, JsonpDeserializer.stringDeserializer(), "buckets.time.min", "btmin", + "bucketsTimeMin"); + op.add(Builder::buckets_time_max, JsonpDeserializer.stringDeserializer(), "buckets.time.max", "btmax", + "bucketsTimeMax"); + op.add(Builder::buckets_time_expAvg, JsonpDeserializer.stringDeserializer(), "buckets.time.exp_avg", "btea", + "bucketsTimeExpAvg"); + op.add(Builder::buckets_time_expAvgHour, JsonpDeserializer.stringDeserializer(), "buckets.time.exp_avg_hour", + "bteah", "bucketsTimeExpAvgHour"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java new file mode 100644 index 000000000..798327580 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/ml_trained_models/TrainedModelsRecord.java @@ -0,0 +1,708 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat.ml_trained_models; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import javax.annotation.Nullable; + +// typedef: cat.ml_trained_models.TrainedModelsRecord +public final class TrainedModelsRecord implements ToJsonp { + @Nullable + private final String id; + + @Nullable + private final String createdBy; + + @Nullable + private final JsonValue heapSize; + + @Nullable + private final String operations; + + @Nullable + private final String license; + + @Nullable + private final String createTime; + + @Nullable + private final String version; + + @Nullable + private final String description; + + @Nullable + private final String ingest_pipelines; + + @Nullable + private final String ingest_count; + + @Nullable + private final String ingest_time; + + @Nullable + private final String ingest_current; + + @Nullable + private final String ingest_failed; + + @Nullable + private final String dataFrame_id; + + @Nullable + private final String dataFrame_createTime; + + @Nullable + private final String dataFrame_sourceIndex; + + @Nullable + private final String dataFrame_analysis; + + @Nullable + private final String type; + + // --------------------------------------------------------------------------------------------- + + protected TrainedModelsRecord(Builder builder) { + + this.id = builder.id; + this.createdBy = builder.createdBy; + this.heapSize = builder.heapSize; + this.operations = builder.operations; + this.license = builder.license; + this.createTime = builder.createTime; + this.version = builder.version; + this.description = builder.description; + this.ingest_pipelines = builder.ingest_pipelines; + this.ingest_count = builder.ingest_count; + this.ingest_time = builder.ingest_time; + this.ingest_current = builder.ingest_current; + this.ingest_failed = builder.ingest_failed; + this.dataFrame_id = builder.dataFrame_id; + this.dataFrame_createTime = builder.dataFrame_createTime; + this.dataFrame_sourceIndex = builder.dataFrame_sourceIndex; + this.dataFrame_analysis = builder.dataFrame_analysis; + this.type = builder.type; + + } + + /** + * the trained model id + *

+ * API name: {@code id} + */ + @Nullable + public String id() { + return this.id; + } + + /** + * who created the model + *

+ * API name: {@code created_by} + */ + @Nullable + public String createdBy() { + return this.createdBy; + } + + /** + * the estimated heap size to keep the model in memory + *

+ * API name: {@code heap_size} + */ + @Nullable + public JsonValue heapSize() { + return this.heapSize; + } + + /** + * the estimated number of operations to use the model + *

+ * API name: {@code operations} + */ + @Nullable + public String operations() { + return this.operations; + } + + /** + * The license level of the model + *

+ * API name: {@code license} + */ + @Nullable + public String license() { + return this.license; + } + + /** + * The time the model was created + *

+ * API name: {@code create_time} + */ + @Nullable + public String createTime() { + return this.createTime; + } + + /** + * The version of Elasticsearch when the model was created + *

+ * API name: {@code version} + */ + @Nullable + public String version() { + return this.version; + } + + /** + * The model description + *

+ * API name: {@code description} + */ + @Nullable + public String description() { + return this.description; + } + + /** + * The number of pipelines referencing the model + *

+ * API name: {@code ingest.pipelines} + */ + @Nullable + public String ingest_pipelines() { + return this.ingest_pipelines; + } + + /** + * The total number of docs processed by the model + *

+ * API name: {@code ingest.count} + */ + @Nullable + public String ingest_count() { + return this.ingest_count; + } + + /** + * The total time spent processing docs with this model + *

+ * API name: {@code ingest.time} + */ + @Nullable + public String ingest_time() { + return this.ingest_time; + } + + /** + * The total documents currently being handled by the model + *

+ * API name: {@code ingest.current} + */ + @Nullable + public String ingest_current() { + return this.ingest_current; + } + + /** + * The total count of failed ingest attempts with this model + *

+ * API name: {@code ingest.failed} + */ + @Nullable + public String ingest_failed() { + return this.ingest_failed; + } + + /** + * The data frame analytics config id that created the model (if still + * available) + *

+ * API name: {@code data_frame.id} + */ + @Nullable + public String dataFrame_id() { + return this.dataFrame_id; + } + + /** + * The time the data frame analytics config was created + *

+ * API name: {@code data_frame.create_time} + */ + @Nullable + public String dataFrame_createTime() { + return this.dataFrame_createTime; + } + + /** + * The source index used to train in the data frame analysis + *

+ * API name: {@code data_frame.source_index} + */ + @Nullable + public String dataFrame_sourceIndex() { + return this.dataFrame_sourceIndex; + } + + /** + * The analysis used by the data frame to build the model + *

+ * API name: {@code data_frame.analysis} + */ + @Nullable + public String dataFrame_analysis() { + return this.dataFrame_analysis; + } + + /** + * API name: {@code type} + */ + @Nullable + public String type() { + return this.type; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.id != null) { + + generator.writeKey("id"); + generator.write(this.id); + + } + if (this.createdBy != null) { + + generator.writeKey("created_by"); + generator.write(this.createdBy); + + } + if (this.heapSize != null) { + + generator.writeKey("heap_size"); + generator.write(this.heapSize); + + } + if (this.operations != null) { + + generator.writeKey("operations"); + generator.write(this.operations); + + } + if (this.license != null) { + + generator.writeKey("license"); + generator.write(this.license); + + } + if (this.createTime != null) { + + generator.writeKey("create_time"); + generator.write(this.createTime); + + } + if (this.version != null) { + + generator.writeKey("version"); + generator.write(this.version); + + } + if (this.description != null) { + + generator.writeKey("description"); + generator.write(this.description); + + } + if (this.ingest_pipelines != null) { + + generator.writeKey("ingest.pipelines"); + generator.write(this.ingest_pipelines); + + } + if (this.ingest_count != null) { + + generator.writeKey("ingest.count"); + generator.write(this.ingest_count); + + } + if (this.ingest_time != null) { + + generator.writeKey("ingest.time"); + generator.write(this.ingest_time); + + } + if (this.ingest_current != null) { + + generator.writeKey("ingest.current"); + generator.write(this.ingest_current); + + } + if (this.ingest_failed != null) { + + generator.writeKey("ingest.failed"); + generator.write(this.ingest_failed); + + } + if (this.dataFrame_id != null) { + + generator.writeKey("data_frame.id"); + generator.write(this.dataFrame_id); + + } + if (this.dataFrame_createTime != null) { + + generator.writeKey("data_frame.create_time"); + generator.write(this.dataFrame_createTime); + + } + if (this.dataFrame_sourceIndex != null) { + + generator.writeKey("data_frame.source_index"); + generator.write(this.dataFrame_sourceIndex); + + } + if (this.dataFrame_analysis != null) { + + generator.writeKey("data_frame.analysis"); + generator.write(this.dataFrame_analysis); + + } + if (this.type != null) { + + generator.writeKey("type"); + generator.write(this.type); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link TrainedModelsRecord}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private String id; + + @Nullable + private String createdBy; + + @Nullable + private JsonValue heapSize; + + @Nullable + private String operations; + + @Nullable + private String license; + + @Nullable + private String createTime; + + @Nullable + private String version; + + @Nullable + private String description; + + @Nullable + private String ingest_pipelines; + + @Nullable + private String ingest_count; + + @Nullable + private String ingest_time; + + @Nullable + private String ingest_current; + + @Nullable + private String ingest_failed; + + @Nullable + private String dataFrame_id; + + @Nullable + private String dataFrame_createTime; + + @Nullable + private String dataFrame_sourceIndex; + + @Nullable + private String dataFrame_analysis; + + @Nullable + private String type; + + /** + * the trained model id + *

+ * API name: {@code id} + */ + public Builder id(@Nullable String value) { + this.id = value; + return this; + } + + /** + * who created the model + *

+ * API name: {@code created_by} + */ + public Builder createdBy(@Nullable String value) { + this.createdBy = value; + return this; + } + + /** + * the estimated heap size to keep the model in memory + *

+ * API name: {@code heap_size} + */ + public Builder heapSize(@Nullable JsonValue value) { + this.heapSize = value; + return this; + } + + /** + * the estimated number of operations to use the model + *

+ * API name: {@code operations} + */ + public Builder operations(@Nullable String value) { + this.operations = value; + return this; + } + + /** + * The license level of the model + *

+ * API name: {@code license} + */ + public Builder license(@Nullable String value) { + this.license = value; + return this; + } + + /** + * The time the model was created + *

+ * API name: {@code create_time} + */ + public Builder createTime(@Nullable String value) { + this.createTime = value; + return this; + } + + /** + * The version of Elasticsearch when the model was created + *

+ * API name: {@code version} + */ + public Builder version(@Nullable String value) { + this.version = value; + return this; + } + + /** + * The model description + *

+ * API name: {@code description} + */ + public Builder description(@Nullable String value) { + this.description = value; + return this; + } + + /** + * The number of pipelines referencing the model + *

+ * API name: {@code ingest.pipelines} + */ + public Builder ingest_pipelines(@Nullable String value) { + this.ingest_pipelines = value; + return this; + } + + /** + * The total number of docs processed by the model + *

+ * API name: {@code ingest.count} + */ + public Builder ingest_count(@Nullable String value) { + this.ingest_count = value; + return this; + } + + /** + * The total time spent processing docs with this model + *

+ * API name: {@code ingest.time} + */ + public Builder ingest_time(@Nullable String value) { + this.ingest_time = value; + return this; + } + + /** + * The total documents currently being handled by the model + *

+ * API name: {@code ingest.current} + */ + public Builder ingest_current(@Nullable String value) { + this.ingest_current = value; + return this; + } + + /** + * The total count of failed ingest attempts with this model + *

+ * API name: {@code ingest.failed} + */ + public Builder ingest_failed(@Nullable String value) { + this.ingest_failed = value; + return this; + } + + /** + * The data frame analytics config id that created the model (if still + * available) + *

+ * API name: {@code data_frame.id} + */ + public Builder dataFrame_id(@Nullable String value) { + this.dataFrame_id = value; + return this; + } + + /** + * The time the data frame analytics config was created + *

+ * API name: {@code data_frame.create_time} + */ + public Builder dataFrame_createTime(@Nullable String value) { + this.dataFrame_createTime = value; + return this; + } + + /** + * The source index used to train in the data frame analysis + *

+ * API name: {@code data_frame.source_index} + */ + public Builder dataFrame_sourceIndex(@Nullable String value) { + this.dataFrame_sourceIndex = value; + return this; + } + + /** + * The analysis used by the data frame to build the model + *

+ * API name: {@code data_frame.analysis} + */ + public Builder dataFrame_analysis(@Nullable String value) { + this.dataFrame_analysis = value; + return this; + } + + /** + * API name: {@code type} + */ + public Builder type(@Nullable String value) { + this.type = value; + return this; + } + + /** + * Builds a {@link TrainedModelsRecord}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public TrainedModelsRecord build() { + + return new TrainedModelsRecord(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for TrainedModelsRecord + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, TrainedModelsRecord::setupTrainedModelsRecordDeserializer); + + protected static void setupTrainedModelsRecordDeserializer(DelegatingDeserializer op) { + + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::createdBy, JsonpDeserializer.stringDeserializer(), "created_by", "c", "createdBy"); + op.add(Builder::heapSize, JsonpDeserializer.jsonValueDeserializer(), "heap_size", "hs", "modelHeapSize"); + op.add(Builder::operations, JsonpDeserializer.stringDeserializer(), "operations", "o", "modelOperations"); + op.add(Builder::license, JsonpDeserializer.stringDeserializer(), "license", "l"); + op.add(Builder::createTime, JsonpDeserializer.stringDeserializer(), "create_time", "ct"); + op.add(Builder::version, JsonpDeserializer.stringDeserializer(), "version", "v"); + op.add(Builder::description, JsonpDeserializer.stringDeserializer(), "description", "d"); + op.add(Builder::ingest_pipelines, JsonpDeserializer.stringDeserializer(), "ingest.pipelines", "ip", + "ingestPipelines"); + op.add(Builder::ingest_count, JsonpDeserializer.stringDeserializer(), "ingest.count", "ic", "ingestCount"); + op.add(Builder::ingest_time, JsonpDeserializer.stringDeserializer(), "ingest.time", "it", "ingestTime"); + op.add(Builder::ingest_current, JsonpDeserializer.stringDeserializer(), "ingest.current", "icurr", + "ingestCurrent"); + op.add(Builder::ingest_failed, JsonpDeserializer.stringDeserializer(), "ingest.failed", "if", "ingestFailed"); + op.add(Builder::dataFrame_id, JsonpDeserializer.stringDeserializer(), "data_frame.id", "dfid", + "dataFrameAnalytics"); + op.add(Builder::dataFrame_createTime, JsonpDeserializer.stringDeserializer(), "data_frame.create_time", "dft", + "dataFrameAnalyticsTime"); + op.add(Builder::dataFrame_sourceIndex, JsonpDeserializer.stringDeserializer(), "data_frame.source_index", + "dfsi", "dataFrameAnalyticsSrcIndex"); + op.add(Builder::dataFrame_analysis, JsonpDeserializer.stringDeserializer(), "data_frame.analysis", "dfa", + "dataFrameAnalyticsAnalysis"); + op.add(Builder::type, JsonpDeserializer.stringDeserializer(), "type"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodeattrs/NodeAttributesRecord.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodeattrs/NodeAttributesRecord.java new file mode 100644 index 000000000..252c88127 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cat/nodeattrs/NodeAttributesRecord.java @@ -0,0 +1,364 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cat.nodeattrs; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import javax.annotation.Nullable; + +// typedef: cat.nodeattrs.NodeAttributesRecord +public final class NodeAttributesRecord implements ToJsonp { + @Nullable + private final String node; + + @Nullable + private final String id; + + @Nullable + private final String pid; + + @Nullable + private final String host; + + @Nullable + private final String ip; + + @Nullable + private final String port; + + @Nullable + private final String attr; + + @Nullable + private final String value; + + // --------------------------------------------------------------------------------------------- + + protected NodeAttributesRecord(Builder builder) { + + this.node = builder.node; + this.id = builder.id; + this.pid = builder.pid; + this.host = builder.host; + this.ip = builder.ip; + this.port = builder.port; + this.attr = builder.attr; + this.value = builder.value; + + } + + /** + * node name + *

+ * API name: {@code node} + */ + @Nullable + public String node() { + return this.node; + } + + /** + * unique node id + *

+ * API name: {@code id} + */ + @Nullable + public String id() { + return this.id; + } + + /** + * process id + *

+ * API name: {@code pid} + */ + @Nullable + public String pid() { + return this.pid; + } + + /** + * host name + *

+ * API name: {@code host} + */ + @Nullable + public String host() { + return this.host; + } + + /** + * ip address + *

+ * API name: {@code ip} + */ + @Nullable + public String ip() { + return this.ip; + } + + /** + * bound transport port + *

+ * API name: {@code port} + */ + @Nullable + public String port() { + return this.port; + } + + /** + * attribute description + *

+ * API name: {@code attr} + */ + @Nullable + public String attr() { + return this.attr; + } + + /** + * attribute value + *

+ * API name: {@code value} + */ + @Nullable + public String value() { + return this.value; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.node != null) { + + generator.writeKey("node"); + generator.write(this.node); + + } + if (this.id != null) { + + generator.writeKey("id"); + generator.write(this.id); + + } + if (this.pid != null) { + + generator.writeKey("pid"); + generator.write(this.pid); + + } + if (this.host != null) { + + generator.writeKey("host"); + generator.write(this.host); + + } + if (this.ip != null) { + + generator.writeKey("ip"); + generator.write(this.ip); + + } + if (this.port != null) { + + generator.writeKey("port"); + generator.write(this.port); + + } + if (this.attr != null) { + + generator.writeKey("attr"); + generator.write(this.attr); + + } + if (this.value != null) { + + generator.writeKey("value"); + generator.write(this.value); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link NodeAttributesRecord}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private String node; + + @Nullable + private String id; + + @Nullable + private String pid; + + @Nullable + private String host; + + @Nullable + private String ip; + + @Nullable + private String port; + + @Nullable + private String attr; + + @Nullable + private String value; + + /** + * node name + *

+ * API name: {@code node} + */ + public Builder node(@Nullable String value) { + this.node = value; + return this; + } + + /** + * unique node id + *

+ * API name: {@code id} + */ + public Builder id(@Nullable String value) { + this.id = value; + return this; + } + + /** + * process id + *

+ * API name: {@code pid} + */ + public Builder pid(@Nullable String value) { + this.pid = value; + return this; + } + + /** + * host name + *

+ * API name: {@code host} + */ + public Builder host(@Nullable String value) { + this.host = value; + return this; + } + + /** + * ip address + *

+ * API name: {@code ip} + */ + public Builder ip(@Nullable String value) { + this.ip = value; + return this; + } + + /** + * bound transport port + *

+ * API name: {@code port} + */ + public Builder port(@Nullable String value) { + this.port = value; + return this; + } + + /** + * attribute description + *

+ * API name: {@code attr} + */ + public Builder attr(@Nullable String value) { + this.attr = value; + return this; + } + + /** + * attribute value + *

+ * API name: {@code value} + */ + public Builder value(@Nullable String value) { + this.value = value; + return this; + } + + /** + * Builds a {@link NodeAttributesRecord}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public NodeAttributesRecord build() { + + return new NodeAttributesRecord(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for NodeAttributesRecord + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, NodeAttributesRecord::setupNodeAttributesRecordDeserializer); + + protected static void setupNodeAttributesRecordDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::node, JsonpDeserializer.stringDeserializer(), "node"); + op.add(Builder::id, JsonpDeserializer.stringDeserializer(), "id"); + op.add(Builder::pid, JsonpDeserializer.stringDeserializer(), "pid"); + op.add(Builder::host, JsonpDeserializer.stringDeserializer(), "host", "h"); + op.add(Builder::ip, JsonpDeserializer.stringDeserializer(), "ip", "i"); + op.add(Builder::port, JsonpDeserializer.stringDeserializer(), "port"); + op.add(Builder::attr, JsonpDeserializer.stringDeserializer(), "attr"); + op.add(Builder::value, JsonpDeserializer.stringDeserializer(), "value"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternRequest.java index 91a7b5095..26217645e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/DeleteAutoFollowPatternRequest.java @@ -49,6 +49,8 @@ protected DeleteAutoFollowPatternRequest(Builder builder) { } /** + * The name of the auto follow pattern. + *

* API name: {@code name} */ public String name() { @@ -64,6 +66,8 @@ public static class Builder implements ObjectBuilder * API name: {@code name} */ public Builder name(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoRequest.java index b704ede7f..e5aa520f3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowInfoRequest.java @@ -53,6 +53,9 @@ protected FollowInfoRequest(Builder builder) { } /** + * A comma-separated list of index patterns; use _all to perform + * the operation on all indices + *

* API name: {@code index} */ public List index() { @@ -68,6 +71,9 @@ public static class Builder implements ObjectBuilder { private List index; /** + * A comma-separated list of index patterns; use _all to perform + * the operation on all indices + *

* API name: {@code index} */ public Builder index(List value) { @@ -76,6 +82,9 @@ public Builder index(List value) { } /** + * A comma-separated list of index patterns; use _all to perform + * the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java new file mode 100644 index 000000000..bd4dca486 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowRequest.java @@ -0,0 +1,562 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ccr; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Number; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: ccr.follow.Request +public final class FollowRequest extends RequestBase implements ToJsonp { + private final String index; + + @Nullable + private final JsonValue waitForActiveShards; + + @Nullable + private final String leaderIndex; + + @Nullable + private final Number maxOutstandingReadRequests; + + @Nullable + private final Number maxOutstandingWriteRequests; + + @Nullable + private final Number maxReadRequestOperationCount; + + @Nullable + private final String maxReadRequestSize; + + @Nullable + private final JsonValue maxRetryDelay; + + @Nullable + private final Number maxWriteBufferCount; + + @Nullable + private final String maxWriteBufferSize; + + @Nullable + private final Number maxWriteRequestOperationCount; + + @Nullable + private final String maxWriteRequestSize; + + @Nullable + private final JsonValue readPollTimeout; + + @Nullable + private final String remoteCluster; + + // --------------------------------------------------------------------------------------------- + + protected FollowRequest(Builder builder) { + + this.index = Objects.requireNonNull(builder.index, "index"); + this.waitForActiveShards = builder.waitForActiveShards; + this.leaderIndex = builder.leaderIndex; + this.maxOutstandingReadRequests = builder.maxOutstandingReadRequests; + this.maxOutstandingWriteRequests = builder.maxOutstandingWriteRequests; + this.maxReadRequestOperationCount = builder.maxReadRequestOperationCount; + this.maxReadRequestSize = builder.maxReadRequestSize; + this.maxRetryDelay = builder.maxRetryDelay; + this.maxWriteBufferCount = builder.maxWriteBufferCount; + this.maxWriteBufferSize = builder.maxWriteBufferSize; + this.maxWriteRequestOperationCount = builder.maxWriteRequestOperationCount; + this.maxWriteRequestSize = builder.maxWriteRequestSize; + this.readPollTimeout = builder.readPollTimeout; + this.remoteCluster = builder.remoteCluster; + + } + + /** + * The name of the follower index + *

+ * API name: {@code index} + */ + public String index() { + return this.index; + } + + /** + * Sets the number of shard copies that must be active before returning. + * Defaults to 0. Set to all for all shard copies, otherwise set to + * any non-negative value less than or equal to the total number of copies for + * the shard (number of replicas + 1) + *

+ * API name: {@code wait_for_active_shards} + */ + @Nullable + public JsonValue waitForActiveShards() { + return this.waitForActiveShards; + } + + /** + * API name: {@code leader_index} + */ + @Nullable + public String leaderIndex() { + return this.leaderIndex; + } + + /** + * API name: {@code max_outstanding_read_requests} + */ + @Nullable + public Number maxOutstandingReadRequests() { + return this.maxOutstandingReadRequests; + } + + /** + * API name: {@code max_outstanding_write_requests} + */ + @Nullable + public Number maxOutstandingWriteRequests() { + return this.maxOutstandingWriteRequests; + } + + /** + * API name: {@code max_read_request_operation_count} + */ + @Nullable + public Number maxReadRequestOperationCount() { + return this.maxReadRequestOperationCount; + } + + /** + * API name: {@code max_read_request_size} + */ + @Nullable + public String maxReadRequestSize() { + return this.maxReadRequestSize; + } + + /** + * API name: {@code max_retry_delay} + */ + @Nullable + public JsonValue maxRetryDelay() { + return this.maxRetryDelay; + } + + /** + * API name: {@code max_write_buffer_count} + */ + @Nullable + public Number maxWriteBufferCount() { + return this.maxWriteBufferCount; + } + + /** + * API name: {@code max_write_buffer_size} + */ + @Nullable + public String maxWriteBufferSize() { + return this.maxWriteBufferSize; + } + + /** + * API name: {@code max_write_request_operation_count} + */ + @Nullable + public Number maxWriteRequestOperationCount() { + return this.maxWriteRequestOperationCount; + } + + /** + * API name: {@code max_write_request_size} + */ + @Nullable + public String maxWriteRequestSize() { + return this.maxWriteRequestSize; + } + + /** + * API name: {@code read_poll_timeout} + */ + @Nullable + public JsonValue readPollTimeout() { + return this.readPollTimeout; + } + + /** + * API name: {@code remote_cluster} + */ + @Nullable + public String remoteCluster() { + return this.remoteCluster; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.leaderIndex != null) { + + generator.writeKey("leader_index"); + generator.write(this.leaderIndex); + + } + if (this.maxOutstandingReadRequests != null) { + + generator.writeKey("max_outstanding_read_requests"); + generator.write(this.maxOutstandingReadRequests.doubleValue()); + + } + if (this.maxOutstandingWriteRequests != null) { + + generator.writeKey("max_outstanding_write_requests"); + generator.write(this.maxOutstandingWriteRequests.doubleValue()); + + } + if (this.maxReadRequestOperationCount != null) { + + generator.writeKey("max_read_request_operation_count"); + generator.write(this.maxReadRequestOperationCount.doubleValue()); + + } + if (this.maxReadRequestSize != null) { + + generator.writeKey("max_read_request_size"); + generator.write(this.maxReadRequestSize); + + } + if (this.maxRetryDelay != null) { + + generator.writeKey("max_retry_delay"); + generator.write(this.maxRetryDelay); + + } + if (this.maxWriteBufferCount != null) { + + generator.writeKey("max_write_buffer_count"); + generator.write(this.maxWriteBufferCount.doubleValue()); + + } + if (this.maxWriteBufferSize != null) { + + generator.writeKey("max_write_buffer_size"); + generator.write(this.maxWriteBufferSize); + + } + if (this.maxWriteRequestOperationCount != null) { + + generator.writeKey("max_write_request_operation_count"); + generator.write(this.maxWriteRequestOperationCount.doubleValue()); + + } + if (this.maxWriteRequestSize != null) { + + generator.writeKey("max_write_request_size"); + generator.write(this.maxWriteRequestSize); + + } + if (this.readPollTimeout != null) { + + generator.writeKey("read_poll_timeout"); + generator.write(this.readPollTimeout); + + } + if (this.remoteCluster != null) { + + generator.writeKey("remote_cluster"); + generator.write(this.remoteCluster); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link FollowRequest}. + */ + public static class Builder implements ObjectBuilder { + private String index; + + @Nullable + private JsonValue waitForActiveShards; + + @Nullable + private String leaderIndex; + + @Nullable + private Number maxOutstandingReadRequests; + + @Nullable + private Number maxOutstandingWriteRequests; + + @Nullable + private Number maxReadRequestOperationCount; + + @Nullable + private String maxReadRequestSize; + + @Nullable + private JsonValue maxRetryDelay; + + @Nullable + private Number maxWriteBufferCount; + + @Nullable + private String maxWriteBufferSize; + + @Nullable + private Number maxWriteRequestOperationCount; + + @Nullable + private String maxWriteRequestSize; + + @Nullable + private JsonValue readPollTimeout; + + @Nullable + private String remoteCluster; + + /** + * The name of the follower index + *

+ * API name: {@code index} + */ + public Builder index(String value) { + this.index = value; + return this; + } + + /** + * Sets the number of shard copies that must be active before returning. + * Defaults to 0. Set to all for all shard copies, otherwise set to + * any non-negative value less than or equal to the total number of copies for + * the shard (number of replicas + 1) + *

+ * API name: {@code wait_for_active_shards} + */ + public Builder waitForActiveShards(@Nullable JsonValue value) { + this.waitForActiveShards = value; + return this; + } + + /** + * API name: {@code leader_index} + */ + public Builder leaderIndex(@Nullable String value) { + this.leaderIndex = value; + return this; + } + + /** + * API name: {@code max_outstanding_read_requests} + */ + public Builder maxOutstandingReadRequests(@Nullable Number value) { + this.maxOutstandingReadRequests = value; + return this; + } + + /** + * API name: {@code max_outstanding_write_requests} + */ + public Builder maxOutstandingWriteRequests(@Nullable Number value) { + this.maxOutstandingWriteRequests = value; + return this; + } + + /** + * API name: {@code max_read_request_operation_count} + */ + public Builder maxReadRequestOperationCount(@Nullable Number value) { + this.maxReadRequestOperationCount = value; + return this; + } + + /** + * API name: {@code max_read_request_size} + */ + public Builder maxReadRequestSize(@Nullable String value) { + this.maxReadRequestSize = value; + return this; + } + + /** + * API name: {@code max_retry_delay} + */ + public Builder maxRetryDelay(@Nullable JsonValue value) { + this.maxRetryDelay = value; + return this; + } + + /** + * API name: {@code max_write_buffer_count} + */ + public Builder maxWriteBufferCount(@Nullable Number value) { + this.maxWriteBufferCount = value; + return this; + } + + /** + * API name: {@code max_write_buffer_size} + */ + public Builder maxWriteBufferSize(@Nullable String value) { + this.maxWriteBufferSize = value; + return this; + } + + /** + * API name: {@code max_write_request_operation_count} + */ + public Builder maxWriteRequestOperationCount(@Nullable Number value) { + this.maxWriteRequestOperationCount = value; + return this; + } + + /** + * API name: {@code max_write_request_size} + */ + public Builder maxWriteRequestSize(@Nullable String value) { + this.maxWriteRequestSize = value; + return this; + } + + /** + * API name: {@code read_poll_timeout} + */ + public Builder readPollTimeout(@Nullable JsonValue value) { + this.readPollTimeout = value; + return this; + } + + /** + * API name: {@code remote_cluster} + */ + public Builder remoteCluster(@Nullable String value) { + this.remoteCluster = value; + return this; + } + + /** + * Builds a {@link FollowRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public FollowRequest build() { + + return new FollowRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for FollowRequest + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, FollowRequest::setupFollowRequestDeserializer); + + protected static void setupFollowRequestDeserializer(DelegatingDeserializer op) { + + op.add(Builder::leaderIndex, JsonpDeserializer.stringDeserializer(), "leader_index"); + op.add(Builder::maxOutstandingReadRequests, JsonpDeserializer.numberDeserializer(), + "max_outstanding_read_requests"); + op.add(Builder::maxOutstandingWriteRequests, JsonpDeserializer.numberDeserializer(), + "max_outstanding_write_requests"); + op.add(Builder::maxReadRequestOperationCount, JsonpDeserializer.numberDeserializer(), + "max_read_request_operation_count"); + op.add(Builder::maxReadRequestSize, JsonpDeserializer.stringDeserializer(), "max_read_request_size"); + op.add(Builder::maxRetryDelay, JsonpDeserializer.jsonValueDeserializer(), "max_retry_delay"); + op.add(Builder::maxWriteBufferCount, JsonpDeserializer.numberDeserializer(), "max_write_buffer_count"); + op.add(Builder::maxWriteBufferSize, JsonpDeserializer.stringDeserializer(), "max_write_buffer_size"); + op.add(Builder::maxWriteRequestOperationCount, JsonpDeserializer.numberDeserializer(), + "max_write_request_operation_count"); + op.add(Builder::maxWriteRequestSize, JsonpDeserializer.stringDeserializer(), "max_write_request_size"); + op.add(Builder::readPollTimeout, JsonpDeserializer.jsonValueDeserializer(), "read_poll_timeout"); + op.add(Builder::remoteCluster, JsonpDeserializer.stringDeserializer(), "remote_cluster"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code ccr.follow}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "PUT"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + if (request.index() != null) + propsSet |= _index; + + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + buf.append(request.index); + buf.append("/_ccr"); + buf.append("/follow"); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.waitForActiveShards != null) { + params.put("wait_for_active_shards", request.waitForActiveShards.toString()); + } + return params; + + }, Endpoint.Simple.emptyMap(), true, FollowResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowResponse.java new file mode 100644 index 000000000..3b52b6682 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowResponse.java @@ -0,0 +1,164 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ccr; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: ccr.follow.Response +public final class FollowResponse implements ToJsonp { + private final Boolean followIndexCreated; + + private final Boolean followIndexShardsAcked; + + private final Boolean indexFollowingStarted; + + // --------------------------------------------------------------------------------------------- + + protected FollowResponse(Builder builder) { + + this.followIndexCreated = Objects.requireNonNull(builder.followIndexCreated, "follow_index_created"); + this.followIndexShardsAcked = Objects.requireNonNull(builder.followIndexShardsAcked, + "follow_index_shards_acked"); + this.indexFollowingStarted = Objects.requireNonNull(builder.indexFollowingStarted, "index_following_started"); + + } + + /** + * API name: {@code follow_index_created} + */ + public Boolean followIndexCreated() { + return this.followIndexCreated; + } + + /** + * API name: {@code follow_index_shards_acked} + */ + public Boolean followIndexShardsAcked() { + return this.followIndexShardsAcked; + } + + /** + * API name: {@code index_following_started} + */ + public Boolean indexFollowingStarted() { + return this.indexFollowingStarted; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("follow_index_created"); + generator.write(this.followIndexCreated); + + generator.writeKey("follow_index_shards_acked"); + generator.write(this.followIndexShardsAcked); + + generator.writeKey("index_following_started"); + generator.write(this.indexFollowingStarted); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link FollowResponse}. + */ + public static class Builder implements ObjectBuilder { + private Boolean followIndexCreated; + + private Boolean followIndexShardsAcked; + + private Boolean indexFollowingStarted; + + /** + * API name: {@code follow_index_created} + */ + public Builder followIndexCreated(Boolean value) { + this.followIndexCreated = value; + return this; + } + + /** + * API name: {@code follow_index_shards_acked} + */ + public Builder followIndexShardsAcked(Boolean value) { + this.followIndexShardsAcked = value; + return this; + } + + /** + * API name: {@code index_following_started} + */ + public Builder indexFollowingStarted(Boolean value) { + this.indexFollowingStarted = value; + return this; + } + + /** + * Builds a {@link FollowResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public FollowResponse build() { + + return new FollowResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for FollowResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, FollowResponse::setupFollowResponseDeserializer); + + protected static void setupFollowResponseDeserializer(DelegatingDeserializer op) { + + op.add(Builder::followIndexCreated, JsonpDeserializer.booleanDeserializer(), "follow_index_created"); + op.add(Builder::followIndexShardsAcked, JsonpDeserializer.booleanDeserializer(), "follow_index_shards_acked"); + op.add(Builder::indexFollowingStarted, JsonpDeserializer.booleanDeserializer(), "index_following_started"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsRequest.java new file mode 100644 index 000000000..7015e0a58 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsRequest.java @@ -0,0 +1,156 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ccr; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Objects; +import java.util.stream.Collectors; +import javax.annotation.Nullable; + +// typedef: ccr.follow_stats.Request +public final class FollowStatsRequest extends RequestBase { + private final List index; + + // --------------------------------------------------------------------------------------------- + + protected FollowStatsRequest(Builder builder) { + + this.index = Objects.requireNonNull(builder.index, "index"); + + } + + /** + * A comma-separated list of index patterns; use _all to perform + * the operation on all indices + *

+ * API name: {@code index} + */ + public List index() { + return this.index; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link FollowStatsRequest}. + */ + public static class Builder implements ObjectBuilder { + private List index; + + /** + * A comma-separated list of index patterns; use _all to perform + * the operation on all indices + *

+ * API name: {@code index} + */ + public Builder index(List value) { + this.index = value; + return this; + } + + /** + * A comma-separated list of index patterns; use _all to perform + * the operation on all indices + *

+ * API name: {@code index} + */ + public Builder index(String... value) { + this.index = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #index(List)}, creating the list if needed. + */ + public Builder addIndex(String value) { + if (this.index == null) { + this.index = new ArrayList<>(); + } + this.index.add(value); + return this; + } + + /** + * Builds a {@link FollowStatsRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public FollowStatsRequest build() { + + return new FollowStatsRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code ccr.follow_stats}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + if (request.index() != null) + propsSet |= _index; + + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + buf.append(request.index.stream().map(v -> v).collect(Collectors.joining(","))); + buf.append("/_ccr"); + buf.append("/stats"); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, Endpoint.Simple.emptyMap(), false, FollowStatsResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsResponse.java new file mode 100644 index 000000000..10eb3ee70 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/FollowStatsResponse.java @@ -0,0 +1,156 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ccr; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: ccr.follow_stats.Response +public final class FollowStatsResponse implements ToJsonp { + private final List indices; + + // --------------------------------------------------------------------------------------------- + + protected FollowStatsResponse(Builder builder) { + + this.indices = Objects.requireNonNull(builder.indices, "indices"); + + } + + /** + * API name: {@code indices} + */ + public List indices() { + return this.indices; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("indices"); + generator.writeStartArray(); + for (FollowIndexStats item0 : this.indices) { + item0.toJsonp(generator, mapper); + + } + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link FollowStatsResponse}. + */ + public static class Builder implements ObjectBuilder { + private List indices; + + /** + * API name: {@code indices} + */ + public Builder indices(List value) { + this.indices = value; + return this; + } + + /** + * API name: {@code indices} + */ + public Builder indices(FollowIndexStats... value) { + this.indices = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #indices(List)}, creating the list if needed. + */ + public Builder addIndices(FollowIndexStats value) { + if (this.indices == null) { + this.indices = new ArrayList<>(); + } + this.indices.add(value); + return this; + } + + /** + * Set {@link #indices(List)} to a singleton list. + */ + public Builder indices(Function> fn) { + return this.indices(fn.apply(new FollowIndexStats.Builder()).build()); + } + + /** + * Add a value to {@link #indices(List)}, creating the list if needed. + */ + public Builder addIndices(Function> fn) { + return this.addIndices(fn.apply(new FollowIndexStats.Builder()).build()); + } + + /** + * Builds a {@link FollowStatsResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public FollowStatsResponse build() { + + return new FollowStatsResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for FollowStatsResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, FollowStatsResponse::setupFollowStatsResponseDeserializer); + + protected static void setupFollowStatsResponseDeserializer(DelegatingDeserializer op) { + + op.add(Builder::indices, JsonpDeserializer.arrayDeserializer(FollowIndexStats.DESERIALIZER), "indices"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java new file mode 100644 index 000000000..fd4ff37a7 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerRequest.java @@ -0,0 +1,281 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ccr; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: ccr.forget_follower.Request +public final class ForgetFollowerRequest extends RequestBase implements ToJsonp { + private final String index; + + @Nullable + private final String followerCluster; + + @Nullable + private final String followerIndex; + + @Nullable + private final String followerIndexUuid; + + @Nullable + private final String leaderRemoteCluster; + + // --------------------------------------------------------------------------------------------- + + protected ForgetFollowerRequest(Builder builder) { + + this.index = Objects.requireNonNull(builder.index, "index"); + this.followerCluster = builder.followerCluster; + this.followerIndex = builder.followerIndex; + this.followerIndexUuid = builder.followerIndexUuid; + this.leaderRemoteCluster = builder.leaderRemoteCluster; + + } + + /** + * the name of the leader index for which specified follower retention leases + * should be removed + *

+ * API name: {@code index} + */ + public String index() { + return this.index; + } + + /** + * API name: {@code follower_cluster} + */ + @Nullable + public String followerCluster() { + return this.followerCluster; + } + + /** + * API name: {@code follower_index} + */ + @Nullable + public String followerIndex() { + return this.followerIndex; + } + + /** + * API name: {@code follower_index_uuid} + */ + @Nullable + public String followerIndexUuid() { + return this.followerIndexUuid; + } + + /** + * API name: {@code leader_remote_cluster} + */ + @Nullable + public String leaderRemoteCluster() { + return this.leaderRemoteCluster; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.followerCluster != null) { + + generator.writeKey("follower_cluster"); + generator.write(this.followerCluster); + + } + if (this.followerIndex != null) { + + generator.writeKey("follower_index"); + generator.write(this.followerIndex); + + } + if (this.followerIndexUuid != null) { + + generator.writeKey("follower_index_uuid"); + generator.write(this.followerIndexUuid); + + } + if (this.leaderRemoteCluster != null) { + + generator.writeKey("leader_remote_cluster"); + generator.write(this.leaderRemoteCluster); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ForgetFollowerRequest}. + */ + public static class Builder implements ObjectBuilder { + private String index; + + @Nullable + private String followerCluster; + + @Nullable + private String followerIndex; + + @Nullable + private String followerIndexUuid; + + @Nullable + private String leaderRemoteCluster; + + /** + * the name of the leader index for which specified follower retention leases + * should be removed + *

+ * API name: {@code index} + */ + public Builder index(String value) { + this.index = value; + return this; + } + + /** + * API name: {@code follower_cluster} + */ + public Builder followerCluster(@Nullable String value) { + this.followerCluster = value; + return this; + } + + /** + * API name: {@code follower_index} + */ + public Builder followerIndex(@Nullable String value) { + this.followerIndex = value; + return this; + } + + /** + * API name: {@code follower_index_uuid} + */ + public Builder followerIndexUuid(@Nullable String value) { + this.followerIndexUuid = value; + return this; + } + + /** + * API name: {@code leader_remote_cluster} + */ + public Builder leaderRemoteCluster(@Nullable String value) { + this.leaderRemoteCluster = value; + return this; + } + + /** + * Builds a {@link ForgetFollowerRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ForgetFollowerRequest build() { + + return new ForgetFollowerRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for ForgetFollowerRequest + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, ForgetFollowerRequest::setupForgetFollowerRequestDeserializer); + + protected static void setupForgetFollowerRequestDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::followerCluster, JsonpDeserializer.stringDeserializer(), "follower_cluster"); + op.add(Builder::followerIndex, JsonpDeserializer.stringDeserializer(), "follower_index"); + op.add(Builder::followerIndexUuid, JsonpDeserializer.stringDeserializer(), "follower_index_uuid"); + op.add(Builder::leaderRemoteCluster, JsonpDeserializer.stringDeserializer(), "leader_remote_cluster"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code ccr.forget_follower}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + if (request.index() != null) + propsSet |= _index; + + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + buf.append(request.index); + buf.append("/_ccr"); + buf.append("/forget_follower"); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, Endpoint.Simple.emptyMap(), true, ForgetFollowerResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerResponse.java new file mode 100644 index 000000000..0aad4576b --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ForgetFollowerResponse.java @@ -0,0 +1,124 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ccr; + +import co.elastic.clients.elasticsearch._types.ShardStatistics; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: ccr.forget_follower.Response +public final class ForgetFollowerResponse implements ToJsonp { + private final ShardStatistics shards; + + // --------------------------------------------------------------------------------------------- + + protected ForgetFollowerResponse(Builder builder) { + + this.shards = Objects.requireNonNull(builder.shards, "_shards"); + + } + + /** + * API name: {@code _shards} + */ + public ShardStatistics shards() { + return this.shards; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("_shards"); + this.shards.toJsonp(generator, mapper); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ForgetFollowerResponse}. + */ + public static class Builder implements ObjectBuilder { + private ShardStatistics shards; + + /** + * API name: {@code _shards} + */ + public Builder shards(ShardStatistics value) { + this.shards = value; + return this; + } + + /** + * API name: {@code _shards} + */ + public Builder shards(Function> fn) { + return this.shards(fn.apply(new ShardStatistics.Builder()).build()); + } + + /** + * Builds a {@link ForgetFollowerResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ForgetFollowerResponse build() { + + return new ForgetFollowerResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for ForgetFollowerResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, ForgetFollowerResponse::setupForgetFollowerResponseDeserializer); + + protected static void setupForgetFollowerResponseDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::shards, ShardStatistics.DESERIALIZER, "_shards"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternRequest.java index 35bd8fb98..e470cccda 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseAutoFollowPatternRequest.java @@ -49,6 +49,9 @@ protected PauseAutoFollowPatternRequest(Builder builder) { } /** + * The name of the auto follow pattern that should pause discovering new indices + * to follow. + *

* API name: {@code name} */ public String name() { @@ -64,6 +67,9 @@ public static class Builder implements ObjectBuilder * API name: {@code name} */ public Builder name(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowRequest.java new file mode 100644 index 000000000..76952e0e9 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowRequest.java @@ -0,0 +1,128 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ccr; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: ccr.pause_follow.Request +public final class PauseFollowRequest extends RequestBase { + private final String index; + + // --------------------------------------------------------------------------------------------- + + protected PauseFollowRequest(Builder builder) { + + this.index = Objects.requireNonNull(builder.index, "index"); + + } + + /** + * The name of the follower index that should pause following its leader index. + *

+ * API name: {@code index} + */ + public String index() { + return this.index; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PauseFollowRequest}. + */ + public static class Builder implements ObjectBuilder { + private String index; + + /** + * The name of the follower index that should pause following its leader index. + *

+ * API name: {@code index} + */ + public Builder index(String value) { + this.index = value; + return this; + } + + /** + * Builds a {@link PauseFollowRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PauseFollowRequest build() { + + return new PauseFollowRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code ccr.pause_follow}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + if (request.index() != null) + propsSet |= _index; + + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + buf.append(request.index); + buf.append("/_ccr"); + buf.append("/pause_follow"); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, Endpoint.Simple.emptyMap(), false, PauseFollowResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowResponse.java new file mode 100644 index 000000000..da9974ee8 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PauseFollowResponse.java @@ -0,0 +1,81 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ccr; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; + +// typedef: ccr.pause_follow.Response +public final class PauseFollowResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + protected PauseFollowResponse(Builder builder) { + super(builder); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PauseFollowResponse}. + */ + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link PauseFollowResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PauseFollowResponse build() { + + return new PauseFollowResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for PauseFollowResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, PauseFollowResponse::setupPauseFollowResponseDeserializer); + + protected static void setupPauseFollowResponseDeserializer(DelegatingDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java index 068af706c..6dbd875e6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/PutAutoFollowPatternRequest.java @@ -114,6 +114,8 @@ protected PutAutoFollowPatternRequest(Builder builder) { } /** + * The name of the auto follow pattern. + *

* API name: {@code name} */ public String name() { @@ -387,6 +389,8 @@ public static class Builder implements ObjectBuilder * API name: {@code name} */ public Builder name(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternRequest.java index 574016e7e..68672183d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeAutoFollowPatternRequest.java @@ -49,6 +49,9 @@ protected ResumeAutoFollowPatternRequest(Builder builder) { } /** + * The name of the auto follow pattern to resume discovering new indices to + * follow. + *

* API name: {@code name} */ public String name() { @@ -64,6 +67,9 @@ public static class Builder implements ObjectBuilder * API name: {@code name} */ public Builder name(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java new file mode 100644 index 000000000..252443285 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowRequest.java @@ -0,0 +1,464 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ccr; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Number; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: ccr.resume_follow.Request +public final class ResumeFollowRequest extends RequestBase implements ToJsonp { + private final String index; + + @Nullable + private final Number maxOutstandingReadRequests; + + @Nullable + private final Number maxOutstandingWriteRequests; + + @Nullable + private final Number maxReadRequestOperationCount; + + @Nullable + private final String maxReadRequestSize; + + @Nullable + private final JsonValue maxRetryDelay; + + @Nullable + private final Number maxWriteBufferCount; + + @Nullable + private final String maxWriteBufferSize; + + @Nullable + private final Number maxWriteRequestOperationCount; + + @Nullable + private final String maxWriteRequestSize; + + @Nullable + private final JsonValue readPollTimeout; + + // --------------------------------------------------------------------------------------------- + + protected ResumeFollowRequest(Builder builder) { + + this.index = Objects.requireNonNull(builder.index, "index"); + this.maxOutstandingReadRequests = builder.maxOutstandingReadRequests; + this.maxOutstandingWriteRequests = builder.maxOutstandingWriteRequests; + this.maxReadRequestOperationCount = builder.maxReadRequestOperationCount; + this.maxReadRequestSize = builder.maxReadRequestSize; + this.maxRetryDelay = builder.maxRetryDelay; + this.maxWriteBufferCount = builder.maxWriteBufferCount; + this.maxWriteBufferSize = builder.maxWriteBufferSize; + this.maxWriteRequestOperationCount = builder.maxWriteRequestOperationCount; + this.maxWriteRequestSize = builder.maxWriteRequestSize; + this.readPollTimeout = builder.readPollTimeout; + + } + + /** + * The name of the follow index to resume following. + *

+ * API name: {@code index} + */ + public String index() { + return this.index; + } + + /** + * API name: {@code max_outstanding_read_requests} + */ + @Nullable + public Number maxOutstandingReadRequests() { + return this.maxOutstandingReadRequests; + } + + /** + * API name: {@code max_outstanding_write_requests} + */ + @Nullable + public Number maxOutstandingWriteRequests() { + return this.maxOutstandingWriteRequests; + } + + /** + * API name: {@code max_read_request_operation_count} + */ + @Nullable + public Number maxReadRequestOperationCount() { + return this.maxReadRequestOperationCount; + } + + /** + * API name: {@code max_read_request_size} + */ + @Nullable + public String maxReadRequestSize() { + return this.maxReadRequestSize; + } + + /** + * API name: {@code max_retry_delay} + */ + @Nullable + public JsonValue maxRetryDelay() { + return this.maxRetryDelay; + } + + /** + * API name: {@code max_write_buffer_count} + */ + @Nullable + public Number maxWriteBufferCount() { + return this.maxWriteBufferCount; + } + + /** + * API name: {@code max_write_buffer_size} + */ + @Nullable + public String maxWriteBufferSize() { + return this.maxWriteBufferSize; + } + + /** + * API name: {@code max_write_request_operation_count} + */ + @Nullable + public Number maxWriteRequestOperationCount() { + return this.maxWriteRequestOperationCount; + } + + /** + * API name: {@code max_write_request_size} + */ + @Nullable + public String maxWriteRequestSize() { + return this.maxWriteRequestSize; + } + + /** + * API name: {@code read_poll_timeout} + */ + @Nullable + public JsonValue readPollTimeout() { + return this.readPollTimeout; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + if (this.maxOutstandingReadRequests != null) { + + generator.writeKey("max_outstanding_read_requests"); + generator.write(this.maxOutstandingReadRequests.doubleValue()); + + } + if (this.maxOutstandingWriteRequests != null) { + + generator.writeKey("max_outstanding_write_requests"); + generator.write(this.maxOutstandingWriteRequests.doubleValue()); + + } + if (this.maxReadRequestOperationCount != null) { + + generator.writeKey("max_read_request_operation_count"); + generator.write(this.maxReadRequestOperationCount.doubleValue()); + + } + if (this.maxReadRequestSize != null) { + + generator.writeKey("max_read_request_size"); + generator.write(this.maxReadRequestSize); + + } + if (this.maxRetryDelay != null) { + + generator.writeKey("max_retry_delay"); + generator.write(this.maxRetryDelay); + + } + if (this.maxWriteBufferCount != null) { + + generator.writeKey("max_write_buffer_count"); + generator.write(this.maxWriteBufferCount.doubleValue()); + + } + if (this.maxWriteBufferSize != null) { + + generator.writeKey("max_write_buffer_size"); + generator.write(this.maxWriteBufferSize); + + } + if (this.maxWriteRequestOperationCount != null) { + + generator.writeKey("max_write_request_operation_count"); + generator.write(this.maxWriteRequestOperationCount.doubleValue()); + + } + if (this.maxWriteRequestSize != null) { + + generator.writeKey("max_write_request_size"); + generator.write(this.maxWriteRequestSize); + + } + if (this.readPollTimeout != null) { + + generator.writeKey("read_poll_timeout"); + generator.write(this.readPollTimeout); + + } + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ResumeFollowRequest}. + */ + public static class Builder implements ObjectBuilder { + private String index; + + @Nullable + private Number maxOutstandingReadRequests; + + @Nullable + private Number maxOutstandingWriteRequests; + + @Nullable + private Number maxReadRequestOperationCount; + + @Nullable + private String maxReadRequestSize; + + @Nullable + private JsonValue maxRetryDelay; + + @Nullable + private Number maxWriteBufferCount; + + @Nullable + private String maxWriteBufferSize; + + @Nullable + private Number maxWriteRequestOperationCount; + + @Nullable + private String maxWriteRequestSize; + + @Nullable + private JsonValue readPollTimeout; + + /** + * The name of the follow index to resume following. + *

+ * API name: {@code index} + */ + public Builder index(String value) { + this.index = value; + return this; + } + + /** + * API name: {@code max_outstanding_read_requests} + */ + public Builder maxOutstandingReadRequests(@Nullable Number value) { + this.maxOutstandingReadRequests = value; + return this; + } + + /** + * API name: {@code max_outstanding_write_requests} + */ + public Builder maxOutstandingWriteRequests(@Nullable Number value) { + this.maxOutstandingWriteRequests = value; + return this; + } + + /** + * API name: {@code max_read_request_operation_count} + */ + public Builder maxReadRequestOperationCount(@Nullable Number value) { + this.maxReadRequestOperationCount = value; + return this; + } + + /** + * API name: {@code max_read_request_size} + */ + public Builder maxReadRequestSize(@Nullable String value) { + this.maxReadRequestSize = value; + return this; + } + + /** + * API name: {@code max_retry_delay} + */ + public Builder maxRetryDelay(@Nullable JsonValue value) { + this.maxRetryDelay = value; + return this; + } + + /** + * API name: {@code max_write_buffer_count} + */ + public Builder maxWriteBufferCount(@Nullable Number value) { + this.maxWriteBufferCount = value; + return this; + } + + /** + * API name: {@code max_write_buffer_size} + */ + public Builder maxWriteBufferSize(@Nullable String value) { + this.maxWriteBufferSize = value; + return this; + } + + /** + * API name: {@code max_write_request_operation_count} + */ + public Builder maxWriteRequestOperationCount(@Nullable Number value) { + this.maxWriteRequestOperationCount = value; + return this; + } + + /** + * API name: {@code max_write_request_size} + */ + public Builder maxWriteRequestSize(@Nullable String value) { + this.maxWriteRequestSize = value; + return this; + } + + /** + * API name: {@code read_poll_timeout} + */ + public Builder readPollTimeout(@Nullable JsonValue value) { + this.readPollTimeout = value; + return this; + } + + /** + * Builds a {@link ResumeFollowRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ResumeFollowRequest build() { + + return new ResumeFollowRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for ResumeFollowRequest + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, ResumeFollowRequest::setupResumeFollowRequestDeserializer); + + protected static void setupResumeFollowRequestDeserializer(DelegatingDeserializer op) { + + op.add(Builder::maxOutstandingReadRequests, JsonpDeserializer.numberDeserializer(), + "max_outstanding_read_requests"); + op.add(Builder::maxOutstandingWriteRequests, JsonpDeserializer.numberDeserializer(), + "max_outstanding_write_requests"); + op.add(Builder::maxReadRequestOperationCount, JsonpDeserializer.numberDeserializer(), + "max_read_request_operation_count"); + op.add(Builder::maxReadRequestSize, JsonpDeserializer.stringDeserializer(), "max_read_request_size"); + op.add(Builder::maxRetryDelay, JsonpDeserializer.jsonValueDeserializer(), "max_retry_delay"); + op.add(Builder::maxWriteBufferCount, JsonpDeserializer.numberDeserializer(), "max_write_buffer_count"); + op.add(Builder::maxWriteBufferSize, JsonpDeserializer.stringDeserializer(), "max_write_buffer_size"); + op.add(Builder::maxWriteRequestOperationCount, JsonpDeserializer.numberDeserializer(), + "max_write_request_operation_count"); + op.add(Builder::maxWriteRequestSize, JsonpDeserializer.stringDeserializer(), "max_write_request_size"); + op.add(Builder::readPollTimeout, JsonpDeserializer.jsonValueDeserializer(), "read_poll_timeout"); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code ccr.resume_follow}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + if (request.index() != null) + propsSet |= _index; + + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + buf.append(request.index); + buf.append("/_ccr"); + buf.append("/resume_follow"); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, Endpoint.Simple.emptyMap(), true, ResumeFollowResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowResponse.java new file mode 100644 index 000000000..ba6d963c6 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/ResumeFollowResponse.java @@ -0,0 +1,82 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ccr; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; + +// typedef: ccr.resume_follow.Response +public final class ResumeFollowResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + protected ResumeFollowResponse(Builder builder) { + super(builder); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ResumeFollowResponse}. + */ + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ResumeFollowResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ResumeFollowResponse build() { + + return new ResumeFollowResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for ResumeFollowResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, ResumeFollowResponse::setupResumeFollowResponseDeserializer); + + protected static void setupResumeFollowResponseDeserializer( + DelegatingDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowRequest.java new file mode 100644 index 000000000..0074b10b7 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowRequest.java @@ -0,0 +1,128 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ccr; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Collections; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: ccr.unfollow.Request +public final class UnfollowRequest extends RequestBase { + private final String index; + + // --------------------------------------------------------------------------------------------- + + protected UnfollowRequest(Builder builder) { + + this.index = Objects.requireNonNull(builder.index, "index"); + + } + + /** + * The name of the follower index that should be turned into a regular index. + *

+ * API name: {@code index} + */ + public String index() { + return this.index; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link UnfollowRequest}. + */ + public static class Builder implements ObjectBuilder { + private String index; + + /** + * The name of the follower index that should be turned into a regular index. + *

+ * API name: {@code index} + */ + public Builder index(String value) { + this.index = value; + return this; + } + + /** + * Builds a {@link UnfollowRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public UnfollowRequest build() { + + return new UnfollowRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code ccr.unfollow}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _index = 1 << 0; + + int propsSet = 0; + + if (request.index() != null) + propsSet |= _index; + + if (propsSet == (_index)) { + StringBuilder buf = new StringBuilder(); + buf.append("/"); + buf.append(request.index); + buf.append("/_ccr"); + buf.append("/unfollow"); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, Endpoint.Simple.emptyMap(), false, UnfollowResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowResponse.java new file mode 100644 index 000000000..f8412f956 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ccr/UnfollowResponse.java @@ -0,0 +1,81 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.ccr; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; + +// typedef: ccr.unfollow.Response +public final class UnfollowResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + protected UnfollowResponse(Builder builder) { + super(builder); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link UnfollowResponse}. + */ + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link UnfollowResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public UnfollowResponse build() { + + return new UnfollowResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for UnfollowResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, UnfollowResponse::setupUnfollowResponseDeserializer); + + protected static void setupUnfollowResponseDeserializer(DelegatingDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainResponse.java index 0a1c9eeda..abacbc156 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/AllocationExplainResponse.java @@ -117,6 +117,9 @@ public final class AllocationExplainResponse implements ToJsonp { @Nullable private final UnassignedInformation unassignedInfo; + @Nullable + private final String note; + // --------------------------------------------------------------------------------------------- protected AllocationExplainResponse(Builder builder) { @@ -145,6 +148,7 @@ protected AllocationExplainResponse(Builder builder) { this.remainingDelayInMillis = builder.remainingDelayInMillis; this.shard = Objects.requireNonNull(builder.shard, "shard"); this.unassignedInfo = builder.unassignedInfo; + this.note = builder.note; } @@ -336,6 +340,14 @@ public UnassignedInformation unassignedInfo() { return this.unassignedInfo; } + /** + * API name: {@code note} + */ + @Nullable + public String note() { + return this.note; + } + /** * Serialize this object to JSON. */ @@ -497,6 +509,12 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { this.unassignedInfo.toJsonp(generator, mapper); } + if (this.note != null) { + + generator.writeKey("note"); + generator.write(this.note); + + } } @@ -574,6 +592,9 @@ public static class Builder implements ObjectBuilder @Nullable private UnassignedInformation unassignedInfo; + @Nullable + private String note; + /** * API name: {@code allocate_explanation} */ @@ -898,6 +919,14 @@ public Builder unassignedInfo( return this.unassignedInfo(fn.apply(new UnassignedInformation.Builder()).build()); } + /** + * API name: {@code note} + */ + public Builder note(@Nullable String value) { + this.note = value; + return this; + } + /** * Builds a {@link AllocationExplainResponse}. * @@ -952,6 +981,7 @@ protected static void setupAllocationExplainResponseDeserializer( op.add(Builder::remainingDelayInMillis, JsonpDeserializer.numberDeserializer(), "remaining_delay_in_millis"); op.add(Builder::shard, JsonpDeserializer.numberDeserializer(), "shard"); op.add(Builder::unassignedInfo, UnassignedInformation.DESERIALIZER, "unassigned_info"); + op.add(Builder::note, JsonpDeserializer.stringDeserializer(), "note"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java index 5f738e0a3..a8463517a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteComponentTemplateRequest.java @@ -59,6 +59,8 @@ protected DeleteComponentTemplateRequest(Builder builder) { } /** + * The name of the template + *

* API name: {@code name} */ public String name() { @@ -66,6 +68,8 @@ public String name() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -74,6 +78,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -96,6 +102,8 @@ public static class Builder implements ObjectBuilder * API name: {@code name} */ public Builder name(String value) { @@ -104,6 +112,8 @@ public Builder name(String value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -112,6 +122,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java index 8e129299c..f7eeac1ed 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsRequest.java @@ -23,55 +23,46 @@ package co.elastic.clients.elasticsearch.cluster; +import co.elastic.clients.base.BooleanResponse; import co.elastic.clients.base.ElasticsearchError; import co.elastic.clients.base.Endpoint; import co.elastic.clients.elasticsearch._types.RequestBase; -import co.elastic.clients.json.DelegatingDeserializer; import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import java.lang.String; -import java.util.Collections; -import java.util.Objects; +import java.lang.Boolean; +import java.util.HashMap; +import java.util.Map; import javax.annotation.Nullable; // typedef: cluster.delete_voting_config_exclusions.Request -public final class DeleteVotingConfigExclusionsRequest extends RequestBase implements ToJsonp { - private final String stub; +public final class DeleteVotingConfigExclusionsRequest extends RequestBase { + @Nullable + private final Boolean waitForRemoval; // --------------------------------------------------------------------------------------------- protected DeleteVotingConfigExclusionsRequest(Builder builder) { - this.stub = Objects.requireNonNull(builder.stub, "stub"); + this.waitForRemoval = builder.waitForRemoval; } /** - * API name: {@code stub} + * Specifies whether to wait for all excluded nodes to be removed from the + * cluster before clearing the voting configuration exclusions list. Defaults to + * true, meaning that all excluded nodes must be removed from the cluster before + * this API takes any action. If set to false then the voting configuration + * exclusions list is cleared even if some excluded nodes are still in the + * cluster. + *

+ * API name: {@code wait_for_removal} */ - public String stub() { - return this.stub; - } - - /** - * Serialize this object to JSON. - */ - public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - toJsonpInternal(generator, mapper); - generator.writeEnd(); - } - - protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - - generator.writeKey("stub"); - generator.write(this.stub); - + @Nullable + public Boolean waitForRemoval() { + return this.waitForRemoval; } // --------------------------------------------------------------------------------------------- @@ -80,13 +71,21 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link DeleteVotingConfigExclusionsRequest}. */ public static class Builder implements ObjectBuilder { - private String stub; + @Nullable + private Boolean waitForRemoval; /** - * API name: {@code stub} + * Specifies whether to wait for all excluded nodes to be removed from the + * cluster before clearing the voting configuration exclusions list. Defaults to + * true, meaning that all excluded nodes must be removed from the cluster before + * this API takes any action. If set to false then the voting configuration + * exclusions list is cleared even if some excluded nodes are still in the + * cluster. + *

+ * API name: {@code wait_for_removal} */ - public Builder stub(String value) { - this.stub = value; + public Builder waitForRemoval(@Nullable Boolean value) { + this.waitForRemoval = value; return this; } @@ -104,26 +103,10 @@ public DeleteVotingConfigExclusionsRequest build() { // --------------------------------------------------------------------------------------------- - /** - * Json deserializer for DeleteVotingConfigExclusionsRequest - */ - public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer - .createForObject(Builder::new, - DeleteVotingConfigExclusionsRequest::setupDeleteVotingConfigExclusionsRequestDeserializer); - - protected static void setupDeleteVotingConfigExclusionsRequestDeserializer( - DelegatingDeserializer op) { - - op.add(Builder::stub, JsonpDeserializer.stringDeserializer(), "stub"); - - } - - // --------------------------------------------------------------------------------------------- - /** * Endpoint "{@code cluster.delete_voting_config_exclusions}". */ - public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + public static final Endpoint ENDPOINT = new Endpoint.Boolean<>( // Request method request -> { return "DELETE"; @@ -138,7 +121,11 @@ protected static void setupDeleteVotingConfigExclusionsRequestDeserializer( // Request parameters request -> { - return Collections.emptyMap(); + Map params = new HashMap<>(); + if (request.waitForRemoval != null) { + params.put("wait_for_removal", String.valueOf(request.waitForRemoval)); + } + return params; - }, Endpoint.Simple.emptyMap(), true, DeleteVotingConfigExclusionsResponse.DESERIALIZER); + }, Endpoint.Simple.emptyMap(), false, null); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsResponse.java index c5cbb1e20..52caad397 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/DeleteVotingConfigExclusionsResponse.java @@ -23,95 +23,23 @@ package co.elastic.clients.elasticsearch.cluster; -import co.elastic.clients.json.DelegatingDeserializer; import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import java.lang.Number; -import java.util.Objects; -import javax.annotation.Nullable; // typedef: cluster.delete_voting_config_exclusions.Response -public final class DeleteVotingConfigExclusionsResponse implements ToJsonp { - private final Number stub; - - // --------------------------------------------------------------------------------------------- - - protected DeleteVotingConfigExclusionsResponse(Builder builder) { - - this.stub = Objects.requireNonNull(builder.stub, "stub"); - - } - - /** - * API name: {@code stub} - */ - public Number stub() { - return this.stub; - } - - /** - * Serialize this object to JSON. - */ - public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - toJsonpInternal(generator, mapper); - generator.writeEnd(); - } - - protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - - generator.writeKey("stub"); - generator.write(this.stub.doubleValue()); - - } - - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link DeleteVotingConfigExclusionsResponse}. - */ - public static class Builder implements ObjectBuilder { - private Number stub; - - /** - * API name: {@code stub} - */ - public Builder stub(Number value) { - this.stub = value; - return this; - } - - /** - * Builds a {@link DeleteVotingConfigExclusionsResponse}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public DeleteVotingConfigExclusionsResponse build() { - - return new DeleteVotingConfigExclusionsResponse(this); - } +public final class DeleteVotingConfigExclusionsResponse { + protected DeleteVotingConfigExclusionsResponse() { } - // --------------------------------------------------------------------------------------------- - /** - * Json deserializer for DeleteVotingConfigExclusionsResponse + * Singleton instance for {@link DeleteVotingConfigExclusionsResponse}. */ - public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer - .createForObject(Builder::new, - DeleteVotingConfigExclusionsResponse::setupDeleteVotingConfigExclusionsResponseDeserializer); + public static final DeleteVotingConfigExclusionsResponse INSTANCE = new DeleteVotingConfigExclusionsResponse(); - protected static void setupDeleteVotingConfigExclusionsResponseDeserializer( - DelegatingDeserializer op) { - - op.add(Builder::stub, JsonpDeserializer.numberDeserializer(), "stub"); - - } + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .fixedValue(DeleteVotingConfigExclusionsResponse.INSTANCE); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java index 618a421bf..b4d4be494 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateRequest.java @@ -23,90 +23,77 @@ package co.elastic.clients.elasticsearch.cluster; +import co.elastic.clients.base.BooleanResponse; import co.elastic.clients.base.ElasticsearchError; import co.elastic.clients.base.Endpoint; import co.elastic.clients.elasticsearch._types.RequestBase; -import co.elastic.clients.json.DelegatingDeserializer; import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; import java.lang.String; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; +import java.util.stream.Collectors; import javax.annotation.Nullable; // typedef: cluster.exists_component_template.Request -public final class ExistsComponentTemplateRequest extends RequestBase implements ToJsonp { - private final String stubA; +public final class ExistsComponentTemplateRequest extends RequestBase { + private final List name; @Nullable - private final String name; + private final JsonValue masterTimeout; - private final String stubB; - - private final String stubC; + @Nullable + private final Boolean local; // --------------------------------------------------------------------------------------------- protected ExistsComponentTemplateRequest(Builder builder) { - this.stubA = Objects.requireNonNull(builder.stubA, "stub_a"); - this.name = builder.name; - this.stubB = Objects.requireNonNull(builder.stubB, "stub_b"); - this.stubC = Objects.requireNonNull(builder.stubC, "stub_c"); - - } + this.name = Objects.requireNonNull(builder.name, "name"); + this.masterTimeout = builder.masterTimeout; + this.local = builder.local; - /** - * API name: {@code stub_a} - */ - public String stubA() { - return this.stubA; } /** - * Auto generated - missing in the input spec + * Comma-separated list of component template names used to limit the request. + * Wildcard (*) expressions are supported. *

* API name: {@code name} */ - @Nullable - public String name() { + public List name() { return this.name; } /** - * API name: {@code stub_b} - */ - public String stubB() { - return this.stubB; - } - - /** - * API name: {@code stub_c} + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. + *

+ * API name: {@code master_timeout} */ - public String stubC() { - return this.stubC; + @Nullable + public JsonValue masterTimeout() { + return this.masterTimeout; } /** - * Serialize this object to JSON. + * If true, the request retrieves information from the local node only. Defaults + * to false, which means information is retrieved from the master node. + *

+ * API name: {@code local} */ - public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - toJsonpInternal(generator, mapper); - generator.writeEnd(); - } - - protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - - generator.writeKey("stub_c"); - generator.write(this.stubC); - + @Nullable + public Boolean local() { + return this.local; } // --------------------------------------------------------------------------------------------- @@ -115,46 +102,66 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link ExistsComponentTemplateRequest}. */ public static class Builder implements ObjectBuilder { - private String stubA; + private List name; @Nullable - private String name; - - private String stubB; + private JsonValue masterTimeout; - private String stubC; + @Nullable + private Boolean local; /** - * API name: {@code stub_a} + * Comma-separated list of component template names used to limit the request. + * Wildcard (*) expressions are supported. + *

+ * API name: {@code name} */ - public Builder stubA(String value) { - this.stubA = value; + public Builder name(List value) { + this.name = value; return this; } /** - * Auto generated - missing in the input spec + * Comma-separated list of component template names used to limit the request. + * Wildcard (*) expressions are supported. *

* API name: {@code name} */ - public Builder name(@Nullable String value) { - this.name = value; + public Builder name(String... value) { + this.name = Arrays.asList(value); return this; } /** - * API name: {@code stub_b} + * Add a value to {@link #name(List)}, creating the list if needed. */ - public Builder stubB(String value) { - this.stubB = value; + public Builder addName(String value) { + if (this.name == null) { + this.name = new ArrayList<>(); + } + this.name.add(value); return this; } /** - * API name: {@code stub_c} + * Period to wait for a connection to the master node. If no response is + * received before the timeout expires, the request fails and returns an error. + *

+ * API name: {@code master_timeout} */ - public Builder stubC(String value) { - this.stubC = value; + public Builder masterTimeout(@Nullable JsonValue value) { + this.masterTimeout = value; + return this; + } + + /** + * If true, the request retrieves information from the local node only. Defaults + * to false, which means information is retrieved from the master node. + *

+ * API name: {@code local} + */ + public Builder local(@Nullable Boolean value) { + this.local = value; return this; } @@ -172,26 +179,10 @@ public ExistsComponentTemplateRequest build() { // --------------------------------------------------------------------------------------------- - /** - * Json deserializer for ExistsComponentTemplateRequest - */ - public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer - .createForObject(Builder::new, - ExistsComponentTemplateRequest::setupExistsComponentTemplateRequestDeserializer); - - protected static void setupExistsComponentTemplateRequestDeserializer( - DelegatingDeserializer op) { - - op.add(Builder::stubC, JsonpDeserializer.stringDeserializer(), "stub_c"); - - } - - // --------------------------------------------------------------------------------------------- - /** * Endpoint "{@code cluster.exists_component_template}". */ - public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + public static final Endpoint ENDPOINT = new Endpoint.Boolean<>( // Request method request -> { return "HEAD"; @@ -200,13 +191,10 @@ protected static void setupExistsComponentTemplateRequestDeserializer( // Request path request -> { - final int _stubA = 1 << 0; - final int _name = 1 << 1; + final int _name = 1 << 0; int propsSet = 0; - if (request.stubA() != null) - propsSet |= _stubA; if (request.name() != null) propsSet |= _name; @@ -214,7 +202,7 @@ protected static void setupExistsComponentTemplateRequestDeserializer( StringBuilder buf = new StringBuilder(); buf.append("/_component_template"); buf.append("/"); - buf.append(request.name); + buf.append(request.name.stream().map(v -> v).collect(Collectors.joining(","))); return buf.toString(); } throw Endpoint.Simple.noPathTemplateFound("path"); @@ -224,8 +212,13 @@ protected static void setupExistsComponentTemplateRequestDeserializer( // Request parameters request -> { Map params = new HashMap<>(); - params.put("stub_b", request.stubB); + if (request.masterTimeout != null) { + params.put("master_timeout", request.masterTimeout.toString()); + } + if (request.local != null) { + params.put("local", String.valueOf(request.local)); + } return params; - }, Endpoint.Simple.emptyMap(), true, ExistsComponentTemplateResponse.DESERIALIZER); + }, Endpoint.Simple.emptyMap(), false, null); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateResponse.java index 152fea586..a4a4cc22c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/ExistsComponentTemplateResponse.java @@ -23,95 +23,23 @@ package co.elastic.clients.elasticsearch.cluster; -import co.elastic.clients.json.DelegatingDeserializer; import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import java.lang.Number; -import java.util.Objects; -import javax.annotation.Nullable; // typedef: cluster.exists_component_template.Response -public final class ExistsComponentTemplateResponse implements ToJsonp { - private final Number stub; - - // --------------------------------------------------------------------------------------------- - - protected ExistsComponentTemplateResponse(Builder builder) { - - this.stub = Objects.requireNonNull(builder.stub, "stub"); - - } - - /** - * API name: {@code stub} - */ - public Number stub() { - return this.stub; - } - - /** - * Serialize this object to JSON. - */ - public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - toJsonpInternal(generator, mapper); - generator.writeEnd(); - } - - protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - - generator.writeKey("stub"); - generator.write(this.stub.doubleValue()); - - } - - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link ExistsComponentTemplateResponse}. - */ - public static class Builder implements ObjectBuilder { - private Number stub; - - /** - * API name: {@code stub} - */ - public Builder stub(Number value) { - this.stub = value; - return this; - } - - /** - * Builds a {@link ExistsComponentTemplateResponse}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public ExistsComponentTemplateResponse build() { - - return new ExistsComponentTemplateResponse(this); - } +public final class ExistsComponentTemplateResponse { + protected ExistsComponentTemplateResponse() { } - // --------------------------------------------------------------------------------------------- - /** - * Json deserializer for ExistsComponentTemplateResponse + * Singleton instance for {@link ExistsComponentTemplateResponse}. */ - public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer - .createForObject(Builder::new, - ExistsComponentTemplateResponse::setupExistsComponentTemplateResponseDeserializer); + public static final ExistsComponentTemplateResponse INSTANCE = new ExistsComponentTemplateResponse(); - protected static void setupExistsComponentTemplateResponseDeserializer( - DelegatingDeserializer op) { - - op.add(Builder::stub, JsonpDeserializer.numberDeserializer(), "stub"); - - } + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .fixedValue(ExistsComponentTemplateResponse.INSTANCE); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java index 52bd43a17..39b9bd6f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetComponentTemplateRequest.java @@ -64,6 +64,8 @@ protected GetComponentTemplateRequest(Builder builder) { } /** + * The comma separated names of the component templates + *

* API name: {@code name} */ @Nullable @@ -80,6 +82,9 @@ public Boolean flatSettings() { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ @Nullable @@ -88,6 +93,8 @@ public Boolean local() { } /** + * Explicit operation timeout for connection to master node + *

* API name: {@code master_timeout} */ @Nullable @@ -114,6 +121,8 @@ public static class Builder implements ObjectBuilder * API name: {@code name} */ public Builder name(@Nullable String value) { @@ -130,6 +139,9 @@ public Builder flatSettings(@Nullable Boolean value) { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { @@ -138,6 +150,8 @@ public Builder local(@Nullable Boolean value) { } /** + * Explicit operation timeout for connection to master node + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetSettingsRequest.java index 8745fec02..68898bbfe 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/GetSettingsRequest.java @@ -63,6 +63,8 @@ protected GetSettingsRequest(Builder builder) { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ @Nullable @@ -71,6 +73,8 @@ public Boolean flatSettings() { } /** + * Whether to return all default clusters setting. + *

* API name: {@code include_defaults} */ @Nullable @@ -79,6 +83,8 @@ public Boolean includeDefaults() { } /** + * Explicit operation timeout for connection to master node + *

* API name: {@code master_timeout} */ @Nullable @@ -87,6 +93,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -113,6 +121,8 @@ public static class Builder implements ObjectBuilder { private JsonValue timeout; /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ public Builder flatSettings(@Nullable Boolean value) { @@ -121,6 +131,8 @@ public Builder flatSettings(@Nullable Boolean value) { } /** + * Whether to return all default clusters setting. + *

* API name: {@code include_defaults} */ public Builder includeDefaults(@Nullable Boolean value) { @@ -129,6 +141,8 @@ public Builder includeDefaults(@Nullable Boolean value) { } /** + * Explicit operation timeout for connection to master node + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -137,6 +151,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java index def229f57..7286ffc22 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/HealthRequest.java @@ -112,6 +112,9 @@ public List index() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -311,6 +314,9 @@ public Builder addIndex(String value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java index 13d992996..30a3d3b6c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PendingTasksRequest.java @@ -55,6 +55,9 @@ protected PendingTasksRequest(Builder builder) { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ @Nullable @@ -63,6 +66,8 @@ public Boolean local() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -83,6 +88,9 @@ public static class Builder implements ObjectBuilder { private JsonValue masterTimeout; /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { @@ -91,6 +99,8 @@ public Builder local(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java new file mode 100644 index 000000000..8e43039d4 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsRequest.java @@ -0,0 +1,240 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cluster; + +import co.elastic.clients.base.BooleanResponse; +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; +import javax.annotation.Nullable; + +// typedef: cluster.post_voting_config_exclusions.Request +public final class PostVotingConfigExclusionsRequest extends RequestBase { + @Nullable + private final List nodeNames; + + @Nullable + private final List nodeIds; + + @Nullable + private final JsonValue timeout; + + // --------------------------------------------------------------------------------------------- + + protected PostVotingConfigExclusionsRequest(Builder builder) { + + this.nodeNames = builder.nodeNames; + this.nodeIds = builder.nodeIds; + this.timeout = builder.timeout; + + } + + /** + * A comma-separated list of the names of the nodes to exclude from the voting + * configuration. If specified, you may not also specify node_ids. + *

+ * API name: {@code node_names} + */ + @Nullable + public List nodeNames() { + return this.nodeNames; + } + + /** + * A comma-separated list of the persistent ids of the nodes to exclude from the + * voting configuration. If specified, you may not also specify node_names. + *

+ * API name: {@code node_ids} + */ + @Nullable + public List nodeIds() { + return this.nodeIds; + } + + /** + * When adding a voting configuration exclusion, the API waits for the specified + * nodes to be excluded from the voting configuration before returning. If the + * timeout expires before the appropriate condition is satisfied, the request + * fails and returns an error. + *

+ * API name: {@code timeout} + */ + @Nullable + public JsonValue timeout() { + return this.timeout; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link PostVotingConfigExclusionsRequest}. + */ + public static class Builder implements ObjectBuilder { + @Nullable + private List nodeNames; + + @Nullable + private List nodeIds; + + @Nullable + private JsonValue timeout; + + /** + * A comma-separated list of the names of the nodes to exclude from the voting + * configuration. If specified, you may not also specify node_ids. + *

+ * API name: {@code node_names} + */ + public Builder nodeNames(@Nullable List value) { + this.nodeNames = value; + return this; + } + + /** + * A comma-separated list of the names of the nodes to exclude from the voting + * configuration. If specified, you may not also specify node_ids. + *

+ * API name: {@code node_names} + */ + public Builder nodeNames(String... value) { + this.nodeNames = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #nodeNames(List)}, creating the list if needed. + */ + public Builder addNodeNames(String value) { + if (this.nodeNames == null) { + this.nodeNames = new ArrayList<>(); + } + this.nodeNames.add(value); + return this; + } + + /** + * A comma-separated list of the persistent ids of the nodes to exclude from the + * voting configuration. If specified, you may not also specify node_names. + *

+ * API name: {@code node_ids} + */ + public Builder nodeIds(@Nullable List value) { + this.nodeIds = value; + return this; + } + + /** + * A comma-separated list of the persistent ids of the nodes to exclude from the + * voting configuration. If specified, you may not also specify node_names. + *

+ * API name: {@code node_ids} + */ + public Builder nodeIds(String... value) { + this.nodeIds = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #nodeIds(List)}, creating the list if needed. + */ + public Builder addNodeIds(String value) { + if (this.nodeIds == null) { + this.nodeIds = new ArrayList<>(); + } + this.nodeIds.add(value); + return this; + } + + /** + * When adding a voting configuration exclusion, the API waits for the specified + * nodes to be excluded from the voting configuration before returning. If the + * timeout expires before the appropriate condition is satisfied, the request + * fails and returns an error. + *

+ * API name: {@code timeout} + */ + public Builder timeout(@Nullable JsonValue value) { + this.timeout = value; + return this; + } + + /** + * Builds a {@link PostVotingConfigExclusionsRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public PostVotingConfigExclusionsRequest build() { + + return new PostVotingConfigExclusionsRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code cluster.post_voting_config_exclusions}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Boolean<>( + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + return "/_cluster/voting_config_exclusions"; + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + if (request.nodeNames != null) { + params.put("node_names", request.nodeNames.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (request.nodeIds != null) { + params.put("node_ids", request.nodeIds.stream().map(v -> v).collect(Collectors.joining(","))); + } + if (request.timeout != null) { + params.put("timeout", request.timeout.toString()); + } + return params; + + }, Endpoint.Simple.emptyMap(), false, null); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsResponse.java new file mode 100644 index 000000000..6b3bb7c10 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PostVotingConfigExclusionsResponse.java @@ -0,0 +1,45 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.cluster; + +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; + +// typedef: cluster.post_voting_config_exclusions.Response +public final class PostVotingConfigExclusionsResponse { + protected PostVotingConfigExclusionsResponse() { + } + + /** + * Singleton instance for {@link PostVotingConfigExclusionsResponse}. + */ + public static final PostVotingConfigExclusionsResponse INSTANCE = new PostVotingConfigExclusionsResponse(); + + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .fixedValue(PostVotingConfigExclusionsResponse.INSTANCE); + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java index c98a7b2ac..ea94f04fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutComponentTemplateRequest.java @@ -93,6 +93,8 @@ protected PutComponentTemplateRequest(Builder builder) { } /** + * The name of the template + *

* API name: {@code name} */ public String name() { @@ -100,6 +102,9 @@ public String name() { } /** + * Whether the index template should only be added if new or can also replace an + * existing one + *

* API name: {@code create} */ @Nullable @@ -108,6 +113,8 @@ public Boolean create() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -253,6 +260,8 @@ public static class Builder implements ObjectBuilder meta; /** + * The name of the template + *

* API name: {@code name} */ public Builder name(String value) { @@ -261,6 +270,9 @@ public Builder name(String value) { } /** + * Whether the index template should only be added if new or can also replace an + * existing one + *

* API name: {@code create} */ public Builder create(@Nullable Boolean value) { @@ -269,6 +281,8 @@ public Builder create(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutSettingsRequest.java index 1f3074ca0..c43fa5a13 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/PutSettingsRequest.java @@ -70,6 +70,8 @@ protected PutSettingsRequest(Builder builder) { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ @Nullable @@ -78,6 +80,8 @@ public Boolean flatSettings() { } /** + * Explicit operation timeout for connection to master node + *

* API name: {@code master_timeout} */ @Nullable @@ -86,6 +90,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -169,6 +175,8 @@ public static class Builder implements ObjectBuilder { private Map transient_; /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ public Builder flatSettings(@Nullable Boolean value) { @@ -177,6 +185,8 @@ public Builder flatSettings(@Nullable Boolean value) { } /** + * Explicit operation timeout for connection to master node + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -185,6 +195,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoRequest.java index 5b15a5176..bf742b21b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoRequest.java @@ -26,95 +26,25 @@ import co.elastic.clients.base.ElasticsearchError; import co.elastic.clients.base.Endpoint; import co.elastic.clients.elasticsearch._types.RequestBase; -import co.elastic.clients.json.DelegatingDeserializer; import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import java.lang.String; import java.util.Collections; -import java.util.Objects; -import javax.annotation.Nullable; // typedef: cluster.remote_info.Request -public final class RemoteInfoRequest extends RequestBase implements ToJsonp { - private final String stub; - - // --------------------------------------------------------------------------------------------- - - protected RemoteInfoRequest(Builder builder) { - - this.stub = Objects.requireNonNull(builder.stub, "stub"); - - } - - /** - * API name: {@code stub} - */ - public String stub() { - return this.stub; +public final class RemoteInfoRequest extends RequestBase { + protected RemoteInfoRequest() { } /** - * Serialize this object to JSON. + * Singleton instance for {@link RemoteInfoRequest}. */ - public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - toJsonpInternal(generator, mapper); - generator.writeEnd(); - } - - protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - - generator.writeKey("stub"); - generator.write(this.stub); - - } - - // --------------------------------------------------------------------------------------------- + public static final RemoteInfoRequest INSTANCE = new RemoteInfoRequest(); - /** - * Builder for {@link RemoteInfoRequest}. - */ - public static class Builder implements ObjectBuilder { - private String stub; - - /** - * API name: {@code stub} - */ - public Builder stub(String value) { - this.stub = value; - return this; - } - - /** - * Builds a {@link RemoteInfoRequest}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public RemoteInfoRequest build() { - - return new RemoteInfoRequest(this); - } - } - - // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for RemoteInfoRequest - */ - public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer - .createForObject(Builder::new, RemoteInfoRequest::setupRemoteInfoRequestDeserializer); - - protected static void setupRemoteInfoRequestDeserializer(DelegatingDeserializer op) { - - op.add(Builder::stub, JsonpDeserializer.stringDeserializer(), "stub"); - - } + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .fixedValue(RemoteInfoRequest.INSTANCE); // --------------------------------------------------------------------------------------------- @@ -138,5 +68,5 @@ protected static void setupRemoteInfoRequestDeserializer(DelegatingDeserializer< request -> { return Collections.emptyMap(); - }, Endpoint.Simple.emptyMap(), true, RemoteInfoResponse.DESERIALIZER); + }, Endpoint.Simple.emptyMap(), false, RemoteInfoResponse.DESERIALIZER); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoResponse.java index 2eda9ac97..fa4bdebb4 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/RemoteInfoResponse.java @@ -24,17 +24,17 @@ package co.elastic.clients.elasticsearch.cluster; import co.elastic.clients.base.AdditionalProperties; -import co.elastic.clients.elasticsearch.cluster.remote_info.ClusterRemoteInfo; import co.elastic.clients.json.DelegatingDeserializer; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; import jakarta.json.stream.JsonGenerator; import java.lang.String; // typedef: cluster.remote_info.Response -public final class RemoteInfoResponse extends AdditionalProperties { +public final class RemoteInfoResponse extends AdditionalProperties { // --------------------------------------------------------------------------------------------- protected RemoteInfoResponse(Builder builder) { @@ -47,7 +47,7 @@ protected RemoteInfoResponse(Builder builder) { /** * Builder for {@link RemoteInfoResponse}. */ - public static class Builder extends AdditionalProperties.AbstractBuilder + public static class Builder extends AdditionalProperties.AbstractBuilder implements ObjectBuilder { @Override @@ -79,7 +79,7 @@ public RemoteInfoResponse build() { protected static void setupRemoteInfoResponseDeserializer(DelegatingDeserializer op) { AdditionalProperties.setupAdditionalPropertiesDeserializer(op, JsonpDeserializer.stringDeserializer(), - ClusterRemoteInfo.DESERIALIZER); + JsonpDeserializer.jsonValueDeserializer()); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java index 8f766982f..dedfd3cf7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StateRequest.java @@ -93,6 +93,8 @@ protected StateRequest(Builder builder) { } /** + * Limit the information returned to the specified metrics + *

* API name: {@code metric} */ @Nullable @@ -101,6 +103,9 @@ public List metric() { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -109,6 +114,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -117,6 +126,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -125,6 +137,8 @@ public JsonValue expandWildcards() { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ @Nullable @@ -133,6 +147,9 @@ public Boolean flatSettings() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -141,6 +158,9 @@ public Boolean ignoreUnavailable() { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ @Nullable @@ -149,6 +169,8 @@ public Boolean local() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -157,6 +179,9 @@ public JsonValue masterTimeout() { } /** + * Wait for the metadata version to be equal or greater than the specified + * metadata version + *

* API name: {@code wait_for_metadata_version} */ @Nullable @@ -165,6 +190,8 @@ public Number waitForMetadataVersion() { } /** + * The maximum time to wait for wait_for_metadata_version before timing out + *

* API name: {@code wait_for_timeout} */ @Nullable @@ -209,6 +236,8 @@ public static class Builder implements ObjectBuilder { private JsonValue waitForTimeout; /** + * Limit the information returned to the specified metrics + *

* API name: {@code metric} */ public Builder metric(@Nullable List value) { @@ -217,6 +246,8 @@ public Builder metric(@Nullable List value) { } /** + * Limit the information returned to the specified metrics + *

* API name: {@code metric} */ public Builder metric(String... value) { @@ -236,6 +267,9 @@ public Builder addMetric(String value) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -244,6 +278,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -263,6 +300,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -271,6 +312,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -279,6 +323,8 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ public Builder flatSettings(@Nullable Boolean value) { @@ -287,6 +333,9 @@ public Builder flatSettings(@Nullable Boolean value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -295,6 +344,9 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { @@ -303,6 +355,8 @@ public Builder local(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -311,6 +365,9 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Wait for the metadata version to be equal or greater than the specified + * metadata version + *

* API name: {@code wait_for_metadata_version} */ public Builder waitForMetadataVersion(@Nullable Number value) { @@ -319,6 +376,8 @@ public Builder waitForMetadataVersion(@Nullable Number value) { } /** + * The maximum time to wait for wait_for_metadata_version before timing out + *

* API name: {@code wait_for_timeout} */ public Builder waitForTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StatsRequest.java index c42e1a9f3..7e3d272d2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/cluster/StatsRequest.java @@ -34,14 +34,18 @@ import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; import java.lang.String; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; +import java.util.List; import java.util.Map; +import java.util.stream.Collectors; import javax.annotation.Nullable; // typedef: cluster.stats.Request public final class StatsRequest extends RequestBase { @Nullable - private final String nodeId; + private final List nodeId; @Nullable private final Boolean flatSettings; @@ -66,11 +70,13 @@ protected StatsRequest(Builder builder) { * API name: {@code node_id} */ @Nullable - public String nodeId() { + public List nodeId() { return this.nodeId; } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ @Nullable @@ -98,7 +104,7 @@ public JsonValue timeout() { */ public static class Builder implements ObjectBuilder { @Nullable - private String nodeId; + private List nodeId; @Nullable private Boolean flatSettings; @@ -112,12 +118,36 @@ public static class Builder implements ObjectBuilder { *

* API name: {@code node_id} */ - public Builder nodeId(@Nullable String value) { + public Builder nodeId(@Nullable List value) { this.nodeId = value; return this; } /** + * Comma-separated list of node filters used to limit returned information. + * Defaults to all nodes in the cluster. + *

+ * API name: {@code node_id} + */ + public Builder nodeId(String... value) { + this.nodeId = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #nodeId(List)}, creating the list if needed. + */ + public Builder addNodeId(String value) { + if (this.nodeId == null) { + this.nodeId = new ArrayList<>(); + } + this.nodeId.add(value); + return this; + } + + /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ public Builder flatSettings(@Nullable Boolean value) { @@ -183,7 +213,7 @@ public StatsRequest build() { buf.append("/stats"); buf.append("/nodes"); buf.append("/"); - buf.append(request.nodeId); + buf.append(request.nodeId.stream().map(v -> v).collect(Collectors.joining(","))); return buf.toString(); } throw Endpoint.Simple.noPathTemplateFound("path"); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java new file mode 100644 index 000000000..688fbf274 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexRequest.java @@ -0,0 +1,216 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.dangling_indices; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: dangling_indices.delete_dangling_index.Request +public final class DeleteDanglingIndexRequest extends RequestBase { + private final String indexUuid; + + private final Boolean acceptDataLoss; + + @Nullable + private final JsonValue masterTimeout; + + @Nullable + private final JsonValue timeout; + + // --------------------------------------------------------------------------------------------- + + protected DeleteDanglingIndexRequest(Builder builder) { + + this.indexUuid = Objects.requireNonNull(builder.indexUuid, "index_uuid"); + this.acceptDataLoss = Objects.requireNonNull(builder.acceptDataLoss, "accept_data_loss"); + this.masterTimeout = builder.masterTimeout; + this.timeout = builder.timeout; + + } + + /** + * The UUID of the dangling index + *

+ * API name: {@code index_uuid} + */ + public String indexUuid() { + return this.indexUuid; + } + + /** + * Must be set to true in order to delete the dangling index + *

+ * API name: {@code accept_data_loss} + */ + public Boolean acceptDataLoss() { + return this.acceptDataLoss; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + @Nullable + public JsonValue masterTimeout() { + return this.masterTimeout; + } + + /** + * Explicit operation timeout + *

+ * API name: {@code timeout} + */ + @Nullable + public JsonValue timeout() { + return this.timeout; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteDanglingIndexRequest}. + */ + public static class Builder implements ObjectBuilder { + private String indexUuid; + + private Boolean acceptDataLoss; + + @Nullable + private JsonValue masterTimeout; + + @Nullable + private JsonValue timeout; + + /** + * The UUID of the dangling index + *

+ * API name: {@code index_uuid} + */ + public Builder indexUuid(String value) { + this.indexUuid = value; + return this; + } + + /** + * Must be set to true in order to delete the dangling index + *

+ * API name: {@code accept_data_loss} + */ + public Builder acceptDataLoss(Boolean value) { + this.acceptDataLoss = value; + return this; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + public Builder masterTimeout(@Nullable JsonValue value) { + this.masterTimeout = value; + return this; + } + + /** + * Explicit operation timeout + *

+ * API name: {@code timeout} + */ + public Builder timeout(@Nullable JsonValue value) { + this.timeout = value; + return this; + } + + /** + * Builds a {@link DeleteDanglingIndexRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteDanglingIndexRequest build() { + + return new DeleteDanglingIndexRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code dangling_indices.delete_dangling_index}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "DELETE"; + + }, + + // Request path + request -> { + final int _indexUuid = 1 << 0; + + int propsSet = 0; + + if (request.indexUuid() != null) + propsSet |= _indexUuid; + + if (propsSet == (_indexUuid)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_dangling"); + buf.append("/"); + buf.append(request.indexUuid); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + params.put("accept_data_loss", String.valueOf(request.acceptDataLoss)); + if (request.masterTimeout != null) { + params.put("master_timeout", request.masterTimeout.toString()); + } + if (request.timeout != null) { + params.put("timeout", request.timeout.toString()); + } + return params; + + }, Endpoint.Simple.emptyMap(), false, DeleteDanglingIndexResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexResponse.java new file mode 100644 index 000000000..cf9c1484d --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/DeleteDanglingIndexResponse.java @@ -0,0 +1,82 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.dangling_indices; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; + +// typedef: dangling_indices.delete_dangling_index.Response +public final class DeleteDanglingIndexResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + protected DeleteDanglingIndexResponse(Builder builder) { + super(builder); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DeleteDanglingIndexResponse}. + */ + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link DeleteDanglingIndexResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DeleteDanglingIndexResponse build() { + + return new DeleteDanglingIndexResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for DeleteDanglingIndexResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, DeleteDanglingIndexResponse::setupDeleteDanglingIndexResponseDeserializer); + + protected static void setupDeleteDanglingIndexResponseDeserializer( + DelegatingDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java new file mode 100644 index 000000000..df8aac01a --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexRequest.java @@ -0,0 +1,216 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.dangling_indices; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.Boolean; +import java.lang.String; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: dangling_indices.import_dangling_index.Request +public final class ImportDanglingIndexRequest extends RequestBase { + private final String indexUuid; + + private final Boolean acceptDataLoss; + + @Nullable + private final JsonValue masterTimeout; + + @Nullable + private final JsonValue timeout; + + // --------------------------------------------------------------------------------------------- + + protected ImportDanglingIndexRequest(Builder builder) { + + this.indexUuid = Objects.requireNonNull(builder.indexUuid, "index_uuid"); + this.acceptDataLoss = Objects.requireNonNull(builder.acceptDataLoss, "accept_data_loss"); + this.masterTimeout = builder.masterTimeout; + this.timeout = builder.timeout; + + } + + /** + * The UUID of the dangling index + *

+ * API name: {@code index_uuid} + */ + public String indexUuid() { + return this.indexUuid; + } + + /** + * Must be set to true in order to import the dangling index + *

+ * API name: {@code accept_data_loss} + */ + public Boolean acceptDataLoss() { + return this.acceptDataLoss; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + @Nullable + public JsonValue masterTimeout() { + return this.masterTimeout; + } + + /** + * Explicit operation timeout + *

+ * API name: {@code timeout} + */ + @Nullable + public JsonValue timeout() { + return this.timeout; + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ImportDanglingIndexRequest}. + */ + public static class Builder implements ObjectBuilder { + private String indexUuid; + + private Boolean acceptDataLoss; + + @Nullable + private JsonValue masterTimeout; + + @Nullable + private JsonValue timeout; + + /** + * The UUID of the dangling index + *

+ * API name: {@code index_uuid} + */ + public Builder indexUuid(String value) { + this.indexUuid = value; + return this; + } + + /** + * Must be set to true in order to import the dangling index + *

+ * API name: {@code accept_data_loss} + */ + public Builder acceptDataLoss(Boolean value) { + this.acceptDataLoss = value; + return this; + } + + /** + * Specify timeout for connection to master + *

+ * API name: {@code master_timeout} + */ + public Builder masterTimeout(@Nullable JsonValue value) { + this.masterTimeout = value; + return this; + } + + /** + * Explicit operation timeout + *

+ * API name: {@code timeout} + */ + public Builder timeout(@Nullable JsonValue value) { + this.timeout = value; + return this; + } + + /** + * Builds a {@link ImportDanglingIndexRequest}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ImportDanglingIndexRequest build() { + + return new ImportDanglingIndexRequest(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code dangling_indices.import_dangling_index}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "POST"; + + }, + + // Request path + request -> { + final int _indexUuid = 1 << 0; + + int propsSet = 0; + + if (request.indexUuid() != null) + propsSet |= _indexUuid; + + if (propsSet == (_indexUuid)) { + StringBuilder buf = new StringBuilder(); + buf.append("/_dangling"); + buf.append("/"); + buf.append(request.indexUuid); + return buf.toString(); + } + throw Endpoint.Simple.noPathTemplateFound("path"); + + }, + + // Request parameters + request -> { + Map params = new HashMap<>(); + params.put("accept_data_loss", String.valueOf(request.acceptDataLoss)); + if (request.masterTimeout != null) { + params.put("master_timeout", request.masterTimeout.toString()); + } + if (request.timeout != null) { + params.put("timeout", request.timeout.toString()); + } + return params; + + }, Endpoint.Simple.emptyMap(), false, ImportDanglingIndexResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexResponse.java new file mode 100644 index 000000000..664c6d7e6 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ImportDanglingIndexResponse.java @@ -0,0 +1,82 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.dangling_indices; + +import co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; + +// typedef: dangling_indices.import_dangling_index.Response +public final class ImportDanglingIndexResponse extends AcknowledgedResponseBase { + // --------------------------------------------------------------------------------------------- + + protected ImportDanglingIndexResponse(Builder builder) { + super(builder); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ImportDanglingIndexResponse}. + */ + public static class Builder extends AcknowledgedResponseBase.AbstractBuilder + implements + ObjectBuilder { + @Override + protected Builder self() { + return this; + } + + /** + * Builds a {@link ImportDanglingIndexResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ImportDanglingIndexResponse build() { + + return new ImportDanglingIndexResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for ImportDanglingIndexResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, ImportDanglingIndexResponse::setupImportDanglingIndexResponseDeserializer); + + protected static void setupImportDanglingIndexResponseDeserializer( + DelegatingDeserializer op) { + AcknowledgedResponseBase.setupAcknowledgedResponseBaseDeserializer(op); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesRequest.java new file mode 100644 index 000000000..94a882042 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesRequest.java @@ -0,0 +1,72 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.dangling_indices; + +import co.elastic.clients.base.ElasticsearchError; +import co.elastic.clients.base.Endpoint; +import co.elastic.clients.elasticsearch._types.RequestBase; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.Collections; + +// typedef: dangling_indices.list_dangling_indices.Request +public final class ListDanglingIndicesRequest extends RequestBase { + protected ListDanglingIndicesRequest() { + } + + /** + * Singleton instance for {@link ListDanglingIndicesRequest}. + */ + public static final ListDanglingIndicesRequest INSTANCE = new ListDanglingIndicesRequest(); + + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .fixedValue(ListDanglingIndicesRequest.INSTANCE); + + // --------------------------------------------------------------------------------------------- + + /** + * Endpoint "{@code dangling_indices.list_dangling_indices}". + */ + public static final Endpoint ENDPOINT = new Endpoint.Simple<>( + // Request method + request -> { + return "GET"; + + }, + + // Request path + request -> { + return "/_dangling"; + + }, + + // Request parameters + request -> { + return Collections.emptyMap(); + + }, Endpoint.Simple.emptyMap(), false, ListDanglingIndicesResponse.DESERIALIZER); +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesResponse.java new file mode 100644 index 000000000..4869727bd --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/ListDanglingIndicesResponse.java @@ -0,0 +1,159 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.dangling_indices; + +import co.elastic.clients.elasticsearch.dangling_indices.list_dangling_indices.DanglingIndex; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: dangling_indices.list_dangling_indices.Response +public final class ListDanglingIndicesResponse implements ToJsonp { + private final List danglingIndices; + + // --------------------------------------------------------------------------------------------- + + protected ListDanglingIndicesResponse(Builder builder) { + + this.danglingIndices = Objects.requireNonNull(builder.danglingIndices, "dangling_indices"); + + } + + /** + * API name: {@code dangling_indices} + */ + public List danglingIndices() { + return this.danglingIndices; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("dangling_indices"); + generator.writeStartArray(); + for (DanglingIndex item0 : this.danglingIndices) { + item0.toJsonp(generator, mapper); + + } + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link ListDanglingIndicesResponse}. + */ + public static class Builder implements ObjectBuilder { + private List danglingIndices; + + /** + * API name: {@code dangling_indices} + */ + public Builder danglingIndices(List value) { + this.danglingIndices = value; + return this; + } + + /** + * API name: {@code dangling_indices} + */ + public Builder danglingIndices(DanglingIndex... value) { + this.danglingIndices = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #danglingIndices(List)}, creating the list if needed. + */ + public Builder addDanglingIndices(DanglingIndex value) { + if (this.danglingIndices == null) { + this.danglingIndices = new ArrayList<>(); + } + this.danglingIndices.add(value); + return this; + } + + /** + * Set {@link #danglingIndices(List)} to a singleton list. + */ + public Builder danglingIndices(Function> fn) { + return this.danglingIndices(fn.apply(new DanglingIndex.Builder()).build()); + } + + /** + * Add a value to {@link #danglingIndices(List)}, creating the list if needed. + */ + public Builder addDanglingIndices(Function> fn) { + return this.addDanglingIndices(fn.apply(new DanglingIndex.Builder()).build()); + } + + /** + * Builds a {@link ListDanglingIndicesResponse}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public ListDanglingIndicesResponse build() { + + return new ListDanglingIndicesResponse(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for ListDanglingIndicesResponse + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, ListDanglingIndicesResponse::setupListDanglingIndicesResponseDeserializer); + + protected static void setupListDanglingIndicesResponseDeserializer( + DelegatingDeserializer op) { + + op.add(Builder::danglingIndices, JsonpDeserializer.arrayDeserializer(DanglingIndex.DESERIALIZER), + "dangling_indices"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/list_dangling_indices/DanglingIndex.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/list_dangling_indices/DanglingIndex.java new file mode 100644 index 000000000..f5f0908a8 --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/dangling_indices/list_dangling_indices/DanglingIndex.java @@ -0,0 +1,216 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.dangling_indices.list_dangling_indices; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: dangling_indices.list_dangling_indices.DanglingIndex +public final class DanglingIndex implements ToJsonp { + private final String indexName; + + private final String indexUuid; + + private final JsonValue creationDateMillis; + + private final List nodeIds; + + // --------------------------------------------------------------------------------------------- + + protected DanglingIndex(Builder builder) { + + this.indexName = Objects.requireNonNull(builder.indexName, "index_name"); + this.indexUuid = Objects.requireNonNull(builder.indexUuid, "index_uuid"); + this.creationDateMillis = Objects.requireNonNull(builder.creationDateMillis, "creation_date_millis"); + this.nodeIds = Objects.requireNonNull(builder.nodeIds, "node_ids"); + + } + + /** + * API name: {@code index_name} + */ + public String indexName() { + return this.indexName; + } + + /** + * API name: {@code index_uuid} + */ + public String indexUuid() { + return this.indexUuid; + } + + /** + * API name: {@code creation_date_millis} + */ + public JsonValue creationDateMillis() { + return this.creationDateMillis; + } + + /** + * API name: {@code node_ids} + */ + public List nodeIds() { + return this.nodeIds; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("index_name"); + generator.write(this.indexName); + + generator.writeKey("index_uuid"); + generator.write(this.indexUuid); + + generator.writeKey("creation_date_millis"); + generator.write(this.creationDateMillis); + + generator.writeKey("node_ids"); + generator.writeStartArray(); + for (String item0 : this.nodeIds) { + generator.write(item0); + + } + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link DanglingIndex}. + */ + public static class Builder implements ObjectBuilder { + private String indexName; + + private String indexUuid; + + private JsonValue creationDateMillis; + + private List nodeIds; + + /** + * API name: {@code index_name} + */ + public Builder indexName(String value) { + this.indexName = value; + return this; + } + + /** + * API name: {@code index_uuid} + */ + public Builder indexUuid(String value) { + this.indexUuid = value; + return this; + } + + /** + * API name: {@code creation_date_millis} + */ + public Builder creationDateMillis(JsonValue value) { + this.creationDateMillis = value; + return this; + } + + /** + * API name: {@code node_ids} + */ + public Builder nodeIds(List value) { + this.nodeIds = value; + return this; + } + + /** + * API name: {@code node_ids} + */ + public Builder nodeIds(String... value) { + this.nodeIds = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #nodeIds(List)}, creating the list if needed. + */ + public Builder addNodeIds(String value) { + if (this.nodeIds == null) { + this.nodeIds = new ArrayList<>(); + } + this.nodeIds.add(value); + return this; + } + + /** + * Builds a {@link DanglingIndex}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public DanglingIndex build() { + + return new DanglingIndex(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for DanglingIndex + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, DanglingIndex::setupDanglingIndexDeserializer); + + protected static void setupDanglingIndexDeserializer(DelegatingDeserializer op) { + + op.add(Builder::indexName, JsonpDeserializer.stringDeserializer(), "index_name"); + op.add(Builder::indexUuid, JsonpDeserializer.stringDeserializer(), "index_uuid"); + op.add(Builder::creationDateMillis, JsonpDeserializer.jsonValueDeserializer(), "creation_date_millis"); + op.add(Builder::nodeIds, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "node_ids"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java index 63b05b586..abf1f5d21 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/DeletePolicyRequest.java @@ -49,6 +49,8 @@ protected DeletePolicyRequest(Builder builder) { } /** + * The name of the enrich policy + *

* API name: {@code name} */ public String name() { @@ -64,6 +66,8 @@ public static class Builder implements ObjectBuilder { private String name; /** + * The name of the enrich policy + *

* API name: {@code name} */ public Builder name(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java index 860fc714d..721c9d432 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/ExecutePolicyRequest.java @@ -55,6 +55,8 @@ protected ExecutePolicyRequest(Builder builder) { } /** + * The name of the enrich policy + *

* API name: {@code name} */ public String name() { @@ -62,6 +64,8 @@ public String name() { } /** + * Should the request should block until the execution is complete. + *

* API name: {@code wait_for_completion} */ @Nullable @@ -81,6 +85,8 @@ public static class Builder implements ObjectBuilder { private Boolean waitForCompletion; /** + * The name of the enrich policy + *

* API name: {@code name} */ public Builder name(String value) { @@ -89,6 +95,8 @@ public Builder name(String value) { } /** + * Should the request should block until the execution is complete. + *

* API name: {@code wait_for_completion} */ public Builder waitForCompletion(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java index 03d85f23a..4f87a9215 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/GetPolicyRequest.java @@ -53,6 +53,8 @@ protected GetPolicyRequest(Builder builder) { } /** + * A comma-separated list of enrich policy names + *

* API name: {@code name} */ @Nullable @@ -70,6 +72,8 @@ public static class Builder implements ObjectBuilder { private List name; /** + * A comma-separated list of enrich policy names + *

* API name: {@code name} */ public Builder name(@Nullable List value) { @@ -78,6 +82,8 @@ public Builder name(@Nullable List value) { } /** + * A comma-separated list of enrich policy names + *

* API name: {@code name} */ public Builder name(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java index 8011e52bb..65a22a917 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/PutPolicyRequest.java @@ -61,6 +61,8 @@ protected PutPolicyRequest(Builder builder) { } /** + * The name of the enrich policy + *

* API name: {@code name} */ public String name() { @@ -124,6 +126,8 @@ public static class Builder implements ObjectBuilder { private Policy match; /** + * The name of the enrich policy + *

* API name: {@code name} */ public Builder name(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/ExecutingPolicy.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/ExecutingPolicy.java index e5eccade0..14a7032cd 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/ExecutingPolicy.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/enrich/stats/ExecutingPolicy.java @@ -23,7 +23,7 @@ package co.elastic.clients.elasticsearch.enrich.stats; -import co.elastic.clients.elasticsearch.task.Info; +import co.elastic.clients.elasticsearch.tasks.Info; import co.elastic.clients.json.DelegatingDeserializer; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/SearchRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/SearchRequest.java index d8cc88706..5096c5f84 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/SearchRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/eql/SearchRequest.java @@ -124,6 +124,8 @@ protected SearchRequest(Builder builder) { } /** + * The name of the index to scope the operation + *

* API name: {@code index} */ public String index() { @@ -433,6 +435,8 @@ public static class Builder implements ObjectBuilder { private JsonValue resultPosition; /** + * The name of the index to scope the operation + *

* API name: {@code index} */ public Builder index(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/Feature.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/Feature.java new file mode 100644 index 000000000..06e97386e --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/Feature.java @@ -0,0 +1,139 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.features; + +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.stream.JsonGenerator; +import java.lang.String; +import java.util.Objects; +import javax.annotation.Nullable; + +// typedef: features._types.Feature +public final class Feature implements ToJsonp { + private final String name; + + private final String description; + + // --------------------------------------------------------------------------------------------- + + protected Feature(Builder builder) { + + this.name = Objects.requireNonNull(builder.name, "name"); + this.description = Objects.requireNonNull(builder.description, "description"); + + } + + /** + * API name: {@code name} + */ + public String name() { + return this.name; + } + + /** + * API name: {@code description} + */ + public String description() { + return this.description; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("name"); + generator.write(this.name); + + generator.writeKey("description"); + generator.write(this.description); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link Feature}. + */ + public static class Builder implements ObjectBuilder { + private String name; + + private String description; + + /** + * API name: {@code name} + */ + public Builder name(String value) { + this.name = value; + return this; + } + + /** + * API name: {@code description} + */ + public Builder description(String value) { + this.description = value; + return this; + } + + /** + * Builds a {@link Feature}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public Feature build() { + + return new Feature(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for Feature + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, Feature::setupFeatureDeserializer); + + protected static void setupFeatureDeserializer(DelegatingDeserializer op) { + + op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(Builder::description, JsonpDeserializer.stringDeserializer(), "description"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java index 16832e2d5..2160214d5 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesRequest.java @@ -26,136 +26,25 @@ import co.elastic.clients.base.ElasticsearchError; import co.elastic.clients.base.Endpoint; import co.elastic.clients.elasticsearch._types.RequestBase; -import co.elastic.clients.json.DelegatingDeserializer; import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import java.lang.String; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Nullable; +import java.util.Collections; // typedef: features.get_features.Request -public final class GetFeaturesRequest extends RequestBase implements ToJsonp { - private final String stubA; - - private final String stubB; - - private final String stubC; - - // --------------------------------------------------------------------------------------------- - - protected GetFeaturesRequest(Builder builder) { - - this.stubA = Objects.requireNonNull(builder.stubA, "stub_a"); - this.stubB = Objects.requireNonNull(builder.stubB, "stub_b"); - this.stubC = Objects.requireNonNull(builder.stubC, "stub_c"); - - } - - /** - * API name: {@code stub_a} - */ - public String stubA() { - return this.stubA; +public final class GetFeaturesRequest extends RequestBase { + protected GetFeaturesRequest() { } /** - * API name: {@code stub_b} + * Singleton instance for {@link GetFeaturesRequest}. */ - public String stubB() { - return this.stubB; - } + public static final GetFeaturesRequest INSTANCE = new GetFeaturesRequest(); - /** - * API name: {@code stub_c} - */ - public String stubC() { - return this.stubC; - } - - /** - * Serialize this object to JSON. - */ - public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - toJsonpInternal(generator, mapper); - generator.writeEnd(); - } - - protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - - generator.writeKey("stub_c"); - generator.write(this.stubC); - - } - - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link GetFeaturesRequest}. - */ - public static class Builder implements ObjectBuilder { - private String stubA; - - private String stubB; - - private String stubC; - - /** - * API name: {@code stub_a} - */ - public Builder stubA(String value) { - this.stubA = value; - return this; - } - - /** - * API name: {@code stub_b} - */ - public Builder stubB(String value) { - this.stubB = value; - return this; - } - - /** - * API name: {@code stub_c} - */ - public Builder stubC(String value) { - this.stubC = value; - return this; - } - - /** - * Builds a {@link GetFeaturesRequest}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public GetFeaturesRequest build() { - - return new GetFeaturesRequest(this); - } - } - - // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for GetFeaturesRequest - */ - public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer - .createForObject(Builder::new, GetFeaturesRequest::setupGetFeaturesRequestDeserializer); - - protected static void setupGetFeaturesRequestDeserializer(DelegatingDeserializer op) { - - op.add(Builder::stubC, JsonpDeserializer.stringDeserializer(), "stub_c"); - - } + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .fixedValue(GetFeaturesRequest.INSTANCE); // --------------------------------------------------------------------------------------------- @@ -177,9 +66,7 @@ protected static void setupGetFeaturesRequestDeserializer(DelegatingDeserializer // Request parameters request -> { - Map params = new HashMap<>(); - params.put("stub_b", request.stubB); - return params; + return Collections.emptyMap(); - }, Endpoint.Simple.emptyMap(), true, GetFeaturesResponse.DESERIALIZER); + }, Endpoint.Simple.emptyMap(), false, GetFeaturesResponse.DESERIALIZER); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesResponse.java index 60b2aabc4..9a6f7f60a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/GetFeaturesResponse.java @@ -31,27 +31,30 @@ import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import java.lang.Number; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; import java.util.Objects; +import java.util.function.Function; import javax.annotation.Nullable; // typedef: features.get_features.Response public final class GetFeaturesResponse implements ToJsonp { - private final Number stub; + private final List features; // --------------------------------------------------------------------------------------------- protected GetFeaturesResponse(Builder builder) { - this.stub = Objects.requireNonNull(builder.stub, "stub"); + this.features = Objects.requireNonNull(builder.features, "features"); } /** - * API name: {@code stub} + * API name: {@code features} */ - public Number stub() { - return this.stub; + public List features() { + return this.features; } /** @@ -65,8 +68,13 @@ public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("stub"); - generator.write(this.stub.doubleValue()); + generator.writeKey("features"); + generator.writeStartArray(); + for (Feature item0 : this.features) { + item0.toJsonp(generator, mapper); + + } + generator.writeEnd(); } @@ -76,16 +84,49 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link GetFeaturesResponse}. */ public static class Builder implements ObjectBuilder { - private Number stub; + private List features; /** - * API name: {@code stub} + * API name: {@code features} */ - public Builder stub(Number value) { - this.stub = value; + public Builder features(List value) { + this.features = value; return this; } + /** + * API name: {@code features} + */ + public Builder features(Feature... value) { + this.features = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #features(List)}, creating the list if needed. + */ + public Builder addFeatures(Feature value) { + if (this.features == null) { + this.features = new ArrayList<>(); + } + this.features.add(value); + return this; + } + + /** + * Set {@link #features(List)} to a singleton list. + */ + public Builder features(Function> fn) { + return this.features(fn.apply(new Feature.Builder()).build()); + } + + /** + * Add a value to {@link #features(List)}, creating the list if needed. + */ + public Builder addFeatures(Function> fn) { + return this.addFeatures(fn.apply(new Feature.Builder()).build()); + } + /** * Builds a {@link GetFeaturesResponse}. * @@ -108,7 +149,7 @@ public GetFeaturesResponse build() { protected static void setupGetFeaturesResponseDeserializer(DelegatingDeserializer op) { - op.add(Builder::stub, JsonpDeserializer.numberDeserializer(), "stub"); + op.add(Builder::features, JsonpDeserializer.arrayDeserializer(Feature.DESERIALIZER), "features"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java index 956338cad..4ea38bf49 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesRequest.java @@ -26,137 +26,25 @@ import co.elastic.clients.base.ElasticsearchError; import co.elastic.clients.base.Endpoint; import co.elastic.clients.elasticsearch._types.RequestBase; -import co.elastic.clients.json.DelegatingDeserializer; import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import java.lang.String; -import java.util.HashMap; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Nullable; +import java.util.Collections; // typedef: features.reset_features.Request -public final class ResetFeaturesRequest extends RequestBase implements ToJsonp { - private final String stubA; - - private final String stubB; - - private final String stubC; - - // --------------------------------------------------------------------------------------------- - - protected ResetFeaturesRequest(Builder builder) { - - this.stubA = Objects.requireNonNull(builder.stubA, "stub_a"); - this.stubB = Objects.requireNonNull(builder.stubB, "stub_b"); - this.stubC = Objects.requireNonNull(builder.stubC, "stub_c"); - - } - - /** - * API name: {@code stub_a} - */ - public String stubA() { - return this.stubA; +public final class ResetFeaturesRequest extends RequestBase { + protected ResetFeaturesRequest() { } /** - * API name: {@code stub_b} + * Singleton instance for {@link ResetFeaturesRequest}. */ - public String stubB() { - return this.stubB; - } + public static final ResetFeaturesRequest INSTANCE = new ResetFeaturesRequest(); - /** - * API name: {@code stub_c} - */ - public String stubC() { - return this.stubC; - } - - /** - * Serialize this object to JSON. - */ - public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - toJsonpInternal(generator, mapper); - generator.writeEnd(); - } - - protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - - generator.writeKey("stub_c"); - generator.write(this.stubC); - - } - - // --------------------------------------------------------------------------------------------- - - /** - * Builder for {@link ResetFeaturesRequest}. - */ - public static class Builder implements ObjectBuilder { - private String stubA; - - private String stubB; - - private String stubC; - - /** - * API name: {@code stub_a} - */ - public Builder stubA(String value) { - this.stubA = value; - return this; - } - - /** - * API name: {@code stub_b} - */ - public Builder stubB(String value) { - this.stubB = value; - return this; - } - - /** - * API name: {@code stub_c} - */ - public Builder stubC(String value) { - this.stubC = value; - return this; - } - - /** - * Builds a {@link ResetFeaturesRequest}. - * - * @throws NullPointerException - * if some of the required fields are null. - */ - public ResetFeaturesRequest build() { - - return new ResetFeaturesRequest(this); - } - } - - // --------------------------------------------------------------------------------------------- - - /** - * Json deserializer for ResetFeaturesRequest - */ - public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer - .createForObject(Builder::new, ResetFeaturesRequest::setupResetFeaturesRequestDeserializer); - - protected static void setupResetFeaturesRequestDeserializer( - DelegatingDeserializer op) { - - op.add(Builder::stubC, JsonpDeserializer.stringDeserializer(), "stub_c"); - - } + public static final JsonpDeserializer DESERIALIZER = JsonpDeserializer + .fixedValue(ResetFeaturesRequest.INSTANCE); // --------------------------------------------------------------------------------------------- @@ -178,9 +66,7 @@ protected static void setupResetFeaturesRequestDeserializer( // Request parameters request -> { - Map params = new HashMap<>(); - params.put("stub_b", request.stubB); - return params; + return Collections.emptyMap(); - }, Endpoint.Simple.emptyMap(), true, ResetFeaturesResponse.DESERIALIZER); + }, Endpoint.Simple.emptyMap(), false, ResetFeaturesResponse.DESERIALIZER); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesResponse.java index 306d02fbd..71244fd29 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/features/ResetFeaturesResponse.java @@ -31,27 +31,30 @@ import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import java.lang.Number; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; import java.util.Objects; +import java.util.function.Function; import javax.annotation.Nullable; // typedef: features.reset_features.Response public final class ResetFeaturesResponse implements ToJsonp { - private final Number stub; + private final List features; // --------------------------------------------------------------------------------------------- protected ResetFeaturesResponse(Builder builder) { - this.stub = Objects.requireNonNull(builder.stub, "stub"); + this.features = Objects.requireNonNull(builder.features, "features"); } /** - * API name: {@code stub} + * API name: {@code features} */ - public Number stub() { - return this.stub; + public List features() { + return this.features; } /** @@ -65,8 +68,13 @@ public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("stub"); - generator.write(this.stub.doubleValue()); + generator.writeKey("features"); + generator.writeStartArray(); + for (Feature item0 : this.features) { + item0.toJsonp(generator, mapper); + + } + generator.writeEnd(); } @@ -76,16 +84,49 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link ResetFeaturesResponse}. */ public static class Builder implements ObjectBuilder { - private Number stub; + private List features; /** - * API name: {@code stub} + * API name: {@code features} */ - public Builder stub(Number value) { - this.stub = value; + public Builder features(List value) { + this.features = value; return this; } + /** + * API name: {@code features} + */ + public Builder features(Feature... value) { + this.features = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #features(List)}, creating the list if needed. + */ + public Builder addFeatures(Feature value) { + if (this.features == null) { + this.features = new ArrayList<>(); + } + this.features.add(value); + return this; + } + + /** + * Set {@link #features(List)} to a singleton list. + */ + public Builder features(Function> fn) { + return this.features(fn.apply(new Feature.Builder()).build()); + } + + /** + * Add a value to {@link #features(List)}, creating the list if needed. + */ + public Builder addFeatures(Function> fn) { + return this.addFeatures(fn.apply(new Feature.Builder()).build()); + } + /** * Builds a {@link ResetFeaturesResponse}. * @@ -109,7 +150,7 @@ public ResetFeaturesResponse build() { protected static void setupResetFeaturesResponseDeserializer( DelegatingDeserializer op) { - op.add(Builder::stub, JsonpDeserializer.numberDeserializer(), "stub"); + op.add(Builder::features, JsonpDeserializer.arrayDeserializer(Feature.DESERIALIZER), "features"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java index 172feb09f..b89f52172 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/graph/ExploreRequest.java @@ -52,10 +52,7 @@ public final class ExploreRequest extends RequestBase implements ToJsonp { private final List index; @Nullable - private final List type; - - @Nullable - private final JsonValue routing; + private final String routing; @Nullable private final JsonValue timeout; @@ -77,7 +74,6 @@ public final class ExploreRequest extends RequestBase implements ToJsonp { protected ExploreRequest(Builder builder) { this.index = Objects.requireNonNull(builder.index, "index"); - this.type = builder.type; this.routing = builder.routing; this.timeout = builder.timeout; this.connections = builder.connections; @@ -88,6 +84,9 @@ protected ExploreRequest(Builder builder) { } /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public List index() { @@ -95,22 +94,18 @@ public List index() { } /** - * API name: {@code type} - */ - @Nullable - public List type() { - return this.type; - } - - /** + * Specific routing value + *

* API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -202,10 +197,7 @@ public static class Builder implements ObjectBuilder { private List index; @Nullable - private List type; - - @Nullable - private JsonValue routing; + private String routing; @Nullable private JsonValue timeout; @@ -223,6 +215,9 @@ public static class Builder implements ObjectBuilder { private List vertices; /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(List value) { @@ -231,6 +226,9 @@ public Builder index(List value) { } /** + * A comma-separated list of index names to search; use _all or + * empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -250,41 +248,18 @@ public Builder addIndex(String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable List value) { - this.type = value; - return this; - } - - /** - * API name: {@code type} - */ - public Builder type(String... value) { - this.type = Arrays.asList(value); - return this; - } - - /** - * Add a value to {@link #type(List)}, creating the list if needed. - */ - public Builder addType(String value) { - if (this.type == null) { - this.type = new ArrayList<>(); - } - this.type.add(value); - return this; - } - - /** + * Specific routing value + *

* API name: {@code routing} */ - public Builder routing(@Nullable JsonValue value) { + public Builder routing(@Nullable String value) { this.routing = value; return this; } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -422,14 +397,11 @@ protected static void setupExploreRequestDeserializer(DelegatingDeserializer { final int _index = 1 << 0; - final int _type = 1 << 1; int propsSet = 0; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == (_index)) { StringBuilder buf = new StringBuilder(); @@ -439,16 +411,6 @@ protected static void setupExploreRequestDeserializer(DelegatingDeserializer v).collect(Collectors.joining(","))); - buf.append("/"); - buf.append(request.type.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/_graph"); - buf.append("/explore"); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, @@ -457,7 +419,7 @@ protected static void setupExploreRequestDeserializer(DelegatingDeserializer { Map params = new HashMap<>(); if (request.routing != null) { - params.put("routing", request.routing.toString()); + params.put("routing", request.routing); } if (request.timeout != null) { params.put("timeout", request.timeout.toString()); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java index f89c623a2..24de21d1f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/DeleteLifecycleRequest.java @@ -38,62 +38,43 @@ // typedef: ilm.delete_lifecycle.Request public final class DeleteLifecycleRequest extends RequestBase { - @Nullable private final String policy; - private final String policyId; - // --------------------------------------------------------------------------------------------- protected DeleteLifecycleRequest(Builder builder) { - this.policy = builder.policy; - this.policyId = Objects.requireNonNull(builder.policyId, "policy_id"); + this.policy = Objects.requireNonNull(builder.policy, "policy"); } /** + * The name of the index lifecycle policy + *

* API name: {@code policy} */ - @Nullable public String policy() { return this.policy; } - /** - * API name: {@code policy_id} - */ - public String policyId() { - return this.policyId; - } - // --------------------------------------------------------------------------------------------- /** * Builder for {@link DeleteLifecycleRequest}. */ public static class Builder implements ObjectBuilder { - @Nullable private String policy; - private String policyId; - /** + * The name of the index lifecycle policy + *

* API name: {@code policy} */ - public Builder policy(@Nullable String value) { + public Builder policy(String value) { this.policy = value; return this; } - /** - * API name: {@code policy_id} - */ - public Builder policyId(String value) { - this.policyId = value; - return this; - } - /** * Builds a {@link DeleteLifecycleRequest}. * @@ -121,14 +102,11 @@ public DeleteLifecycleRequest build() { // Request path request -> { final int _policy = 1 << 0; - final int _policyId = 1 << 1; int propsSet = 0; if (request.policy() != null) propsSet |= _policy; - if (request.policyId() != null) - propsSet |= _policyId; if (propsSet == (_policy)) { StringBuilder buf = new StringBuilder(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java index f2981e7e9..5df406a91 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/ExplainLifecycleRequest.java @@ -59,6 +59,8 @@ protected ExplainLifecycleRequest(Builder builder) { } /** + * The name of the index to explain + *

* API name: {@code index} */ public String index() { @@ -66,6 +68,9 @@ public String index() { } /** + * filters the indices included in the response to ones in an ILM error state, + * implies only_managed + *

* API name: {@code only_errors} */ @Nullable @@ -74,6 +79,8 @@ public Boolean onlyErrors() { } /** + * filters the indices included in the response to ones managed by ILM + *

* API name: {@code only_managed} */ @Nullable @@ -96,6 +103,8 @@ public static class Builder implements ObjectBuilder { private Boolean onlyManaged; /** + * The name of the index to explain + *

* API name: {@code index} */ public Builder index(String value) { @@ -104,6 +113,9 @@ public Builder index(String value) { } /** + * filters the indices included in the response to ones in an ILM error state, + * implies only_managed + *

* API name: {@code only_errors} */ public Builder onlyErrors(@Nullable Boolean value) { @@ -112,6 +124,8 @@ public Builder onlyErrors(@Nullable Boolean value) { } /** + * filters the indices included in the response to ones managed by ILM + *

* API name: {@code only_managed} */ public Builder onlyManaged(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleRequest.java index ef3f43a65..a9c975d8e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/GetLifecycleRequest.java @@ -40,19 +40,17 @@ public final class GetLifecycleRequest extends RequestBase { @Nullable private final String policy; - @Nullable - private final String policyId; - // --------------------------------------------------------------------------------------------- protected GetLifecycleRequest(Builder builder) { this.policy = builder.policy; - this.policyId = builder.policyId; } /** + * The name of the index lifecycle policy + *

* API name: {@code policy} */ @Nullable @@ -60,14 +58,6 @@ public String policy() { return this.policy; } - /** - * API name: {@code policy_id} - */ - @Nullable - public String policyId() { - return this.policyId; - } - // --------------------------------------------------------------------------------------------- /** @@ -77,10 +67,9 @@ public static class Builder implements ObjectBuilder { @Nullable private String policy; - @Nullable - private String policyId; - /** + * The name of the index lifecycle policy + *

* API name: {@code policy} */ public Builder policy(@Nullable String value) { @@ -88,14 +77,6 @@ public Builder policy(@Nullable String value) { return this; } - /** - * API name: {@code policy_id} - */ - public Builder policyId(@Nullable String value) { - this.policyId = value; - return this; - } - /** * Builds a {@link GetLifecycleRequest}. * @@ -123,14 +104,11 @@ public GetLifecycleRequest build() { // Request path request -> { final int _policy = 1 << 0; - final int _policyId = 1 << 1; int propsSet = 0; if (request.policy() != null) propsSet |= _policy; - if (request.policyId() != null) - propsSet |= _policyId; if (propsSet == (_policy)) { StringBuilder buf = new StringBuilder(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java index d2cd45d30..2610601b7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/MoveToStepRequest.java @@ -62,6 +62,8 @@ protected MoveToStepRequest(Builder builder) { } /** + * The name of the index whose lifecycle step is to change + *

* API name: {@code index} */ public String index() { @@ -125,6 +127,8 @@ public static class Builder implements ObjectBuilder { private StepKey nextStep; /** + * The name of the index whose lifecycle step is to change + *

* API name: {@code index} */ public Builder index(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java index a84331d30..5b92cf860 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/PutLifecycleRequest.java @@ -36,41 +36,30 @@ import jakarta.json.stream.JsonGenerator; import java.lang.String; import java.util.Collections; +import java.util.Objects; import javax.annotation.Nullable; // typedef: ilm.put_lifecycle.Request public final class PutLifecycleRequest extends RequestBase implements ToJsonp { - @Nullable private final String policy; - @Nullable - private final String policyId; - // --------------------------------------------------------------------------------------------- protected PutLifecycleRequest(Builder builder) { - this.policy = builder.policy; - this.policyId = builder.policyId; + this.policy = Objects.requireNonNull(builder.policy, "policy"); } /** + * The name of the index lifecycle policy + *

* API name: {@code policy} */ - @Nullable public String policy() { return this.policy; } - /** - * API name: {@code policy_id} - */ - @Nullable - public String policyId() { - return this.policyId; - } - /** * Serialize this object to JSON. */ @@ -90,28 +79,18 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link PutLifecycleRequest}. */ public static class Builder implements ObjectBuilder { - @Nullable private String policy; - @Nullable - private String policyId; - /** + * The name of the index lifecycle policy + *

* API name: {@code policy} */ - public Builder policy(@Nullable String value) { + public Builder policy(String value) { this.policy = value; return this; } - /** - * API name: {@code policy_id} - */ - public Builder policyId(@Nullable String value) { - this.policyId = value; - return this; - } - /** * Builds a {@link PutLifecycleRequest}. * @@ -151,14 +130,11 @@ protected static void setupPutLifecycleRequestDeserializer(DelegatingDeserialize // Request path request -> { final int _policy = 1 << 0; - final int _policyId = 1 << 1; int propsSet = 0; if (request.policy() != null) propsSet |= _policy; - if (request.policyId() != null) - propsSet |= _policyId; if (propsSet == (_policy)) { StringBuilder buf = new StringBuilder(); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java index 492903594..cf3278138 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RemovePolicyRequest.java @@ -49,6 +49,8 @@ protected RemovePolicyRequest(Builder builder) { } /** + * The name of the index to remove policy on + *

* API name: {@code index} */ public String index() { @@ -64,6 +66,8 @@ public static class Builder implements ObjectBuilder { private String index; /** + * The name of the index to remove policy on + *

* API name: {@code index} */ public Builder index(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java index d84a180f5..1cc72d3ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/RetryRequest.java @@ -49,6 +49,9 @@ protected RetryRequest(Builder builder) { } /** + * The name of the indices (comma-separated) whose failed lifecycle step is to + * be retry + *

* API name: {@code index} */ public String index() { @@ -64,6 +67,9 @@ public static class Builder implements ObjectBuilder { private String index; /** + * The name of the indices (comma-separated) whose failed lifecycle step is to + * be retry + *

* API name: {@code index} */ public Builder index(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartRequest.java index 414a60eaf..923126798 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StartRequest.java @@ -26,52 +26,47 @@ import co.elastic.clients.base.ElasticsearchError; import co.elastic.clients.base.Endpoint; import co.elastic.clients.elasticsearch._types.RequestBase; -import co.elastic.clients.json.DelegatingDeserializer; import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; import jakarta.json.stream.JsonGenerator; -import java.lang.Boolean; -import java.util.Collections; -import java.util.Objects; +import java.util.HashMap; +import java.util.Map; import javax.annotation.Nullable; // typedef: ilm.start.Request -public final class StartRequest extends RequestBase implements ToJsonp { - private final Boolean stub; +public final class StartRequest extends RequestBase { + @Nullable + private final JsonValue masterTimeout; + + @Nullable + private final JsonValue timeout; // --------------------------------------------------------------------------------------------- protected StartRequest(Builder builder) { - this.stub = Objects.requireNonNull(builder.stub, "stub"); + this.masterTimeout = builder.masterTimeout; + this.timeout = builder.timeout; } /** - * API name: {@code stub} + * API name: {@code master_timeout} */ - public Boolean stub() { - return this.stub; + @Nullable + public JsonValue masterTimeout() { + return this.masterTimeout; } /** - * Serialize this object to JSON. + * API name: {@code timeout} */ - public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - toJsonpInternal(generator, mapper); - generator.writeEnd(); - } - - protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - - generator.writeKey("stub"); - generator.write(this.stub); - + @Nullable + public JsonValue timeout() { + return this.timeout; } // --------------------------------------------------------------------------------------------- @@ -80,13 +75,25 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link StartRequest}. */ public static class Builder implements ObjectBuilder { - private Boolean stub; + @Nullable + private JsonValue masterTimeout; + + @Nullable + private JsonValue timeout; + + /** + * API name: {@code master_timeout} + */ + public Builder masterTimeout(@Nullable JsonValue value) { + this.masterTimeout = value; + return this; + } /** - * API name: {@code stub} + * API name: {@code timeout} */ - public Builder stub(Boolean value) { - this.stub = value; + public Builder timeout(@Nullable JsonValue value) { + this.timeout = value; return this; } @@ -104,20 +111,6 @@ public StartRequest build() { // --------------------------------------------------------------------------------------------- - /** - * Json deserializer for StartRequest - */ - public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer - .createForObject(Builder::new, StartRequest::setupStartRequestDeserializer); - - protected static void setupStartRequestDeserializer(DelegatingDeserializer op) { - - op.add(Builder::stub, JsonpDeserializer.booleanDeserializer(), "stub"); - - } - - // --------------------------------------------------------------------------------------------- - /** * Endpoint "{@code ilm.start}". */ @@ -136,7 +129,14 @@ protected static void setupStartRequestDeserializer(DelegatingDeserializer { - return Collections.emptyMap(); - - }, Endpoint.Simple.emptyMap(), true, StartResponse.DESERIALIZER); + Map params = new HashMap<>(); + if (request.masterTimeout != null) { + params.put("master_timeout", request.masterTimeout.toString()); + } + if (request.timeout != null) { + params.put("timeout", request.timeout.toString()); + } + return params; + + }, Endpoint.Simple.emptyMap(), false, StartResponse.DESERIALIZER); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopRequest.java index 2fa7108c7..ca9ff70f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/ilm/StopRequest.java @@ -26,52 +26,47 @@ import co.elastic.clients.base.ElasticsearchError; import co.elastic.clients.base.Endpoint; import co.elastic.clients.elasticsearch._types.RequestBase; -import co.elastic.clients.json.DelegatingDeserializer; import co.elastic.clients.json.JsonpDeserializer; -import co.elastic.clients.json.JsonpMapper; import co.elastic.clients.json.ObjectBuilderDeserializer; import co.elastic.clients.json.ObjectDeserializer; -import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; import jakarta.json.stream.JsonGenerator; -import java.lang.Boolean; -import java.util.Collections; -import java.util.Objects; +import java.util.HashMap; +import java.util.Map; import javax.annotation.Nullable; // typedef: ilm.stop.Request -public final class StopRequest extends RequestBase implements ToJsonp { - private final Boolean stub; +public final class StopRequest extends RequestBase { + @Nullable + private final JsonValue masterTimeout; + + @Nullable + private final JsonValue timeout; // --------------------------------------------------------------------------------------------- protected StopRequest(Builder builder) { - this.stub = Objects.requireNonNull(builder.stub, "stub"); + this.masterTimeout = builder.masterTimeout; + this.timeout = builder.timeout; } /** - * API name: {@code stub} + * API name: {@code master_timeout} */ - public Boolean stub() { - return this.stub; + @Nullable + public JsonValue masterTimeout() { + return this.masterTimeout; } /** - * Serialize this object to JSON. + * API name: {@code timeout} */ - public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { - generator.writeStartObject(); - toJsonpInternal(generator, mapper); - generator.writeEnd(); - } - - protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - - generator.writeKey("stub"); - generator.write(this.stub); - + @Nullable + public JsonValue timeout() { + return this.timeout; } // --------------------------------------------------------------------------------------------- @@ -80,13 +75,25 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link StopRequest}. */ public static class Builder implements ObjectBuilder { - private Boolean stub; + @Nullable + private JsonValue masterTimeout; + + @Nullable + private JsonValue timeout; + + /** + * API name: {@code master_timeout} + */ + public Builder masterTimeout(@Nullable JsonValue value) { + this.masterTimeout = value; + return this; + } /** - * API name: {@code stub} + * API name: {@code timeout} */ - public Builder stub(Boolean value) { - this.stub = value; + public Builder timeout(@Nullable JsonValue value) { + this.timeout = value; return this; } @@ -104,20 +111,6 @@ public StopRequest build() { // --------------------------------------------------------------------------------------------- - /** - * Json deserializer for StopRequest - */ - public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer - .createForObject(Builder::new, StopRequest::setupStopRequestDeserializer); - - protected static void setupStopRequestDeserializer(DelegatingDeserializer op) { - - op.add(Builder::stub, JsonpDeserializer.booleanDeserializer(), "stub"); - - } - - // --------------------------------------------------------------------------------------------- - /** * Endpoint "{@code ilm.stop}". */ @@ -136,7 +129,14 @@ protected static void setupStopRequestDeserializer(DelegatingDeserializer { - return Collections.emptyMap(); - - }, Endpoint.Simple.emptyMap(), true, StopResponse.DESERIALIZER); + Map params = new HashMap<>(); + if (request.masterTimeout != null) { + params.put("master_timeout", request.masterTimeout.toString()); + } + if (request.timeout != null) { + params.put("timeout", request.timeout.toString()); + } + return params; + + }, Endpoint.Simple.emptyMap(), false, StopResponse.DESERIALIZER); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java index ac57a6d83..72b897803 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AddBlockRequest.java @@ -75,6 +75,8 @@ protected AddBlockRequest(Builder builder) { } /** + * A comma separated list of indices to add a block to + *

* API name: {@code index} */ public String index() { @@ -82,6 +84,8 @@ public String index() { } /** + * The block to add (one of read, write, read_only or metadata) + *

* API name: {@code block} */ public JsonValue block() { @@ -89,6 +93,10 @@ public JsonValue block() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -97,6 +105,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -105,6 +116,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -113,6 +127,8 @@ public Boolean ignoreUnavailable() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -121,6 +137,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -154,6 +172,8 @@ public static class Builder implements ObjectBuilder { private JsonValue timeout; /** + * A comma separated list of indices to add a block to + *

* API name: {@code index} */ public Builder index(String value) { @@ -162,6 +182,8 @@ public Builder index(String value) { } /** + * The block to add (one of read, write, read_only or metadata) + *

* API name: {@code block} */ public Builder block(JsonValue value) { @@ -170,6 +192,10 @@ public Builder block(JsonValue value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -178,6 +204,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -186,6 +215,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -194,6 +226,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -202,6 +236,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java index 7566a5aa6..197ceea3a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/Alias.java @@ -31,9 +31,9 @@ import co.elastic.clients.json.ObjectDeserializer; import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; -import jakarta.json.JsonValue; import jakarta.json.stream.JsonGenerator; import java.lang.Boolean; +import java.lang.String; import java.util.function.Function; import javax.annotation.Nullable; @@ -43,7 +43,7 @@ public final class Alias implements ToJsonp { private final QueryContainer filter; @Nullable - private final JsonValue indexRouting; + private final String indexRouting; @Nullable private final Boolean isHidden; @@ -52,10 +52,10 @@ public final class Alias implements ToJsonp { private final Boolean isWriteIndex; @Nullable - private final JsonValue routing; + private final String routing; @Nullable - private final JsonValue searchRouting; + private final String searchRouting; // --------------------------------------------------------------------------------------------- @@ -82,7 +82,7 @@ public QueryContainer filter() { * API name: {@code index_routing} */ @Nullable - public JsonValue indexRouting() { + public String indexRouting() { return this.indexRouting; } @@ -106,7 +106,7 @@ public Boolean isWriteIndex() { * API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } @@ -114,7 +114,7 @@ public JsonValue routing() { * API name: {@code search_routing} */ @Nullable - public JsonValue searchRouting() { + public String searchRouting() { return this.searchRouting; } @@ -178,7 +178,7 @@ public static class Builder implements ObjectBuilder { private QueryContainer filter; @Nullable - private JsonValue indexRouting; + private String indexRouting; @Nullable private Boolean isHidden; @@ -187,10 +187,10 @@ public static class Builder implements ObjectBuilder { private Boolean isWriteIndex; @Nullable - private JsonValue routing; + private String routing; @Nullable - private JsonValue searchRouting; + private String searchRouting; /** * API name: {@code filter} @@ -210,7 +210,7 @@ public Builder filter(Function op) { op.add(Builder::filter, QueryContainer.DESERIALIZER, "filter"); - op.add(Builder::indexRouting, JsonpDeserializer.jsonValueDeserializer(), "index_routing"); + op.add(Builder::indexRouting, JsonpDeserializer.stringDeserializer(), "index_routing"); op.add(Builder::isHidden, JsonpDeserializer.booleanDeserializer(), "is_hidden"); op.add(Builder::isWriteIndex, JsonpDeserializer.booleanDeserializer(), "is_write_index"); - op.add(Builder::routing, JsonpDeserializer.jsonValueDeserializer(), "routing"); - op.add(Builder::searchRouting, JsonpDeserializer.jsonValueDeserializer(), "search_routing"); + op.add(Builder::routing, JsonpDeserializer.stringDeserializer(), "routing"); + op.add(Builder::searchRouting, JsonpDeserializer.stringDeserializer(), "search_routing"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java index 01398c40e..1aff79487 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/AnalyzeRequest.java @@ -93,6 +93,8 @@ protected AnalyzeRequest(Builder builder) { } /** + * The name of the index to scope the operation + *

* API name: {@code index} */ @Nullable @@ -297,6 +299,8 @@ public static class Builder implements ObjectBuilder { private JsonValue tokenizer; /** + * The name of the index to scope the operation + *

* API name: {@code index} */ public Builder index(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java index 1e1c28ef8..0c93ec7d3 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ClearCacheRequest.java @@ -84,6 +84,8 @@ protected ClearCacheRequest(Builder builder) { } /** + * A comma-separated list of index name to limit the operation + *

* API name: {@code index} */ @Nullable @@ -92,6 +94,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -100,6 +106,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -108,6 +117,8 @@ public JsonValue expandWildcards() { } /** + * Clear field data + *

* API name: {@code fielddata} */ @Nullable @@ -116,6 +127,9 @@ public Boolean fielddata() { } /** + * A comma-separated list of fields to clear when using the + * fielddata parameter (default: all) + *

* API name: {@code fields} */ @Nullable @@ -124,6 +138,9 @@ public List fields() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -132,6 +149,8 @@ public Boolean ignoreUnavailable() { } /** + * Clear query caches + *

* API name: {@code query} */ @Nullable @@ -140,6 +159,8 @@ public Boolean query() { } /** + * Clear request cache + *

* API name: {@code request} */ @Nullable @@ -178,6 +199,8 @@ public static class Builder implements ObjectBuilder { private Boolean request; /** + * A comma-separated list of index name to limit the operation + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -186,6 +209,8 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index name to limit the operation + *

* API name: {@code index} */ public Builder index(String... value) { @@ -205,6 +230,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -213,6 +242,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -221,6 +253,8 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Clear field data + *

* API name: {@code fielddata} */ public Builder fielddata(@Nullable Boolean value) { @@ -229,6 +263,9 @@ public Builder fielddata(@Nullable Boolean value) { } /** + * A comma-separated list of fields to clear when using the + * fielddata parameter (default: all) + *

* API name: {@code fields} */ public Builder fields(@Nullable List value) { @@ -237,6 +274,9 @@ public Builder fields(@Nullable List value) { } /** + * A comma-separated list of fields to clear when using the + * fielddata parameter (default: all) + *

* API name: {@code fields} */ public Builder fields(String... value) { @@ -256,6 +296,9 @@ public Builder addFields(String value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -264,6 +307,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Clear query caches + *

* API name: {@code query} */ public Builder query(@Nullable Boolean value) { @@ -272,6 +317,8 @@ public Builder query(@Nullable Boolean value) { } /** + * Clear request cache + *

* API name: {@code request} */ public Builder request(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneRequest.java index 068151451..7266f8d1c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloneRequest.java @@ -79,6 +79,8 @@ protected CloneRequest(Builder builder) { } /** + * The name of the source index to clone + *

* API name: {@code index} */ public String index() { @@ -86,6 +88,8 @@ public String index() { } /** + * The name of the target index to clone into + *

* API name: {@code target} */ public String target() { @@ -93,6 +97,8 @@ public String target() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -101,6 +107,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -109,6 +117,9 @@ public JsonValue timeout() { } /** + * Set the number of active shards to wait for on the cloned index before the + * operation returns. + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -196,6 +207,8 @@ public static class Builder implements ObjectBuilder { private Map settings; /** + * The name of the source index to clone + *

* API name: {@code index} */ public Builder index(String value) { @@ -204,6 +217,8 @@ public Builder index(String value) { } /** + * The name of the target index to clone into + *

* API name: {@code target} */ public Builder target(String value) { @@ -212,6 +227,8 @@ public Builder target(String value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -220,6 +237,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -228,6 +247,9 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Set the number of active shards to wait for on the cloned index before the + * operation returns. + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseRequest.java index 7a6c700a5..6906889d0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CloseRequest.java @@ -80,6 +80,8 @@ protected CloseRequest(Builder builder) { } /** + * A comma separated list of indices to close + *

* API name: {@code index} */ public List index() { @@ -87,6 +89,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -95,6 +101,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -103,6 +112,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -111,6 +123,8 @@ public Boolean ignoreUnavailable() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -119,6 +133,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -127,6 +143,8 @@ public JsonValue timeout() { } /** + * Sets the number of active shards to wait for before the operation returns. + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -161,6 +179,8 @@ public static class Builder implements ObjectBuilder { private JsonValue waitForActiveShards; /** + * A comma separated list of indices to close + *

* API name: {@code index} */ public Builder index(List value) { @@ -169,6 +189,8 @@ public Builder index(List value) { } /** + * A comma separated list of indices to close + *

* API name: {@code index} */ public Builder index(String... value) { @@ -188,6 +210,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -196,6 +222,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -204,6 +233,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -212,6 +244,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -220,6 +254,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -228,6 +264,8 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Sets the number of active shards to wait for before the operation returns. + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java index 952e5f672..f8610f1e7 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateDataStreamRequest.java @@ -49,6 +49,8 @@ protected CreateDataStreamRequest(Builder builder) { } /** + * The name of the data stream + *

* API name: {@code name} */ public String name() { @@ -64,6 +66,8 @@ public static class Builder implements ObjectBuilder { private String name; /** + * The name of the data stream + *

* API name: {@code name} */ public Builder name(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateRequest.java index b37fbc870..60ab035a8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/CreateRequest.java @@ -85,6 +85,8 @@ protected CreateRequest(Builder builder) { } /** + * The name of the index + *

* API name: {@code index} */ public String index() { @@ -100,6 +102,8 @@ public Boolean includeTypeName() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -108,6 +112,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -116,6 +122,8 @@ public JsonValue timeout() { } /** + * Set the number of active shards to wait for before the operation returns. + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -221,6 +229,8 @@ public static class Builder implements ObjectBuilder { private Map settings; /** + * The name of the index + *

* API name: {@code index} */ public Builder index(String value) { @@ -237,6 +247,8 @@ public Builder includeTypeName(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -245,6 +257,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -253,6 +267,8 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Set the number of active shards to wait for before the operation returns. + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java index 5b1c04c5e..c76fc8b58 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DataStreamsStatsRequest.java @@ -32,7 +32,6 @@ import co.elastic.clients.util.ObjectBuilder; import jakarta.json.JsonValue; import jakarta.json.stream.JsonGenerator; -import java.lang.Boolean; import java.lang.String; import java.util.HashMap; import java.util.Map; @@ -46,20 +45,19 @@ public final class DataStreamsStatsRequest extends RequestBase { @Nullable private final JsonValue expandWildcards; - @Nullable - private final Boolean human; - // --------------------------------------------------------------------------------------------- protected DataStreamsStatsRequest(Builder builder) { this.name = builder.name; this.expandWildcards = builder.expandWildcards; - this.human = builder.human; } /** + * A comma-separated list of data stream names; use _all or empty + * string to perform the operation on all data streams + *

* API name: {@code name} */ @Nullable @@ -75,14 +73,6 @@ public JsonValue expandWildcards() { return this.expandWildcards; } - /** - * API name: {@code human} - */ - @Nullable - public Boolean human() { - return this.human; - } - // --------------------------------------------------------------------------------------------- /** @@ -95,10 +85,10 @@ public static class Builder implements ObjectBuilder { @Nullable private JsonValue expandWildcards; - @Nullable - private Boolean human; - /** + * A comma-separated list of data stream names; use _all or empty + * string to perform the operation on all data streams + *

* API name: {@code name} */ public Builder name(@Nullable String value) { @@ -114,14 +104,6 @@ public Builder expandWildcards(@Nullable JsonValue value) { return this; } - /** - * API name: {@code human} - */ - public Builder human(@Nullable Boolean value) { - this.human = value; - return this; - } - /** * Builds a {@link DataStreamsStatsRequest}. * @@ -179,9 +161,6 @@ public DataStreamsStatsRequest build() { if (request.expandWildcards != null) { params.put("expand_wildcards", request.expandWildcards.toString()); } - if (request.human != null) { - params.put("human", String.valueOf(request.human)); - } return params; }, Endpoint.Simple.emptyMap(), false, DataStreamsStatsResponse.DESERIALIZER); diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java index 4e4a5e1ea..c0b646c48 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteAliasRequest.java @@ -66,6 +66,9 @@ protected DeleteAliasRequest(Builder builder) { } /** + * A comma-separated list of index names (supports wildcards); use + * _all for all indices + *

* API name: {@code index} */ public List index() { @@ -73,6 +76,9 @@ public List index() { } /** + * A comma-separated list of aliases to delete (supports wildcards); use + * _all to delete all aliases for the specified indices. + *

* API name: {@code name} */ public List name() { @@ -80,6 +86,8 @@ public List name() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -88,6 +96,8 @@ public JsonValue masterTimeout() { } /** + * Explicit timestamp for the document + *

* API name: {@code timeout} */ @Nullable @@ -112,6 +122,9 @@ public static class Builder implements ObjectBuilder { private JsonValue timeout; /** + * A comma-separated list of index names (supports wildcards); use + * _all for all indices + *

* API name: {@code index} */ public Builder index(List value) { @@ -120,6 +133,9 @@ public Builder index(List value) { } /** + * A comma-separated list of index names (supports wildcards); use + * _all for all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -139,6 +155,9 @@ public Builder addIndex(String value) { } /** + * A comma-separated list of aliases to delete (supports wildcards); use + * _all to delete all aliases for the specified indices. + *

* API name: {@code name} */ public Builder name(List value) { @@ -147,6 +166,9 @@ public Builder name(List value) { } /** + * A comma-separated list of aliases to delete (supports wildcards); use + * _all to delete all aliases for the specified indices. + *

* API name: {@code name} */ public Builder name(String... value) { @@ -166,6 +188,8 @@ public Builder addName(String value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -174,6 +198,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit timestamp for the document + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java index d47754f05..e550373a6 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteDataStreamRequest.java @@ -49,6 +49,9 @@ protected DeleteDataStreamRequest(Builder builder) { } /** + * A comma-separated list of data streams to delete; use * to + * delete all data streams + *

* API name: {@code name} */ public String name() { @@ -64,6 +67,9 @@ public static class Builder implements ObjectBuilder { private String name; /** + * A comma-separated list of data streams to delete; use * to + * delete all data streams + *

* API name: {@code name} */ public Builder name(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java index 964150329..42cbcc6d9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteIndexTemplateRequest.java @@ -49,6 +49,8 @@ protected DeleteIndexTemplateRequest(Builder builder) { } /** + * The name of the template + *

* API name: {@code name} */ public String name() { @@ -64,6 +66,8 @@ public static class Builder implements ObjectBuilder private String name; /** + * The name of the template + *

* API name: {@code name} */ public Builder name(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteRequest.java index a42de3184..91d0ec002 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteRequest.java @@ -76,6 +76,9 @@ protected DeleteRequest(Builder builder) { } /** + * A comma-separated list of indices to delete; use _all or + * * string to delete all indices + *

* API name: {@code index} */ public List index() { @@ -83,6 +86,9 @@ public List index() { } /** + * Ignore if a wildcard expression resolves to no concrete indices (default: + * false) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -91,6 +97,9 @@ public Boolean allowNoIndices() { } /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

* API name: {@code expand_wildcards} */ @Nullable @@ -99,6 +108,8 @@ public JsonValue expandWildcards() { } /** + * Ignore unavailable indexes (default: false) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -107,6 +118,8 @@ public Boolean ignoreUnavailable() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -115,6 +128,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -146,6 +161,9 @@ public static class Builder implements ObjectBuilder { private JsonValue timeout; /** + * A comma-separated list of indices to delete; use _all or + * * string to delete all indices + *

* API name: {@code index} */ public Builder index(List value) { @@ -154,6 +172,9 @@ public Builder index(List value) { } /** + * A comma-separated list of indices to delete; use _all or + * * string to delete all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -173,6 +194,9 @@ public Builder addIndex(String value) { } /** + * Ignore if a wildcard expression resolves to no concrete indices (default: + * false) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -181,6 +205,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -189,6 +216,8 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Ignore unavailable indexes (default: false) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -197,6 +226,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -205,6 +236,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java index 1da6b765a..849f64eb0 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/DeleteTemplateRequest.java @@ -59,6 +59,8 @@ protected DeleteTemplateRequest(Builder builder) { } /** + * The name of the template + *

* API name: {@code name} */ public String name() { @@ -66,6 +68,8 @@ public String name() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -74,6 +78,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -96,6 +102,8 @@ public static class Builder implements ObjectBuilder { private JsonValue timeout; /** + * The name of the template + *

* API name: {@code name} */ public Builder name(String value) { @@ -104,6 +112,8 @@ public Builder name(String value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -112,6 +122,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java index 81d027f18..1831b8655 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsAliasRequest.java @@ -77,6 +77,8 @@ protected ExistsAliasRequest(Builder builder) { } /** + * A comma-separated list of alias names to return + *

* API name: {@code name} */ public List name() { @@ -84,6 +86,8 @@ public List name() { } /** + * A comma-separated list of index names to filter aliases + *

* API name: {@code index} */ @Nullable @@ -92,6 +96,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -100,6 +108,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -108,6 +119,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -116,6 +130,9 @@ public Boolean ignoreUnavailable() { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ @Nullable @@ -147,6 +164,8 @@ public static class Builder implements ObjectBuilder { private Boolean local; /** + * A comma-separated list of alias names to return + *

* API name: {@code name} */ public Builder name(List value) { @@ -155,6 +174,8 @@ public Builder name(List value) { } /** + * A comma-separated list of alias names to return + *

* API name: {@code name} */ public Builder name(String... value) { @@ -174,6 +195,8 @@ public Builder addName(String value) { } /** + * A comma-separated list of index names to filter aliases + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -182,6 +205,8 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names to filter aliases + *

* API name: {@code index} */ public Builder index(String... value) { @@ -201,6 +226,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -209,6 +238,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -217,6 +249,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -225,6 +260,9 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java index 12a3f6a07..9647857f2 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsRequest.java @@ -81,6 +81,8 @@ protected ExistsRequest(Builder builder) { } /** + * A comma-separated list of index names + *

* API name: {@code index} */ public List index() { @@ -88,6 +90,9 @@ public List index() { } /** + * Ignore if a wildcard expression resolves to no concrete indices (default: + * false) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -96,6 +101,9 @@ public Boolean allowNoIndices() { } /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

* API name: {@code expand_wildcards} */ @Nullable @@ -104,6 +112,8 @@ public JsonValue expandWildcards() { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ @Nullable @@ -112,6 +122,8 @@ public Boolean flatSettings() { } /** + * Ignore unavailable indexes (default: false) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -120,6 +132,8 @@ public Boolean ignoreUnavailable() { } /** + * Whether to return all default setting for each of the indices. + *

* API name: {@code include_defaults} */ @Nullable @@ -128,6 +142,9 @@ public Boolean includeDefaults() { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ @Nullable @@ -162,6 +179,8 @@ public static class Builder implements ObjectBuilder { private Boolean local; /** + * A comma-separated list of index names + *

* API name: {@code index} */ public Builder index(List value) { @@ -170,6 +189,8 @@ public Builder index(List value) { } /** + * A comma-separated list of index names + *

* API name: {@code index} */ public Builder index(String... value) { @@ -189,6 +210,9 @@ public Builder addIndex(String value) { } /** + * Ignore if a wildcard expression resolves to no concrete indices (default: + * false) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -197,6 +221,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -205,6 +232,8 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ public Builder flatSettings(@Nullable Boolean value) { @@ -213,6 +242,8 @@ public Builder flatSettings(@Nullable Boolean value) { } /** + * Ignore unavailable indexes (default: false) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -221,6 +252,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Whether to return all default setting for each of the indices. + *

* API name: {@code include_defaults} */ public Builder includeDefaults(@Nullable Boolean value) { @@ -229,6 +262,9 @@ public Builder includeDefaults(@Nullable Boolean value) { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java index e9f50cbef..300e43d2b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTemplateRequest.java @@ -69,6 +69,8 @@ protected ExistsTemplateRequest(Builder builder) { } /** + * The comma separated names of the index templates + *

* API name: {@code name} */ public List name() { @@ -76,6 +78,8 @@ public List name() { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ @Nullable @@ -84,6 +88,9 @@ public Boolean flatSettings() { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ @Nullable @@ -92,6 +99,8 @@ public Boolean local() { } /** + * Explicit operation timeout for connection to master node + *

* API name: {@code master_timeout} */ @Nullable @@ -117,6 +126,8 @@ public static class Builder implements ObjectBuilder { private JsonValue masterTimeout; /** + * The comma separated names of the index templates + *

* API name: {@code name} */ public Builder name(List value) { @@ -125,6 +136,8 @@ public Builder name(List value) { } /** + * The comma separated names of the index templates + *

* API name: {@code name} */ public Builder name(String... value) { @@ -144,6 +157,8 @@ public Builder addName(String value) { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ public Builder flatSettings(@Nullable Boolean value) { @@ -152,6 +167,9 @@ public Builder flatSettings(@Nullable Boolean value) { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { @@ -160,6 +178,8 @@ public Builder local(@Nullable Boolean value) { } /** + * Explicit operation timeout for connection to master node + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTypeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTypeRequest.java index ce6ae3d49..23c8973ff 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTypeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ExistsTypeRequest.java @@ -76,6 +76,9 @@ protected ExistsTypeRequest(Builder builder) { } /** + * A comma-separated list of index names; use _all to check the + * types across all indices + *

* API name: {@code index} */ public List index() { @@ -83,6 +86,8 @@ public List index() { } /** + * A comma-separated list of document types to check + *

* API name: {@code type} */ public List type() { @@ -90,6 +95,10 @@ public List type() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -98,6 +107,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -106,6 +118,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -114,6 +129,9 @@ public Boolean ignoreUnavailable() { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ @Nullable @@ -144,6 +162,9 @@ public static class Builder implements ObjectBuilder { private Boolean local; /** + * A comma-separated list of index names; use _all to check the + * types across all indices + *

* API name: {@code index} */ public Builder index(List value) { @@ -152,6 +173,9 @@ public Builder index(List value) { } /** + * A comma-separated list of index names; use _all to check the + * types across all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -171,6 +195,8 @@ public Builder addIndex(String value) { } /** + * A comma-separated list of document types to check + *

* API name: {@code type} */ public Builder type(List value) { @@ -179,6 +205,8 @@ public Builder type(List value) { } /** + * A comma-separated list of document types to check + *

* API name: {@code type} */ public Builder type(String... value) { @@ -198,6 +226,10 @@ public Builder addType(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -206,6 +238,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -214,6 +249,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -222,6 +260,9 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java index b0528d148..52f3b2142 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FlushRequest.java @@ -76,6 +76,9 @@ protected FlushRequest(Builder builder) { } /** + * A comma-separated list of index names; use _all or empty string + * for all indices + *

* API name: {@code index} */ @Nullable @@ -84,6 +87,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -92,6 +99,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -100,6 +110,11 @@ public JsonValue expandWildcards() { } /** + * Whether a flush should be forced even if it is not necessarily needed ie. if + * no changes will be committed to the index. This is useful if transaction log + * IDs should be incremented even if no uncommitted changes are present. (This + * setting can be considered as internal) + *

* API name: {@code force} */ @Nullable @@ -108,6 +123,9 @@ public Boolean force() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -116,6 +134,11 @@ public Boolean ignoreUnavailable() { } /** + * If set to true the flush operation will block until the flush can be executed + * if another flush operation is already executing. The default is true. If set + * to false the flush will be skipped iff if another flush operation is already + * running. + *

* API name: {@code wait_if_ongoing} */ @Nullable @@ -148,6 +171,9 @@ public static class Builder implements ObjectBuilder { private Boolean waitIfOngoing; /** + * A comma-separated list of index names; use _all or empty string + * for all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -156,6 +182,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names; use _all or empty string + * for all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -175,6 +204,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -183,6 +216,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -191,6 +227,11 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether a flush should be forced even if it is not necessarily needed ie. if + * no changes will be committed to the index. This is useful if transaction log + * IDs should be incremented even if no uncommitted changes are present. (This + * setting can be considered as internal) + *

* API name: {@code force} */ public Builder force(@Nullable Boolean value) { @@ -199,6 +240,9 @@ public Builder force(@Nullable Boolean value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -207,6 +251,11 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * If set to true the flush operation will block until the flush can be executed + * if another flush operation is already executing. The default is true. If set + * to false the flush will be skipped iff if another flush operation is already + * running. + *

* API name: {@code wait_if_ongoing} */ public Builder waitIfOngoing(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java index aa6573fae..181300108 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ForcemergeRequest.java @@ -81,6 +81,9 @@ protected ForcemergeRequest(Builder builder) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -89,6 +92,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -97,6 +104,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -105,6 +115,9 @@ public JsonValue expandWildcards() { } /** + * Specify whether the index should be flushed after performing the operation + * (default: true) + *

* API name: {@code flush} */ @Nullable @@ -113,6 +126,9 @@ public Boolean flush() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -121,6 +137,8 @@ public Boolean ignoreUnavailable() { } /** + * The number of segments the index should be merged into (default: dynamic) + *

* API name: {@code max_num_segments} */ @Nullable @@ -129,6 +147,8 @@ public Number maxNumSegments() { } /** + * Specify whether the operation should only expunge deleted documents + *

* API name: {@code only_expunge_deletes} */ @Nullable @@ -164,6 +184,9 @@ public static class Builder implements ObjectBuilder { private Boolean onlyExpungeDeletes; /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -172,6 +195,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -191,6 +217,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -199,6 +229,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -207,6 +240,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Specify whether the index should be flushed after performing the operation + * (default: true) + *

* API name: {@code flush} */ public Builder flush(@Nullable Boolean value) { @@ -215,6 +251,9 @@ public Builder flush(@Nullable Boolean value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -223,6 +262,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * The number of segments the index should be merged into (default: dynamic) + *

* API name: {@code max_num_segments} */ public Builder maxNumSegments(@Nullable Number value) { @@ -231,6 +272,8 @@ public Builder maxNumSegments(@Nullable Number value) { } /** + * Specify whether the operation should only expunge deleted documents + *

* API name: {@code only_expunge_deletes} */ public Builder onlyExpungeDeletes(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FreezeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FreezeRequest.java index 00e8eb77f..01e45f3ba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FreezeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/FreezeRequest.java @@ -76,6 +76,8 @@ protected FreezeRequest(Builder builder) { } /** + * The name of the index to freeze + *

* API name: {@code index} */ public String index() { @@ -83,6 +85,10 @@ public String index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -91,6 +97,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -99,6 +108,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -107,6 +119,8 @@ public Boolean ignoreUnavailable() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -115,6 +129,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -123,6 +139,8 @@ public JsonValue timeout() { } /** + * Sets the number of active shards to wait for before the operation returns. + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -157,6 +175,8 @@ public static class Builder implements ObjectBuilder { private JsonValue waitForActiveShards; /** + * The name of the index to freeze + *

* API name: {@code index} */ public Builder index(String value) { @@ -165,6 +185,10 @@ public Builder index(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -173,6 +197,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -181,6 +208,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -189,6 +219,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -197,6 +229,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -205,6 +239,8 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Sets the number of active shards to wait for before the operation returns. + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java index 6d45f810f..8ca7d238e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetAliasRequest.java @@ -76,6 +76,8 @@ protected GetAliasRequest(Builder builder) { } /** + * A comma-separated list of alias names to return + *

* API name: {@code name} */ @Nullable @@ -84,6 +86,8 @@ public List name() { } /** + * A comma-separated list of index names to filter aliases + *

* API name: {@code index} */ @Nullable @@ -92,6 +96,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -100,6 +108,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -108,6 +119,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -116,6 +130,9 @@ public Boolean ignoreUnavailable() { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ @Nullable @@ -148,6 +165,8 @@ public static class Builder implements ObjectBuilder { private Boolean local; /** + * A comma-separated list of alias names to return + *

* API name: {@code name} */ public Builder name(@Nullable List value) { @@ -156,6 +175,8 @@ public Builder name(@Nullable List value) { } /** + * A comma-separated list of alias names to return + *

* API name: {@code name} */ public Builder name(String... value) { @@ -175,6 +196,8 @@ public Builder addName(String value) { } /** + * A comma-separated list of index names to filter aliases + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -183,6 +206,8 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names to filter aliases + *

* API name: {@code index} */ public Builder index(String... value) { @@ -202,6 +227,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -210,6 +239,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -218,6 +250,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -226,6 +261,9 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java index 785432f23..8203f037c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetDataStreamRequest.java @@ -55,6 +55,9 @@ protected GetDataStreamRequest(Builder builder) { } /** + * A comma-separated list of data streams to get; use * to get all + * data streams + *

* API name: {@code name} */ @Nullable @@ -63,6 +66,9 @@ public String name() { } /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

* API name: {@code expand_wildcards} */ @Nullable @@ -83,6 +89,9 @@ public static class Builder implements ObjectBuilder { private JsonValue expandWildcards; /** + * A comma-separated list of data streams to get; use * to get all + * data streams + *

* API name: {@code name} */ public Builder name(@Nullable String value) { @@ -91,6 +100,9 @@ public Builder name(@Nullable String value) { } /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java index 5a4361823..285361330 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetFieldMappingRequest.java @@ -50,9 +50,6 @@ public final class GetFieldMappingRequest extends RequestBase { @Nullable private final List index; - @Nullable - private final List type; - @Nullable private final Boolean allowNoIndices; @@ -77,7 +74,6 @@ protected GetFieldMappingRequest(Builder builder) { this.fields = Objects.requireNonNull(builder.fields, "fields"); this.index = builder.index; - this.type = builder.type; this.allowNoIndices = builder.allowNoIndices; this.expandWildcards = builder.expandWildcards; this.ignoreUnavailable = builder.ignoreUnavailable; @@ -88,6 +84,8 @@ protected GetFieldMappingRequest(Builder builder) { } /** + * A comma-separated list of fields + *

* API name: {@code fields} */ public List fields() { @@ -95,6 +93,8 @@ public List fields() { } /** + * A comma-separated list of index names + *

* API name: {@code index} */ @Nullable @@ -103,14 +103,10 @@ public List index() { } /** - * API name: {@code type} - */ - @Nullable - public List type() { - return this.type; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -119,6 +115,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -127,6 +126,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -135,6 +137,8 @@ public Boolean ignoreUnavailable() { } /** + * Whether the default mapping values should be returned as well + *

* API name: {@code include_defaults} */ @Nullable @@ -151,6 +155,9 @@ public Boolean includeTypeName() { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ @Nullable @@ -169,9 +176,6 @@ public static class Builder implements ObjectBuilder { @Nullable private List index; - @Nullable - private List type; - @Nullable private Boolean allowNoIndices; @@ -191,6 +195,8 @@ public static class Builder implements ObjectBuilder { private Boolean local; /** + * A comma-separated list of fields + *

* API name: {@code fields} */ public Builder fields(List value) { @@ -199,6 +205,8 @@ public Builder fields(List value) { } /** + * A comma-separated list of fields + *

* API name: {@code fields} */ public Builder fields(String... value) { @@ -218,6 +226,8 @@ public Builder addFields(String value) { } /** + * A comma-separated list of index names + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -226,6 +236,8 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names + *

* API name: {@code index} */ public Builder index(String... value) { @@ -245,33 +257,10 @@ public Builder addIndex(String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable List value) { - this.type = value; - return this; - } - - /** - * API name: {@code type} - */ - public Builder type(String... value) { - this.type = Arrays.asList(value); - return this; - } - - /** - * Add a value to {@link #type(List)}, creating the list if needed. - */ - public Builder addType(String value) { - if (this.type == null) { - this.type = new ArrayList<>(); - } - this.type.add(value); - return this; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -280,6 +269,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -288,6 +280,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -296,6 +291,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Whether the default mapping values should be returned as well + *

* API name: {@code include_defaults} */ public Builder includeDefaults(@Nullable Boolean value) { @@ -312,6 +309,9 @@ public Builder includeTypeName(@Nullable Boolean value) { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { @@ -347,7 +347,6 @@ public GetFieldMappingRequest build() { request -> { final int _fields = 1 << 0; final int _index = 1 << 1; - final int _type = 1 << 2; int propsSet = 0; @@ -355,8 +354,6 @@ public GetFieldMappingRequest build() { propsSet |= _fields; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == (_fields)) { StringBuilder buf = new StringBuilder(); @@ -376,28 +373,6 @@ public GetFieldMappingRequest build() { buf.append(request.fields.stream().map(v -> v).collect(Collectors.joining(","))); return buf.toString(); } - if (propsSet == (_type | _fields)) { - StringBuilder buf = new StringBuilder(); - buf.append("/_mapping"); - buf.append("/"); - buf.append(request.type.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/field"); - buf.append("/"); - buf.append(request.fields.stream().map(v -> v).collect(Collectors.joining(","))); - return buf.toString(); - } - if (propsSet == (_index | _type | _fields)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/_mapping"); - buf.append("/"); - buf.append(request.type.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/field"); - buf.append("/"); - buf.append(request.fields.stream().map(v -> v).collect(Collectors.joining(","))); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java index de1b68136..e4769469e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetMappingRequest.java @@ -47,9 +47,6 @@ public final class GetMappingRequest extends RequestBase { @Nullable private final List index; - @Nullable - private final List type; - @Nullable private final Boolean allowNoIndices; @@ -73,7 +70,6 @@ public final class GetMappingRequest extends RequestBase { protected GetMappingRequest(Builder builder) { this.index = builder.index; - this.type = builder.type; this.allowNoIndices = builder.allowNoIndices; this.expandWildcards = builder.expandWildcards; this.ignoreUnavailable = builder.ignoreUnavailable; @@ -84,6 +80,8 @@ protected GetMappingRequest(Builder builder) { } /** + * A comma-separated list of index names + *

* API name: {@code index} */ @Nullable @@ -92,14 +90,10 @@ public List index() { } /** - * API name: {@code type} - */ - @Nullable - public List type() { - return this.type; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -108,6 +102,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -116,6 +113,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -132,6 +132,9 @@ public Boolean includeTypeName() { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ @Nullable @@ -140,6 +143,8 @@ public Boolean local() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -156,9 +161,6 @@ public static class Builder implements ObjectBuilder { @Nullable private List index; - @Nullable - private List type; - @Nullable private Boolean allowNoIndices; @@ -178,6 +180,8 @@ public static class Builder implements ObjectBuilder { private JsonValue masterTimeout; /** + * A comma-separated list of index names + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -186,6 +190,8 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names + *

* API name: {@code index} */ public Builder index(String... value) { @@ -205,33 +211,10 @@ public Builder addIndex(String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable List value) { - this.type = value; - return this; - } - - /** - * API name: {@code type} - */ - public Builder type(String... value) { - this.type = Arrays.asList(value); - return this; - } - - /** - * Add a value to {@link #type(List)}, creating the list if needed. - */ - public Builder addType(String value) { - if (this.type == null) { - this.type = new ArrayList<>(); - } - this.type.add(value); - return this; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -240,6 +223,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -248,6 +234,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -264,6 +253,9 @@ public Builder includeTypeName(@Nullable Boolean value) { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { @@ -272,6 +264,8 @@ public Builder local(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -306,14 +300,11 @@ public GetMappingRequest build() { // Request path request -> { final int _index = 1 << 0; - final int _type = 1 << 1; int propsSet = 0; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == 0) { StringBuilder buf = new StringBuilder(); @@ -327,22 +318,6 @@ public GetMappingRequest build() { buf.append("/_mapping"); return buf.toString(); } - if (propsSet == (_type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/_mapping"); - buf.append("/"); - buf.append(request.type.stream().map(v -> v).collect(Collectors.joining(","))); - return buf.toString(); - } - if (propsSet == (_index | _type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/_mapping"); - buf.append("/"); - buf.append(request.type.stream().map(v -> v).collect(Collectors.joining(","))); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetRequest.java index 014b71218..f5f6df2ec 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetRequest.java @@ -98,6 +98,9 @@ public List index() { } /** + * Ignore if a wildcard expression resolves to no concrete indices (default: + * false) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -245,6 +248,9 @@ public Builder addIndex(String value) { } /** + * Ignore if a wildcard expression resolves to no concrete indices (default: + * false) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSettingsRequest.java index fc9a1c8fa..a8dd14527 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetSettingsRequest.java @@ -88,6 +88,9 @@ protected GetSettingsRequest(Builder builder) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -96,6 +99,8 @@ public List index() { } /** + * The name of the settings that should be included + *

* API name: {@code name} */ @Nullable @@ -104,6 +109,10 @@ public List name() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -112,6 +121,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -120,6 +132,8 @@ public JsonValue expandWildcards() { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ @Nullable @@ -128,6 +142,9 @@ public Boolean flatSettings() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -136,6 +153,8 @@ public Boolean ignoreUnavailable() { } /** + * Whether to return all default setting for each of the indices. + *

* API name: {@code include_defaults} */ @Nullable @@ -144,6 +163,9 @@ public Boolean includeDefaults() { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ @Nullable @@ -152,6 +174,8 @@ public Boolean local() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -193,6 +217,9 @@ public static class Builder implements ObjectBuilder { private JsonValue masterTimeout; /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -201,6 +228,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -220,6 +250,8 @@ public Builder addIndex(String value) { } /** + * The name of the settings that should be included + *

* API name: {@code name} */ public Builder name(@Nullable List value) { @@ -228,6 +260,8 @@ public Builder name(@Nullable List value) { } /** + * The name of the settings that should be included + *

* API name: {@code name} */ public Builder name(String... value) { @@ -247,6 +281,10 @@ public Builder addName(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -255,6 +293,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -263,6 +304,8 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ public Builder flatSettings(@Nullable Boolean value) { @@ -271,6 +314,9 @@ public Builder flatSettings(@Nullable Boolean value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -279,6 +325,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Whether to return all default setting for each of the indices. + *

* API name: {@code include_defaults} */ public Builder includeDefaults(@Nullable Boolean value) { @@ -287,6 +335,9 @@ public Builder includeDefaults(@Nullable Boolean value) { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { @@ -295,6 +346,8 @@ public Builder local(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java index 97befcc0f..38f54f56a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/GetTemplateRequest.java @@ -72,6 +72,8 @@ protected GetTemplateRequest(Builder builder) { } /** + * The comma separated names of the index templates + *

* API name: {@code name} */ @Nullable @@ -80,6 +82,8 @@ public List name() { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ @Nullable @@ -96,6 +100,9 @@ public Boolean includeTypeName() { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ @Nullable @@ -104,6 +111,8 @@ public Boolean local() { } /** + * Explicit operation timeout for connection to master node + *

* API name: {@code master_timeout} */ @Nullable @@ -133,6 +142,8 @@ public static class Builder implements ObjectBuilder { private JsonValue masterTimeout; /** + * The comma separated names of the index templates + *

* API name: {@code name} */ public Builder name(@Nullable List value) { @@ -141,6 +152,8 @@ public Builder name(@Nullable List value) { } /** + * The comma separated names of the index templates + *

* API name: {@code name} */ public Builder name(String... value) { @@ -160,6 +173,8 @@ public Builder addName(String value) { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ public Builder flatSettings(@Nullable Boolean value) { @@ -176,6 +191,9 @@ public Builder includeTypeName(@Nullable Boolean value) { } /** + * Return local information, do not retrieve the state from master node + * (default: false) + *

* API name: {@code local} */ public Builder local(@Nullable Boolean value) { @@ -184,6 +202,8 @@ public Builder local(@Nullable Boolean value) { } /** + * Explicit operation timeout for connection to master node + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java index e4ef6829a..9ea027e7b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/IndexSettings.java @@ -216,8 +216,6 @@ protected IndexSettings(AbstractBuilder builder) { } /** - * server_default 1 - *

* API name: {@code number_of_shards} */ @Nullable @@ -226,8 +224,6 @@ public JsonValue numberOfShards() { } /** - * server_default 0 - *

* API name: {@code number_of_replicas} */ @Nullable @@ -260,8 +256,6 @@ public String codec() { } /** - * server_default 1 - *

* API name: {@code routing_partition_size} */ @Nullable @@ -286,8 +280,6 @@ public Boolean loadFixedBitsetFiltersEagerly() { } /** - * server_default false - *

* API name: {@code hidden} */ @Nullable @@ -976,8 +968,6 @@ protected abstract static class AbstractBuilder * API name: {@code number_of_shards} */ public BuilderT numberOfShards(@Nullable JsonValue value) { @@ -986,8 +976,6 @@ public BuilderT numberOfShards(@Nullable JsonValue value) { } /** - * server_default 0 - *

* API name: {@code number_of_replicas} */ public BuilderT numberOfReplicas(@Nullable JsonValue value) { @@ -1020,8 +1008,6 @@ public BuilderT codec(@Nullable String value) { } /** - * server_default 1 - *

* API name: {@code routing_partition_size} */ public BuilderT routingPartitionSize(@Nullable JsonValue value) { @@ -1046,8 +1032,6 @@ public BuilderT loadFixedBitsetFiltersEagerly(@Nullable Boolean value) { } /** - * server_default false - *

* API name: {@code hidden} */ public BuilderT hidden(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java index 0505f7ac1..01a29819f 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/MigrateToDataStreamRequest.java @@ -49,6 +49,8 @@ protected MigrateToDataStreamRequest(Builder builder) { } /** + * The name of the alias to migrate + *

* API name: {@code name} */ public String name() { @@ -64,6 +66,8 @@ public static class Builder implements ObjectBuilder private String name; /** + * The name of the alias to migrate + *

* API name: {@code name} */ public Builder name(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java index 0ff659103..d4ad50d1a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/OpenRequest.java @@ -80,6 +80,8 @@ protected OpenRequest(Builder builder) { } /** + * A comma separated list of indices to open + *

* API name: {@code index} */ public List index() { @@ -87,6 +89,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -95,6 +101,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -103,6 +112,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -111,6 +123,8 @@ public Boolean ignoreUnavailable() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -119,6 +133,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -127,6 +143,8 @@ public JsonValue timeout() { } /** + * Sets the number of active shards to wait for before the operation returns. + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -161,6 +179,8 @@ public static class Builder implements ObjectBuilder { private JsonValue waitForActiveShards; /** + * A comma separated list of indices to open + *

* API name: {@code index} */ public Builder index(List value) { @@ -169,6 +189,8 @@ public Builder index(List value) { } /** + * A comma separated list of indices to open + *

* API name: {@code index} */ public Builder index(String... value) { @@ -188,6 +210,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -196,6 +222,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -204,6 +233,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -212,6 +244,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -220,6 +254,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -228,6 +264,8 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Sets the number of active shards to wait for before the operation returns. + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java index cb4d2ec97..6eb7c11c8 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PromoteDataStreamRequest.java @@ -49,6 +49,8 @@ protected PromoteDataStreamRequest(Builder builder) { } /** + * The name of the data stream + *

* API name: {@code name} */ public String name() { @@ -64,6 +66,8 @@ public static class Builder implements ObjectBuilder { private String name; /** + * The name of the data stream + *

* API name: {@code name} */ public Builder name(String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java index 10ca7f286..0a92724fb 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutAliasRequest.java @@ -64,16 +64,16 @@ public final class PutAliasRequest extends RequestBase implements ToJsonp { private final QueryContainer filter; @Nullable - private final JsonValue indexRouting; + private final String indexRouting; @Nullable private final Boolean isWriteIndex; @Nullable - private final JsonValue routing; + private final String routing; @Nullable - private final JsonValue searchRouting; + private final String searchRouting; // --------------------------------------------------------------------------------------------- @@ -92,6 +92,9 @@ protected PutAliasRequest(Builder builder) { } /** + * A comma-separated list of index names the alias should point to (supports + * wildcards); use _all to perform the operation on all indices. + *

* API name: {@code index} */ public List index() { @@ -99,6 +102,8 @@ public List index() { } /** + * The name of the alias to be created or updated + *

* API name: {@code name} */ public String name() { @@ -106,6 +111,8 @@ public String name() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -114,6 +121,8 @@ public JsonValue masterTimeout() { } /** + * Explicit timestamp for the document + *

* API name: {@code timeout} */ @Nullable @@ -133,7 +142,7 @@ public QueryContainer filter() { * API name: {@code index_routing} */ @Nullable - public JsonValue indexRouting() { + public String indexRouting() { return this.indexRouting; } @@ -149,7 +158,7 @@ public Boolean isWriteIndex() { * API name: {@code routing} */ @Nullable - public JsonValue routing() { + public String routing() { return this.routing; } @@ -157,7 +166,7 @@ public JsonValue routing() { * API name: {@code search_routing} */ @Nullable - public JsonValue searchRouting() { + public String searchRouting() { return this.searchRouting; } @@ -225,18 +234,21 @@ public static class Builder implements ObjectBuilder { private QueryContainer filter; @Nullable - private JsonValue indexRouting; + private String indexRouting; @Nullable private Boolean isWriteIndex; @Nullable - private JsonValue routing; + private String routing; @Nullable - private JsonValue searchRouting; + private String searchRouting; /** + * A comma-separated list of index names the alias should point to (supports + * wildcards); use _all to perform the operation on all indices. + *

* API name: {@code index} */ public Builder index(List value) { @@ -245,6 +257,9 @@ public Builder index(List value) { } /** + * A comma-separated list of index names the alias should point to (supports + * wildcards); use _all to perform the operation on all indices. + *

* API name: {@code index} */ public Builder index(String... value) { @@ -264,6 +279,8 @@ public Builder addIndex(String value) { } /** + * The name of the alias to be created or updated + *

* API name: {@code name} */ public Builder name(String value) { @@ -272,6 +289,8 @@ public Builder name(String value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -280,6 +299,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit timestamp for the document + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -305,7 +326,7 @@ public Builder filter(Function op) { op.add(Builder::filter, QueryContainer.DESERIALIZER, "filter"); - op.add(Builder::indexRouting, JsonpDeserializer.jsonValueDeserializer(), "index_routing"); + op.add(Builder::indexRouting, JsonpDeserializer.stringDeserializer(), "index_routing"); op.add(Builder::isWriteIndex, JsonpDeserializer.booleanDeserializer(), "is_write_index"); - op.add(Builder::routing, JsonpDeserializer.jsonValueDeserializer(), "routing"); - op.add(Builder::searchRouting, JsonpDeserializer.jsonValueDeserializer(), "search_routing"); + op.add(Builder::routing, JsonpDeserializer.stringDeserializer(), "routing"); + op.add(Builder::searchRouting, JsonpDeserializer.stringDeserializer(), "search_routing"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java index f0d58eb28..24d986694 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutMappingRequest.java @@ -51,18 +51,15 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Objects; import java.util.function.Function; import java.util.stream.Collectors; import javax.annotation.Nullable; // typedef: indices.put_mapping.Request public final class PutMappingRequest extends RequestBase implements ToJsonp { - @Nullable private final List index; - @Nullable - private final String type; - @Nullable private final Boolean allowNoIndices; @@ -130,8 +127,7 @@ public final class PutMappingRequest extends RequestBase implements ToJsonp { protected PutMappingRequest(Builder builder) { - this.index = builder.index; - this.type = builder.type; + this.index = Objects.requireNonNull(builder.index, "index"); this.allowNoIndices = builder.allowNoIndices; this.expandWildcards = builder.expandWildcards; this.ignoreUnavailable = builder.ignoreUnavailable; @@ -157,22 +153,21 @@ protected PutMappingRequest(Builder builder) { } /** + * A comma-separated list of index names the mapping should be added to + * (supports wildcards); use _all or omit to add the mapping on all + * indices. + *

* API name: {@code index} */ - @Nullable public List index() { return this.index; } /** - * API name: {@code type} - */ - @Nullable - public String type() { - return this.type; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -181,6 +176,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -189,6 +187,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -205,6 +206,8 @@ public Boolean includeTypeName() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -213,6 +216,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -221,6 +226,9 @@ public JsonValue timeout() { } /** + * When true, applies mappings only to the write index of an alias or data + * stream + *

* API name: {@code write_index_only} */ @Nullable @@ -478,12 +486,8 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link PutMappingRequest}. */ public static class Builder implements ObjectBuilder { - @Nullable private List index; - @Nullable - private String type; - @Nullable private Boolean allowNoIndices; @@ -548,14 +552,22 @@ public static class Builder implements ObjectBuilder { private Map runtime; /** + * A comma-separated list of index names the mapping should be added to + * (supports wildcards); use _all or omit to add the mapping on all + * indices. + *

* API name: {@code index} */ - public Builder index(@Nullable List value) { + public Builder index(List value) { this.index = value; return this; } /** + * A comma-separated list of index names the mapping should be added to + * (supports wildcards); use _all or omit to add the mapping on all + * indices. + *

* API name: {@code index} */ public Builder index(String... value) { @@ -575,14 +587,10 @@ public Builder addIndex(String value) { } /** - * API name: {@code type} - */ - public Builder type(@Nullable String value) { - this.type = value; - return this; - } - - /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -591,6 +599,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -599,6 +610,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -615,6 +629,8 @@ public Builder includeTypeName(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -623,6 +639,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -631,6 +649,9 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * When true, applies mappings only to the write index of an alias or data + * stream + *

* API name: {@code write_index_only} */ public Builder writeIndexOnly(@Nullable Boolean value) { @@ -936,14 +957,11 @@ protected static void setupPutMappingRequestDeserializer(DelegatingDeserializer< // Request path request -> { final int _index = 1 << 0; - final int _type = 1 << 1; int propsSet = 0; if (request.index() != null) propsSet |= _index; - if (request.type() != null) - propsSet |= _type; if (propsSet == (_index)) { StringBuilder buf = new StringBuilder(); @@ -952,63 +970,6 @@ protected static void setupPutMappingRequestDeserializer(DelegatingDeserializer< buf.append("/_mapping"); return buf.toString(); } - if (propsSet == (_index | _type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/"); - buf.append(request.type); - buf.append("/_mapping"); - return buf.toString(); - } - if (propsSet == (_index | _type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/_mapping"); - buf.append("/"); - buf.append(request.type); - return buf.toString(); - } - if (propsSet == (_index | _type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/"); - buf.append(request.type); - buf.append("/_mappings"); - return buf.toString(); - } - if (propsSet == (_index | _type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/_mappings"); - buf.append("/"); - buf.append(request.type); - return buf.toString(); - } - if (propsSet == (_type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/_mappings"); - buf.append("/"); - buf.append(request.type); - return buf.toString(); - } - if (propsSet == (_index)) { - StringBuilder buf = new StringBuilder(); - buf.append("/"); - buf.append(request.index.stream().map(v -> v).collect(Collectors.joining(","))); - buf.append("/_mappings"); - return buf.toString(); - } - if (propsSet == (_type)) { - StringBuilder buf = new StringBuilder(); - buf.append("/_mapping"); - buf.append("/"); - buf.append(request.type); - return buf.toString(); - } throw Endpoint.Simple.noPathTemplateFound("path"); }, diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSettingsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSettingsRequest.java index 600a79557..54ab5b6a9 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSettingsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutSettingsRequest.java @@ -93,6 +93,9 @@ protected PutSettingsRequest(Builder builder) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -101,6 +104,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -109,6 +116,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -117,6 +127,8 @@ public JsonValue expandWildcards() { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ @Nullable @@ -125,6 +137,9 @@ public Boolean flatSettings() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -133,6 +148,8 @@ public Boolean ignoreUnavailable() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -141,6 +158,9 @@ public JsonValue masterTimeout() { } /** + * Whether to update existing settings. If set to true existing + * settings on an index remain unchanged, the default is false + *

* API name: {@code preserve_existing} */ @Nullable @@ -149,6 +169,8 @@ public Boolean preserveExisting() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -206,6 +228,9 @@ public static class Builder implements ObjectBuilder { private IndexSettingsBody value; /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -214,6 +239,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -233,6 +261,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -241,6 +273,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -249,6 +284,8 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Return settings in flat format (default: false) + *

* API name: {@code flat_settings} */ public Builder flatSettings(@Nullable Boolean value) { @@ -257,6 +294,9 @@ public Builder flatSettings(@Nullable Boolean value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -265,6 +305,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -273,6 +315,9 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Whether to update existing settings. If set to true existing + * settings on an index remain unchanged, the default is false + *

* API name: {@code preserve_existing} */ public Builder preserveExisting(@Nullable Boolean value) { @@ -281,6 +326,8 @@ public Builder preserveExisting(@Nullable Boolean value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java index ddc5dd7a9..0abfd815e 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/PutTemplateRequest.java @@ -106,6 +106,8 @@ protected PutTemplateRequest(Builder builder) { } /** + * The name of the template + *

* API name: {@code name} */ public String name() { @@ -113,6 +115,9 @@ public String name() { } /** + * Whether the index template should only be added if new or can also replace an + * existing one + *

* API name: {@code create} */ @Nullable @@ -137,6 +142,8 @@ public Boolean includeTypeName() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -309,6 +316,8 @@ public static class Builder implements ObjectBuilder { private Number version; /** + * The name of the template + *

* API name: {@code name} */ public Builder name(String value) { @@ -317,6 +326,9 @@ public Builder name(String value) { } /** + * Whether the index template should only be added if new or can also replace an + * existing one + *

* API name: {@code create} */ public Builder create(@Nullable Boolean value) { @@ -341,6 +353,8 @@ public Builder includeTypeName(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java index cf8ee63fe..ab1f09109 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RecoveryRequest.java @@ -63,6 +63,9 @@ protected RecoveryRequest(Builder builder) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -71,6 +74,8 @@ public List index() { } /** + * Display only those recoveries that are currently on-going + *

* API name: {@code active_only} */ @Nullable @@ -79,6 +84,8 @@ public Boolean activeOnly() { } /** + * Whether to display detailed information about shard recovery + *

* API name: {@code detailed} */ @Nullable @@ -102,6 +109,9 @@ public static class Builder implements ObjectBuilder { private Boolean detailed; /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -110,6 +120,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -129,6 +142,8 @@ public Builder addIndex(String value) { } /** + * Display only those recoveries that are currently on-going + *

* API name: {@code active_only} */ public Builder activeOnly(@Nullable Boolean value) { @@ -137,6 +152,8 @@ public Builder activeOnly(@Nullable Boolean value) { } /** + * Whether to display detailed information about shard recovery + *

* API name: {@code detailed} */ public Builder detailed(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java index 6fea88c86..5da39d82b 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RefreshRequest.java @@ -68,6 +68,9 @@ protected RefreshRequest(Builder builder) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -76,6 +79,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -84,6 +91,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -92,6 +102,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -118,6 +131,9 @@ public static class Builder implements ObjectBuilder { private Boolean ignoreUnavailable; /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -126,6 +142,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -145,6 +164,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -153,6 +176,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -161,6 +187,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java index f054de0e1..6482bf5bc 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ReloadSearchAnalyzersRequest.java @@ -68,6 +68,8 @@ protected ReloadSearchAnalyzersRequest(Builder builder) { } /** + * A comma-separated list of index names to reload analyzers for + *

* API name: {@code index} */ public List index() { @@ -75,6 +77,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -83,6 +89,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -91,6 +100,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -116,6 +128,8 @@ public static class Builder implements ObjectBuilder * API name: {@code index} */ public Builder index(List value) { @@ -124,6 +138,8 @@ public Builder index(List value) { } /** + * A comma-separated list of index names to reload analyzers for + *

* API name: {@code index} */ public Builder index(String... value) { @@ -143,6 +159,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -151,6 +171,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -159,6 +182,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java index b42c9706c..a98201daa 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ResolveIndexRequest.java @@ -59,6 +59,8 @@ protected ResolveIndexRequest(Builder builder) { } /** + * A comma-separated list of names or wildcard expressions + *

* API name: {@code name} */ public List name() { @@ -66,6 +68,9 @@ public List name() { } /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

* API name: {@code expand_wildcards} */ @Nullable @@ -85,6 +90,8 @@ public static class Builder implements ObjectBuilder { private JsonValue expandWildcards; /** + * A comma-separated list of names or wildcard expressions + *

* API name: {@code name} */ public Builder name(List value) { @@ -93,6 +100,8 @@ public Builder name(List value) { } /** + * A comma-separated list of names or wildcard expressions + *

* API name: {@code name} */ public Builder name(String... value) { @@ -112,6 +121,9 @@ public Builder addName(String value) { } /** + * Whether wildcard expressions should get expanded to open or closed indices + * (default: open) + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java index ee33b88d9..fb1937854 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/RolloverRequest.java @@ -98,6 +98,8 @@ protected RolloverRequest(Builder builder) { } /** + * The name of the alias to rollover + *

* API name: {@code alias} */ public String alias() { @@ -105,6 +107,8 @@ public String alias() { } /** + * The name of the rollover index + *

* API name: {@code new_index} */ @Nullable @@ -113,6 +117,9 @@ public String newIndex() { } /** + * If set to true the rollover action will only be validated but not actually + * performed even if a condition matches. The default is false + *

* API name: {@code dry_run} */ @Nullable @@ -129,6 +136,8 @@ public Boolean includeTypeName() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -137,6 +146,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -145,6 +156,9 @@ public JsonValue timeout() { } /** + * Set the number of active shards to wait for on the newly created rollover + * index before the operation returns. + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -273,6 +287,8 @@ public static class Builder implements ObjectBuilder { private Map settings; /** + * The name of the alias to rollover + *

* API name: {@code alias} */ public Builder alias(String value) { @@ -281,6 +297,8 @@ public Builder alias(String value) { } /** + * The name of the rollover index + *

* API name: {@code new_index} */ public Builder newIndex(@Nullable String value) { @@ -289,6 +307,9 @@ public Builder newIndex(@Nullable String value) { } /** + * If set to true the rollover action will only be validated but not actually + * performed even if a condition matches. The default is false + *

* API name: {@code dry_run} */ public Builder dryRun(@Nullable Boolean value) { @@ -305,6 +326,8 @@ public Builder includeTypeName(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -313,6 +336,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -321,6 +346,9 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Set the number of active shards to wait for on the newly created rollover + * index before the operation returns. + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java index 17bc6078f..a985fc837 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SegmentsRequest.java @@ -72,6 +72,9 @@ protected SegmentsRequest(Builder builder) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -80,6 +83,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -88,6 +95,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -96,6 +106,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -104,6 +117,8 @@ public Boolean ignoreUnavailable() { } /** + * Includes detailed memory usage by Lucene. + *

* API name: {@code verbose} */ @Nullable @@ -133,6 +148,9 @@ public static class Builder implements ObjectBuilder { private Boolean verbose; /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -141,6 +159,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -160,6 +181,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -168,6 +193,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -176,6 +204,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -184,6 +215,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Includes detailed memory usage by Lucene. + *

* API name: {@code verbose} */ public Builder verbose(@Nullable Boolean value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java index 6548c545a..4a64acdba 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShardStoresRequest.java @@ -72,6 +72,9 @@ protected ShardStoresRequest(Builder builder) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -80,6 +83,10 @@ public List index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -88,6 +95,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -96,6 +106,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -104,6 +117,9 @@ public Boolean ignoreUnavailable() { } /** + * A comma-separated list of statuses used to filter on shards to get store + * information for + *

* API name: {@code status} */ @Nullable @@ -133,6 +149,9 @@ public static class Builder implements ObjectBuilder { private List status; /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -141,6 +160,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -160,6 +182,10 @@ public Builder addIndex(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -168,6 +194,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -176,6 +205,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -184,6 +216,9 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * A comma-separated list of statuses used to filter on shards to get store + * information for + *

* API name: {@code status} */ public Builder status(@Nullable List value) { @@ -192,6 +227,9 @@ public Builder status(@Nullable List value) { } /** + * A comma-separated list of statuses used to filter on shards to get store + * information for + *

* API name: {@code status} */ public Builder status(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java index c72a16a1b..e45e5f7da 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ShrinkRequest.java @@ -79,6 +79,8 @@ protected ShrinkRequest(Builder builder) { } /** + * The name of the source index to shrink + *

* API name: {@code index} */ public String index() { @@ -86,6 +88,8 @@ public String index() { } /** + * The name of the target index to shrink into + *

* API name: {@code target} */ public String target() { @@ -93,6 +97,8 @@ public String target() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -101,6 +107,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -109,6 +117,9 @@ public JsonValue timeout() { } /** + * Set the number of active shards to wait for on the shrunken index before the + * operation returns. + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -196,6 +207,8 @@ public static class Builder implements ObjectBuilder { private Map settings; /** + * The name of the source index to shrink + *

* API name: {@code index} */ public Builder index(String value) { @@ -204,6 +217,8 @@ public Builder index(String value) { } /** + * The name of the target index to shrink into + *

* API name: {@code target} */ public Builder target(String value) { @@ -212,6 +227,8 @@ public Builder target(String value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -220,6 +237,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -228,6 +247,9 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Set the number of active shards to wait for on the shrunken index before the + * operation returns. + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java index 03f3a7917..e92ec866d 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateIndexTemplateRequest.java @@ -39,12 +39,12 @@ import java.util.Arrays; import java.util.Collections; import java.util.List; +import java.util.Objects; import java.util.function.Function; import javax.annotation.Nullable; // typedef: indices.simulate_index_template.Request public final class SimulateIndexTemplateRequest extends RequestBase implements ToJsonp { - @Nullable private final String name; @Nullable @@ -63,7 +63,7 @@ public final class SimulateIndexTemplateRequest extends RequestBase implements T protected SimulateIndexTemplateRequest(Builder builder) { - this.name = builder.name; + this.name = Objects.requireNonNull(builder.name, "name"); this.indexPatterns = builder.indexPatterns; this.composedOf = builder.composedOf; this.overlapping = builder.overlapping; @@ -76,7 +76,6 @@ protected SimulateIndexTemplateRequest(Builder builder) { *

* API name: {@code name} */ - @Nullable public String name() { return this.name; } @@ -174,7 +173,6 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link SimulateIndexTemplateRequest}. */ public static class Builder implements ObjectBuilder { - @Nullable private String name; @Nullable @@ -194,7 +192,7 @@ public static class Builder implements ObjectBuilder * API name: {@code name} */ - public Builder name(@Nullable String value) { + public Builder name(String value) { this.name = value; return this; } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateResponse.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateResponse.java index 879b1f7a9..5a6992f70 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateResponse.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SimulateTemplateResponse.java @@ -23,6 +23,7 @@ package co.elastic.clients.elasticsearch.indices; +import co.elastic.clients.elasticsearch.indices.simulate_template.Template; import co.elastic.clients.json.DelegatingDeserializer; import co.elastic.clients.json.JsonpDeserializer; import co.elastic.clients.json.JsonpMapper; @@ -31,27 +32,27 @@ import co.elastic.clients.json.ToJsonp; import co.elastic.clients.util.ObjectBuilder; import jakarta.json.stream.JsonGenerator; -import java.lang.String; import java.util.Objects; +import java.util.function.Function; import javax.annotation.Nullable; // typedef: indices.simulate_template.Response public final class SimulateTemplateResponse implements ToJsonp { - private final String stub; + private final Template template; // --------------------------------------------------------------------------------------------- protected SimulateTemplateResponse(Builder builder) { - this.stub = Objects.requireNonNull(builder.stub, "stub"); + this.template = Objects.requireNonNull(builder.template, "template"); } /** - * API name: {@code stub} + * API name: {@code template} */ - public String stub() { - return this.stub; + public Template template() { + return this.template; } /** @@ -65,8 +66,8 @@ public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { - generator.writeKey("stub"); - generator.write(this.stub); + generator.writeKey("template"); + this.template.toJsonp(generator, mapper); } @@ -76,16 +77,23 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { * Builder for {@link SimulateTemplateResponse}. */ public static class Builder implements ObjectBuilder { - private String stub; + private Template template; /** - * API name: {@code stub} + * API name: {@code template} */ - public Builder stub(String value) { - this.stub = value; + public Builder template(Template value) { + this.template = value; return this; } + /** + * API name: {@code template} + */ + public Builder template(Function> fn) { + return this.template(fn.apply(new Template.Builder()).build()); + } + /** * Builds a {@link SimulateTemplateResponse}. * @@ -109,7 +117,7 @@ public SimulateTemplateResponse build() { protected static void setupSimulateTemplateResponseDeserializer( DelegatingDeserializer op) { - op.add(Builder::stub, JsonpDeserializer.stringDeserializer(), "stub"); + op.add(Builder::template, Template.DESERIALIZER, "template"); } diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitRequest.java index 5918e0c6a..7bafce74a 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/SplitRequest.java @@ -79,6 +79,8 @@ protected SplitRequest(Builder builder) { } /** + * The name of the source index to split + *

* API name: {@code index} */ public String index() { @@ -86,6 +88,8 @@ public String index() { } /** + * The name of the target index to split into + *

* API name: {@code target} */ public String target() { @@ -93,6 +97,8 @@ public String target() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -101,6 +107,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -109,6 +117,9 @@ public JsonValue timeout() { } /** + * Set the number of active shards to wait for on the shrunken index before the + * operation returns. + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -196,6 +207,8 @@ public static class Builder implements ObjectBuilder { private Map settings; /** + * The name of the source index to split + *

* API name: {@code index} */ public Builder index(String value) { @@ -204,6 +217,8 @@ public Builder index(String value) { } /** + * The name of the target index to split into + *

* API name: {@code target} */ public Builder target(String value) { @@ -212,6 +227,8 @@ public Builder target(String value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -220,6 +237,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -228,6 +247,9 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Set the number of active shards to wait for on the shrunken index before the + * operation returns. + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/StatsRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/StatsRequest.java index a063cd2bd..5b69bcb2c 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/StatsRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/StatsRequest.java @@ -100,6 +100,8 @@ protected StatsRequest(Builder builder) { } /** + * Limit the information returned the specific metrics. + *

* API name: {@code metric} */ @Nullable @@ -108,6 +110,9 @@ public List metric() { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -116,6 +121,9 @@ public List index() { } /** + * A comma-separated list of fields for the completion index metric + * (supports wildcards) + *

* API name: {@code completion_fields} */ @Nullable @@ -124,6 +132,9 @@ public List completionFields() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -132,6 +143,9 @@ public JsonValue expandWildcards() { } /** + * A comma-separated list of fields for the fielddata index metric + * (supports wildcards) + *

* API name: {@code fielddata_fields} */ @Nullable @@ -140,6 +154,9 @@ public List fielddataFields() { } /** + * A comma-separated list of fields for fielddata and + * completion index metric (supports wildcards) + *

* API name: {@code fields} */ @Nullable @@ -148,6 +165,9 @@ public List fields() { } /** + * If set to false stats will also collected from closed indices if explicitly + * specified or if expand_wildcards expands to closed indices + *

* API name: {@code forbid_closed_indices} */ @Nullable @@ -156,6 +176,8 @@ public Boolean forbidClosedIndices() { } /** + * A comma-separated list of search groups for search index metric + *

* API name: {@code groups} */ @Nullable @@ -164,6 +186,9 @@ public List groups() { } /** + * Whether to report the aggregated disk usage of each one of the Lucene index + * files (only applies if segment stats are requested) + *

* API name: {@code include_segment_file_sizes} */ @Nullable @@ -172,6 +197,9 @@ public Boolean includeSegmentFileSizes() { } /** + * If set to true segment stats will include stats for segments that are not + * currently loaded into memory + *

* API name: {@code include_unloaded_segments} */ @Nullable @@ -180,6 +208,8 @@ public Boolean includeUnloadedSegments() { } /** + * Return stats aggregated at cluster, index or shard level + *

* API name: {@code level} */ @Nullable @@ -188,6 +218,9 @@ public JsonValue level() { } /** + * A comma-separated list of document types for the indexing index + * metric + *

* API name: {@code types} */ @Nullable @@ -238,6 +271,8 @@ public static class Builder implements ObjectBuilder { private List types; /** + * Limit the information returned the specific metrics. + *

* API name: {@code metric} */ public Builder metric(@Nullable List value) { @@ -246,6 +281,8 @@ public Builder metric(@Nullable List value) { } /** + * Limit the information returned the specific metrics. + *

* API name: {@code metric} */ public Builder metric(String... value) { @@ -265,6 +302,9 @@ public Builder addMetric(String value) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -273,6 +313,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names; use _all or empty string + * to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -292,6 +335,9 @@ public Builder addIndex(String value) { } /** + * A comma-separated list of fields for the completion index metric + * (supports wildcards) + *

* API name: {@code completion_fields} */ public Builder completionFields(@Nullable List value) { @@ -300,6 +346,9 @@ public Builder completionFields(@Nullable List value) { } /** + * A comma-separated list of fields for the completion index metric + * (supports wildcards) + *

* API name: {@code completion_fields} */ public Builder completionFields(String... value) { @@ -319,6 +368,9 @@ public Builder addCompletionFields(String value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -327,6 +379,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * A comma-separated list of fields for the fielddata index metric + * (supports wildcards) + *

* API name: {@code fielddata_fields} */ public Builder fielddataFields(@Nullable List value) { @@ -335,6 +390,9 @@ public Builder fielddataFields(@Nullable List value) { } /** + * A comma-separated list of fields for the fielddata index metric + * (supports wildcards) + *

* API name: {@code fielddata_fields} */ public Builder fielddataFields(String... value) { @@ -354,6 +412,9 @@ public Builder addFielddataFields(String value) { } /** + * A comma-separated list of fields for fielddata and + * completion index metric (supports wildcards) + *

* API name: {@code fields} */ public Builder fields(@Nullable List value) { @@ -362,6 +423,9 @@ public Builder fields(@Nullable List value) { } /** + * A comma-separated list of fields for fielddata and + * completion index metric (supports wildcards) + *

* API name: {@code fields} */ public Builder fields(String... value) { @@ -381,6 +445,9 @@ public Builder addFields(String value) { } /** + * If set to false stats will also collected from closed indices if explicitly + * specified or if expand_wildcards expands to closed indices + *

* API name: {@code forbid_closed_indices} */ public Builder forbidClosedIndices(@Nullable Boolean value) { @@ -389,6 +456,8 @@ public Builder forbidClosedIndices(@Nullable Boolean value) { } /** + * A comma-separated list of search groups for search index metric + *

* API name: {@code groups} */ public Builder groups(@Nullable List value) { @@ -397,6 +466,8 @@ public Builder groups(@Nullable List value) { } /** + * A comma-separated list of search groups for search index metric + *

* API name: {@code groups} */ public Builder groups(String... value) { @@ -416,6 +487,9 @@ public Builder addGroups(String value) { } /** + * Whether to report the aggregated disk usage of each one of the Lucene index + * files (only applies if segment stats are requested) + *

* API name: {@code include_segment_file_sizes} */ public Builder includeSegmentFileSizes(@Nullable Boolean value) { @@ -424,6 +498,9 @@ public Builder includeSegmentFileSizes(@Nullable Boolean value) { } /** + * If set to true segment stats will include stats for segments that are not + * currently loaded into memory + *

* API name: {@code include_unloaded_segments} */ public Builder includeUnloadedSegments(@Nullable Boolean value) { @@ -432,6 +509,8 @@ public Builder includeUnloadedSegments(@Nullable Boolean value) { } /** + * Return stats aggregated at cluster, index or shard level + *

* API name: {@code level} */ public Builder level(@Nullable JsonValue value) { @@ -440,6 +519,9 @@ public Builder level(@Nullable JsonValue value) { } /** + * A comma-separated list of document types for the indexing index + * metric + *

* API name: {@code types} */ public Builder types(@Nullable List value) { @@ -448,6 +530,9 @@ public Builder types(@Nullable List value) { } /** + * A comma-separated list of document types for the indexing index + * metric + *

* API name: {@code types} */ public Builder types(String... value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UnfreezeRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UnfreezeRequest.java index b0298cb45..0f679ea57 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UnfreezeRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UnfreezeRequest.java @@ -76,6 +76,8 @@ protected UnfreezeRequest(Builder builder) { } /** + * The name of the index to unfreeze + *

* API name: {@code index} */ public String index() { @@ -83,6 +85,10 @@ public String index() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -91,6 +97,9 @@ public Boolean allowNoIndices() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -99,6 +108,9 @@ public JsonValue expandWildcards() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -107,6 +119,8 @@ public Boolean ignoreUnavailable() { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -115,6 +129,8 @@ public JsonValue masterTimeout() { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ @Nullable @@ -123,6 +139,8 @@ public JsonValue timeout() { } /** + * Sets the number of active shards to wait for before the operation returns. + *

* API name: {@code wait_for_active_shards} */ @Nullable @@ -157,6 +175,8 @@ public static class Builder implements ObjectBuilder { private String waitForActiveShards; /** + * The name of the index to unfreeze + *

* API name: {@code index} */ public Builder index(String value) { @@ -165,6 +185,10 @@ public Builder index(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -173,6 +197,9 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -181,6 +208,9 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -189,6 +219,8 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -197,6 +229,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Explicit operation timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { @@ -205,6 +239,8 @@ public Builder timeout(@Nullable JsonValue value) { } /** + * Sets the number of active shards to wait for before the operation returns. + *

* API name: {@code wait_for_active_shards} */ public Builder waitForActiveShards(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java index 332552f87..a8c2f4214 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/UpdateAliasesRequest.java @@ -64,6 +64,8 @@ protected UpdateAliasesRequest(Builder builder) { } /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ @Nullable @@ -72,6 +74,8 @@ public JsonValue masterTimeout() { } /** + * Request timeout + *

* API name: {@code timeout} */ @Nullable @@ -128,6 +132,8 @@ public static class Builder implements ObjectBuilder { private List actions; /** + * Specify timeout for connection to master + *

* API name: {@code master_timeout} */ public Builder masterTimeout(@Nullable JsonValue value) { @@ -136,6 +142,8 @@ public Builder masterTimeout(@Nullable JsonValue value) { } /** + * Request timeout + *

* API name: {@code timeout} */ public Builder timeout(@Nullable JsonValue value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java index 0951b8c8d..840d65286 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/ValidateQueryRequest.java @@ -121,6 +121,9 @@ protected ValidateQueryRequest(Builder builder) { } /** + * A comma-separated list of index names to restrict the operation; use + * _all or empty string to perform the operation on all indices + *

* API name: {@code index} */ @Nullable @@ -129,6 +132,9 @@ public List index() { } /** + * A comma-separated list of document types to restrict the operation; leave + * empty to perform the operation on all types + *

* API name: {@code type} */ @Nullable @@ -137,6 +143,10 @@ public List type() { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ @Nullable @@ -145,6 +155,8 @@ public Boolean allowNoIndices() { } /** + * Execute validation on all shards instead of one random shard per index + *

* API name: {@code all_shards} */ @Nullable @@ -153,6 +165,8 @@ public Boolean allShards() { } /** + * The analyzer to use for the query string + *

* API name: {@code analyzer} */ @Nullable @@ -161,6 +175,9 @@ public String analyzer() { } /** + * Specify whether wildcard and prefix queries should be analyzed (default: + * false) + *

* API name: {@code analyze_wildcard} */ @Nullable @@ -169,6 +186,8 @@ public Boolean analyzeWildcard() { } /** + * The default operator for query string query (AND or OR) + *

* API name: {@code default_operator} */ @Nullable @@ -177,6 +196,9 @@ public JsonValue defaultOperator() { } /** + * The field to use as default where no field prefix is given in the query + * string + *

* API name: {@code df} */ @Nullable @@ -185,6 +207,9 @@ public String df() { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ @Nullable @@ -193,6 +218,8 @@ public JsonValue expandWildcards() { } /** + * Return detailed information about the error + *

* API name: {@code explain} */ @Nullable @@ -201,6 +228,9 @@ public Boolean explain() { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ @Nullable @@ -209,6 +239,9 @@ public Boolean ignoreUnavailable() { } /** + * Specify whether format-based query failures (such as providing text to a + * numeric field) should be ignored + *

* API name: {@code lenient} */ @Nullable @@ -225,6 +258,9 @@ public String queryOnQueryString() { } /** + * Provide a more detailed explanation showing the actual Lucene query that will + * be executed. + *

* API name: {@code rewrite} */ @Nullable @@ -233,6 +269,8 @@ public Boolean rewrite() { } /** + * Query in the Lucene query string syntax + *

* API name: {@code q} */ @Nullable @@ -323,6 +361,9 @@ public static class Builder implements ObjectBuilder { private QueryContainer query; /** + * A comma-separated list of index names to restrict the operation; use + * _all or empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(@Nullable List value) { @@ -331,6 +372,9 @@ public Builder index(@Nullable List value) { } /** + * A comma-separated list of index names to restrict the operation; use + * _all or empty string to perform the operation on all indices + *

* API name: {@code index} */ public Builder index(String... value) { @@ -350,6 +394,9 @@ public Builder addIndex(String value) { } /** + * A comma-separated list of document types to restrict the operation; leave + * empty to perform the operation on all types + *

* API name: {@code type} */ public Builder type(@Nullable List value) { @@ -358,6 +405,9 @@ public Builder type(@Nullable List value) { } /** + * A comma-separated list of document types to restrict the operation; leave + * empty to perform the operation on all types + *

* API name: {@code type} */ public Builder type(String... value) { @@ -377,6 +427,10 @@ public Builder addType(String value) { } /** + * Whether to ignore if a wildcard indices expression resolves into no concrete + * indices. (This includes _all string or when no indices have been + * specified) + *

* API name: {@code allow_no_indices} */ public Builder allowNoIndices(@Nullable Boolean value) { @@ -385,6 +439,8 @@ public Builder allowNoIndices(@Nullable Boolean value) { } /** + * Execute validation on all shards instead of one random shard per index + *

* API name: {@code all_shards} */ public Builder allShards(@Nullable Boolean value) { @@ -393,6 +449,8 @@ public Builder allShards(@Nullable Boolean value) { } /** + * The analyzer to use for the query string + *

* API name: {@code analyzer} */ public Builder analyzer(@Nullable String value) { @@ -401,6 +459,9 @@ public Builder analyzer(@Nullable String value) { } /** + * Specify whether wildcard and prefix queries should be analyzed (default: + * false) + *

* API name: {@code analyze_wildcard} */ public Builder analyzeWildcard(@Nullable Boolean value) { @@ -409,6 +470,8 @@ public Builder analyzeWildcard(@Nullable Boolean value) { } /** + * The default operator for query string query (AND or OR) + *

* API name: {@code default_operator} */ public Builder defaultOperator(@Nullable JsonValue value) { @@ -417,6 +480,9 @@ public Builder defaultOperator(@Nullable JsonValue value) { } /** + * The field to use as default where no field prefix is given in the query + * string + *

* API name: {@code df} */ public Builder df(@Nullable String value) { @@ -425,6 +491,9 @@ public Builder df(@Nullable String value) { } /** + * Whether to expand wildcard expression to concrete indices that are open, + * closed or both. + *

* API name: {@code expand_wildcards} */ public Builder expandWildcards(@Nullable JsonValue value) { @@ -433,6 +502,8 @@ public Builder expandWildcards(@Nullable JsonValue value) { } /** + * Return detailed information about the error + *

* API name: {@code explain} */ public Builder explain(@Nullable Boolean value) { @@ -441,6 +512,9 @@ public Builder explain(@Nullable Boolean value) { } /** + * Whether specified concrete indices should be ignored when unavailable + * (missing or closed) + *

* API name: {@code ignore_unavailable} */ public Builder ignoreUnavailable(@Nullable Boolean value) { @@ -449,6 +523,9 @@ public Builder ignoreUnavailable(@Nullable Boolean value) { } /** + * Specify whether format-based query failures (such as providing text to a + * numeric field) should be ignored + *

* API name: {@code lenient} */ public Builder lenient(@Nullable Boolean value) { @@ -465,6 +542,9 @@ public Builder queryOnQueryString(@Nullable String value) { } /** + * Provide a more detailed explanation showing the actual Lucene query that will + * be executed. + *

* API name: {@code rewrite} */ public Builder rewrite(@Nullable Boolean value) { @@ -473,6 +553,8 @@ public Builder rewrite(@Nullable Boolean value) { } /** + * Query in the Lucene query string syntax + *

* API name: {@code q} */ public Builder q(@Nullable String value) { diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryBytes.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryBytes.java index d3f0b57b2..da09cfa54 100644 --- a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryBytes.java +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/recovery/RecoveryBytes.java @@ -44,6 +44,12 @@ public final class RecoveryBytes implements ToJsonp { private final JsonValue recoveredInBytes; + @Nullable + private final JsonValue recoveredFromSnapshot; + + @Nullable + private final JsonValue recoveredFromSnapshotInBytes; + @Nullable private final JsonValue reused; @@ -61,6 +67,8 @@ protected RecoveryBytes(Builder builder) { this.percent = Objects.requireNonNull(builder.percent, "percent"); this.recovered = builder.recovered; this.recoveredInBytes = Objects.requireNonNull(builder.recoveredInBytes, "recovered_in_bytes"); + this.recoveredFromSnapshot = builder.recoveredFromSnapshot; + this.recoveredFromSnapshotInBytes = builder.recoveredFromSnapshotInBytes; this.reused = builder.reused; this.reusedInBytes = Objects.requireNonNull(builder.reusedInBytes, "reused_in_bytes"); this.total = builder.total; @@ -90,6 +98,22 @@ public JsonValue recoveredInBytes() { return this.recoveredInBytes; } + /** + * API name: {@code recovered_from_snapshot} + */ + @Nullable + public JsonValue recoveredFromSnapshot() { + return this.recoveredFromSnapshot; + } + + /** + * API name: {@code recovered_from_snapshot_in_bytes} + */ + @Nullable + public JsonValue recoveredFromSnapshotInBytes() { + return this.recoveredFromSnapshotInBytes; + } + /** * API name: {@code reused} */ @@ -144,6 +168,18 @@ protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { generator.writeKey("recovered_in_bytes"); generator.write(this.recoveredInBytes); + if (this.recoveredFromSnapshot != null) { + + generator.writeKey("recovered_from_snapshot"); + generator.write(this.recoveredFromSnapshot); + + } + if (this.recoveredFromSnapshotInBytes != null) { + + generator.writeKey("recovered_from_snapshot_in_bytes"); + generator.write(this.recoveredFromSnapshotInBytes); + + } if (this.reused != null) { generator.writeKey("reused"); @@ -179,6 +215,12 @@ public static class Builder implements ObjectBuilder { private JsonValue recoveredInBytes; + @Nullable + private JsonValue recoveredFromSnapshot; + + @Nullable + private JsonValue recoveredFromSnapshotInBytes; + @Nullable private JsonValue reused; @@ -213,6 +255,22 @@ public Builder recoveredInBytes(JsonValue value) { return this; } + /** + * API name: {@code recovered_from_snapshot} + */ + public Builder recoveredFromSnapshot(@Nullable JsonValue value) { + this.recoveredFromSnapshot = value; + return this; + } + + /** + * API name: {@code recovered_from_snapshot_in_bytes} + */ + public Builder recoveredFromSnapshotInBytes(@Nullable JsonValue value) { + this.recoveredFromSnapshotInBytes = value; + return this; + } + /** * API name: {@code reused} */ @@ -270,6 +328,9 @@ protected static void setupRecoveryBytesDeserializer(DelegatingDeserializer indexPatterns; + + // --------------------------------------------------------------------------------------------- + + protected Overlapping(Builder builder) { + + this.name = Objects.requireNonNull(builder.name, "name"); + this.indexPatterns = Objects.requireNonNull(builder.indexPatterns, "index_patterns"); + + } + + /** + * API name: {@code name} + */ + public String name() { + return this.name; + } + + /** + * API name: {@code index_patterns} + */ + public List indexPatterns() { + return this.indexPatterns; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("name"); + generator.write(this.name); + + generator.writeKey("index_patterns"); + generator.writeStartArray(); + for (String item0 : this.indexPatterns) { + generator.write(item0); + + } + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link Overlapping}. + */ + public static class Builder implements ObjectBuilder { + private String name; + + private List indexPatterns; + + /** + * API name: {@code name} + */ + public Builder name(String value) { + this.name = value; + return this; + } + + /** + * API name: {@code index_patterns} + */ + public Builder indexPatterns(List value) { + this.indexPatterns = value; + return this; + } + + /** + * API name: {@code index_patterns} + */ + public Builder indexPatterns(String... value) { + this.indexPatterns = Arrays.asList(value); + return this; + } + + /** + * Add a value to {@link #indexPatterns(List)}, creating the list if needed. + */ + public Builder addIndexPatterns(String value) { + if (this.indexPatterns == null) { + this.indexPatterns = new ArrayList<>(); + } + this.indexPatterns.add(value); + return this; + } + + /** + * Builds a {@link Overlapping}. + * + * @throws NullPointerException + * if some of the required fields are null. + */ + public Overlapping build() { + + return new Overlapping(this); + } + } + + // --------------------------------------------------------------------------------------------- + + /** + * Json deserializer for Overlapping + */ + public static final JsonpDeserializer DESERIALIZER = ObjectBuilderDeserializer + .createForObject(Builder::new, Overlapping::setupOverlappingDeserializer); + + protected static void setupOverlappingDeserializer(DelegatingDeserializer op) { + + op.add(Builder::name, JsonpDeserializer.stringDeserializer(), "name"); + op.add(Builder::indexPatterns, JsonpDeserializer.arrayDeserializer(JsonpDeserializer.stringDeserializer()), + "index_patterns"); + + } + +} diff --git a/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Template.java b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Template.java new file mode 100644 index 000000000..cb89bb45c --- /dev/null +++ b/java-client/src/main/java/co/elastic/clients/elasticsearch/indices/simulate_template/Template.java @@ -0,0 +1,290 @@ +/* + * Licensed to Elasticsearch B.V. under one or more contributor + * license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright + * ownership. Elasticsearch B.V. licenses this file to you under + * the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +//---------------------------------------------------- +// THIS CODE IS GENERATED. MANUAL EDITS WILL BE LOST. +//---------------------------------------------------- + +package co.elastic.clients.elasticsearch.indices.simulate_template; + +import co.elastic.clients.elasticsearch._types.mapping.TypeMapping; +import co.elastic.clients.elasticsearch.indices.Alias; +import co.elastic.clients.json.DelegatingDeserializer; +import co.elastic.clients.json.JsonpDeserializer; +import co.elastic.clients.json.JsonpMapper; +import co.elastic.clients.json.ObjectBuilderDeserializer; +import co.elastic.clients.json.ObjectDeserializer; +import co.elastic.clients.json.ToJsonp; +import co.elastic.clients.util.ObjectBuilder; +import jakarta.json.JsonValue; +import jakarta.json.stream.JsonGenerator; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Function; +import javax.annotation.Nullable; + +// typedef: indices.simulate_template.Template +public final class Template implements ToJsonp { + private final Map aliases; + + private final TypeMapping mappings; + + private final Map settings; + + private final List overlapping; + + // --------------------------------------------------------------------------------------------- + + protected Template(Builder builder) { + + this.aliases = Objects.requireNonNull(builder.aliases, "aliases"); + this.mappings = Objects.requireNonNull(builder.mappings, "mappings"); + this.settings = Objects.requireNonNull(builder.settings, "settings"); + this.overlapping = Objects.requireNonNull(builder.overlapping, "overlapping"); + + } + + /** + * API name: {@code aliases} + */ + public Map aliases() { + return this.aliases; + } + + /** + * API name: {@code mappings} + */ + public TypeMapping mappings() { + return this.mappings; + } + + /** + * API name: {@code settings} + */ + public Map settings() { + return this.settings; + } + + /** + * API name: {@code overlapping} + */ + public List overlapping() { + return this.overlapping; + } + + /** + * Serialize this object to JSON. + */ + public void toJsonp(JsonGenerator generator, JsonpMapper mapper) { + generator.writeStartObject(); + toJsonpInternal(generator, mapper); + generator.writeEnd(); + } + + protected void toJsonpInternal(JsonGenerator generator, JsonpMapper mapper) { + + generator.writeKey("aliases"); + generator.writeStartObject(); + for (Map.Entry item0 : this.aliases.entrySet()) { + generator.writeKey(item0.getKey()); + item0.getValue().toJsonp(generator, mapper); + + } + generator.writeEnd(); + + generator.writeKey("mappings"); + this.mappings.toJsonp(generator, mapper); + + generator.writeKey("settings"); + generator.writeStartObject(); + for (Map.Entry item0 : this.settings.entrySet()) { + generator.writeKey(item0.getKey()); + generator.write(item0.getValue()); + + } + generator.writeEnd(); + + generator.writeKey("overlapping"); + generator.writeStartArray(); + for (Overlapping item0 : this.overlapping) { + item0.toJsonp(generator, mapper); + + } + generator.writeEnd(); + + } + + // --------------------------------------------------------------------------------------------- + + /** + * Builder for {@link Template}. + */ + public static class Builder implements ObjectBuilder